Merge pull request #493 from zcash/485-zip244-coinbase-fix

zcash_primitives: Update ZIP 244 with coinbase fix
This commit is contained in:
Kris Nuttycombe 2022-02-08 08:16:19 -07:00 committed by GitHub
commit 2425a08690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 234 additions and 245 deletions

View File

@ -29,6 +29,20 @@ pub struct Bundle<A: Authorization> {
pub authorization: A,
}
impl<A: Authorization> Bundle<A> {
/// Returns `true` if this bundle matches the definition of a coinbase transaction.
///
/// Note that this is defined purely in terms of the transparent transaction part. The
/// consensus rules enforce additional rules on the shielded parts (namely, that they
/// don't have any inputs) of transactions with a transparent part that matches this
/// definition.
pub fn is_coinbase(&self) -> bool {
// From `CTransaction::IsCoinBase()` in zcashd:
// return (vin.size() == 1 && vin[0].prevout.IsNull());
matches!(&self.vin[..], [input] if input.prevout.is_null())
}
}
#[derive(Clone, Debug, PartialEq)]
pub struct OutPoint {
hash: [u8; 32],
@ -52,6 +66,14 @@ impl OutPoint {
writer.write_u32::<LittleEndian>(self.n)
}
/// Returns `true` if this `OutPoint` is "null" in the Bitcoin sense: it points to the
/// `u32::MAX`th output of the transaction with the all-zeroes txid.
fn is_null(&self) -> bool {
// From `BaseOutPoint::IsNull()` in zcashd:
// return (hash.IsNull() && n == (uint32_t) -1);
self.hash == [0; 32] && self.n == u32::MAX
}
pub fn n(&self) -> u32 {
self.n
}

View File

@ -37,99 +37,108 @@ fn hasher(personal: &[u8; 16]) -> State {
Params::new().hash_length(32).personal(personal).to_state()
}
/// Implements [ZIP 244 section S.2](https://zips.z.cash/zip-0244#s-2-transparent-sig-digest)
/// but only when used to produce the hash for a signature over a transparent input.
/// Implements [ZIP 244 section S.2](https://zips.z.cash/zip-0244#s-2-transparent-sig-digest).
fn transparent_sig_digest<A: TransparentAuthorizingContext>(
txid_digests: &TransparentDigests<Blake2bHash>,
bundle: &transparent::Bundle<A>,
tx_data: Option<(&transparent::Bundle<A>, &TransparentDigests<Blake2bHash>)>,
input: &SignableInput<'_>,
) -> Blake2bHash {
let hash_type = input.hash_type();
let flag_anyonecanpay = hash_type & SIGHASH_ANYONECANPAY != 0;
let flag_single = hash_type & SIGHASH_MASK == SIGHASH_SINGLE;
let flag_none = hash_type & SIGHASH_MASK == SIGHASH_NONE;
let prevouts_digest = if flag_anyonecanpay {
transparent_prevout_hash::<A>(&[])
} else {
txid_digests.prevouts_digest
};
let amounts_digest = {
let mut h = hasher(ZCASH_TRANSPARENT_AMOUNTS_HASH_PERSONALIZATION);
if !flag_anyonecanpay {
Array::write(&mut h, bundle.authorization.input_amounts(), |w, amount| {
w.write_all(&amount.to_i64_le_bytes())
})
.unwrap();
match tx_data {
// No transparent inputs or outputs.
None => hash_transparent_txid_data(None),
// No transparent inputs, or coinbase.
Some((bundle, txid_digests)) if bundle.is_coinbase() || bundle.vin.is_empty() => {
hash_transparent_txid_data(Some(txid_digests))
}
h.finalize()
};
// Some transparent inputs, and not coinbase.
Some((bundle, txid_digests)) => {
let hash_type = input.hash_type();
let flag_anyonecanpay = hash_type & SIGHASH_ANYONECANPAY != 0;
let flag_single = hash_type & SIGHASH_MASK == SIGHASH_SINGLE;
let flag_none = hash_type & SIGHASH_MASK == SIGHASH_NONE;
let scripts_digest = {
let mut h = hasher(ZCASH_TRANSPARENT_SCRIPTS_HASH_PERSONALIZATION);
if !flag_anyonecanpay {
Array::write(
&mut h,
bundle.authorization.input_scriptpubkeys(),
|w, script| script.write(w),
)
.unwrap();
}
h.finalize()
};
let sequence_digest = if flag_anyonecanpay {
transparent_sequence_hash::<A>(&[])
} else {
txid_digests.sequence_digest
};
let outputs_digest = if let SignableInput::Transparent { index, .. } = input {
if flag_single {
if *index < bundle.vout.len() {
transparent_outputs_hash(&[&bundle.vout[*index]])
let prevouts_digest = if flag_anyonecanpay {
transparent_prevout_hash::<A>(&[])
} else {
transparent_outputs_hash::<TxOut>(&[])
txid_digests.prevouts_digest
};
let amounts_digest = {
let mut h = hasher(ZCASH_TRANSPARENT_AMOUNTS_HASH_PERSONALIZATION);
if !flag_anyonecanpay {
Array::write(&mut h, bundle.authorization.input_amounts(), |w, amount| {
w.write_all(&amount.to_i64_le_bytes())
})
.unwrap();
}
h.finalize()
};
let scripts_digest = {
let mut h = hasher(ZCASH_TRANSPARENT_SCRIPTS_HASH_PERSONALIZATION);
if !flag_anyonecanpay {
Array::write(
&mut h,
bundle.authorization.input_scriptpubkeys(),
|w, script| script.write(w),
)
.unwrap();
}
h.finalize()
};
let sequence_digest = if flag_anyonecanpay {
transparent_sequence_hash::<A>(&[])
} else {
txid_digests.sequence_digest
};
let outputs_digest = if let SignableInput::Transparent { index, .. } = input {
if flag_single {
if *index < bundle.vout.len() {
transparent_outputs_hash(&[&bundle.vout[*index]])
} else {
transparent_outputs_hash::<TxOut>(&[])
}
} else if flag_none {
transparent_outputs_hash::<TxOut>(&[])
} else {
txid_digests.outputs_digest
}
} else {
txid_digests.outputs_digest
};
//S.2g.i: prevout (field encoding)
//S.2g.ii: value (8-byte signed little-endian)
//S.2g.iii: scriptPubKey (field encoding)
//S.2g.iv: nSequence (4-byte unsigned little-endian)
let mut ch = hasher(ZCASH_TRANSPARENT_INPUT_HASH_PERSONALIZATION);
if let SignableInput::Transparent {
index,
script_pubkey,
value,
..
} = input
{
let txin = &bundle.vin[*index];
txin.prevout.write(&mut ch).unwrap();
ch.write_all(&value.to_i64_le_bytes()).unwrap();
script_pubkey.write(&mut ch).unwrap();
ch.write_u32::<LittleEndian>(txin.sequence).unwrap();
}
} else if flag_none {
transparent_outputs_hash::<TxOut>(&[])
} else {
txid_digests.outputs_digest
let txin_sig_digest = ch.finalize();
let mut h = hasher(ZCASH_TRANSPARENT_HASH_PERSONALIZATION);
h.write_all(&[hash_type]).unwrap();
h.write_all(prevouts_digest.as_bytes()).unwrap();
h.write_all(amounts_digest.as_bytes()).unwrap();
h.write_all(scripts_digest.as_bytes()).unwrap();
h.write_all(sequence_digest.as_bytes()).unwrap();
h.write_all(outputs_digest.as_bytes()).unwrap();
h.write_all(txin_sig_digest.as_bytes()).unwrap();
h.finalize()
}
} else {
txid_digests.outputs_digest
};
//S.2g.i: prevout (field encoding)
//S.2g.ii: value (8-byte signed little-endian)
//S.2g.iii: scriptPubKey (field encoding)
//S.2g.iv: nSequence (4-byte unsigned little-endian)
let mut ch = hasher(ZCASH_TRANSPARENT_INPUT_HASH_PERSONALIZATION);
if let SignableInput::Transparent {
index,
script_pubkey,
value,
..
} = input
{
let txin = &bundle.vin[*index];
txin.prevout.write(&mut ch).unwrap();
ch.write_all(&value.to_i64_le_bytes()).unwrap();
script_pubkey.write(&mut ch).unwrap();
ch.write_u32::<LittleEndian>(txin.sequence).unwrap();
}
let txin_sig_digest = ch.finalize();
let mut h = hasher(ZCASH_TRANSPARENT_HASH_PERSONALIZATION);
h.write_all(&[hash_type]).unwrap();
h.write_all(prevouts_digest.as_bytes()).unwrap();
h.write_all(amounts_digest.as_bytes()).unwrap();
h.write_all(scripts_digest.as_bytes()).unwrap();
h.write_all(sequence_digest.as_bytes()).unwrap();
h.write_all(outputs_digest.as_bytes()).unwrap();
h.write_all(txin_sig_digest.as_bytes()).unwrap();
h.finalize()
}
#[cfg(feature = "zfuture")]
@ -170,22 +179,23 @@ pub fn v5_signature_hash<
signable_input: &SignableInput<'_>,
txid_parts: &TxDigests<Blake2bHash>,
) -> Blake2bHash {
// The caller must provide the transparent digests if and only if the transaction has a
// transparent component.
assert_eq!(
tx.transparent_bundle.is_some(),
txid_parts.transparent_digests.is_some()
);
to_hash(
tx.version,
tx.consensus_branch_id,
txid_parts.header_digest,
if let Some(bundle) = &tx.transparent_bundle {
transparent_sig_digest(
txid_parts
.transparent_digests
.as_ref()
.expect("Transparent txid digests are missing."),
&bundle,
signable_input,
)
} else {
hash_transparent_txid_data(None)
},
transparent_sig_digest(
tx.transparent_bundle
.as_ref()
.zip(txid_parts.transparent_digests.as_ref()),
signable_input,
),
txid_parts.sapling_digest,
txid_parts.orchard_digest,
#[cfg(feature = "zfuture")]

View File

@ -266,6 +266,8 @@ fn zip_0244() {
let (txdata, txid_parts) = to_test_txdata(&tv);
if let Some(index) = tv.transparent_input {
// nIn is a u32, but to actually use it we need a usize.
let index = index as usize;
let bundle = txdata.transparent_bundle().unwrap();
let value = bundle.authorization.input_amounts[index];
let script_pubkey = &bundle.authorization.input_scriptpubkeys[index];

View File

@ -5692,7 +5692,7 @@ pub mod zip_0244 {
pub auth_digest: [u8; 32],
pub amounts: Vec<i64>,
pub script_pubkeys: Vec<Vec<u8>>,
pub transparent_input: Option<usize>,
pub transparent_input: Option<u32>,
pub sighash_shielded: [u8; 32],
pub sighash_all: Option<[u8; 32]>,
pub sighash_none: Option<[u8; 32]>,
@ -6020,124 +6020,71 @@ pub mod zip_0244 {
TestVector {
tx: vec![
0x05, 0x00, 0x00, 0x80, 0x0a, 0x27, 0xa7, 0x26, 0x21, 0x96, 0x51, 0x37, 0x1f,
0xc9, 0x98, 0xc3, 0x1f, 0x4d, 0xd2, 0x08, 0x00, 0x01, 0x50, 0x58, 0xe5, 0x75,
0x4c, 0x21, 0x04, 0x00, 0x07, 0x53, 0xac, 0x51, 0x53, 0x00, 0x51, 0x52, 0x02,
0xf8, 0x9d, 0x32, 0x26, 0xfb, 0x53, 0x29, 0x2b, 0xfb, 0x5d, 0xbb, 0xf7, 0xff,
0x01, 0x3a, 0xf3, 0x34, 0x1e, 0xa7, 0xa3, 0x5f, 0x55, 0x3f, 0x6d, 0x7a, 0x02,
0x21, 0xae, 0x19, 0x5e, 0xa8, 0x4e, 0xb9, 0x7a, 0x14, 0x94, 0x36, 0x49, 0x30,
0x55, 0x21, 0x32, 0x6b, 0xde, 0x08, 0x56, 0x30, 0x86, 0x46, 0x29, 0x29, 0x1b,
0xae, 0x25, 0xff, 0x88, 0x22, 0xa1, 0x4c, 0x4b, 0x66, 0x6a, 0x92, 0x59, 0xbe,
0xa6, 0xfa, 0x0b, 0xf2, 0x99, 0x99, 0x56, 0xfb, 0xfd, 0x0e, 0xe6, 0x8e, 0xc3,
0x6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71, 0x3e, 0x1e, 0x2e, 0x7d, 0x3f, 0x1c, 0x93, 0xcf, 0xcb, 0x46, 0x23,
0x8b, 0x6e, 0x03, 0x98, 0xb4, 0x6d, 0x76, 0xaf, 0xf2, 0xd8, 0xf0, 0x57, 0x45,
0xc4, 0x65, 0xa9, 0x4f, 0xca, 0x43, 0x65, 0xa9, 0x37, 0x41, 0xb2, 0xe7, 0x51,
0x6a, 0x1d, 0x2a, 0x00, 0xde, 0x7d, 0x1f, 0x80, 0xa5, 0xd3, 0xf7, 0x91, 0xd3,
0x50, 0x58, 0xa9, 0x63, 0x80, 0xdc, 0xed, 0x30, 0x2c, 0x60, 0xc0, 0x06, 0x2f,
0x67, 0xa3, 0x31, 0xcf, 0x71, 0xe0, 0x04, 0xef, 0x78, 0x40, 0x7a, 0x7c, 0x51,
0x16, 0x1c, 0x7b, 0x8d, 0x46, 0xab, 0xa7, 0x67, 0x14, 0xba, 0xc1, 0x70, 0xd1,
0x85, 0xe2, 0x7c, 0xe3, 0xeb, 0xff, 0x24, 0x46, 0x16, 0x4e, 0x0d, 0xb2, 0x3c,
0x02, 0xea, 0x33, 0x2b, 0x6a, 0xfe, 0x11, 0x08, 0x4a, 0xc2, 0x5d, 0x73, 0xe6,
0x3e, 0x51, 0xe7, 0x5f, 0x6d, 0xa7, 0x47, 0x07, 0xbe, 0xc9, 0xb1, 0xc2, 0x22,
0x4f, 0x11, 0xdc, 0x18, 0xed, 0x0a, 0x6e, 0xff, 0xed, 0xa0, 0x6c, 0x4b, 0xe2,
0xc9, 0x98, 0xc3, 0x1f, 0x4d, 0xd2, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xff, 0xff, 0xff, 0xff, 0x06, 0x04, 0x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0xa6, 0x26, 0xdc, 0xcf, 0x0f, 0x96,
0xca, 0x1b, 0x0c, 0x3b, 0x4c, 0x46, 0x81, 0x60, 0x24, 0x7b, 0xce, 0x13, 0xf4,
0x68, 0x98, 0x84, 0x10, 0x4e, 0xb1,
0x4d, 0xc1, 0x4e, 0x8d, 0x17, 0xaf, 0x72, 0x82, 0x7f, 0x09, 0x8b, 0xa6, 0xaa,
0x82, 0x0e, 0x34, 0xdf, 0x1f, 0xbb, 0x60, 0xd3, 0x54, 0x96, 0x12, 0x0e, 0xfc,
0x03, 0x89, 0x77, 0xe6, 0x86, 0x76,
],
amounts: vec![],
script_pubkeys: vec![],
transparent_input: None,
sighash_shielded: [
0xf2, 0x89, 0x61, 0x8d, 0x7f, 0x61, 0x53, 0x29, 0x3c, 0x4e, 0x24, 0xc2, 0x76,
0xa0, 0xa1, 0x5d, 0x56, 0x2d, 0x4e, 0x6c, 0x91, 0xde, 0x3e, 0x93, 0x10, 0x4d,
0x31, 0x65, 0x4e, 0x5d, 0x71, 0xc5,
0x13, 0x60, 0x15, 0x2a, 0x19, 0xea, 0x9e, 0x00, 0x44, 0x77, 0x3c, 0x91, 0xf9,
0xd5, 0x1f, 0xa6, 0xb4, 0x52, 0x50, 0x2f, 0xb6, 0xdf, 0xcd, 0x43, 0xfd, 0xd3,
0x0c, 0xa6, 0xfa, 0xde, 0x90, 0xf6,
],
sighash_all: None,
sighash_none: None,
@ -6187,25 +6134,29 @@ pub mod zip_0244 {
TestVector {
tx: vec![
0x05, 0x00, 0x00, 0x80, 0x0a, 0x27, 0xa7, 0x26, 0x21, 0x96, 0x51, 0x37, 0xc2,
0xeb, 0x51, 0x8f, 0x68, 0x98, 0x4d, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
0xeb, 0x51, 0x8f, 0x68, 0x98, 0x4d, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xff, 0xff, 0xff, 0xff, 0x06, 0x04, 0x68, 0x98, 0x4d, 0x02, 0x00, 0xff,
0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00,
],
txid: [
0xa2, 0x2f, 0x92, 0xf0, 0x43, 0x79, 0x3d, 0x10, 0x9d, 0xb7, 0x43, 0x54, 0xc7,
0xd4, 0xe3, 0x28, 0x43, 0xe2, 0x11, 0x95, 0xe7, 0xca, 0xe4, 0xc0, 0x03, 0x0c,
0xf8, 0xb4, 0x2c, 0xb6, 0x40, 0xf5,
0x0f, 0xa0, 0x5d, 0x3f, 0x16, 0xf3, 0xe4, 0xde, 0xdf, 0x75, 0x42, 0xaa, 0xf4,
0xdd, 0x8a, 0x69, 0x9a, 0xd7, 0x2f, 0x1d, 0x71, 0xbc, 0x51, 0x2d, 0x65, 0xa1,
0xd5, 0x91, 0x00, 0xdb, 0xdb, 0x24,
],
auth_digest: [
0xd4, 0xfb, 0x0a, 0x17, 0xd1, 0x4a, 0xee, 0x9b, 0x7f, 0x67, 0x05, 0xff, 0x78,
0xa1, 0x43, 0xba, 0x07, 0xae, 0x4c, 0x59, 0xb2, 0x3c, 0x84, 0x77, 0xd0, 0xfd,
0x72, 0xf5, 0x70, 0x97, 0xb7, 0x38,
0xef, 0x06, 0x0b, 0x12, 0x13, 0xa9, 0xef, 0x93, 0x13, 0x1a, 0x8e, 0x1f, 0x15,
0x6e, 0x0c, 0xf6, 0xe4, 0x03, 0xc3, 0x62, 0x82, 0x7c, 0x6e, 0x8d, 0x9d, 0x60,
0x30, 0x33, 0xd0, 0xfe, 0x13, 0xbe,
],
amounts: vec![],
script_pubkeys: vec![],
transparent_input: None,
sighash_shielded: [
0xa2, 0x2f, 0x92, 0xf0, 0x43, 0x79, 0x3d, 0x10, 0x9d, 0xb7, 0x43, 0x54, 0xc7,
0xd4, 0xe3, 0x28, 0x43, 0xe2, 0x11, 0x95, 0xe7, 0xca, 0xe4, 0xc0, 0x03, 0x0c,
0xf8, 0xb4, 0x2c, 0xb6, 0x40, 0xf5,
0x0f, 0xa0, 0x5d, 0x3f, 0x16, 0xf3, 0xe4, 0xde, 0xdf, 0x75, 0x42, 0xaa, 0xf4,
0xdd, 0x8a, 0x69, 0x9a, 0xd7, 0x2f, 0x1d, 0x71, 0xbc, 0x51, 0x2d, 0x65, 0xa1,
0xd5, 0x91, 0x00, 0xdb, 0xdb, 0x24,
],
sighash_all: None,
sighash_none: None,
@ -6217,26 +6168,30 @@ pub mod zip_0244 {
TestVector {
tx: vec![
0x05, 0x00, 0x00, 0x80, 0x0a, 0x27, 0xa7, 0x26, 0x21, 0x96, 0x51, 0x37, 0x5e,
0x3d, 0xba, 0xf7, 0xae, 0x12, 0x67, 0x0d, 0x00, 0x01, 0x51, 0x6c, 0xf4, 0xad,
0xec, 0x75, 0x07, 0x00, 0x03, 0x65, 0x65, 0x00, 0x00, 0x00, 0x00,
0x3d, 0xba, 0xf7, 0xae, 0x12, 0x67, 0x0d, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xff, 0xff, 0xff, 0xff, 0x06, 0x04, 0xae, 0x12, 0x67, 0x0d, 0x00, 0xff,
0xff, 0xff, 0xff, 0x01, 0x51, 0x6c, 0xf4, 0xad, 0xec, 0x75, 0x07, 0x00, 0x03,
0x65, 0x65, 0x00, 0x00, 0x00, 0x00,
],
txid: [
0x83, 0xc8, 0xe3, 0x41, 0x04, 0xf1, 0x8b, 0xdb, 0xe8, 0xbb, 0xf6, 0xf0, 0xb9,
0xba, 0x53, 0xb5, 0xc6, 0x69, 0x40, 0x61, 0x0c, 0x89, 0x4b, 0xc0, 0xa8, 0x4a,
0x16, 0xdc, 0x99, 0x51, 0x24, 0x74,
0x64, 0x44, 0x12, 0x8a, 0xd4, 0x2a, 0x3d, 0x73, 0x18, 0xb0, 0x6b, 0x2b, 0x94,
0x27, 0x66, 0x29, 0x63, 0x2f, 0x8b, 0xb7, 0xc0, 0x50, 0xe5, 0x02, 0xe4, 0xa8,
0x73, 0x02, 0x4e, 0xba, 0x3b, 0x79,
],
auth_digest: [
0xd4, 0xfb, 0x0a, 0x17, 0xd1, 0x4a, 0xee, 0x9b, 0x7f, 0x67, 0x05, 0xff, 0x78,
0xa1, 0x43, 0xba, 0x07, 0xae, 0x4c, 0x59, 0xb2, 0x3c, 0x84, 0x77, 0xd0, 0xfd,
0x72, 0xf5, 0x70, 0x97, 0xb7, 0x38,
0x91, 0xaa, 0xa9, 0x7f, 0xfe, 0x5d, 0x24, 0xf9, 0xa3, 0x54, 0xf9, 0x40, 0xfe,
0x9d, 0x1a, 0xe5, 0xb6, 0xd4, 0x59, 0x47, 0xb2, 0xc2, 0x0b, 0x00, 0x2d, 0xc2,
0x00, 0x42, 0xa1, 0x16, 0xad, 0xc7,
],
amounts: vec![],
script_pubkeys: vec![],
transparent_input: None,
sighash_shielded: [
0x6a, 0x58, 0x74, 0x54, 0xbd, 0x03, 0x12, 0x4b, 0x38, 0xe8, 0x0b, 0x46, 0xe4,
0x57, 0xcd, 0x7d, 0x5a, 0x0e, 0x8c, 0x92, 0x9b, 0x27, 0x56, 0xc1, 0xd6, 0x81,
0x7e, 0x7b, 0x53, 0xdb, 0xf3, 0x63,
0x64, 0x44, 0x12, 0x8a, 0xd4, 0x2a, 0x3d, 0x73, 0x18, 0xb0, 0x6b, 0x2b, 0x94,
0x27, 0x66, 0x29, 0x63, 0x2f, 0x8b, 0xb7, 0xc0, 0x50, 0xe5, 0x02, 0xe4, 0xa8,
0x73, 0x02, 0x4e, 0xba, 0x3b, 0x79,
],
sighash_all: None,
sighash_none: None,