Bitcoin Forum
May 24, 2024, 10:08:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: spend BTC from contract on: November 07, 2018, 09:46:58 AM
Thanks for your answer,

In fact my goal is to make the seller recover his funds, so he will accept to cooperate. He is not a technical user at all, that's why I am managing the issue.
If I understand the contract, the only signature of the seller will work given that the time-lock is expired.

The scriptsig should be something like :

<signature from pubkey2> OP_FALSE
2  Bitcoin / Bitcoin Technical Support / spend BTC from contract on: November 07, 2018, 09:19:20 AM
Hi everybody,

Some time ago, I bought some stuff on openbazaar.org using moderated bitcoin payment (basically, it means that the payment is temporary sent in a kind-of time-locked 2of3 multisig wallet (see below), then sent back to the seller). Due to a bug while performing the transaction, the payment are still locked in the contract at bc1qn5kcksql85vzgm62za4l9fdqeqatkgx7jjxfg9kr4vdclsswu2gq7rwkzs, whose script is :

OP_IF
OP_2
pubkey1 : 0278a5f340830f529a7be55407b1e79afb67ec048368c52d512509802b82d69f66
pubkey2 : 03f1d527824a97316e9a4e78c62fce50e758f7cb271cfdcf249d5e970dae51cbc4
pubkey3 : 03a21186b3cce30cd037b14cba036fd02dcde7ca362d0e56cd8a939d8fc551f926
OP_3
OP_CHECKMULTISIG
OP_ELSE
5019
OP_NOP3
OP_DROP
pubkey2 : 03f1d527824a97316e9a4e78c62fce50e758f7cb271cfdcf249d5e970dae51cbc4
OP_CHECKSIG
OP_ENDIF

The pubkey2 is controlled by my partner, and one of the two other by myself. The 5019 timelock is over, so only the ELSE part matters. Does anybody know a software which could make advanced transaction with custom inputs and outputs, and sign it, knowing that the contract address is bech32 ?

Thanks in advance !
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!