[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/biz/ - Business & Finance

Search:


View post   

>> No.16823567 [View]
File: 23 KB, 698x442, no-signature-my-ass.png [View same] [iqdb] [saucenao] [google]
16823567

>>16823459
>the receiver of a segwit transaction does not get a signature
https://github.com/libbitcoin/libbitcoin-system/wiki/Examples-from-Pay-to-Witness-Transactions
educate yourself and stop spreading bullshit fud!
the witness is a sigscript. it contains as many signatures as needed and validates them upon execution.

// Create witness.
data_stack witness_stack;
data_chunk empty_chunk;
witness_stack.push_back(empty_chunk);
witness_stack.push_back(sig0);
witness_stack.push_back(sig1);
witness_stack.push_back(witness_script.to_data(false));
witness p2wsh_witness(witness_stack);
tx.inputs()[0].set_witness(p2wsh_witness);

Navigation
View posts[+24][+48][+96]