You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let outpoint = bitcoin::blockdata::transaction::OutPoint::new(txid,0);
51
+
let output = TxOut{value:255, script_pubkey: bitcoin::blockdata::script::Script::new()};
52
+
let static_output = SpendableOutputDescriptor::StaticOutput{outpoint, output: output.clone()};
53
+
54
+
let key = bitcoin::secp256k1::key::SecretKey::from_slice(&hex::decode("0101010101010101010101010101010101010101010101010101010101010101").unwrap()).unwrap();
55
+
let dynamic_output_p2wsh = SpendableOutputDescriptor::DynamicOutputP2WSH{
let outputs = vec![static_output, dynamic_output_p2wsh];
63
+
events.push(Event::SpendableOutputs{outputs});
64
+
65
+
letmut e = FFIEvents{ events };
66
+
let buf = unsafe_block!("The buffer lives as long as this function, the length is within the buffer and the buffer won't be read before initialization" => buf_out.as_uninit_bytes_mut(buf_len));
0 commit comments