From 60faf1c2c571e53b2339623b51d2595516a0834b Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 27 Jan 2022 23:43:29 +0000 Subject: [PATCH] Generate some v5 coinbase transactions. Co-authored-by: Kris Nuttycombe Signed-off-by: Daira Hopwood --- test-vectors/rust/zip_0244.rs | 24 ++++++------ zcash_test_vectors/transaction.py | 64 +++++++++++++++++++++++++------ zcash_test_vectors/zip_0244.py | 9 +++-- 3 files changed, 70 insertions(+), 27 deletions(-) diff --git a/test-vectors/rust/zip_0244.rs b/test-vectors/rust/zip_0244.rs index 97e6a06..0694206 100644 --- a/test-vectors/rust/zip_0244.rs +++ b/test-vectors/rust/zip_0244.rs @@ -55,13 +55,13 @@ }, 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, 0x6e,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6e, 0xc2, 0xcf, 0xaf, 0x5b, 0x79, 0xab, 0x72, 0x69, 0x4d, 0x1d, 0x01, 0x2a, 0x75, 0x94, 0xdd, 0x80, 0xae, 0x7d, 0xfa, 0x0c, 0x00 + 0x05, 0x00, 0x00, 0x80, 0x0a, 0x27, 0xa7, 0x26, 0x21, 0x96, 0x51, 0x37, 0x1f, 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, 0x01, 0x51, 0x00, 0x00, 0x00, 0x00, 0x01, 0x50, 0x58, 0xe5, 0x75, 0x4c, 0x21, 0x04, 0x00, 0x07, 0x53, 0xac, 0x51, 0x53, 0x00, 0x51, 0x52, 0x00, 0x01, 0xe5, 0x84, 0x9f, 0x96, 0xba, 0xe6, 0xf2, 0x05, 0x6f, 0x33, 0xab, 0x1e, 0x69, 0x89, 0xd7, 0xd2, 0x64, 0xad, 0xc9, 0x78, 0x55, 0xa9, 0x90, 0x10, 0x3b, 0x4d, 0x1e, 0x63, 0x50, 0xd5, 0xc3, 0x1a, 0x39, 0xc3, 0xca, 0xf6, 0x94, 0x59, 0xe4, 0x62, 0xf1, 0x41, 0xbe, 0x8b, 0x39, 0x03, 0x7f, 0xfa, 0x25, 0x5c, 0xe2, 0x7e, 0x4a, 0xd7, 0xb5, 0x66, 0xa2, 0x96, 0x20, 0xa9, 0xf0, 0x11, 0xab, 0x08, 0xfb, 0x2a, 0xd3, 0x05, 0x06, 0x52, 0xb3, 0xf6, 0x5b, 0x8e, 0x34, 0x52, 0x6a, 0x2a, 0x15, 0xfc, 0x2d, 0xdc, 0x5b, 0x51, 0x13, 0xe4, 0x88, 0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0x69, 0x4d, 0x1d, 0x01, 0x2a, 0x75, 0x94, 0xdd, 0x80, 0xae, 0x7d, 0xfa, 0x0c, 0x00 ], txid: [ - 0x2f, 0x95, 0xe5, 0xa9, 0x5d, 0x20, 0x9e, 0x0a, 0x27, 0xd1, 0xfe, 0x66, 0x9a, 0x46, 0xf4, 0xa6, 0x44, 0xa3, 0x27, 0xd7, 0x9b, 0x84, 0x6e, 0x97, 0x92, 0x64, 0x18, 0x6a, 0xde, 0x04, 0x9b, 0xa0 + 0x44, 0x72, 0x54, 0x1b, 0x1c, 0xe1, 0xfe, 0xd4, 0x57, 0x9a, 0xb9, 0x8a, 0xeb, 0x4e, 0x87, 0xb4, 0xc9, 0x1c, 0x1d, 0xfb, 0x92, 0xd8, 0x03, 0x8e, 0xbf, 0xc4, 0x3c, 0xbe, 0x73, 0x56, 0x1c, 0x5c ], auth_digest: [ - 0x36, 0x4e, 0xa0, 0xbf, 0x6b, 0xd4, 0xb4, 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 + 0x06, 0xdc, 0xfa, 0xe3, 0x0d, 0xbd, 0x0e, 0x2d, 0x11, 0x43, 0x41, 0x40, 0x40, 0xef, 0x8d, 0x64, 0x8b, 0x97, 0x09, 0x37, 0xda, 0xf1, 0x23, 0x4f, 0xf4, 0x5c, 0x09, 0x75, 0xf6, 0x91, 0x14, 0x3e ], amounts: vec![ ], @@ -69,7 +69,7 @@ ], transparent_input: None, sighash_shielded: [ - 0x2f, 0x95, 0xe5, 0xa9, 0x5d, 0x20, 0x9e, 0x0a, 0x27, 0xd1, 0xfe, 0x66, 0x9a, 0x46, 0xf4, 0xa6, 0x44, 0xa3, 0x27, 0xd7, 0x9b, 0x84, 0x6e, 0x97, 0x92, 0x64, 0x18, 0x6a, 0xde, 0x04, 0x9b, 0xa0 + 0x44, 0x72, 0x54, 0x1b, 0x1c, 0xe1, 0xfe, 0xd4, 0x57, 0x9a, 0xb9, 0x8a, 0xeb, 0x4e, 0x87, 0xb4, 0xc9, 0x1c, 0x1d, 0xfb, 0x92, 0xd8, 0x03, 0x8e, 0xbf, 0xc4, 0x3c, 0xbe, 0x73, 0x56, 0x1c, 0x5c ], sighash_all: None, sighash_none: None, @@ -80,13 +80,13 @@ }, 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 + 0x05, 0x00, 0x00, 0x80, 0x0a, 0x27, 0xa7, 0x26, 0x21, 0x96, 0x51, 0x37, 0xc2, 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, 0x01, 0x51, 0x00, 0x00, 0x00, 0x00, 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 + 0x7a, 0xf5, 0x65, 0x4b, 0xcb, 0x77, 0x42, 0x2c, 0xab, 0x10, 0x6c, 0x56, 0x8f, 0x05, 0x85, 0x7b, 0x56, 0x64, 0x33, 0x87, 0x9d, 0x55, 0xd4, 0xd4, 0x22, 0x48, 0xd2, 0x17, 0x62, 0xe5, 0x9f, 0x98 ], 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 + 0x71, 0xc9, 0x19, 0x66, 0x0e, 0x31, 0x91, 0x49, 0x43, 0x63, 0x6c, 0x76, 0x7b, 0xc7, 0x04, 0x9f, 0x37, 0x2f, 0x92, 0x61, 0xcb, 0xe2, 0xae, 0x50, 0x3f, 0xb4, 0x76, 0x58, 0x75, 0xd1, 0xaa, 0x21 ], amounts: vec![ ], @@ -94,7 +94,7 @@ ], 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 + 0x7a, 0xf5, 0x65, 0x4b, 0xcb, 0x77, 0x42, 0x2c, 0xab, 0x10, 0x6c, 0x56, 0x8f, 0x05, 0x85, 0x7b, 0x56, 0x64, 0x33, 0x87, 0x9d, 0x55, 0xd4, 0xd4, 0x22, 0x48, 0xd2, 0x17, 0x62, 0xe5, 0x9f, 0x98 ], sighash_all: None, sighash_none: None, @@ -105,13 +105,13 @@ }, 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 + 0x05, 0x00, 0x00, 0x80, 0x0a, 0x27, 0xa7, 0x26, 0x21, 0x96, 0x51, 0x37, 0x5e, 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, 0x01, 0x51, 0x00, 0x00, 0x00, 0x00, 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 + 0xb2, 0xeb, 0x8c, 0xc4, 0x5c, 0x1b, 0x3f, 0x8e, 0x02, 0x6a, 0x56, 0x13, 0xef, 0x3f, 0x6e, 0x3f, 0x8c, 0x92, 0xfd, 0xa2, 0x52, 0xb2, 0xc8, 0xae, 0x60, 0x9c, 0x15, 0x89, 0xc4, 0x2f, 0xa0, 0xe7 ], 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 + 0x71, 0xc9, 0x19, 0x66, 0x0e, 0x31, 0x91, 0x49, 0x43, 0x63, 0x6c, 0x76, 0x7b, 0xc7, 0x04, 0x9f, 0x37, 0x2f, 0x92, 0x61, 0xcb, 0xe2, 0xae, 0x50, 0x3f, 0xb4, 0x76, 0x58, 0x75, 0xd1, 0xaa, 0x21 ], amounts: vec![ ], @@ -119,7 +119,7 @@ ], transparent_input: None, sighash_shielded: [ - 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 + 0xb2, 0xeb, 0x8c, 0xc4, 0x5c, 0x1b, 0x3f, 0x8e, 0x02, 0x6a, 0x56, 0x13, 0xef, 0x3f, 0x6e, 0x3f, 0x8c, 0x92, 0xfd, 0xa2, 0x52, 0xb2, 0xc8, 0xae, 0x60, 0x9c, 0x15, 0x89, 0xc4, 0x2f, 0xa0, 0xe7 ], sighash_all: None, sighash_none: None, diff --git a/zcash_test_vectors/transaction.py b/zcash_test_vectors/transaction.py index b71a0d3..c4c1131 100644 --- a/zcash_test_vectors/transaction.py +++ b/zcash_test_vectors/transaction.py @@ -160,6 +160,8 @@ class OutputDescription(object): class OrchardActionDescription(object): def __init__(self, rand): + # We don't need to take account of whether this is a coinbase transaction, + # because we're only generating random fields. self.cv = pallas_group_hash(b'TVRandPt', rand.b(32)) self.nullifier = PallasBase(leos2ip(rand.b(32))) self.rk = pallas_group_hash(b'TVRandPt', rand.b(32)) @@ -220,10 +222,17 @@ RAND_OPCODES = [ ] class Script(object): - def __init__(self, rand): - self._script = bytes([ - rand.a(RAND_OPCODES) for i in range(rand.i8() % 10) - ]) + def __init__(self, rand=None): + if rand is not None: + self._script = bytes([ + rand.a(RAND_OPCODES) for i in range(rand.i8() % 10) + ]) + + @staticmethod + def from_bytes(b): + script = Script() + script._script = b + return script def raw(self): return self._script @@ -233,19 +242,36 @@ class Script(object): class OutPoint(object): - def __init__(self, rand): - self.txid = rand.b(32) - self.n = rand.u32() + def __init__(self, rand=None): + if rand is not None: + self.txid = rand.b(32) + self.n = rand.u32() + + @staticmethod + def from_components(txid, n): + outpoint = OutPoint() + outpoint.txid = txid + outpoint.n = n + return outpoint def __bytes__(self): return self.txid + struct.pack('> 1) % 2 have_sapling = (flip_coins >> 2) % 2 have_orchard = (flip_coins >> 3) % 2 + is_coinbase = (not have_transparent_in) and (flip_coins >> 4) % 2 # Common Transaction Fields self.nVersionGroupId = NU5_VERSION_GROUP_ID @@ -385,6 +412,11 @@ class TransactionV5(object): if have_transparent_in: for _ in range((rand.u8() % 3) + 1): self.vin.append(TxIn(rand)) + if is_coinbase: + self.vin.append(TxIn.from_components( + OutPoint.from_components(b'\x00' * 32, 0xFFFFFFFF), + Script.from_bytes(b"\x51"), + 0)) if have_transparent_out: for _ in range((rand.u8() % 3) + 1): self.vout.append(TxOut(rand)) @@ -394,8 +426,11 @@ class TransactionV5(object): self.vOutputsSapling = [] if have_sapling: self.anchorSapling = Fq(leos2ip(rand.b(32))) + # We use the randomness unconditionally here to avoid unnecessary test vector changes. for _ in range(rand.u8() % 3): - self.vSpendsSapling.append(SpendDescription(rand, self.anchorSapling)) + spend = SpendDescription(rand, self.anchorSapling) + if not is_coinbase: + self.vSpendsSapling.append(spend) for _ in range(rand.u8() % 3): self.vOutputsSapling.append(OutputDescription(rand)) self.valueBalanceSapling = rand.u64() % (MAX_MONEY + 1) @@ -411,6 +446,9 @@ class TransactionV5(object): for _ in range(rand.u8() % 5): self.vActionsOrchard.append(OrchardActionDescription(rand)) self.flagsOrchard = rand.u8() & 3 # Only two flag bits are currently defined. + if is_coinbase: + # set enableSpendsOrchard = 0 + self.flagsOrchard &= 2 self.valueBalanceOrchard = rand.u64() % (MAX_MONEY + 1) self.anchorOrchard = PallasBase(leos2ip(rand.b(32))) self.proofsOrchard = rand.b(rand.u8() + 32) # Proof will always contain at least one element @@ -420,6 +458,8 @@ class TransactionV5(object): # v^balanceOrchard is defined to be 0. self.valueBalanceOrchard = 0 + assert is_coinbase == self.is_coinbase() + def version_bytes(self): return NU5_TX_VERSION | (1 << 31) diff --git a/zcash_test_vectors/zip_0244.py b/zcash_test_vectors/zip_0244.py index 23fe2d5..2b08071 100755 --- a/zcash_test_vectors/zip_0244.py +++ b/zcash_test_vectors/zip_0244.py @@ -356,10 +356,13 @@ def main(): txid = txid_digest(tx) auth = auth_digest(tx) - # Generate amounts and scriptCodes for each transparent input. - t_inputs = [TransparentInput(nIn, rand) for nIn in range(len(tx.vin))] + # Generate amounts and scriptCodes for each non-dummy transparent input. + if tx.is_coinbase(): + t_inputs = [] + else: + t_inputs = [TransparentInput(nIn, rand) for nIn in range(len(tx.vin))] - # If there are any transparent inputs, derive a corresponding transparent sighash. + # If there are any non-dummy transparent inputs, derive a corresponding transparent sighash. if len(t_inputs) > 0: txin = rand.a(t_inputs) else: