What is Nostr?
jl2012 at xbt.hk [ARCHIVE] /
npub1kc0ā€¦jfw4
2023-06-07 17:49:08
in reply to nevent1qā€¦872p

jl2012 at xbt.hk [ARCHIVE] on Nostr: šŸ“… Original date posted:2016-02-12 šŸ“ Original message:Seems it could be done ...

šŸ“… Original date posted:2016-02-12
šŸ“ Original message:Seems it could be done without any new opcode:



Bob is trading b Bitcoins for a altcoins.



1. Bob Pays D Bitcoins to



IF

<now+2days> CLTV DROP <Alice PK> CHECKSIG

ELSE

HASH160 <hash secret B> EQUALVERIFY <Bob PK> CHECKSIG

ENDIF



2. Alice pays a altcoins to



IF

HASH160 <hash secret B> EQUALVERIFY <Alice PK> CHECKSIG

ELSE

HASH160 <hash secret A> EQUALVERIFY <Bob PK> CHECKSIG

ENDIF



3. Bob pays b Bitcoins to



IF

<now+1days> CLTV DROP <Bob PK> CHECKSIG

ELSE

HASH160 <hash secret A> EQUALVERIFY <Alice PK> CHECKSIG

ENDIF



4. Alice claims output from step 3 and reveals secret A



5. Bob claims output from step 2



6. Bob claims output from step 1 and reveals secret B



From: bitcoin-dev-bounces at lists.linuxfoundation.org [mailto:bitcoin-dev-bounces at lists.linuxfoundation.org] On Behalf Of Tier Nolan via bitcoin-dev
Sent: Friday, 12 February, 2016 04:05
To: Bitcoin Dev <bitcoin-dev at lists.linuxfoundation.org>
Subject: [bitcoin-dev] BIP CPRKV: Check private key verify



There was some discussion on the bitcointalk forums about using CLTV for cross chain transfers.

Many altcoins don't support CLTV, so transfers to those coins cannot be made secure.

I created a protocol. It uses on cut and choose to allow commitments to publish private keys, but it is clunky and not entirely secure.

I created a BIP draft for an opcode which would allow outputs to be locked unless a private key was published that matches a given public key.


https://github.com/TierNolan/bips/blob/cpkv/bip-cprkv.mediawiki


<https://www.avast.com/sig-email>;

This email has been sent from a virus-free computer protected by Avast.
<https://www.avast.com/sig-email>; www.avast.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20160212/055b7677/attachment-0001.html>;
Author Public Key
npub1kc0zulxt7j4a0ayhzhrz7jk84y7tm4026qcky7w97hlfkxxap24qnwjfw4