From ffd1c22e7f908b6830da21916d8fe910ff193f4e Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 9 Nov 2026 18:25:17 +0200 Subject: [PATCH 1/9] simplicity-sys: update libsimplicity to 4e0beb5 Update the vendored libsimplicity to 4e0beb5947b7e75ee7974d82a1447e89a0b4b5d6 and regenerate the jet files with update_jets.sh. At this revision GenRustJets emits the Bitcoin jet CMRs and costs that were previously replaced by an unimplemented!() stub, so src/jet/init/bitcoin.rs now carries the real CMR and cost tables for all 428 Bitcoin jets, and update_jets.lock records their hashes rather than a hand-written value. The vendored C tree is unchanged: the only difference between the previous revision and this one is the generator guard that suppressed Bitcoin output. --- .../depend/simplicity-HEAD-revision.txt | 2 +- src/jet/init/bitcoin.rs | 2576 ++++++++++++++++- update_jets.lock | 4 +- 3 files changed, 2577 insertions(+), 5 deletions(-) diff --git a/simplicity-sys/depend/simplicity-HEAD-revision.txt b/simplicity-sys/depend/simplicity-HEAD-revision.txt index 1948a9d7..fb838358 100644 --- a/simplicity-sys/depend/simplicity-HEAD-revision.txt +++ b/simplicity-sys/depend/simplicity-HEAD-revision.txt @@ -1,2 +1,2 @@ # This file has been automatically generated. -3f0bb69c4547bcf3483ca5ccbd06699464166650 +4e0beb5947b7e75ee7974d82a1447e89a0b4b5d6 diff --git a/src/jet/init/bitcoin.rs b/src/jet/init/bitcoin.rs index 1c4fb162..7c8b2ba4 100644 --- a/src/jet/init/bitcoin.rs +++ b/src/jet/init/bitcoin.rs @@ -881,7 +881,2150 @@ impl Bitcoin { impl Jet for Bitcoin { fn cmr(&self) -> Cmr { - unimplemented!("Bitcoin jet CMRs weights have not yet been implemented.") + let bytes = match self { + Bitcoin::Add16 => [ + 0x49, 0x42, 0x5a, 0x86, 0xe2, 0x0a, 0x67, 0x6d, 0x8b, 0x87, 0xe3, 0xc1, 0xa9, 0xb8, + 0xea, 0x6e, 0xc7, 0x5d, 0x85, 0x9c, 0x12, 0xc5, 0x1b, 0xcb, 0x7f, 0xa9, 0xf9, 0x69, + 0x12, 0xc3, 0x49, 0xcf, + ], + Bitcoin::Add32 => [ + 0x46, 0x68, 0xcd, 0x55, 0xe8, 0xd1, 0x59, 0x19, 0x53, 0x32, 0x70, 0x14, 0xec, 0x64, + 0xc8, 0xe7, 0xd5, 0x2b, 0x86, 0xb5, 0x3e, 0x11, 0xc0, 0x14, 0x57, 0xea, 0xf2, 0xc3, + 0xd3, 0xce, 0xbf, 0x9f, + ], + Bitcoin::Add64 => [ + 0xbe, 0x2b, 0x75, 0x19, 0x30, 0x3a, 0x67, 0xee, 0xa6, 0xb4, 0x82, 0x95, 0x0e, 0xda, + 0x83, 0x43, 0x5e, 0x1d, 0xe8, 0x55, 0x9c, 0x39, 0x4a, 0x23, 0x62, 0x22, 0xff, 0x5b, + 0xf0, 0x89, 0xd3, 0x46, + ], + Bitcoin::Add8 => [ + 0xdf, 0xa1, 0x79, 0xad, 0xf4, 0x55, 0x0b, 0x28, 0x48, 0x73, 0xbf, 0x30, 0x12, 0x3e, + 0x0d, 0x4e, 0x54, 0x06, 0x9b, 0x08, 0x58, 0x34, 0xce, 0x56, 0x58, 0x15, 0xef, 0x7e, + 0x45, 0x78, 0x4a, 0xcb, + ], + Bitcoin::All16 => [ + 0x24, 0xf4, 0x82, 0xa5, 0x13, 0xd3, 0x33, 0x62, 0x01, 0x5d, 0x28, 0xdf, 0x4b, 0xb6, + 0xc3, 0xee, 0x08, 0xab, 0x8a, 0xfb, 0xbd, 0x25, 0x57, 0x1f, 0x0e, 0xa8, 0x9d, 0x8c, + 0xab, 0xa3, 0x14, 0x04, + ], + Bitcoin::All32 => [ + 0xa7, 0x16, 0x52, 0x2d, 0x0f, 0x37, 0x87, 0xc8, 0xb4, 0xd5, 0x07, 0x64, 0x7f, 0x1f, + 0x80, 0x7b, 0x67, 0xf3, 0x20, 0xd6, 0xeb, 0x67, 0xb8, 0x4b, 0x60, 0x9c, 0xec, 0x1d, + 0x2f, 0x12, 0x21, 0x8a, + ], + Bitcoin::All64 => [ + 0x7a, 0xee, 0xfe, 0x2e, 0xce, 0x24, 0xba, 0xb3, 0x7c, 0x6e, 0x54, 0x30, 0xee, 0xd4, + 0x19, 0xfc, 0xd5, 0xf0, 0x37, 0x91, 0x2d, 0x17, 0x70, 0xcb, 0x7d, 0x65, 0x20, 0xdc, + 0xe5, 0x25, 0x29, 0x1a, + ], + Bitcoin::All8 => [ + 0x46, 0x37, 0xf4, 0x0e, 0x5f, 0x47, 0x26, 0xb0, 0x05, 0x70, 0x76, 0x5a, 0xc7, 0x94, + 0xe2, 0x9e, 0xd1, 0xbb, 0x26, 0x55, 0xff, 0xc4, 0x12, 0xb2, 0xdc, 0x41, 0x25, 0x8e, + 0x41, 0xaa, 0xc6, 0x24, + ], + Bitcoin::And1 => [ + 0x10, 0x68, 0x4d, 0x0d, 0xd7, 0x2c, 0xb0, 0xa8, 0x26, 0xa8, 0x63, 0x83, 0x4e, 0x01, + 0x1f, 0x50, 0xfa, 0x0d, 0x55, 0x8b, 0xa7, 0x7d, 0x6b, 0x9f, 0x49, 0xa1, 0xac, 0x22, + 0x90, 0x2a, 0x6a, 0xd0, + ], + Bitcoin::And16 => [ + 0x37, 0x3c, 0x73, 0x0f, 0xad, 0x3e, 0x88, 0x47, 0x99, 0x1a, 0xa4, 0x17, 0xd9, 0xf0, + 0x80, 0xee, 0x1c, 0xb8, 0x8a, 0x7f, 0x72, 0x06, 0xf3, 0xfa, 0x84, 0x0b, 0x19, 0x50, + 0x77, 0x61, 0xfb, 0x23, + ], + Bitcoin::And32 => [ + 0x13, 0xb0, 0x2c, 0x4c, 0x60, 0xae, 0x6e, 0xa4, 0x91, 0x16, 0x16, 0x49, 0xac, 0xf9, + 0xa4, 0x7a, 0x70, 0x25, 0xaf, 0x84, 0x7d, 0x5f, 0x58, 0x1e, 0x6f, 0x1c, 0xcc, 0xfb, + 0x21, 0xd3, 0x00, 0x1d, + ], + Bitcoin::And64 => [ + 0x92, 0x18, 0x55, 0x35, 0xd4, 0x50, 0x54, 0x07, 0xde, 0xa3, 0xc8, 0xa6, 0x08, 0x26, + 0xed, 0xe6, 0x4a, 0x8f, 0xbb, 0x3d, 0xb4, 0x86, 0xd5, 0x6f, 0x64, 0x2d, 0x21, 0x7c, + 0x29, 0xcb, 0xd7, 0x95, + ], + Bitcoin::And8 => [ + 0x26, 0x9a, 0x1b, 0x44, 0x62, 0x66, 0xf8, 0xf4, 0xa4, 0xa3, 0x8f, 0xa7, 0xe7, 0xe3, + 0x91, 0x82, 0xf1, 0x52, 0x14, 0x36, 0x14, 0x2b, 0xad, 0xed, 0xf3, 0xaa, 0x63, 0xfb, + 0x2f, 0x17, 0x2d, 0x2f, + ], + Bitcoin::AnnexHash => [ + 0x51, 0xfa, 0x19, 0x13, 0xa6, 0x29, 0x73, 0x48, 0x4a, 0x70, 0x0a, 0xf3, 0xff, 0x93, + 0x26, 0x94, 0xd3, 0x89, 0x0a, 0xe0, 0xad, 0x87, 0xa4, 0x55, 0xda, 0xf4, 0x90, 0x6f, + 0x22, 0x4a, 0x48, 0xd5, + ], + Bitcoin::Bip0340Verify => [ + 0x49, 0x15, 0x65, 0xfe, 0x23, 0xa7, 0xbd, 0xc1, 0x84, 0x2b, 0xe7, 0x49, 0x50, 0x93, + 0x37, 0xf9, 0x68, 0x90, 0xd5, 0xb3, 0x58, 0xb3, 0x65, 0x20, 0x90, 0xda, 0x55, 0x66, + 0x54, 0xe2, 0x95, 0x49, + ], + Bitcoin::BuildTapbranch => [ + 0xef, 0x8e, 0x92, 0x91, 0x9b, 0x26, 0x08, 0xea, 0x6b, 0x5b, 0xcd, 0xd3, 0x9c, 0x51, + 0x78, 0xe5, 0x46, 0x24, 0x95, 0x53, 0x91, 0x4b, 0x0f, 0x8d, 0x33, 0x73, 0x5d, 0x28, + 0x86, 0xe1, 0xa5, 0xe8, + ], + Bitcoin::BuildTapleafSimplicity => [ + 0x22, 0x41, 0x19, 0x09, 0x98, 0x41, 0x47, 0xde, 0x8f, 0x5a, 0x04, 0x28, 0x35, 0x8b, + 0x47, 0x16, 0xdb, 0x08, 0x76, 0x64, 0xa7, 0x28, 0x56, 0x08, 0x52, 0xb0, 0xe6, 0x16, + 0xeb, 0xc6, 0x2d, 0x30, + ], + Bitcoin::BuildTaptweak => [ + 0xf1, 0x92, 0xdb, 0x17, 0x06, 0x60, 0x8d, 0xef, 0x16, 0x5d, 0xbd, 0xda, 0x72, 0xa3, + 0x8c, 0x88, 0x82, 0xcb, 0x36, 0xc6, 0xda, 0x47, 0x07, 0x0d, 0x8a, 0x5f, 0x58, 0x96, + 0xfb, 0xda, 0x84, 0x34, + ], + Bitcoin::Ch1 => [ + 0x73, 0xb2, 0xa9, 0x81, 0xd7, 0x21, 0x98, 0x6f, 0x8c, 0xde, 0xd6, 0x97, 0xe0, 0x63, + 0x05, 0xd4, 0x58, 0x54, 0x10, 0x2d, 0xff, 0x20, 0xc0, 0xe5, 0xb9, 0x8a, 0xe1, 0x76, + 0x23, 0x2f, 0xf2, 0x5b, + ], + Bitcoin::Ch16 => [ + 0x78, 0xde, 0x46, 0x5e, 0x61, 0xd9, 0xa5, 0x0f, 0x78, 0x25, 0x2f, 0xf4, 0xab, 0x23, + 0xc9, 0xe6, 0x3a, 0xe6, 0x8c, 0x76, 0x9d, 0x36, 0x66, 0x12, 0x71, 0x20, 0x7d, 0xc6, + 0x93, 0xf4, 0x69, 0xb4, + ], + Bitcoin::Ch32 => [ + 0xed, 0x93, 0xbe, 0xf1, 0xf6, 0x6e, 0x3a, 0x75, 0xe6, 0x12, 0x06, 0x02, 0xec, 0xee, + 0x67, 0x40, 0x65, 0x3e, 0x7b, 0xd4, 0x6e, 0x07, 0xeb, 0x77, 0x14, 0x4e, 0xf1, 0xbb, + 0x2c, 0x9d, 0xe5, 0x3d, + ], + Bitcoin::Ch64 => [ + 0xce, 0xd0, 0x07, 0x9b, 0x0b, 0xd1, 0xcc, 0x00, 0x20, 0x9a, 0x7c, 0xbc, 0x23, 0xf1, + 0x3d, 0xfd, 0x20, 0x28, 0x08, 0xf0, 0xf5, 0x25, 0x7d, 0x8a, 0x50, 0xac, 0x54, 0x3e, + 0x64, 0xee, 0x3a, 0x05, + ], + Bitcoin::Ch8 => [ + 0xc7, 0x07, 0xca, 0x72, 0x3e, 0x24, 0xf6, 0xb2, 0x5b, 0xf3, 0x94, 0xa9, 0x9a, 0x4d, + 0x75, 0xe8, 0x13, 0x79, 0xb4, 0x67, 0x84, 0x38, 0xac, 0x78, 0x9d, 0xee, 0x18, 0x8e, + 0xdc, 0xce, 0x75, 0xfa, + ], + Bitcoin::CheckLockDistance => [ + 0x38, 0xfd, 0xf7, 0xdd, 0x28, 0x53, 0x86, 0x70, 0xfb, 0x34, 0xc1, 0xbf, 0xe7, 0x2f, + 0x17, 0xe2, 0xca, 0x57, 0x84, 0xf8, 0x7f, 0xed, 0x88, 0xea, 0xb5, 0x84, 0x79, 0x2b, + 0x39, 0x74, 0xbd, 0x18, + ], + Bitcoin::CheckLockDuration => [ + 0x77, 0x50, 0x38, 0x32, 0x6e, 0xae, 0x25, 0xc7, 0x20, 0x9b, 0x24, 0x43, 0x06, 0xea, + 0xa9, 0xf9, 0x20, 0x4c, 0x7e, 0xce, 0x2d, 0xd6, 0x3b, 0x45, 0x2e, 0x10, 0x01, 0x7f, + 0xa4, 0xea, 0x53, 0xcf, + ], + Bitcoin::CheckLockHeight => [ + 0xb9, 0x0f, 0x15, 0x1f, 0x45, 0xb4, 0xeb, 0x37, 0x21, 0x06, 0x21, 0xf9, 0x70, 0x0a, + 0x36, 0xc8, 0xc5, 0x04, 0xbe, 0xe0, 0x67, 0x77, 0x11, 0x63, 0xa8, 0xb8, 0x3a, 0x77, + 0x18, 0xe6, 0x68, 0x6a, + ], + Bitcoin::CheckLockTime => [ + 0xa4, 0x51, 0xeb, 0xb2, 0x25, 0xd6, 0xb1, 0x33, 0xa5, 0xe6, 0x35, 0x39, 0x78, 0x00, + 0xd4, 0x87, 0xb3, 0x96, 0x8b, 0x0d, 0xe5, 0x5c, 0x96, 0xeb, 0x82, 0xf2, 0x90, 0xec, + 0xff, 0x9c, 0x25, 0x90, + ], + Bitcoin::CheckSigVerify => [ + 0xb5, 0x80, 0x15, 0x54, 0x6d, 0x28, 0x52, 0x66, 0x5d, 0xd2, 0x1b, 0xf1, 0x12, 0x66, + 0x26, 0x70, 0x20, 0xfa, 0x5e, 0x27, 0x50, 0x01, 0xdd, 0x46, 0x18, 0xfa, 0x41, 0x56, + 0x25, 0x95, 0x2e, 0x68, + ], + Bitcoin::Complement1 => [ + 0x1b, 0xcf, 0xae, 0x13, 0xd5, 0xd2, 0x37, 0xa0, 0xbb, 0x9b, 0x1d, 0x75, 0x32, 0x04, + 0x74, 0x62, 0xb2, 0x76, 0x90, 0xde, 0x5c, 0xac, 0x0e, 0x20, 0x19, 0x29, 0x89, 0x64, + 0x57, 0x93, 0x40, 0x60, + ], + Bitcoin::Complement16 => [ + 0x81, 0xad, 0x4d, 0x2c, 0x3d, 0x16, 0xbf, 0x34, 0x0a, 0xf3, 0x88, 0x6d, 0x35, 0x5c, + 0xc5, 0xbd, 0x1d, 0x59, 0x67, 0xe1, 0x6a, 0xce, 0x92, 0x4f, 0x19, 0xec, 0xf7, 0xd4, + 0x86, 0xd6, 0xc7, 0xe9, + ], + Bitcoin::Complement32 => [ + 0x13, 0x74, 0x2c, 0x18, 0x04, 0xa9, 0x6e, 0x6c, 0x03, 0x95, 0x28, 0xbf, 0xd0, 0x3b, + 0x8c, 0xf2, 0xb4, 0x62, 0x52, 0x6b, 0xb1, 0x81, 0xa3, 0xd8, 0xb4, 0x32, 0xf9, 0x9a, + 0xc4, 0xf5, 0xa7, 0xef, + ], + Bitcoin::Complement64 => [ + 0x65, 0xb7, 0xbd, 0x09, 0x36, 0x39, 0xc5, 0x6d, 0xa2, 0x85, 0xce, 0xfa, 0x2d, 0x04, + 0x64, 0x64, 0x5e, 0x14, 0xdd, 0x13, 0x64, 0x2f, 0x34, 0x95, 0x7d, 0x47, 0x37, 0xbd, + 0x52, 0xfa, 0xc5, 0x88, + ], + Bitcoin::Complement8 => [ + 0x95, 0x4b, 0x70, 0xdc, 0xec, 0x53, 0x9e, 0x6b, 0x67, 0xdf, 0xfe, 0xc5, 0x3c, 0xf2, + 0x4a, 0x66, 0x99, 0x39, 0x60, 0x8b, 0x22, 0x3f, 0x5f, 0x8b, 0x6d, 0x12, 0x9d, 0xaa, + 0x48, 0xca, 0x1c, 0xf0, + ], + Bitcoin::CurrentAnnexHash => [ + 0xce, 0xd9, 0x02, 0x2e, 0xdc, 0x69, 0x24, 0x1f, 0xe7, 0x07, 0x49, 0xa7, 0xf5, 0xd4, + 0x89, 0xc3, 0x13, 0x5e, 0xe8, 0xc9, 0x6f, 0xe6, 0x4c, 0x44, 0x64, 0x40, 0x1f, 0x98, + 0x51, 0xd7, 0xa1, 0x7d, + ], + Bitcoin::CurrentIndex => [ + 0x0e, 0x8c, 0x96, 0x4c, 0x2f, 0x2b, 0x34, 0x90, 0x36, 0x2f, 0x3b, 0xbc, 0x74, 0x83, + 0xde, 0xa3, 0x7f, 0xda, 0x81, 0x0b, 0x69, 0x31, 0x4f, 0xf6, 0x64, 0xfe, 0xa0, 0xe3, + 0x27, 0x08, 0xec, 0x8f, + ], + Bitcoin::CurrentPrevOutpoint => [ + 0x64, 0x43, 0x39, 0x1b, 0x34, 0x40, 0x86, 0x84, 0x6d, 0x5a, 0x17, 0xa6, 0x2e, 0x3e, + 0x06, 0x28, 0x2a, 0xd6, 0x96, 0x2c, 0x4d, 0xfc, 0xed, 0x2f, 0x6a, 0x83, 0xd0, 0xdf, + 0xbf, 0x6a, 0x5c, 0x54, + ], + Bitcoin::CurrentScriptHash => [ + 0x23, 0x49, 0x8d, 0xd6, 0x64, 0x5e, 0xd1, 0x38, 0xb3, 0x44, 0x93, 0x7c, 0xf6, 0x54, + 0xaa, 0xff, 0xa6, 0x27, 0xf8, 0x5a, 0x47, 0xca, 0xa6, 0x89, 0x54, 0xf1, 0x3f, 0x4c, + 0x6a, 0x4d, 0xc7, 0x72, + ], + Bitcoin::CurrentScriptSigHash => [ + 0x34, 0xa3, 0xc5, 0x5d, 0x14, 0x73, 0x74, 0xd8, 0xf3, 0xa1, 0x76, 0x1b, 0xba, 0xb2, + 0x86, 0x96, 0x84, 0x55, 0x40, 0x4c, 0x2c, 0xa0, 0x3f, 0x69, 0x39, 0x3f, 0x63, 0x39, + 0xd0, 0xf5, 0x8b, 0x59, + ], + Bitcoin::CurrentSequence => [ + 0xc4, 0x9f, 0x76, 0xac, 0x79, 0xf8, 0xf1, 0x5c, 0x40, 0x9b, 0xa8, 0x15, 0xc1, 0x6e, + 0xdc, 0xb8, 0xd1, 0x1e, 0x9a, 0x07, 0x56, 0x5c, 0x8e, 0x09, 0xb6, 0x3e, 0x7f, 0xdf, + 0x31, 0x03, 0x00, 0x9f, + ], + Bitcoin::CurrentValue => [ + 0x91, 0xb9, 0x6e, 0x82, 0x9e, 0x3b, 0x49, 0x72, 0xb0, 0xcb, 0x09, 0x1a, 0x0a, 0x90, + 0x4b, 0xa4, 0x11, 0x33, 0x8a, 0xbf, 0xc0, 0x8d, 0xa7, 0x86, 0xd5, 0xa8, 0x4f, 0x04, + 0x9b, 0x5b, 0xa3, 0xb8, + ], + Bitcoin::Decompress => [ + 0x89, 0x00, 0x56, 0xdf, 0x82, 0x8a, 0x76, 0x6e, 0xe9, 0xf6, 0x56, 0x07, 0x22, 0x1e, + 0x89, 0x46, 0xfa, 0x77, 0xc2, 0x56, 0xbb, 0x96, 0xe2, 0x31, 0xe1, 0x94, 0xd3, 0x00, + 0x8c, 0xf3, 0x56, 0xf6, + ], + Bitcoin::Decrement16 => [ + 0x35, 0xfd, 0xa3, 0x8b, 0x67, 0x2c, 0x38, 0x31, 0xd8, 0xca, 0x11, 0xa4, 0xf3, 0xa9, + 0x59, 0x62, 0x22, 0x52, 0x9e, 0xb1, 0xc1, 0x5f, 0x8c, 0x70, 0x50, 0x13, 0x97, 0x7d, + 0x7d, 0xfb, 0x5d, 0x8b, + ], + Bitcoin::Decrement32 => [ + 0x3b, 0x2b, 0x19, 0x39, 0x55, 0x22, 0x84, 0xf6, 0x14, 0x69, 0x4b, 0xa1, 0x8d, 0xce, + 0x70, 0xce, 0xe4, 0x76, 0xff, 0x42, 0xdc, 0xd0, 0x89, 0xe1, 0xa3, 0xc0, 0xa4, 0x2b, + 0xeb, 0xd1, 0x08, 0xf6, + ], + Bitcoin::Decrement64 => [ + 0x7e, 0xf7, 0xbd, 0xd3, 0x5d, 0xb6, 0x85, 0xae, 0x99, 0x05, 0x53, 0x37, 0x35, 0xa2, + 0xc7, 0xa7, 0xcc, 0xbc, 0x17, 0x08, 0xae, 0x63, 0x6f, 0x93, 0x1b, 0x5c, 0xe0, 0x26, + 0xe5, 0xa1, 0x7f, 0xed, + ], + Bitcoin::Decrement8 => [ + 0xe3, 0x64, 0xf2, 0xe5, 0xc0, 0x8a, 0xe0, 0x11, 0x8e, 0xbe, 0x99, 0x3e, 0x8b, 0x3c, + 0x95, 0x8c, 0x2b, 0xcc, 0x60, 0x62, 0xa3, 0x3b, 0xaa, 0xb9, 0x28, 0xc0, 0x4b, 0x3e, + 0xc9, 0x32, 0xf5, 0x1b, + ], + Bitcoin::DivMod128_64 => [ + 0x9a, 0x94, 0x43, 0xa2, 0xb5, 0x41, 0xe2, 0x9f, 0x27, 0x2f, 0xfd, 0x56, 0x7d, 0x1b, + 0xf7, 0x42, 0xd6, 0x8c, 0xcb, 0xe9, 0x53, 0x8a, 0x87, 0x29, 0x1b, 0x0c, 0xa6, 0x38, + 0x15, 0x63, 0xac, 0x2c, + ], + Bitcoin::DivMod16 => [ + 0x39, 0xbc, 0xb5, 0xc0, 0x1d, 0xc1, 0x80, 0x5c, 0x49, 0x19, 0x89, 0x5c, 0xb5, 0x9e, + 0x8f, 0x3b, 0x41, 0x44, 0x67, 0x17, 0xf7, 0xff, 0x48, 0xfd, 0xc9, 0x37, 0xdd, 0x03, + 0x80, 0x24, 0xa0, 0x8a, + ], + Bitcoin::DivMod32 => [ + 0xfb, 0x12, 0x02, 0xf4, 0xe8, 0x66, 0x3a, 0x87, 0xf5, 0x68, 0x99, 0x2a, 0x18, 0x50, + 0x24, 0xc7, 0x0b, 0x4f, 0x07, 0x9f, 0xbe, 0x95, 0x30, 0x01, 0x0f, 0x6d, 0xb2, 0x84, + 0x21, 0x8a, 0xf6, 0xcd, + ], + Bitcoin::DivMod64 => [ + 0x67, 0x64, 0xdf, 0x5e, 0x2a, 0xa0, 0x30, 0x32, 0x6e, 0xe5, 0x44, 0xc6, 0xe5, 0x3f, + 0xf3, 0x8e, 0xf0, 0xb2, 0x85, 0x17, 0x91, 0x5e, 0xec, 0x65, 0xc7, 0x2e, 0xa5, 0x7a, + 0x12, 0x98, 0x28, 0xeb, + ], + Bitcoin::DivMod8 => [ + 0xd3, 0x00, 0x24, 0x4e, 0x48, 0x0d, 0xd9, 0x74, 0x12, 0x13, 0xe4, 0xcb, 0x0e, 0xba, + 0x83, 0x6d, 0x30, 0x59, 0xe7, 0x78, 0xb8, 0x12, 0x2f, 0x78, 0x90, 0x03, 0x26, 0x73, + 0x73, 0x9c, 0x6a, 0x2c, + ], + Bitcoin::Divide16 => [ + 0x52, 0xab, 0xfe, 0xf1, 0x79, 0x75, 0x4c, 0x90, 0xf9, 0xa4, 0x26, 0x0f, 0x32, 0x3a, + 0x8c, 0xa4, 0x95, 0x15, 0x92, 0x90, 0x2b, 0x8e, 0xcb, 0xd6, 0x4b, 0xa4, 0x26, 0x56, + 0xfa, 0xc0, 0x59, 0x68, + ], + Bitcoin::Divide32 => [ + 0x4a, 0x8a, 0xe5, 0x35, 0x44, 0xe1, 0x47, 0xed, 0x02, 0x25, 0x04, 0x23, 0x79, 0x34, + 0xcc, 0x25, 0x44, 0x79, 0xbc, 0xf9, 0x3d, 0xe1, 0xe1, 0x97, 0x4d, 0xda, 0xb3, 0xbb, + 0x51, 0x6e, 0x60, 0x6c, + ], + Bitcoin::Divide64 => [ + 0xd7, 0x02, 0x5d, 0x05, 0xad, 0xfa, 0xe6, 0x6b, 0x47, 0x10, 0xd0, 0xff, 0x1e, 0x87, + 0xe8, 0x28, 0x15, 0x57, 0x3e, 0x9c, 0xb6, 0x31, 0xb4, 0xc7, 0xd1, 0x3d, 0x2f, 0x1b, + 0xe4, 0xdd, 0x26, 0xd2, + ], + Bitcoin::Divide8 => [ + 0x40, 0xcd, 0x1d, 0xac, 0xea, 0x24, 0x66, 0x9b, 0x6a, 0x58, 0x9b, 0x61, 0x47, 0x54, + 0x74, 0xaf, 0x31, 0xd1, 0x4f, 0x8d, 0x46, 0x87, 0x70, 0x84, 0x52, 0xd3, 0xdf, 0x37, + 0x30, 0x25, 0x31, 0x26, + ], + Bitcoin::Divides16 => [ + 0x10, 0xbb, 0x18, 0x18, 0x0e, 0xab, 0x5b, 0xad, 0xdc, 0x16, 0x5d, 0x03, 0x37, 0xc4, + 0xad, 0xa0, 0x88, 0xe1, 0x57, 0xb1, 0xaa, 0x67, 0x83, 0x34, 0x2a, 0x45, 0x20, 0xa3, + 0x24, 0xdd, 0x9d, 0x2b, + ], + Bitcoin::Divides32 => [ + 0xf5, 0xe8, 0xe7, 0x8c, 0x82, 0x76, 0x9a, 0x48, 0xc9, 0x10, 0x3e, 0x44, 0xdd, 0xb4, + 0x7f, 0x84, 0x1d, 0x76, 0x93, 0xb0, 0x41, 0x9e, 0x5e, 0x7d, 0xa4, 0xe6, 0x8b, 0x78, + 0xb2, 0x37, 0xa5, 0x72, + ], + Bitcoin::Divides64 => [ + 0x9e, 0xbd, 0x55, 0xfa, 0xe4, 0x18, 0x88, 0x5e, 0xea, 0x04, 0xc3, 0xcd, 0xff, 0xf5, + 0x31, 0xb7, 0xd7, 0x14, 0xd0, 0x59, 0x4f, 0xa7, 0xda, 0x87, 0xeb, 0x65, 0x55, 0xd3, + 0x6b, 0x95, 0x3d, 0xb2, + ], + Bitcoin::Divides8 => [ + 0xa2, 0x36, 0xbc, 0x3e, 0x5c, 0xf4, 0xd2, 0x56, 0x40, 0x8b, 0xa3, 0x8c, 0x1e, 0xae, + 0xe7, 0x36, 0x9a, 0x9c, 0x40, 0x2f, 0x74, 0xbc, 0xd1, 0xc8, 0x02, 0xf9, 0x09, 0x4f, + 0xbf, 0x36, 0x80, 0x3d, + ], + Bitcoin::Eq1 => [ + 0x65, 0x49, 0xf9, 0x86, 0x20, 0x3a, 0x64, 0x97, 0x35, 0x6e, 0x43, 0x2b, 0x2a, 0xa1, + 0x60, 0xd6, 0xee, 0x87, 0x0b, 0x11, 0x19, 0x08, 0x65, 0xbd, 0x36, 0xa4, 0x7c, 0xb0, + 0x47, 0x04, 0x33, 0xa5, + ], + Bitcoin::Eq16 => [ + 0x0c, 0x54, 0x02, 0xb0, 0xad, 0xc8, 0xfc, 0x65, 0x70, 0x1b, 0xb7, 0x5b, 0x32, 0x54, + 0xc8, 0x35, 0xf8, 0xfe, 0xc1, 0x30, 0x81, 0xcd, 0x35, 0xe1, 0x32, 0x8f, 0x2b, 0xd7, + 0xdb, 0xd2, 0x3f, 0xa6, + ], + Bitcoin::Eq256 => [ + 0x26, 0x0e, 0x1d, 0x13, 0x6d, 0xd7, 0x44, 0xfc, 0xb0, 0x50, 0x7a, 0x2d, 0x27, 0x70, + 0x27, 0xa7, 0x72, 0x43, 0x54, 0xeb, 0x17, 0x6b, 0x2f, 0xbf, 0x31, 0xc6, 0xc7, 0xd7, + 0xfb, 0x3e, 0xcd, 0x6f, + ], + Bitcoin::Eq32 => [ + 0xf5, 0xd6, 0xed, 0xc8, 0xb6, 0x16, 0x4e, 0x12, 0x5b, 0xbb, 0xef, 0x08, 0xc9, 0xe0, + 0x8a, 0x1e, 0x6f, 0xd4, 0x92, 0xf5, 0xbd, 0xca, 0x6f, 0xdc, 0x8b, 0x5f, 0x5a, 0x6f, + 0x05, 0xc5, 0xab, 0x96, + ], + Bitcoin::Eq64 => [ + 0x1f, 0x93, 0xac, 0xb8, 0x09, 0x2f, 0xa0, 0x6d, 0xea, 0xf3, 0xc3, 0x87, 0xf5, 0x4a, + 0x18, 0xff, 0xea, 0xa6, 0x9a, 0x47, 0xa6, 0xf5, 0xca, 0xf4, 0xae, 0x49, 0x7e, 0x5c, + 0xc2, 0xb3, 0x6c, 0x43, + ], + Bitcoin::Eq8 => [ + 0xd7, 0x52, 0xfa, 0x7f, 0x51, 0x47, 0x30, 0x14, 0xeb, 0xb6, 0x9e, 0x1e, 0x1d, 0x2c, + 0x86, 0xd5, 0x11, 0x48, 0xb6, 0xba, 0xa0, 0x21, 0x37, 0xa4, 0x8f, 0x62, 0xd5, 0x7e, + 0xaf, 0x8d, 0xf1, 0xcd, + ], + Bitcoin::FeAdd => [ + 0xa6, 0xc9, 0x0e, 0x02, 0xfd, 0xe4, 0xee, 0x6e, 0xef, 0x66, 0x67, 0x37, 0x49, 0x2e, + 0x14, 0xaf, 0xc8, 0x76, 0x25, 0x04, 0x97, 0x4a, 0xf5, 0xd5, 0x47, 0x2b, 0xb9, 0x43, + 0x3a, 0xd2, 0xd2, 0x94, + ], + Bitcoin::FeInvert => [ + 0x7c, 0x4a, 0xba, 0xce, 0x33, 0xc7, 0x2b, 0x3b, 0xe1, 0xfd, 0x0e, 0xe3, 0x9f, 0xc6, + 0xcb, 0x3e, 0xe5, 0xc8, 0xf1, 0x1e, 0xf2, 0x19, 0x98, 0xc0, 0x60, 0x2b, 0x52, 0x15, + 0xaa, 0x2a, 0x75, 0xc2, + ], + Bitcoin::FeIsOdd => [ + 0x30, 0xf5, 0x17, 0x1f, 0x58, 0xf1, 0x08, 0x9d, 0x5d, 0xcf, 0xb6, 0xe6, 0x68, 0x3f, + 0x5a, 0xde, 0x98, 0x4c, 0x07, 0x99, 0x76, 0x3c, 0xa7, 0x38, 0x3f, 0x75, 0xdf, 0x1c, + 0xa0, 0x81, 0x3e, 0xfe, + ], + Bitcoin::FeIsZero => [ + 0xb0, 0xb7, 0x4d, 0x86, 0x51, 0xff, 0x55, 0x7c, 0xa9, 0x60, 0x44, 0xdd, 0x97, 0x28, + 0x13, 0x38, 0xa8, 0xf7, 0xd3, 0xac, 0xb3, 0x84, 0x7d, 0x03, 0xac, 0xbf, 0x3d, 0x32, + 0xd9, 0x6f, 0xae, 0x55, + ], + Bitcoin::FeMultiply => [ + 0x50, 0x6b, 0x93, 0x19, 0xc1, 0x7a, 0x14, 0xa9, 0x46, 0x9d, 0x46, 0x27, 0x61, 0xa3, + 0x30, 0x3a, 0xb4, 0x7d, 0xdb, 0x3a, 0x30, 0x79, 0xfb, 0xa3, 0x40, 0x73, 0xaa, 0x55, + 0x42, 0x16, 0xa3, 0x88, + ], + Bitcoin::FeMultiplyBeta => [ + 0x6e, 0x18, 0x0e, 0xea, 0xbe, 0x84, 0x22, 0xb7, 0x99, 0x68, 0xe7, 0x11, 0xdd, 0x00, + 0xa4, 0xb6, 0x57, 0x8b, 0xb2, 0x75, 0xbe, 0xf4, 0x7f, 0xe5, 0xff, 0x96, 0x8f, 0x14, + 0x72, 0xd7, 0x6f, 0x2a, + ], + Bitcoin::FeNegate => [ + 0xd4, 0x37, 0xea, 0x00, 0x33, 0x98, 0x80, 0xb3, 0x83, 0xd8, 0x5f, 0xb2, 0xae, 0xaf, + 0x20, 0x1b, 0xbe, 0x8f, 0xfc, 0x83, 0x70, 0x50, 0x62, 0xf9, 0xc9, 0x68, 0x59, 0x0d, + 0x5d, 0xb3, 0x37, 0xf6, + ], + Bitcoin::FeNormalize => [ + 0xec, 0x0c, 0x3d, 0xd9, 0xc5, 0x28, 0x63, 0x64, 0x78, 0xbe, 0xc0, 0xe1, 0x60, 0xe5, + 0x0a, 0xd9, 0xbf, 0x45, 0x2c, 0x5b, 0x6f, 0x84, 0xe9, 0x40, 0xe1, 0x65, 0x84, 0xeb, + 0x08, 0x5a, 0xce, 0x38, + ], + Bitcoin::FeSquare => [ + 0xb9, 0x04, 0x77, 0x2d, 0x74, 0xa1, 0x85, 0xb8, 0x28, 0xeb, 0x15, 0x47, 0x28, 0xd2, + 0x49, 0xc5, 0x08, 0x47, 0x11, 0xe9, 0xa1, 0x83, 0x2b, 0x89, 0xca, 0xf2, 0xaf, 0x59, + 0xf9, 0x60, 0xe1, 0x18, + ], + Bitcoin::FeSquareRoot => [ + 0x16, 0xfb, 0x9a, 0xce, 0xbe, 0x8b, 0x5b, 0x87, 0xf2, 0xea, 0x7d, 0xb6, 0xaa, 0x3a, + 0x2a, 0xf8, 0x8c, 0xa2, 0xb5, 0x8f, 0x02, 0xcd, 0xc8, 0x7e, 0x7c, 0xe6, 0xbe, 0x0c, + 0x1f, 0xfc, 0xe0, 0x14, + ], + Bitcoin::Fee => [ + 0xfb, 0x9c, 0xa9, 0x39, 0x81, 0x67, 0x3d, 0x1d, 0x23, 0xae, 0xd2, 0x4d, 0x61, 0x2c, + 0x1f, 0x5d, 0xc7, 0xcd, 0x49, 0xf8, 0x6d, 0x34, 0x8e, 0x67, 0xa1, 0x5b, 0xc4, 0xa7, + 0x13, 0x0a, 0xe1, 0x85, + ], + Bitcoin::FullAdd16 => [ + 0xc5, 0x03, 0xb0, 0x78, 0xdd, 0xe3, 0x99, 0xc6, 0x3a, 0xc4, 0xa2, 0x32, 0xbd, 0x2a, + 0x32, 0x9b, 0x04, 0x30, 0x8c, 0x75, 0xea, 0xec, 0x53, 0xa2, 0xf8, 0x89, 0xb8, 0xdf, + 0x0d, 0x03, 0x34, 0x72, + ], + Bitcoin::FullAdd32 => [ + 0xa7, 0xaf, 0xd0, 0x40, 0xfc, 0xb0, 0xb2, 0xf2, 0x71, 0x90, 0x78, 0x1a, 0xe5, 0x3a, + 0x6c, 0xca, 0x00, 0xe9, 0xfe, 0x59, 0x53, 0x11, 0x15, 0xc2, 0x58, 0xcc, 0xb6, 0x9d, + 0x3b, 0xe5, 0xa2, 0x13, + ], + Bitcoin::FullAdd64 => [ + 0x80, 0xa3, 0xef, 0x6c, 0xdb, 0x84, 0xae, 0x7c, 0x8d, 0xbc, 0xf3, 0xa1, 0x84, 0x24, + 0x84, 0xc0, 0x98, 0xdf, 0x6f, 0x19, 0x42, 0x7a, 0x5a, 0x4a, 0xdf, 0xe7, 0x6c, 0xd5, + 0xff, 0x28, 0x36, 0xca, + ], + Bitcoin::FullAdd8 => [ + 0x4b, 0x90, 0x76, 0xb8, 0xc1, 0xad, 0x56, 0xc9, 0xdb, 0x6b, 0xb3, 0xba, 0xf5, 0x93, + 0x89, 0x54, 0x46, 0xce, 0x61, 0xc7, 0x4f, 0x79, 0x7e, 0xb8, 0xb2, 0x30, 0xd2, 0x05, + 0x42, 0x1c, 0x96, 0x17, + ], + Bitcoin::FullDecrement16 => [ + 0xfb, 0xa3, 0xc9, 0x78, 0x6e, 0xa3, 0x07, 0xf6, 0xd8, 0x54, 0x34, 0xfd, 0xa2, 0x56, + 0x24, 0x82, 0x43, 0xa0, 0x0b, 0xac, 0x9a, 0x53, 0x53, 0xb6, 0x1e, 0xd3, 0x9c, 0x60, + 0x55, 0xb6, 0x93, 0xb0, + ], + Bitcoin::FullDecrement32 => [ + 0x62, 0x3d, 0x21, 0xd0, 0x46, 0x79, 0x22, 0xc0, 0x01, 0xc5, 0x65, 0x68, 0x61, 0xd0, + 0xdd, 0xb8, 0x60, 0xc0, 0xc9, 0xa8, 0x6b, 0xd4, 0xcf, 0xdc, 0x37, 0xa1, 0x4c, 0x14, + 0x06, 0xe3, 0x44, 0x6e, + ], + Bitcoin::FullDecrement64 => [ + 0x14, 0x8b, 0x3e, 0xe1, 0xf7, 0x49, 0xea, 0x0b, 0xfb, 0xa7, 0x63, 0xbe, 0xe9, 0x99, + 0xa2, 0x96, 0x77, 0x45, 0x6e, 0xae, 0x9e, 0xf5, 0x3a, 0xd8, 0x78, 0xf8, 0xb6, 0x14, + 0x94, 0xf0, 0x8f, 0x00, + ], + Bitcoin::FullDecrement8 => [ + 0xb4, 0x1a, 0xfe, 0x97, 0x4e, 0xaa, 0x11, 0x82, 0xac, 0x46, 0x10, 0x52, 0x1e, 0x28, + 0x27, 0x81, 0x31, 0x8c, 0xe2, 0x95, 0xa3, 0xf2, 0x3f, 0x0b, 0x87, 0x6a, 0xe2, 0x69, + 0x67, 0x3f, 0xb1, 0xdf, + ], + Bitcoin::FullIncrement16 => [ + 0xa6, 0x8e, 0xcc, 0xdb, 0x9e, 0xad, 0x29, 0x26, 0xc3, 0xe4, 0x5b, 0x4b, 0xae, 0x43, + 0x1c, 0xc4, 0x66, 0xd5, 0x8b, 0x8f, 0xac, 0xc9, 0x5a, 0x1b, 0x48, 0x44, 0xb9, 0x12, + 0xdf, 0x56, 0x76, 0xdf, + ], + Bitcoin::FullIncrement32 => [ + 0xd0, 0xeb, 0x0e, 0x94, 0xa5, 0xc2, 0x57, 0x13, 0xeb, 0x94, 0x4c, 0xad, 0x4d, 0x70, + 0x1c, 0x6a, 0x96, 0x88, 0x09, 0xbc, 0x1a, 0xf9, 0x03, 0xfd, 0xb1, 0x1e, 0x6f, 0xad, + 0x0b, 0xb3, 0x1b, 0x10, + ], + Bitcoin::FullIncrement64 => [ + 0xc0, 0x03, 0xd2, 0xe9, 0xb0, 0xa5, 0x10, 0xc2, 0xdd, 0x78, 0x3e, 0x7d, 0x64, 0xeb, + 0x87, 0xb3, 0x38, 0x55, 0xd3, 0x29, 0x90, 0xdf, 0xc2, 0x86, 0x26, 0x6e, 0x47, 0x8d, + 0xa4, 0xe7, 0x47, 0x91, + ], + Bitcoin::FullIncrement8 => [ + 0x0b, 0xea, 0x24, 0x29, 0x18, 0xf2, 0xdd, 0x17, 0x64, 0x77, 0x78, 0x11, 0xe4, 0x44, + 0x28, 0x63, 0x93, 0x52, 0x25, 0xb0, 0xf8, 0xb2, 0x39, 0xc2, 0x37, 0x52, 0xf9, 0xd8, + 0x53, 0x92, 0xa1, 0x39, + ], + Bitcoin::FullLeftShift16_1 => [ + 0xb3, 0x66, 0xa8, 0x16, 0x92, 0x2f, 0xc4, 0x55, 0x01, 0x0f, 0xe8, 0x8a, 0x5f, 0x6a, + 0x5c, 0xf2, 0xce, 0xa9, 0x17, 0xe1, 0x2b, 0xd1, 0x40, 0xae, 0x6d, 0x43, 0xb6, 0x41, + 0xe5, 0x7f, 0x42, 0xb3, + ], + Bitcoin::FullLeftShift16_2 => [ + 0x27, 0x96, 0x0d, 0x0d, 0xf2, 0xfb, 0xbc, 0x38, 0x99, 0x3d, 0x86, 0xfb, 0x8f, 0x0c, + 0xd2, 0xc3, 0x43, 0x4e, 0xdb, 0x11, 0x04, 0x82, 0x13, 0xc1, 0x41, 0x18, 0x93, 0xca, + 0x99, 0x33, 0xb2, 0xee, + ], + Bitcoin::FullLeftShift16_4 => [ + 0x65, 0x51, 0x37, 0xbe, 0xc5, 0xc0, 0x36, 0x8f, 0x29, 0xbc, 0x99, 0x2c, 0x88, 0x42, + 0x1a, 0x15, 0x98, 0x56, 0x40, 0x39, 0x7b, 0x61, 0x7f, 0xc4, 0x8d, 0x33, 0x21, 0x0f, + 0xc0, 0x05, 0x3a, 0xd1, + ], + Bitcoin::FullLeftShift16_8 => [ + 0x16, 0x8f, 0x57, 0x6a, 0xa5, 0x6e, 0xa4, 0x7e, 0x07, 0x06, 0x46, 0xe7, 0x88, 0x96, + 0xbe, 0xb2, 0x49, 0x8b, 0x1a, 0xe6, 0xb1, 0xff, 0x9c, 0x78, 0x62, 0x70, 0xe9, 0x55, + 0x65, 0x84, 0x19, 0x29, + ], + Bitcoin::FullLeftShift32_1 => [ + 0xd7, 0xcd, 0x52, 0x24, 0x49, 0x11, 0x8e, 0x81, 0x00, 0xa7, 0x66, 0x2f, 0x4d, 0xf0, + 0x39, 0xf8, 0xca, 0xeb, 0xf4, 0x33, 0xeb, 0x03, 0x9e, 0xdc, 0x42, 0xe8, 0x82, 0x37, + 0x92, 0xcc, 0xea, 0x8a, + ], + Bitcoin::FullLeftShift32_16 => [ + 0x8b, 0xd8, 0x0d, 0x4d, 0x2f, 0x8b, 0x22, 0x46, 0xc1, 0x23, 0x15, 0xc4, 0x28, 0x41, + 0xb4, 0xe4, 0x0a, 0x71, 0xae, 0x76, 0x96, 0x6a, 0x08, 0x95, 0x4d, 0x66, 0x6b, 0x86, + 0x32, 0x86, 0x74, 0x37, + ], + Bitcoin::FullLeftShift32_2 => [ + 0x13, 0x06, 0x3d, 0x62, 0x93, 0x83, 0x29, 0x31, 0x1f, 0xb7, 0xda, 0xbb, 0x15, 0xc3, + 0xfe, 0x58, 0xc2, 0x88, 0x76, 0x83, 0x00, 0x97, 0xec, 0xc6, 0xbf, 0xdd, 0x48, 0x0b, + 0xe1, 0x98, 0x81, 0x46, + ], + Bitcoin::FullLeftShift32_4 => [ + 0x25, 0xa1, 0xb5, 0xdd, 0xe5, 0xdb, 0x28, 0x4e, 0x8a, 0x88, 0x21, 0x26, 0x7c, 0x26, + 0x53, 0x01, 0x14, 0xbb, 0xe6, 0x71, 0xcf, 0xaf, 0xb4, 0x4a, 0x60, 0xd7, 0x50, 0x27, + 0x67, 0xdb, 0x78, 0x2e, + ], + Bitcoin::FullLeftShift32_8 => [ + 0xce, 0x54, 0x70, 0xaf, 0xbf, 0xad, 0xbf, 0xba, 0x68, 0xf9, 0xb2, 0xd5, 0xb0, 0x64, + 0x5a, 0x44, 0x08, 0xbe, 0x6f, 0x85, 0xa6, 0x9c, 0x7f, 0x09, 0xd0, 0x96, 0x45, 0x53, + 0x68, 0x04, 0x87, 0x64, + ], + Bitcoin::FullLeftShift64_1 => [ + 0x05, 0x1f, 0x36, 0x05, 0x86, 0xc3, 0x79, 0xac, 0x2c, 0xe3, 0x99, 0xcb, 0xeb, 0x68, + 0x7e, 0x77, 0x53, 0xb1, 0x5d, 0x73, 0x03, 0xdd, 0x31, 0x6c, 0xbd, 0x12, 0x30, 0x12, + 0x08, 0x7c, 0xc6, 0x6f, + ], + Bitcoin::FullLeftShift64_16 => [ + 0xb2, 0x48, 0xbe, 0x4d, 0xfc, 0xb8, 0x8c, 0x5d, 0x89, 0xb1, 0xca, 0x61, 0x86, 0xa0, + 0x41, 0xe9, 0x02, 0xb4, 0xc8, 0xa6, 0x2b, 0xb1, 0x6e, 0x09, 0xfe, 0x15, 0x61, 0x6e, + 0x0e, 0x3a, 0xbd, 0x6d, + ], + Bitcoin::FullLeftShift64_2 => [ + 0x34, 0xbb, 0x51, 0x62, 0x6b, 0x1d, 0x6b, 0x89, 0x7a, 0xbc, 0x15, 0x5d, 0x03, 0x4f, + 0xe0, 0x66, 0x3a, 0x0e, 0xc0, 0xfd, 0x8f, 0x64, 0x0e, 0x5f, 0xe1, 0xbf, 0x3c, 0xb7, + 0x67, 0x0a, 0x29, 0x25, + ], + Bitcoin::FullLeftShift64_32 => [ + 0x9d, 0xac, 0x8c, 0xd7, 0xfd, 0x8b, 0x48, 0x88, 0x9e, 0x55, 0xc5, 0xaa, 0x12, 0xfe, + 0x97, 0xb7, 0x29, 0xfe, 0xbc, 0x04, 0x1a, 0x9f, 0xff, 0x44, 0xc4, 0xd9, 0xb6, 0xf1, + 0xe0, 0x7e, 0xb4, 0x42, + ], + Bitcoin::FullLeftShift64_4 => [ + 0x94, 0xb7, 0x3d, 0xad, 0xc3, 0xee, 0xeb, 0x2e, 0xe4, 0xa4, 0xd4, 0x44, 0xdd, 0x0f, + 0x72, 0xac, 0x30, 0x62, 0x01, 0xf2, 0xff, 0xcf, 0x71, 0x4b, 0x8e, 0xbe, 0x79, 0x82, + 0x74, 0x4c, 0x0c, 0x7e, + ], + Bitcoin::FullLeftShift64_8 => [ + 0x0e, 0xf7, 0x14, 0x75, 0x7e, 0xcf, 0x11, 0xca, 0x3c, 0x73, 0xce, 0x25, 0xef, 0x24, + 0xee, 0x72, 0x95, 0xdd, 0x41, 0x71, 0xcc, 0x16, 0x28, 0x7f, 0xe6, 0x97, 0x1b, 0xd6, + 0x7b, 0x47, 0x8b, 0x46, + ], + Bitcoin::FullLeftShift8_1 => [ + 0x9b, 0xfa, 0x48, 0xb7, 0xad, 0x51, 0x00, 0x91, 0xba, 0x60, 0x85, 0x44, 0x62, 0xd8, + 0x59, 0xef, 0xd1, 0xa2, 0xaa, 0x18, 0x73, 0x1b, 0x5f, 0x0c, 0x9e, 0x2b, 0xa4, 0xd8, + 0x9d, 0x3a, 0xa8, 0x43, + ], + Bitcoin::FullLeftShift8_2 => [ + 0x79, 0x7c, 0x20, 0x87, 0x01, 0xb2, 0xa4, 0xe1, 0x04, 0x9e, 0x83, 0xd6, 0x95, 0xf5, + 0x54, 0xb9, 0x84, 0xf5, 0xdb, 0x28, 0x21, 0x52, 0x55, 0x58, 0x7c, 0x37, 0x34, 0x21, + 0x51, 0xb7, 0x24, 0x1d, + ], + Bitcoin::FullLeftShift8_4 => [ + 0x37, 0xbd, 0xac, 0x91, 0x53, 0x8f, 0x22, 0x19, 0xcb, 0x89, 0xdf, 0x0e, 0xf9, 0xf1, + 0x97, 0xcd, 0x68, 0x03, 0x1f, 0x27, 0x67, 0xe8, 0x94, 0xf0, 0x01, 0xc2, 0x6f, 0xff, + 0x5e, 0xeb, 0x58, 0xcd, + ], + Bitcoin::FullMultiply16 => [ + 0x09, 0xba, 0xff, 0x92, 0x1e, 0x9f, 0x14, 0xd1, 0x20, 0x8d, 0x1d, 0xd8, 0x26, 0x4c, + 0xf1, 0xf3, 0xb8, 0x54, 0xc9, 0xaf, 0x21, 0xf7, 0x78, 0xb2, 0xb5, 0x5a, 0x8a, 0x42, + 0x6d, 0xfe, 0x89, 0x28, + ], + Bitcoin::FullMultiply32 => [ + 0x10, 0xc4, 0xb8, 0xc4, 0xc0, 0xac, 0xd9, 0x73, 0x90, 0xf8, 0x5c, 0xb3, 0xf5, 0xff, + 0xe3, 0x6a, 0x29, 0x20, 0x37, 0xc1, 0x90, 0xee, 0xba, 0xb3, 0xe9, 0x89, 0x34, 0xfe, + 0x93, 0xb2, 0xed, 0x90, + ], + Bitcoin::FullMultiply64 => [ + 0x2d, 0xb1, 0x9d, 0xba, 0x90, 0xef, 0x86, 0x7b, 0x5a, 0x3e, 0x91, 0x4b, 0x89, 0xfd, + 0xa2, 0xda, 0x63, 0x7c, 0xa8, 0x0c, 0x42, 0x67, 0xe1, 0x98, 0x18, 0x37, 0xee, 0x3c, + 0x6f, 0xe3, 0xda, 0xf5, + ], + Bitcoin::FullMultiply8 => [ + 0x7f, 0x46, 0xee, 0x72, 0x84, 0xf3, 0x9e, 0x73, 0x42, 0x75, 0xa2, 0x50, 0x9a, 0x0b, + 0x73, 0x7e, 0xd9, 0x39, 0x11, 0x5f, 0x02, 0x19, 0xa5, 0x74, 0xd4, 0x69, 0xcd, 0x30, + 0xb8, 0x19, 0xef, 0xe3, + ], + Bitcoin::FullRightShift16_1 => [ + 0x7e, 0xbe, 0x0c, 0x66, 0xc3, 0xc7, 0xdc, 0x16, 0xa5, 0x46, 0x9e, 0x91, 0x79, 0x09, + 0x84, 0x17, 0xac, 0x5f, 0x20, 0xa3, 0x9c, 0xc4, 0x1a, 0xc3, 0x82, 0xfb, 0x1d, 0xbd, + 0x98, 0xe8, 0xe3, 0x0f, + ], + Bitcoin::FullRightShift16_2 => [ + 0x8d, 0xb0, 0xc2, 0x16, 0x19, 0xc6, 0x2d, 0x63, 0xd4, 0xc2, 0x7b, 0xfc, 0xf6, 0x47, + 0xd7, 0x09, 0xce, 0x37, 0xbe, 0xd0, 0x57, 0x18, 0xe9, 0x3e, 0x45, 0x15, 0xe2, 0x9e, + 0xf3, 0x73, 0x0c, 0xf4, + ], + Bitcoin::FullRightShift16_4 => [ + 0x5c, 0x74, 0xb1, 0x32, 0x06, 0x31, 0x79, 0x17, 0xe0, 0x70, 0xe5, 0xfc, 0x1c, 0x82, + 0xf4, 0xc5, 0xc2, 0xfb, 0xe9, 0xf3, 0x1b, 0x81, 0x29, 0x46, 0xba, 0x23, 0x0d, 0x8c, + 0x94, 0xd4, 0x06, 0x16, + ], + Bitcoin::FullRightShift16_8 => [ + 0x11, 0x05, 0x81, 0x8a, 0xc9, 0x48, 0xd7, 0xbb, 0x63, 0x47, 0x07, 0xe6, 0x9d, 0xbf, + 0x1f, 0x67, 0x90, 0x58, 0xa1, 0x3d, 0x35, 0xfa, 0xc2, 0xa6, 0x4d, 0xf9, 0x72, 0x62, + 0xf2, 0x42, 0xb6, 0x3b, + ], + Bitcoin::FullRightShift32_1 => [ + 0x9b, 0x42, 0xc8, 0xf3, 0x3b, 0xc5, 0x75, 0x0e, 0x2a, 0x83, 0xaa, 0xdb, 0xf2, 0x9c, + 0xc7, 0xfc, 0xb9, 0x50, 0xfe, 0x5a, 0x40, 0xaa, 0x0e, 0xc5, 0x24, 0x52, 0xe5, 0x33, + 0xf8, 0x25, 0xa1, 0x15, + ], + Bitcoin::FullRightShift32_16 => [ + 0x0a, 0xe5, 0x65, 0x9c, 0x2f, 0xa7, 0x57, 0x94, 0x78, 0xeb, 0xd5, 0x7c, 0x4c, 0x98, + 0xae, 0xe7, 0x77, 0x01, 0x56, 0x45, 0xb2, 0x84, 0x31, 0x81, 0x64, 0xfc, 0xbd, 0x30, + 0x65, 0xfc, 0x87, 0x3c, + ], + Bitcoin::FullRightShift32_2 => [ + 0x57, 0xfb, 0x1c, 0x03, 0xc2, 0xeb, 0x17, 0xf6, 0x23, 0x47, 0x87, 0x34, 0xfd, 0x69, + 0x37, 0xf9, 0xe3, 0xef, 0x02, 0x7c, 0x15, 0x60, 0x03, 0x8f, 0xa6, 0x06, 0x69, 0x05, + 0x17, 0x89, 0xe3, 0x68, + ], + Bitcoin::FullRightShift32_4 => [ + 0x85, 0x82, 0xcd, 0xfa, 0x74, 0xef, 0x46, 0x6b, 0x81, 0x27, 0xb1, 0x97, 0x88, 0x13, + 0x45, 0x93, 0x99, 0x8e, 0x49, 0x69, 0x00, 0xb3, 0x8f, 0x0f, 0x3d, 0x37, 0x58, 0x18, + 0xd6, 0x73, 0x45, 0x1e, + ], + Bitcoin::FullRightShift32_8 => [ + 0xd9, 0x05, 0x93, 0x2e, 0xbf, 0xca, 0x2a, 0x38, 0x61, 0x9d, 0x80, 0x7e, 0x28, 0xff, + 0x2e, 0x0d, 0x3b, 0xe0, 0x8a, 0x26, 0x06, 0x76, 0xd2, 0x57, 0xef, 0xa0, 0x40, 0xc3, + 0x05, 0xaa, 0xdc, 0x33, + ], + Bitcoin::FullRightShift64_1 => [ + 0x3c, 0x15, 0x20, 0x9b, 0x99, 0xd2, 0x84, 0x5e, 0x22, 0x5e, 0x14, 0xe1, 0xe9, 0xe5, + 0xe6, 0xa4, 0x87, 0x8b, 0xc8, 0xce, 0xa3, 0xf9, 0xf3, 0x6b, 0x8b, 0x53, 0x5a, 0xc6, + 0x83, 0xe2, 0x9d, 0x00, + ], + Bitcoin::FullRightShift64_16 => [ + 0x02, 0x85, 0x25, 0x7b, 0x09, 0x0d, 0x8d, 0xa1, 0x28, 0xef, 0x64, 0xa8, 0x0c, 0x8d, + 0x16, 0xfd, 0xc3, 0xbf, 0x5c, 0xe5, 0x0f, 0xcd, 0x56, 0xfe, 0xc5, 0xf9, 0x02, 0x55, + 0xd9, 0xc8, 0xdf, 0x47, + ], + Bitcoin::FullRightShift64_2 => [ + 0x7e, 0xc2, 0xdd, 0x65, 0xc9, 0xe0, 0x13, 0xe3, 0xe4, 0xce, 0x90, 0xfb, 0xeb, 0x3f, + 0xb1, 0xc7, 0x8c, 0xcc, 0x5d, 0x2a, 0x7d, 0x26, 0xd8, 0xaf, 0x77, 0xf9, 0x9d, 0xe8, + 0x4c, 0xf7, 0x29, 0x73, + ], + Bitcoin::FullRightShift64_32 => [ + 0x35, 0x6f, 0x7d, 0xd4, 0x6b, 0xa3, 0x3f, 0x84, 0xb0, 0x66, 0x72, 0xfd, 0xe9, 0xa2, + 0x97, 0x2e, 0x80, 0xf3, 0xea, 0x96, 0x5a, 0xe8, 0xbc, 0x0b, 0xff, 0x67, 0xaa, 0x2f, + 0x69, 0xf1, 0x0b, 0x56, + ], + Bitcoin::FullRightShift64_4 => [ + 0x05, 0x46, 0x4a, 0x33, 0x35, 0xaf, 0xbb, 0x09, 0xd0, 0x46, 0x82, 0x8a, 0x92, 0x2c, + 0x4d, 0xa0, 0xec, 0xee, 0xb1, 0x09, 0x77, 0xe4, 0x68, 0x01, 0xc9, 0x3c, 0xdd, 0x66, + 0x8f, 0x22, 0xee, 0x63, + ], + Bitcoin::FullRightShift64_8 => [ + 0x70, 0x17, 0x2e, 0x1a, 0x69, 0x48, 0xbf, 0x40, 0x12, 0x0e, 0x68, 0xfb, 0x8b, 0x4b, + 0x23, 0xbc, 0x35, 0x5a, 0x12, 0x00, 0x2c, 0xcc, 0x1d, 0xb6, 0x47, 0xc8, 0x9b, 0x12, + 0xd1, 0x0e, 0xc5, 0x06, + ], + Bitcoin::FullRightShift8_1 => [ + 0x56, 0x69, 0xdb, 0xfc, 0xc6, 0x33, 0xec, 0x0b, 0xdf, 0x59, 0xe2, 0x2f, 0x03, 0xed, + 0x4b, 0x64, 0x19, 0x20, 0x95, 0xf5, 0xdf, 0x20, 0xff, 0xc1, 0x2d, 0xd9, 0x0d, 0x7c, + 0xda, 0x11, 0x37, 0x4f, + ], + Bitcoin::FullRightShift8_2 => [ + 0x1f, 0x94, 0x43, 0x61, 0x09, 0xdf, 0x52, 0xb3, 0x45, 0xfa, 0x3a, 0x89, 0xac, 0x2a, + 0x49, 0xed, 0xc9, 0xd2, 0x85, 0xf2, 0x1f, 0x45, 0xed, 0x11, 0xd7, 0x75, 0xf7, 0xf7, + 0xf3, 0x9d, 0x3e, 0x8f, + ], + Bitcoin::FullRightShift8_4 => [ + 0x71, 0x46, 0x98, 0xa2, 0x76, 0x84, 0xb5, 0xba, 0xa6, 0xb6, 0x48, 0x0e, 0xe3, 0xb2, + 0x57, 0xcb, 0xb7, 0xcd, 0xab, 0x74, 0x72, 0xf3, 0x71, 0xa6, 0x27, 0x06, 0x18, 0xc0, + 0xab, 0x12, 0x90, 0x8b, + ], + Bitcoin::FullSubtract16 => [ + 0x40, 0x09, 0x61, 0x52, 0xb5, 0x4e, 0x74, 0x25, 0x45, 0x55, 0xa6, 0x5d, 0xcc, 0xc6, + 0x29, 0xdf, 0x57, 0xb9, 0x79, 0xc8, 0x47, 0x00, 0x54, 0x50, 0x36, 0xfe, 0x19, 0x0a, + 0x6a, 0xf3, 0xd3, 0x8a, + ], + Bitcoin::FullSubtract32 => [ + 0xe7, 0x93, 0x0d, 0x64, 0x35, 0xa9, 0x68, 0x0b, 0xef, 0xb4, 0x9d, 0xb7, 0xd8, 0x7c, + 0x2f, 0x50, 0xaf, 0xd4, 0x6d, 0x98, 0x88, 0x0d, 0xed, 0x50, 0xe5, 0x05, 0x5f, 0xa3, + 0x09, 0xe1, 0xaf, 0xca, + ], + Bitcoin::FullSubtract64 => [ + 0xff, 0x28, 0x1d, 0xf8, 0xc4, 0x2a, 0x31, 0x59, 0xd9, 0xff, 0xa9, 0x25, 0x16, 0xca, + 0x89, 0x3e, 0x23, 0xb0, 0xeb, 0x93, 0x8b, 0x4c, 0xb0, 0xb3, 0xf1, 0x34, 0x46, 0x8e, + 0x9f, 0x4e, 0xbc, 0x46, + ], + Bitcoin::FullSubtract8 => [ + 0x7e, 0x3d, 0xcf, 0xe4, 0x56, 0xae, 0x3c, 0x5c, 0x87, 0xde, 0xbf, 0x04, 0x71, 0x89, + 0xc2, 0x74, 0x82, 0xa4, 0xff, 0x4e, 0x8c, 0xfd, 0x1f, 0x17, 0x30, 0xc8, 0x7d, 0x2b, + 0x7b, 0xff, 0x73, 0xba, + ], + Bitcoin::GeIsOnCurve => [ + 0x7d, 0x44, 0x87, 0x19, 0xf5, 0xf9, 0x57, 0x2b, 0xf5, 0x40, 0x2e, 0x12, 0xd1, 0x93, + 0xaf, 0xf6, 0x77, 0x48, 0x2d, 0x66, 0xff, 0x3d, 0xcf, 0x27, 0x48, 0xf2, 0x5c, 0x6b, + 0x73, 0x77, 0x02, 0x8c, + ], + Bitcoin::GeNegate => [ + 0x3d, 0x2c, 0x8d, 0xe4, 0xc7, 0x01, 0x5f, 0xd3, 0x13, 0x26, 0x95, 0xfd, 0x66, 0xdf, + 0xcf, 0x0f, 0x17, 0x78, 0xc7, 0x91, 0x85, 0x26, 0x8e, 0x9f, 0xae, 0x77, 0x89, 0xda, + 0x53, 0x8e, 0xca, 0x59, + ], + Bitcoin::GejAdd => [ + 0x45, 0xba, 0x7f, 0x3d, 0x1e, 0x1e, 0x6d, 0x34, 0x9f, 0xcf, 0x86, 0x98, 0x7b, 0x0e, + 0x7f, 0x7a, 0xce, 0x66, 0x2e, 0x82, 0x20, 0x1d, 0x35, 0x02, 0x60, 0x45, 0x4e, 0x2f, + 0xfe, 0xec, 0xb5, 0x4d, + ], + Bitcoin::GejDouble => [ + 0x23, 0xe9, 0x78, 0xf3, 0x41, 0x54, 0x11, 0x9b, 0xde, 0xfc, 0x5d, 0x13, 0xfc, 0xfd, + 0x0a, 0x34, 0xa7, 0x5e, 0x37, 0x26, 0xd6, 0xcb, 0x25, 0x81, 0x33, 0x70, 0xad, 0x7d, + 0x9d, 0xe5, 0xe1, 0x33, + ], + Bitcoin::GejEquiv => [ + 0xb9, 0x4b, 0x2a, 0xac, 0x73, 0xa6, 0x7f, 0x44, 0x95, 0x85, 0x99, 0x13, 0x4d, 0xe2, + 0x30, 0x17, 0x9e, 0x9d, 0x6b, 0xb6, 0x47, 0xfd, 0x06, 0x11, 0x15, 0x8a, 0xab, 0xa7, + 0x0b, 0x73, 0xe4, 0x00, + ], + Bitcoin::GejGeAdd => [ + 0xf1, 0x16, 0x0b, 0x6f, 0x5e, 0xe2, 0xc5, 0x82, 0xe4, 0x95, 0x66, 0xe6, 0xc3, 0x86, + 0xb3, 0x80, 0x94, 0xab, 0xc1, 0xa7, 0x18, 0x2d, 0x33, 0xa1, 0x50, 0x1f, 0xa2, 0xaa, + 0xf0, 0x0a, 0xf3, 0xea, + ], + Bitcoin::GejGeAddEx => [ + 0xc3, 0xd7, 0x34, 0x7f, 0xfe, 0x2d, 0x9c, 0x83, 0x9a, 0xac, 0x56, 0x7e, 0x29, 0x98, + 0xe0, 0x16, 0xaf, 0x39, 0x4e, 0x2a, 0x19, 0x29, 0x31, 0x4b, 0x52, 0xe3, 0x1e, 0xed, + 0x67, 0x8e, 0x30, 0xbf, + ], + Bitcoin::GejGeEquiv => [ + 0x27, 0xc2, 0x99, 0x69, 0x13, 0x9f, 0x8d, 0x57, 0xed, 0xc9, 0x89, 0x5c, 0x30, 0x40, + 0x3d, 0xf0, 0x15, 0xc5, 0x0c, 0xe7, 0x21, 0xc3, 0x81, 0xfb, 0x19, 0x7c, 0x0c, 0x04, + 0x03, 0xf1, 0xdb, 0x0c, + ], + Bitcoin::GejInfinity => [ + 0xaa, 0xfb, 0x93, 0x80, 0xd6, 0x1a, 0x7f, 0x14, 0x78, 0x46, 0x80, 0x6b, 0x2c, 0xc3, + 0x74, 0xfb, 0xe8, 0x2d, 0xd1, 0xae, 0xd4, 0x85, 0xb9, 0x8a, 0x0f, 0x16, 0x4b, 0x3a, + 0x54, 0xc2, 0xc0, 0xb0, + ], + Bitcoin::GejIsInfinity => [ + 0xdb, 0x49, 0x5f, 0xd1, 0x31, 0x42, 0xe9, 0xb3, 0x37, 0x63, 0xfc, 0x6d, 0x48, 0xd2, + 0xfb, 0x0e, 0x71, 0xb0, 0xd9, 0xd9, 0x9b, 0xd7, 0x26, 0xf4, 0x7a, 0xd1, 0x3f, 0xc5, + 0x56, 0x06, 0x70, 0xa2, + ], + Bitcoin::GejIsOnCurve => [ + 0xbf, 0x4c, 0xa1, 0x3f, 0xf2, 0x12, 0xe3, 0x4b, 0xf1, 0x7d, 0x90, 0xc1, 0x2e, 0x45, + 0x3d, 0x08, 0xac, 0x7d, 0xaa, 0x4a, 0x47, 0xd5, 0x7e, 0x85, 0xb4, 0x3f, 0x2d, 0x43, + 0x66, 0xd4, 0x3d, 0xda, + ], + Bitcoin::GejNegate => [ + 0x01, 0xbd, 0x1a, 0x35, 0x1f, 0xb8, 0x16, 0x4c, 0x81, 0x3d, 0x91, 0x6d, 0x07, 0x77, + 0x49, 0x99, 0x6b, 0x7d, 0xb1, 0x18, 0xd3, 0x15, 0x86, 0xca, 0x9d, 0x75, 0xe7, 0x56, + 0x35, 0x18, 0xf4, 0x54, + ], + Bitcoin::GejNormalize => [ + 0xec, 0x59, 0x7d, 0x17, 0xe2, 0xef, 0xb6, 0xd2, 0xa0, 0x02, 0xd5, 0x0e, 0x67, 0x75, + 0x27, 0xd3, 0xd4, 0xa2, 0x90, 0x7a, 0x11, 0x9d, 0x68, 0xf1, 0x22, 0x84, 0xb9, 0xa1, + 0xb0, 0xd2, 0x30, 0x3a, + ], + Bitcoin::GejRescale => [ + 0x29, 0x77, 0xd9, 0x53, 0xef, 0x7a, 0x11, 0x56, 0xce, 0xc6, 0xdb, 0x2d, 0xc2, 0x92, + 0x54, 0x12, 0x75, 0xcb, 0xc8, 0x2f, 0xb8, 0x29, 0xfd, 0x67, 0x1b, 0x97, 0x2e, 0x89, + 0xeb, 0xed, 0x0c, 0x24, + ], + Bitcoin::GejXEquiv => [ + 0xf9, 0xf1, 0x89, 0xfc, 0x00, 0xb6, 0x1f, 0x72, 0xf1, 0x0b, 0xaa, 0xa2, 0x1b, 0xcd, + 0x88, 0xe5, 0xd2, 0x2e, 0x0a, 0xa9, 0xb7, 0x50, 0x9a, 0xe1, 0x62, 0xa1, 0x83, 0xa4, + 0xb6, 0x64, 0xa4, 0xaf, + ], + Bitcoin::GejYIsOdd => [ + 0x9e, 0xb6, 0xe4, 0x53, 0x5f, 0xb6, 0x9b, 0xf6, 0x09, 0x91, 0x65, 0x99, 0xf1, 0x34, + 0x5a, 0xd7, 0x73, 0x5d, 0xa3, 0xf3, 0x94, 0x8d, 0x06, 0x86, 0x90, 0x8e, 0x44, 0xf4, + 0x5b, 0x2f, 0xf6, 0x0c, + ], + Bitcoin::Generate => [ + 0x14, 0x88, 0x85, 0xac, 0x73, 0x81, 0x31, 0x13, 0xc5, 0x23, 0xe8, 0x09, 0xbe, 0xa4, + 0x7f, 0xfd, 0x8b, 0x1d, 0xaf, 0x37, 0x8d, 0x9d, 0xd5, 0x4b, 0xf9, 0x66, 0xcc, 0xb8, + 0x83, 0xb1, 0xa9, 0x84, + ], + Bitcoin::HashToCurve => [ + 0xef, 0x4f, 0x54, 0x8b, 0x3c, 0x6c, 0x75, 0x17, 0x5f, 0x2c, 0xe2, 0xd1, 0x99, 0x3b, + 0x2d, 0x19, 0x9b, 0xeb, 0x16, 0xc0, 0xa1, 0x40, 0x17, 0x5c, 0x48, 0xa1, 0x27, 0x7e, + 0xfc, 0x43, 0xa9, 0x9b, + ], + Bitcoin::High1 => [ + 0xb1, 0x09, 0xcf, 0x1c, 0xce, 0x35, 0xf7, 0xe9, 0xb6, 0x49, 0x67, 0x1a, 0x9b, 0x45, + 0xdb, 0xc2, 0x40, 0x99, 0xa7, 0x13, 0xae, 0xb9, 0xa8, 0x9c, 0xc4, 0xcf, 0x6e, 0xf6, + 0xed, 0x8b, 0x30, 0x8b, + ], + Bitcoin::High16 => [ + 0x03, 0x5d, 0xad, 0xd9, 0xd7, 0xbf, 0x74, 0x33, 0x64, 0x45, 0xe7, 0x1d, 0xdc, 0x4d, + 0x82, 0x02, 0x24, 0xff, 0x7e, 0x38, 0xe0, 0xb8, 0xd5, 0x2b, 0xec, 0x97, 0x29, 0xb5, + 0x72, 0xb5, 0x31, 0xf9, + ], + Bitcoin::High32 => [ + 0xc5, 0xf1, 0xdf, 0x0d, 0x64, 0xa2, 0x73, 0x7a, 0x63, 0x1b, 0x3a, 0xae, 0x8f, 0x26, + 0x0e, 0x8b, 0x8d, 0xc1, 0x95, 0x7b, 0xd0, 0x92, 0x91, 0x1b, 0x91, 0xd2, 0x07, 0x8a, + 0xd2, 0x1e, 0x41, 0x8a, + ], + Bitcoin::High64 => [ + 0xa3, 0x12, 0x63, 0x3e, 0x0a, 0x23, 0x05, 0xe6, 0x9b, 0x3f, 0x34, 0x1d, 0x91, 0xd6, + 0x83, 0xdd, 0x94, 0x19, 0x6a, 0x2f, 0x90, 0x05, 0xc9, 0xb1, 0x87, 0x2a, 0x2c, 0x15, + 0xad, 0x46, 0xcf, 0x17, + ], + Bitcoin::High8 => [ + 0xcb, 0xd7, 0x8d, 0x50, 0xaf, 0x77, 0x99, 0x85, 0x5a, 0xdc, 0x49, 0x03, 0xdb, 0xbe, + 0xfc, 0x13, 0x45, 0xd5, 0x14, 0x84, 0xf0, 0x3d, 0x3c, 0x75, 0x5c, 0xaa, 0xa5, 0xca, + 0xa9, 0x7d, 0x4a, 0x14, + ], + Bitcoin::Increment16 => [ + 0x86, 0x77, 0x49, 0x49, 0x39, 0xb2, 0x7b, 0x86, 0xcb, 0x5a, 0x8c, 0x7f, 0x81, 0x72, + 0xad, 0x55, 0x50, 0x95, 0x31, 0xc9, 0xb0, 0xe1, 0x1e, 0x99, 0x75, 0x7e, 0x29, 0x6c, + 0xc3, 0xc7, 0xc1, 0x92, + ], + Bitcoin::Increment32 => [ + 0x6b, 0xdb, 0xab, 0x7c, 0xfc, 0x16, 0xc5, 0x03, 0x36, 0x3c, 0x2f, 0x07, 0x7e, 0x02, + 0xc3, 0x35, 0xda, 0x40, 0x61, 0x75, 0xd1, 0x92, 0xfb, 0xef, 0x50, 0xc0, 0x7f, 0xc2, + 0x79, 0xb3, 0xf4, 0x0c, + ], + Bitcoin::Increment64 => [ + 0x20, 0xe7, 0x5e, 0x71, 0x7c, 0xb7, 0x6d, 0x46, 0x95, 0x56, 0x4f, 0x7c, 0x20, 0x22, + 0x1b, 0x7a, 0x01, 0x43, 0x13, 0x87, 0x38, 0xf1, 0x51, 0xaa, 0x19, 0x5e, 0xb1, 0x70, + 0xec, 0x13, 0xc0, 0x49, + ], + Bitcoin::Increment8 => [ + 0x5f, 0x4e, 0x05, 0x6e, 0xf4, 0xed, 0x8d, 0x68, 0xbf, 0x91, 0x1f, 0xc5, 0xcb, 0x69, + 0x03, 0x7e, 0xbf, 0x6c, 0x92, 0x21, 0x73, 0x43, 0xa8, 0x90, 0x5d, 0x38, 0xc4, 0x32, + 0xc1, 0x83, 0x23, 0x3c, + ], + Bitcoin::InputAnnexHash => [ + 0x94, 0x5b, 0x14, 0x7e, 0x5f, 0x0e, 0xdb, 0x83, 0x2d, 0x62, 0x34, 0x8c, 0xae, 0xea, + 0xc2, 0x24, 0x56, 0xee, 0xe9, 0x44, 0x65, 0x37, 0x6d, 0xbf, 0x59, 0x6b, 0x9d, 0x62, + 0x98, 0x5b, 0x01, 0xb6, + ], + Bitcoin::InputAnnexesHash => [ + 0x89, 0xb6, 0x02, 0x70, 0x44, 0x14, 0x1f, 0x20, 0x65, 0xb6, 0xf2, 0x36, 0xcf, 0xcc, + 0x13, 0xb9, 0x68, 0x48, 0x5e, 0x00, 0x74, 0x6b, 0x78, 0x59, 0x28, 0x69, 0x03, 0xc6, + 0x8c, 0x7f, 0x88, 0x0d, + ], + Bitcoin::InputHash => [ + 0x3a, 0xd2, 0x22, 0x31, 0xd6, 0xb9, 0xdf, 0xf6, 0xa0, 0xb4, 0xdb, 0xcf, 0xf0, 0x44, + 0xe1, 0x1c, 0x08, 0x2e, 0x04, 0x68, 0x4e, 0x73, 0xce, 0x95, 0xc2, 0x05, 0xe0, 0xc4, + 0x49, 0x6e, 0x5e, 0xca, + ], + Bitcoin::InputOutpointsHash => [ + 0x17, 0x59, 0xc6, 0xf4, 0x70, 0xb9, 0xab, 0xa6, 0x2a, 0x31, 0x79, 0x1e, 0xa0, 0x10, + 0x56, 0xe3, 0x60, 0x8b, 0xdf, 0x22, 0xf5, 0xdd, 0x43, 0xbf, 0x7d, 0xb0, 0x0e, 0xa5, + 0x82, 0x3f, 0x7c, 0xce, + ], + Bitcoin::InputPrevOutpoint => [ + 0x5d, 0x17, 0x12, 0x42, 0x09, 0xee, 0x05, 0x21, 0x24, 0xe5, 0x52, 0x38, 0xe0, 0xb6, + 0xa6, 0xfe, 0x85, 0xa4, 0x86, 0x88, 0xc1, 0xe1, 0x5e, 0x61, 0x81, 0xde, 0x94, 0xf7, + 0x8d, 0xb0, 0x40, 0x18, + ], + Bitcoin::InputScriptHash => [ + 0x05, 0x62, 0x41, 0x2f, 0x02, 0x1d, 0xa4, 0x81, 0x9b, 0x01, 0x9c, 0x8c, 0xd8, 0x87, + 0xd5, 0x30, 0x49, 0x2b, 0x9f, 0x94, 0x2c, 0x4e, 0xbf, 0x21, 0xae, 0x39, 0xed, 0x32, + 0x33, 0x0d, 0x7c, 0xfe, + ], + Bitcoin::InputScriptSigHash => [ + 0x1c, 0x7e, 0xfb, 0x37, 0xcb, 0xc4, 0xb9, 0x96, 0xd9, 0xb8, 0xc6, 0x17, 0x08, 0xe6, + 0x65, 0x73, 0xce, 0x87, 0xc1, 0xf0, 0xaa, 0x05, 0x22, 0xd0, 0x65, 0xba, 0x90, 0x25, + 0x05, 0x6e, 0x3f, 0x80, + ], + Bitcoin::InputScriptSigsHash => [ + 0xe7, 0x29, 0xc5, 0xf5, 0x8a, 0x93, 0x89, 0x08, 0x1a, 0x5c, 0xa8, 0x45, 0xf7, 0x6c, + 0xb9, 0x80, 0xf0, 0x85, 0x99, 0xce, 0xb3, 0xc7, 0xd7, 0xea, 0xe1, 0x14, 0x5b, 0x53, + 0xa6, 0x0a, 0xe3, 0xd5, + ], + Bitcoin::InputScriptsHash => [ + 0xf1, 0x77, 0x67, 0x1d, 0x60, 0x96, 0x0e, 0x46, 0x3a, 0x9a, 0x8f, 0x7e, 0x1f, 0x52, + 0x13, 0xaa, 0xba, 0x91, 0x22, 0xd2, 0xdb, 0x75, 0xfe, 0x91, 0xf8, 0xf1, 0xcf, 0x91, + 0xbe, 0x00, 0x19, 0x07, + ], + Bitcoin::InputSequence => [ + 0x5d, 0xd1, 0x7f, 0xe1, 0x55, 0x0f, 0x48, 0xf7, 0xba, 0xed, 0x4d, 0x06, 0x80, 0x08, + 0xd4, 0xa1, 0xff, 0x98, 0xcb, 0xeb, 0xe2, 0x54, 0x1c, 0x5d, 0xc7, 0x7a, 0xc5, 0x3a, + 0xd8, 0x3f, 0xa7, 0x79, + ], + Bitcoin::InputSequencesHash => [ + 0x55, 0x97, 0x3d, 0x64, 0x43, 0x45, 0x74, 0x72, 0x81, 0x37, 0x73, 0x64, 0xba, 0xd2, + 0xa8, 0x0b, 0x75, 0x8f, 0x45, 0x66, 0x60, 0xc1, 0x8d, 0xe5, 0xc0, 0x1a, 0x38, 0x82, + 0x07, 0x1d, 0x50, 0xe8, + ], + Bitcoin::InputUtxoHash => [ + 0x93, 0x1e, 0x4e, 0x95, 0xe0, 0xa6, 0x47, 0x60, 0x27, 0x6e, 0x91, 0xb5, 0xdc, 0x74, + 0x67, 0x80, 0xd0, 0x69, 0x7d, 0x0a, 0xf5, 0xaa, 0xf5, 0xbb, 0xc8, 0x1d, 0xbe, 0xb3, + 0x98, 0x59, 0x6a, 0xbb, + ], + Bitcoin::InputUtxosHash => [ + 0xd6, 0xf9, 0x0c, 0xd1, 0x04, 0xe1, 0xa5, 0xc6, 0x1a, 0x4b, 0x50, 0x00, 0xad, 0x9a, + 0xba, 0x8d, 0x43, 0x00, 0x4b, 0xf9, 0x43, 0xdf, 0x32, 0x5f, 0xa6, 0x36, 0xd1, 0xa2, + 0x2b, 0xec, 0xa0, 0xcb, + ], + Bitcoin::InputValue => [ + 0x7d, 0x3c, 0x3f, 0x95, 0x5b, 0x2c, 0xf0, 0xd0, 0xd1, 0x28, 0x0a, 0x1b, 0xb1, 0x20, + 0x46, 0x92, 0x92, 0xd1, 0x32, 0x9c, 0x83, 0xa9, 0xc2, 0xff, 0x7e, 0x7e, 0x1e, 0xb3, + 0xf6, 0x97, 0x83, 0xa3, + ], + Bitcoin::InputValuesHash => [ + 0x29, 0x83, 0x9e, 0xad, 0x0e, 0xb0, 0x3f, 0xe4, 0x65, 0x42, 0xe3, 0x6d, 0x71, 0xe9, + 0xe6, 0xaf, 0xdf, 0x96, 0x93, 0x01, 0x53, 0x3d, 0x74, 0xee, 0x09, 0x9b, 0x12, 0x66, + 0xa2, 0x50, 0x55, 0x2c, + ], + Bitcoin::InputsHash => [ + 0xab, 0xbf, 0xe1, 0xc7, 0xd1, 0x15, 0xc4, 0x19, 0x1f, 0x50, 0x48, 0x39, 0xf9, 0x8c, + 0x3f, 0x20, 0x42, 0x2b, 0x84, 0xe7, 0xfa, 0x14, 0xda, 0x14, 0x02, 0x89, 0x6c, 0x4d, + 0x98, 0xbf, 0xa8, 0xd8, + ], + Bitcoin::InternalKey => [ + 0x37, 0x48, 0x36, 0x99, 0x28, 0x10, 0x02, 0x2f, 0x88, 0xe0, 0x14, 0x5b, 0xca, 0xd7, + 0x7f, 0x4a, 0x84, 0x91, 0xfa, 0x80, 0x83, 0xcb, 0x51, 0xc3, 0x01, 0xfc, 0xf7, 0xa1, + 0x34, 0x78, 0xc2, 0xcc, + ], + Bitcoin::IsOne16 => [ + 0x1b, 0xd3, 0xa2, 0x53, 0xdb, 0x24, 0x3f, 0xca, 0x45, 0x53, 0x37, 0x99, 0xfe, 0x91, + 0x48, 0x38, 0xc3, 0x8e, 0x38, 0x06, 0xb1, 0x2b, 0xd7, 0xe8, 0x5c, 0xa7, 0x12, 0x07, + 0xa8, 0x84, 0x62, 0xb0, + ], + Bitcoin::IsOne32 => [ + 0x78, 0xb1, 0xba, 0xe0, 0x99, 0xec, 0x9c, 0x59, 0xcb, 0xf4, 0x12, 0x62, 0x51, 0xc1, + 0xe9, 0x67, 0x41, 0xb3, 0x50, 0xd5, 0x63, 0xbd, 0x74, 0xd5, 0x44, 0x18, 0xba, 0x78, + 0xeb, 0xea, 0x25, 0xbf, + ], + Bitcoin::IsOne64 => [ + 0x81, 0x7b, 0x95, 0xa5, 0x39, 0x5e, 0xfb, 0xec, 0xbb, 0x85, 0x15, 0xa5, 0x5b, 0x3f, + 0xfe, 0x1a, 0x4d, 0x7b, 0xac, 0x6e, 0x23, 0xdb, 0xca, 0x54, 0xad, 0x60, 0x66, 0x66, + 0x2f, 0x20, 0x2b, 0x93, + ], + Bitcoin::IsOne8 => [ + 0xf6, 0x92, 0x54, 0x91, 0xd3, 0x4b, 0x37, 0x74, 0x2c, 0xb0, 0x8d, 0xec, 0x19, 0x3e, + 0xe5, 0x12, 0x5f, 0x93, 0x3c, 0xad, 0xcc, 0x23, 0x2a, 0xed, 0xee, 0xdb, 0x57, 0x2d, + 0x12, 0x60, 0xff, 0xd5, + ], + Bitcoin::IsZero16 => [ + 0x1b, 0xa7, 0x21, 0x3b, 0x58, 0x8b, 0xe0, 0x92, 0xb4, 0x46, 0x59, 0x9c, 0x2a, 0x60, + 0xff, 0x54, 0x67, 0x13, 0x6a, 0x79, 0x75, 0x99, 0x61, 0x0b, 0xd7, 0xa5, 0xf1, 0x78, + 0x04, 0xe3, 0x2a, 0x2c, + ], + Bitcoin::IsZero32 => [ + 0x5e, 0xbf, 0x14, 0x66, 0x93, 0xf0, 0xe2, 0xd2, 0xf9, 0x36, 0x1b, 0x47, 0x6d, 0xba, + 0x34, 0x85, 0x8b, 0x83, 0x2d, 0x66, 0xfa, 0xcf, 0x71, 0x3b, 0xfb, 0x32, 0xc3, 0xbb, + 0x8d, 0xb9, 0xee, 0xbf, + ], + Bitcoin::IsZero64 => [ + 0x19, 0xab, 0x9a, 0xc0, 0xcf, 0x42, 0x66, 0x82, 0x19, 0xba, 0x6c, 0xb8, 0x97, 0xe4, + 0x87, 0xfe, 0x36, 0x80, 0x93, 0x7f, 0xff, 0xa8, 0xd2, 0x03, 0x51, 0x1d, 0xb7, 0x5d, + 0xbb, 0x10, 0xc7, 0xe5, + ], + Bitcoin::IsZero8 => [ + 0x8e, 0xff, 0x62, 0x08, 0x44, 0x07, 0xe9, 0xaf, 0xd5, 0x40, 0xf3, 0x18, 0xf6, 0x6b, + 0xcf, 0x31, 0xdf, 0x1d, 0x42, 0xa5, 0xc1, 0x61, 0xca, 0xe3, 0x5a, 0x29, 0x48, 0x18, + 0x0c, 0xa2, 0xaa, 0x2e, + ], + Bitcoin::Le16 => [ + 0x01, 0x67, 0x05, 0xa7, 0xd7, 0xdc, 0xe1, 0xaf, 0xc6, 0x3e, 0xab, 0x84, 0x20, 0x3f, + 0x5f, 0x42, 0xd6, 0xb6, 0xbb, 0xad, 0x75, 0xce, 0xe3, 0x8c, 0xec, 0x5a, 0x51, 0x5b, + 0x59, 0x97, 0x48, 0x9f, + ], + Bitcoin::Le32 => [ + 0x53, 0x51, 0xfc, 0x5d, 0xeb, 0xe5, 0xb2, 0x98, 0xad, 0x70, 0x57, 0xe4, 0xa5, 0xa7, + 0x6a, 0x3b, 0x9c, 0x65, 0x8a, 0xcd, 0xe7, 0xd1, 0xbb, 0x52, 0xe5, 0x88, 0x9c, 0xa1, + 0xe3, 0x8f, 0x5e, 0xfb, + ], + Bitcoin::Le64 => [ + 0xae, 0x2d, 0xe1, 0xe0, 0xcf, 0x73, 0x0d, 0x1d, 0xcc, 0x96, 0xd7, 0xcc, 0xfe, 0x71, + 0x16, 0x8a, 0x24, 0x0d, 0xea, 0xf8, 0x04, 0x61, 0x5a, 0x7b, 0xa9, 0x20, 0xdc, 0x16, + 0xfd, 0x6e, 0xa4, 0x5f, + ], + Bitcoin::Le8 => [ + 0xaf, 0x29, 0xf6, 0x16, 0x8e, 0xbd, 0xc0, 0x9e, 0xfb, 0xe0, 0xe6, 0x39, 0xcb, 0x75, + 0x0b, 0x12, 0x05, 0x78, 0x8f, 0x90, 0x21, 0xd6, 0x66, 0xef, 0xce, 0xfe, 0x13, 0xf1, + 0x2f, 0x96, 0x71, 0xf0, + ], + Bitcoin::LeftExtend16_32 => [ + 0x28, 0x99, 0x97, 0xfb, 0xa1, 0xfa, 0xe7, 0xec, 0x1c, 0x45, 0x31, 0xc5, 0x0b, 0xbf, + 0x86, 0x71, 0xb8, 0x97, 0x13, 0x9b, 0xdd, 0x3a, 0xad, 0x97, 0xa3, 0x76, 0x39, 0x57, + 0x4a, 0x04, 0x7c, 0x80, + ], + Bitcoin::LeftExtend16_64 => [ + 0x5d, 0xff, 0x21, 0xf6, 0xe6, 0x12, 0x47, 0x75, 0xc5, 0x78, 0xea, 0xf4, 0x85, 0x5c, + 0x0b, 0x01, 0x64, 0xf7, 0x87, 0x9b, 0x17, 0x60, 0xf9, 0x02, 0x7c, 0xb5, 0x0f, 0x7b, + 0x5a, 0xcb, 0x49, 0x18, + ], + Bitcoin::LeftExtend1_16 => [ + 0x8c, 0x87, 0xd7, 0x56, 0xd1, 0x4b, 0xd3, 0xd9, 0xa7, 0x86, 0x90, 0x81, 0x29, 0x12, + 0xb8, 0x94, 0x29, 0xc0, 0x17, 0x1a, 0x41, 0x10, 0x3a, 0x58, 0xc6, 0xe9, 0xf2, 0x25, + 0x14, 0x1a, 0x02, 0x22, + ], + Bitcoin::LeftExtend1_32 => [ + 0xc8, 0xf1, 0x54, 0xd4, 0x6d, 0x2e, 0x78, 0x95, 0xda, 0x1b, 0x33, 0xc2, 0xb3, 0x15, + 0xe6, 0xd4, 0xd4, 0x85, 0x1d, 0xde, 0xe2, 0x8a, 0xef, 0x8b, 0x70, 0x70, 0x90, 0x61, + 0x6b, 0xc7, 0xee, 0xa0, + ], + Bitcoin::LeftExtend1_64 => [ + 0xa3, 0x40, 0x4d, 0xf6, 0x8c, 0xc9, 0x20, 0x75, 0x4c, 0x6e, 0x18, 0x47, 0x20, 0x7d, + 0xb3, 0x84, 0x5d, 0x11, 0xc7, 0x49, 0x09, 0xd0, 0x7c, 0xa8, 0x2a, 0xd1, 0xf1, 0xcc, + 0x67, 0xbf, 0x3a, 0x9b, + ], + Bitcoin::LeftExtend1_8 => [ + 0x3b, 0xca, 0x33, 0x97, 0xb8, 0x3c, 0x27, 0xf3, 0x63, 0x16, 0xf8, 0xb8, 0xb3, 0x03, + 0x35, 0x0a, 0xfe, 0x8b, 0xa0, 0x07, 0x8f, 0x77, 0xf1, 0xd4, 0x2a, 0x9b, 0x78, 0x92, + 0xb2, 0xa4, 0xdb, 0xee, + ], + Bitcoin::LeftExtend32_64 => [ + 0x42, 0xcb, 0xeb, 0x01, 0xfe, 0x7a, 0x3a, 0x6d, 0xd3, 0x31, 0x1d, 0xb3, 0x36, 0x5f, + 0x91, 0xe5, 0xc1, 0x18, 0xc7, 0xe4, 0x1f, 0x03, 0xaa, 0xe7, 0xb2, 0x83, 0xde, 0x6b, + 0xb9, 0x05, 0x3e, 0x6b, + ], + Bitcoin::LeftExtend8_16 => [ + 0x9a, 0x57, 0xc9, 0x6a, 0xf5, 0x71, 0x48, 0x96, 0xb7, 0x24, 0xde, 0x45, 0xeb, 0x9f, + 0xe9, 0x7d, 0x73, 0x69, 0x7d, 0xe6, 0x2e, 0x8d, 0xad, 0x78, 0x71, 0xeb, 0x58, 0xf5, + 0x81, 0xa0, 0x11, 0xbb, + ], + Bitcoin::LeftExtend8_32 => [ + 0xd6, 0x24, 0xbd, 0x40, 0x40, 0x76, 0x3c, 0xb1, 0x3c, 0xca, 0xd4, 0x98, 0xf5, 0x3d, + 0x38, 0xc1, 0x12, 0xf1, 0x92, 0x95, 0x68, 0x26, 0xda, 0xfe, 0xc9, 0xac, 0x91, 0x65, + 0x79, 0x2b, 0x34, 0x7a, + ], + Bitcoin::LeftExtend8_64 => [ + 0x9d, 0xc4, 0xa2, 0x05, 0x4d, 0x5d, 0x26, 0x34, 0x2a, 0xc5, 0x90, 0xb6, 0x67, 0xf1, + 0xb0, 0x1d, 0xf5, 0x4f, 0xd0, 0xcd, 0xaa, 0x40, 0x5e, 0xf8, 0xcb, 0xb7, 0x6f, 0xd8, + 0xf9, 0xb0, 0x0e, 0xe5, + ], + Bitcoin::LeftPadHigh16_32 => [ + 0x05, 0x45, 0xc4, 0xb5, 0x8f, 0x00, 0x4a, 0x21, 0xe7, 0xf1, 0x29, 0xa4, 0xc0, 0x51, + 0x89, 0x97, 0x17, 0x14, 0xca, 0xa2, 0xd9, 0x1d, 0x1d, 0xfd, 0x5f, 0xad, 0x3e, 0x63, + 0x24, 0x49, 0x94, 0x28, + ], + Bitcoin::LeftPadHigh16_64 => [ + 0x1c, 0x61, 0xd0, 0x3d, 0x49, 0x3b, 0xbd, 0x05, 0x82, 0x22, 0x59, 0xd1, 0x73, 0x0a, + 0x8d, 0x7a, 0x5f, 0x55, 0xb0, 0xba, 0x2a, 0x93, 0x91, 0xa6, 0xc8, 0x88, 0x1e, 0xb4, + 0x75, 0x04, 0xaf, 0xfd, + ], + Bitcoin::LeftPadHigh1_16 => [ + 0x56, 0xfd, 0xf5, 0x4f, 0x1f, 0xcd, 0x19, 0x82, 0x5e, 0x7c, 0x3b, 0x79, 0x06, 0x15, + 0xc1, 0xd3, 0xfe, 0x82, 0x88, 0x6c, 0x74, 0x7b, 0xc4, 0x87, 0x59, 0x87, 0xf5, 0x05, + 0x16, 0x94, 0x5f, 0xb3, + ], + Bitcoin::LeftPadHigh1_32 => [ + 0xdb, 0x33, 0x05, 0x9a, 0xbe, 0x2d, 0x43, 0x2d, 0x67, 0xf4, 0x2b, 0x1e, 0x94, 0x27, + 0x56, 0xdc, 0xa6, 0xcd, 0xe6, 0x37, 0x85, 0xe5, 0xbd, 0x43, 0x0d, 0xc8, 0xf4, 0xae, + 0xfc, 0x31, 0xb8, 0xdf, + ], + Bitcoin::LeftPadHigh1_64 => [ + 0x1d, 0x66, 0x9c, 0x1f, 0xa5, 0xfd, 0x3e, 0xf6, 0x6e, 0xb4, 0xae, 0xf6, 0x18, 0x6e, + 0x3e, 0xc1, 0x36, 0xee, 0x75, 0x84, 0x10, 0xdf, 0x3e, 0xde, 0xbb, 0x31, 0xbf, 0x26, + 0xd4, 0x56, 0x20, 0x51, + ], + Bitcoin::LeftPadHigh1_8 => [ + 0x9a, 0x1b, 0xad, 0x3d, 0x8a, 0xb9, 0x00, 0x30, 0x3d, 0xa2, 0x02, 0xf0, 0xf4, 0x49, + 0xf0, 0xb7, 0xe6, 0x79, 0x5c, 0x2a, 0x7c, 0x12, 0x17, 0x18, 0x80, 0x0a, 0xc4, 0x0c, + 0x87, 0xd8, 0x27, 0x29, + ], + Bitcoin::LeftPadHigh32_64 => [ + 0x39, 0x20, 0xcc, 0x4b, 0x33, 0xba, 0xf7, 0xef, 0xa5, 0xca, 0xf9, 0xe7, 0x80, 0x01, + 0x44, 0x67, 0x06, 0xf6, 0xe4, 0xe8, 0x26, 0x56, 0x74, 0x05, 0x7e, 0xed, 0x87, 0x17, + 0x78, 0x08, 0x9e, 0x94, + ], + Bitcoin::LeftPadHigh8_16 => [ + 0x75, 0x2e, 0x29, 0xf2, 0xfe, 0x2b, 0xec, 0xc3, 0xf6, 0x62, 0x90, 0xfe, 0x44, 0xe1, + 0xae, 0xb3, 0x78, 0x41, 0x80, 0xdd, 0x90, 0x5e, 0x19, 0x62, 0x4e, 0x19, 0x5f, 0x21, + 0x6c, 0x07, 0xc5, 0x7c, + ], + Bitcoin::LeftPadHigh8_32 => [ + 0xbe, 0xe8, 0x8f, 0x1c, 0x8c, 0x30, 0x63, 0x4c, 0x6e, 0x95, 0xca, 0xcc, 0x0e, 0x9a, + 0xdd, 0x49, 0x41, 0x32, 0x21, 0xfd, 0xab, 0xbd, 0x8d, 0x4c, 0x0a, 0xcc, 0xf1, 0xca, + 0xe2, 0xd2, 0xa7, 0x78, + ], + Bitcoin::LeftPadHigh8_64 => [ + 0x39, 0x23, 0x87, 0xf6, 0xdc, 0x04, 0xbf, 0xc5, 0x4d, 0xd4, 0xa2, 0x81, 0x19, 0xc8, + 0x1d, 0x15, 0xd7, 0xa5, 0x80, 0x9b, 0xbf, 0x62, 0xfc, 0xc2, 0x7d, 0xc5, 0x5c, 0xf8, + 0x2e, 0x9e, 0x5e, 0xe6, + ], + Bitcoin::LeftPadLow16_32 => [ + 0x4f, 0xfd, 0x6c, 0xb3, 0x40, 0x23, 0x05, 0x82, 0x1d, 0xd8, 0x99, 0x70, 0xd7, 0x22, + 0xd1, 0xc1, 0x3f, 0x1f, 0xf7, 0x73, 0x9f, 0xd5, 0xf3, 0x4b, 0xa1, 0x6c, 0x73, 0x65, + 0x3b, 0x04, 0x47, 0x18, + ], + Bitcoin::LeftPadLow16_64 => [ + 0xbe, 0x3e, 0xb8, 0x5c, 0x5f, 0x19, 0x91, 0x53, 0xfb, 0x1c, 0x46, 0x13, 0x5c, 0x04, + 0xfa, 0xcf, 0xdb, 0xc6, 0xf1, 0xb7, 0x8c, 0x2b, 0xb7, 0xae, 0x75, 0xf1, 0x55, 0xbc, + 0x3e, 0xa0, 0x8a, 0x8b, + ], + Bitcoin::LeftPadLow1_16 => [ + 0xdd, 0xd0, 0x15, 0x3e, 0xf3, 0x12, 0xf2, 0x8d, 0x64, 0x2c, 0xd9, 0x4c, 0xb3, 0x6f, + 0x32, 0x97, 0x75, 0xb0, 0x0d, 0xa8, 0x8f, 0xcc, 0xc4, 0xce, 0xa1, 0xba, 0xe8, 0x9b, + 0xad, 0x13, 0xbe, 0x6b, + ], + Bitcoin::LeftPadLow1_32 => [ + 0xbc, 0x9d, 0x31, 0x14, 0x35, 0x46, 0x7b, 0xc0, 0x8b, 0x10, 0x08, 0xe5, 0x47, 0xaa, + 0x7a, 0x07, 0xe8, 0x3b, 0x15, 0x14, 0x68, 0x61, 0xa9, 0xe9, 0xb5, 0x41, 0x3b, 0xe3, + 0x1b, 0x82, 0xb6, 0xb5, + ], + Bitcoin::LeftPadLow1_64 => [ + 0x8b, 0xc6, 0x2f, 0x93, 0x60, 0x89, 0x4e, 0x48, 0xa4, 0x73, 0x2c, 0x95, 0x76, 0x9c, + 0x8f, 0xaa, 0xe9, 0x56, 0x8f, 0x9d, 0xe8, 0xe8, 0xa2, 0x00, 0x83, 0x6b, 0xd4, 0xe5, + 0x0b, 0x02, 0xcd, 0x84, + ], + Bitcoin::LeftPadLow1_8 => [ + 0xf6, 0x6c, 0xd7, 0xa4, 0x2b, 0x32, 0x0f, 0x97, 0xc1, 0x9f, 0x2d, 0x54, 0x16, 0xcd, + 0xe0, 0x87, 0x25, 0x3a, 0x27, 0x91, 0x29, 0x65, 0xd5, 0x5b, 0x65, 0x71, 0x2a, 0xd8, + 0x09, 0xb8, 0x3c, 0xfd, + ], + Bitcoin::LeftPadLow32_64 => [ + 0xa3, 0x3a, 0x07, 0xb9, 0xbc, 0xf9, 0x45, 0xf6, 0x4f, 0x07, 0x2b, 0x8b, 0x9c, 0x91, + 0x48, 0x39, 0xa5, 0x85, 0xbf, 0xa9, 0xf3, 0x42, 0x5b, 0x14, 0x77, 0x54, 0xab, 0x55, + 0xa8, 0xba, 0x6c, 0x0f, + ], + Bitcoin::LeftPadLow8_16 => [ + 0x2a, 0x51, 0x6a, 0x79, 0x3f, 0x97, 0xc4, 0x5f, 0xea, 0xeb, 0xb1, 0xcc, 0x96, 0x1a, + 0x15, 0x6d, 0x80, 0x35, 0x49, 0x28, 0x79, 0x78, 0x9d, 0x6e, 0xdc, 0x9b, 0x57, 0xe7, + 0x2f, 0x11, 0xe5, 0xb5, + ], + Bitcoin::LeftPadLow8_32 => [ + 0x1a, 0xa2, 0xe4, 0xd0, 0x4b, 0xd6, 0x90, 0x55, 0x12, 0x3d, 0xd6, 0xaa, 0xfe, 0x27, + 0xf5, 0xf7, 0xf4, 0x7c, 0x3b, 0x30, 0x90, 0xc3, 0xa8, 0x27, 0x29, 0x73, 0xfe, 0x2f, + 0x75, 0x16, 0x5a, 0x5d, + ], + Bitcoin::LeftPadLow8_64 => [ + 0xb6, 0x52, 0xe0, 0xae, 0xdd, 0x0f, 0x4f, 0x66, 0xf6, 0xa1, 0xcd, 0x4b, 0xeb, 0xf8, + 0x75, 0xff, 0x7b, 0xbb, 0x2d, 0xd9, 0x9b, 0x06, 0x5b, 0x2d, 0xb5, 0xb5, 0xb5, 0x90, + 0x53, 0x61, 0x61, 0x4d, + ], + Bitcoin::LeftRotate16 => [ + 0x8a, 0x12, 0xff, 0x6a, 0x4b, 0xf2, 0x37, 0x15, 0xdd, 0x3b, 0x76, 0x6b, 0x99, 0x67, + 0xc7, 0x15, 0x8b, 0xf3, 0xed, 0x74, 0xb3, 0xdc, 0xe7, 0x30, 0xaf, 0xfc, 0xf4, 0x66, + 0x16, 0x47, 0x8e, 0xcb, + ], + Bitcoin::LeftRotate32 => [ + 0x2f, 0xcb, 0x52, 0x17, 0x2f, 0xd4, 0x9c, 0x36, 0x21, 0x7d, 0xea, 0xe0, 0xc2, 0x37, + 0x14, 0x32, 0x1f, 0x69, 0xf5, 0xf1, 0x3f, 0x6e, 0x94, 0xb2, 0xbd, 0xfe, 0x4b, 0x74, + 0x88, 0x69, 0x7f, 0xd5, + ], + Bitcoin::LeftRotate64 => [ + 0x72, 0xcc, 0xd6, 0xc4, 0xe5, 0xfd, 0xf6, 0x8a, 0xd3, 0x3b, 0x6d, 0x58, 0xfb, 0x37, + 0x2b, 0xe4, 0xf1, 0xb8, 0x0e, 0xef, 0x70, 0x1f, 0x9d, 0xb7, 0xe5, 0xed, 0x85, 0x9b, + 0x96, 0xb3, 0x62, 0x09, + ], + Bitcoin::LeftRotate8 => [ + 0x1a, 0xae, 0xc9, 0xf3, 0xb7, 0x5d, 0x89, 0xf8, 0x2a, 0x64, 0x98, 0x45, 0x8c, 0x44, + 0x83, 0xcb, 0x9a, 0x78, 0x44, 0x89, 0x05, 0xf3, 0xbb, 0x39, 0xfc, 0x08, 0x3f, 0x14, + 0xdd, 0xcc, 0xdc, 0x9b, + ], + Bitcoin::LeftShift16 => [ + 0x37, 0xac, 0x63, 0x87, 0x21, 0xab, 0x09, 0x7a, 0x96, 0x02, 0xba, 0x4d, 0xc9, 0x2e, + 0x19, 0xb5, 0xa1, 0x85, 0xb2, 0x32, 0x9f, 0x1a, 0xa6, 0x00, 0xcb, 0x9c, 0x15, 0x61, + 0x5a, 0x00, 0x81, 0xf8, + ], + Bitcoin::LeftShift32 => [ + 0x8e, 0x3c, 0x47, 0x3b, 0x28, 0x67, 0xf1, 0x54, 0x73, 0xb3, 0x63, 0x2d, 0xbf, 0xdd, + 0x99, 0x77, 0x55, 0x51, 0xef, 0x5f, 0x9d, 0xba, 0x47, 0x5e, 0x9c, 0xf0, 0x90, 0x75, + 0x80, 0x70, 0xf0, 0xbf, + ], + Bitcoin::LeftShift64 => [ + 0x50, 0x49, 0xf4, 0x04, 0xd1, 0x73, 0x29, 0x9a, 0x3a, 0xee, 0x04, 0xcb, 0xc2, 0x46, + 0x2c, 0xb3, 0x4c, 0x80, 0x69, 0xc1, 0xb6, 0xdb, 0x7f, 0xed, 0x0e, 0x38, 0x8f, 0xf6, + 0xd4, 0x67, 0xa0, 0x86, + ], + Bitcoin::LeftShift8 => [ + 0x83, 0x2f, 0x63, 0x6e, 0x63, 0x44, 0x6c, 0xef, 0xba, 0x8d, 0xf3, 0xa4, 0x6e, 0xfb, + 0xb3, 0x61, 0x59, 0xc1, 0x88, 0x54, 0x56, 0x77, 0x68, 0xad, 0xc9, 0xb8, 0xdb, 0x8a, + 0x07, 0x49, 0x2a, 0x58, + ], + Bitcoin::LeftShiftWith16 => [ + 0xe6, 0x47, 0x62, 0xb1, 0xc5, 0xe6, 0x14, 0x4a, 0x71, 0x81, 0xea, 0xaf, 0x4d, 0xd9, + 0xd9, 0xb3, 0xaa, 0x43, 0xaa, 0xd9, 0x55, 0x15, 0x81, 0x98, 0xee, 0x20, 0x90, 0xeb, + 0xd9, 0xe4, 0xbb, 0x0d, + ], + Bitcoin::LeftShiftWith32 => [ + 0x64, 0x76, 0xba, 0x89, 0x95, 0xf8, 0x3b, 0x5e, 0xe1, 0xeb, 0xc2, 0x2c, 0xb4, 0x16, + 0xf5, 0x58, 0x15, 0x7f, 0x2e, 0x57, 0x69, 0x9a, 0x5c, 0xaf, 0x84, 0x29, 0x1f, 0xf3, + 0xfc, 0x14, 0x83, 0xc1, + ], + Bitcoin::LeftShiftWith64 => [ + 0x06, 0xb8, 0xfe, 0x67, 0xcf, 0xc5, 0x86, 0x32, 0x23, 0x97, 0xaf, 0x02, 0x4f, 0xde, + 0x29, 0x11, 0xf7, 0xae, 0x87, 0xa0, 0x6a, 0xbc, 0x6c, 0x59, 0x30, 0x93, 0x40, 0x97, + 0x15, 0x69, 0x1c, 0x19, + ], + Bitcoin::LeftShiftWith8 => [ + 0xb1, 0xac, 0x9c, 0x68, 0x23, 0x58, 0xc4, 0x5b, 0xab, 0xf4, 0x06, 0x95, 0x56, 0xfe, + 0x6e, 0x37, 0x5b, 0x45, 0x54, 0xde, 0x9e, 0x10, 0xc5, 0x91, 0xc1, 0x48, 0x39, 0x84, + 0x47, 0xac, 0x18, 0x0e, + ], + Bitcoin::Leftmost16_1 => [ + 0x5b, 0xff, 0x4c, 0xb5, 0x58, 0x76, 0x05, 0xd5, 0xfd, 0x05, 0x9d, 0x77, 0x33, 0x49, + 0x0d, 0x7d, 0xd2, 0x2d, 0x27, 0x8b, 0x59, 0x9e, 0x06, 0xd3, 0xb5, 0xdb, 0x6d, 0x79, + 0xf3, 0xc9, 0x23, 0xbd, + ], + Bitcoin::Leftmost16_2 => [ + 0x53, 0x6d, 0xb4, 0x86, 0xb1, 0x22, 0x27, 0xe5, 0xb0, 0x9d, 0x6f, 0xeb, 0xd2, 0x77, + 0x6b, 0x1a, 0xbb, 0xc6, 0x74, 0x99, 0x96, 0xaa, 0x78, 0x3e, 0xd7, 0xe5, 0x37, 0x44, + 0x6b, 0xbf, 0x15, 0x1b, + ], + Bitcoin::Leftmost16_4 => [ + 0xf2, 0x32, 0x13, 0x67, 0x49, 0x6d, 0x1a, 0x77, 0xee, 0xa0, 0x5e, 0x95, 0xe3, 0xb8, + 0x07, 0xd3, 0xba, 0x5f, 0x05, 0x13, 0x6c, 0xe0, 0x91, 0x2a, 0xe7, 0x17, 0xc8, 0x3a, + 0x02, 0x61, 0xb2, 0xe1, + ], + Bitcoin::Leftmost16_8 => [ + 0x24, 0x14, 0x8e, 0xf3, 0x0a, 0xd4, 0x3e, 0xbe, 0xc5, 0x63, 0x72, 0x83, 0x22, 0xc3, + 0xce, 0x11, 0x79, 0xae, 0xd7, 0xa7, 0x82, 0x16, 0xd7, 0x99, 0x88, 0x8b, 0xf1, 0x8b, + 0x39, 0x57, 0x06, 0x71, + ], + Bitcoin::Leftmost32_1 => [ + 0xb9, 0x2e, 0x15, 0xec, 0x5d, 0xa0, 0x7e, 0xe8, 0xed, 0x39, 0x7c, 0xb9, 0xf6, 0x0a, + 0x4c, 0x5d, 0xa8, 0x38, 0x62, 0x93, 0x1a, 0x90, 0x73, 0x59, 0xd2, 0x7c, 0xae, 0xb6, + 0x0e, 0x60, 0xef, 0x8a, + ], + Bitcoin::Leftmost32_16 => [ + 0xad, 0xb0, 0x27, 0xb2, 0x06, 0x56, 0x73, 0x58, 0x53, 0x26, 0xc0, 0x1c, 0x3b, 0xe2, + 0xfa, 0xeb, 0x38, 0x63, 0x49, 0xe2, 0x90, 0x09, 0xb6, 0x57, 0x6e, 0xe5, 0x3a, 0x85, + 0x55, 0x12, 0xcc, 0x67, + ], + Bitcoin::Leftmost32_2 => [ + 0xb7, 0x5b, 0x31, 0xc5, 0x59, 0x12, 0x3d, 0x3d, 0x63, 0x35, 0x98, 0x59, 0x32, 0xb8, + 0xb1, 0xb2, 0x66, 0x4e, 0xe5, 0x97, 0xaf, 0xb1, 0x5f, 0xd1, 0xa4, 0x99, 0xd0, 0x07, + 0xcf, 0xf2, 0x75, 0x5c, + ], + Bitcoin::Leftmost32_4 => [ + 0xcb, 0x75, 0x7e, 0x47, 0x1e, 0x9d, 0x9a, 0x40, 0x77, 0x1d, 0xd1, 0xcf, 0x3c, 0x1b, + 0xf5, 0xd2, 0x3c, 0x17, 0xed, 0x68, 0xcd, 0xbd, 0xb2, 0x2d, 0xad, 0xa1, 0x7a, 0x73, + 0xa7, 0xb4, 0x07, 0xb2, + ], + Bitcoin::Leftmost32_8 => [ + 0xbf, 0xc5, 0x34, 0xb4, 0x9e, 0x06, 0x00, 0x6e, 0x19, 0xf3, 0xb6, 0x8e, 0x0a, 0x02, + 0x39, 0x1c, 0x14, 0x9f, 0x9a, 0x34, 0xf4, 0x3e, 0xe3, 0x6b, 0x9f, 0x1d, 0x79, 0xa7, + 0x9c, 0x9a, 0x9e, 0x4d, + ], + Bitcoin::Leftmost64_1 => [ + 0x1b, 0x1d, 0x4e, 0x92, 0x38, 0x4b, 0x8b, 0x15, 0x9b, 0xa0, 0xd8, 0x06, 0x55, 0x8b, + 0x54, 0x94, 0xe3, 0x61, 0x4e, 0xed, 0xe0, 0x3c, 0x94, 0x6c, 0xea, 0xf1, 0x41, 0xf3, + 0x6f, 0x01, 0xc7, 0x9b, + ], + Bitcoin::Leftmost64_16 => [ + 0x0d, 0xeb, 0xdc, 0x1a, 0xa0, 0x43, 0x30, 0x34, 0x42, 0xe1, 0x8f, 0xe0, 0x3d, 0x8a, + 0x99, 0xd2, 0xbe, 0x6b, 0xb8, 0xa8, 0x69, 0x1a, 0xba, 0x19, 0x56, 0x62, 0x59, 0xe3, + 0x67, 0x60, 0xf7, 0xf9, + ], + Bitcoin::Leftmost64_2 => [ + 0x83, 0x9e, 0xcf, 0xa3, 0x18, 0x70, 0x5c, 0x25, 0x3d, 0x0c, 0x52, 0xff, 0x27, 0xb9, + 0x04, 0x64, 0x92, 0x3d, 0x8c, 0x0e, 0x55, 0xa8, 0x2c, 0x0d, 0x16, 0x24, 0x02, 0x39, + 0x7f, 0x36, 0x53, 0x78, + ], + Bitcoin::Leftmost64_32 => [ + 0x92, 0x91, 0x97, 0xa9, 0x64, 0x28, 0x61, 0xa7, 0x7b, 0xd6, 0x62, 0x58, 0x05, 0x11, + 0x97, 0xbe, 0x86, 0xff, 0x08, 0xe6, 0x28, 0xe3, 0x0f, 0x7e, 0xfc, 0xbd, 0x2c, 0x4d, + 0xfe, 0xcf, 0x9b, 0xdd, + ], + Bitcoin::Leftmost64_4 => [ + 0x02, 0xbd, 0x16, 0x45, 0xd5, 0x75, 0xf0, 0x4b, 0x3c, 0xbb, 0xaa, 0x6d, 0x8c, 0xa9, + 0x86, 0xef, 0x1c, 0x8c, 0xd0, 0xff, 0xe1, 0x65, 0x89, 0x03, 0x93, 0x9d, 0xb7, 0x64, + 0x56, 0x2a, 0x26, 0x47, + ], + Bitcoin::Leftmost64_8 => [ + 0x35, 0x58, 0xb3, 0x1b, 0x3b, 0x6e, 0x8f, 0x9a, 0x28, 0x8f, 0xdc, 0x72, 0xf2, 0x46, + 0x02, 0xbe, 0x05, 0x58, 0x19, 0x10, 0x71, 0xa5, 0x4a, 0x99, 0xfa, 0x03, 0xa0, 0x25, + 0x34, 0xf8, 0x80, 0x05, + ], + Bitcoin::Leftmost8_1 => [ + 0x28, 0x65, 0xef, 0xd4, 0x29, 0x83, 0xcb, 0xe3, 0xf8, 0x16, 0x37, 0x3a, 0xb8, 0xa8, + 0x82, 0xf1, 0x83, 0x17, 0x19, 0x4d, 0xc1, 0xab, 0xa3, 0x8d, 0xa0, 0x30, 0x4b, 0x8c, + 0x14, 0x4b, 0x1d, 0xa4, + ], + Bitcoin::Leftmost8_2 => [ + 0x51, 0x96, 0x4c, 0xb0, 0x74, 0x05, 0xa8, 0xd2, 0x3d, 0x21, 0x87, 0x74, 0x1a, 0x9e, + 0xd3, 0x04, 0xbc, 0xb4, 0x69, 0xd9, 0xac, 0x9f, 0x5d, 0x92, 0x55, 0x82, 0x5c, 0xfd, + 0xa3, 0xda, 0x07, 0xc0, + ], + Bitcoin::Leftmost8_4 => [ + 0x88, 0x3c, 0x94, 0xf8, 0xa2, 0x6c, 0xda, 0xb7, 0xbc, 0x5c, 0xd6, 0x31, 0xe5, 0x22, + 0x55, 0xa8, 0x5e, 0xf6, 0xe0, 0x70, 0x76, 0x64, 0x57, 0xf6, 0x32, 0x1e, 0x2c, 0xcb, + 0x11, 0x9d, 0x9b, 0x2b, + ], + Bitcoin::LinearCombination1 => [ + 0x34, 0x10, 0xa9, 0xee, 0x33, 0x3d, 0xf8, 0xc8, 0xa0, 0x1c, 0x14, 0x11, 0x5b, 0x54, + 0x43, 0x27, 0xe3, 0x24, 0xe2, 0x87, 0xaa, 0x11, 0x07, 0xe0, 0x19, 0x55, 0xbd, 0x20, + 0x50, 0x6e, 0xa9, 0x87, + ], + Bitcoin::LinearVerify1 => [ + 0xdc, 0x66, 0xd3, 0x31, 0xc1, 0x7f, 0x3f, 0xdd, 0xa3, 0x99, 0x46, 0x98, 0x1b, 0x39, + 0xb3, 0x57, 0xd0, 0x55, 0x5c, 0x35, 0x62, 0xec, 0xae, 0x02, 0xaa, 0x2d, 0xad, 0x16, + 0x3e, 0x6c, 0x9a, 0x2e, + ], + Bitcoin::LockTime => [ + 0x9a, 0xe0, 0xac, 0xc3, 0x7b, 0xc2, 0x04, 0x47, 0x79, 0xb0, 0x7c, 0x3d, 0x46, 0x02, + 0xa5, 0xfd, 0xe8, 0xbc, 0x33, 0xf8, 0x79, 0xf6, 0x6b, 0x73, 0x9b, 0x10, 0xf0, 0x1a, + 0xeb, 0x11, 0x54, 0xec, + ], + Bitcoin::Low1 => [ + 0xfe, 0x62, 0x14, 0xf9, 0x67, 0x15, 0x6d, 0xcd, 0xe6, 0xdd, 0x49, 0xfd, 0xc5, 0x5e, + 0xfb, 0x86, 0x50, 0x69, 0xfe, 0xab, 0xff, 0xf0, 0xfe, 0x93, 0x1d, 0xba, 0x85, 0x31, + 0x34, 0xee, 0xd1, 0x30, + ], + Bitcoin::Low16 => [ + 0x74, 0x93, 0xcf, 0x69, 0x8a, 0x48, 0x82, 0xe5, 0xc3, 0x57, 0x9d, 0x06, 0x51, 0x8e, + 0x7e, 0xca, 0x2b, 0x84, 0x28, 0xf6, 0x2e, 0x2b, 0x51, 0x38, 0x02, 0xab, 0xe6, 0x22, + 0x17, 0x0c, 0x20, 0xfe, + ], + Bitcoin::Low32 => [ + 0x36, 0x2d, 0x66, 0xa4, 0xf0, 0xae, 0xb9, 0x65, 0x84, 0xa5, 0x67, 0x57, 0x82, 0x71, + 0xb1, 0xf7, 0xbb, 0xfc, 0xc2, 0xde, 0x0d, 0xcf, 0x95, 0x79, 0x6b, 0x6f, 0x7a, 0x82, + 0x6b, 0x2a, 0x8a, 0xf7, + ], + Bitcoin::Low64 => [ + 0x97, 0x33, 0x23, 0xbc, 0x2b, 0x92, 0xe4, 0x28, 0x04, 0xd2, 0xe4, 0xf5, 0x8b, 0x86, + 0xf6, 0x5b, 0x56, 0xf9, 0x1d, 0xee, 0xb4, 0x81, 0x0e, 0xab, 0x8a, 0x1d, 0xed, 0xa9, + 0x69, 0x7a, 0x08, 0x72, + ], + Bitcoin::Low8 => [ + 0xcd, 0x1a, 0x85, 0x58, 0xef, 0x99, 0xa3, 0x22, 0x60, 0x21, 0x7a, 0x76, 0x49, 0xff, + 0x51, 0x40, 0xda, 0x69, 0xda, 0x70, 0x06, 0x72, 0x69, 0x0b, 0x27, 0x91, 0x7b, 0x07, + 0xd7, 0xc1, 0x4c, 0x67, + ], + Bitcoin::Lt16 => [ + 0x04, 0xac, 0xa8, 0x7e, 0x3e, 0x17, 0xf8, 0x05, 0xa2, 0x1c, 0xf2, 0x91, 0x7a, 0xee, + 0x99, 0x57, 0xb9, 0x50, 0xb2, 0xdb, 0x5d, 0x7a, 0xe5, 0xc8, 0x26, 0xd4, 0xac, 0x2e, + 0xc9, 0x7b, 0x5a, 0x52, + ], + Bitcoin::Lt32 => [ + 0x23, 0xa0, 0xa5, 0xc1, 0x97, 0x74, 0x7e, 0x3a, 0x95, 0x79, 0xe9, 0x0e, 0x0f, 0x22, + 0xf8, 0x4a, 0x29, 0xbf, 0xb5, 0xf0, 0x7b, 0x84, 0xb5, 0x9b, 0x26, 0x68, 0x8a, 0x0c, + 0xd5, 0x9d, 0xfe, 0xbd, + ], + Bitcoin::Lt64 => [ + 0xd2, 0x99, 0x90, 0x1c, 0x7b, 0x5b, 0x3a, 0x59, 0xff, 0xc8, 0xdd, 0x09, 0x54, 0x5a, + 0x32, 0x38, 0x24, 0xb7, 0x79, 0xa9, 0x9b, 0x2d, 0x1a, 0x2f, 0x87, 0x45, 0x2d, 0x9e, + 0x4b, 0xef, 0xaf, 0x30, + ], + Bitcoin::Lt8 => [ + 0xdd, 0x94, 0x41, 0x3b, 0x52, 0x9c, 0x29, 0x8c, 0x16, 0x96, 0xe9, 0xfb, 0x08, 0xe6, + 0x67, 0x67, 0xb3, 0xf8, 0x33, 0x7a, 0xc0, 0x2e, 0x44, 0xb0, 0x68, 0xe9, 0x40, 0x14, + 0xf7, 0xc4, 0x1f, 0x2a, + ], + Bitcoin::Maj1 => [ + 0x0e, 0x6f, 0xb4, 0x0f, 0xe3, 0x1a, 0x3a, 0x52, 0x6b, 0x44, 0xcf, 0x0b, 0x7c, 0x79, + 0x36, 0xc7, 0x77, 0xcb, 0xba, 0x89, 0x65, 0xa7, 0x25, 0x52, 0x32, 0xa7, 0xcf, 0x53, + 0xa9, 0x22, 0x88, 0x5a, + ], + Bitcoin::Maj16 => [ + 0x38, 0x66, 0x9c, 0xe5, 0xe1, 0xe1, 0x71, 0x47, 0x54, 0x00, 0x73, 0x1b, 0xee, 0xb6, + 0x0b, 0xca, 0xfa, 0xd6, 0x66, 0x04, 0xc9, 0x39, 0x40, 0x16, 0x0c, 0xd7, 0x12, 0x88, + 0x35, 0x55, 0x93, 0x42, + ], + Bitcoin::Maj32 => [ + 0x55, 0x54, 0x34, 0x9b, 0x58, 0x4f, 0x5c, 0x38, 0x72, 0xc7, 0xf4, 0xf2, 0x57, 0x82, + 0x9e, 0x2a, 0xe8, 0x22, 0xd8, 0x23, 0x42, 0x4c, 0xeb, 0x95, 0x98, 0xf0, 0x83, 0x18, + 0x58, 0x6a, 0x88, 0x07, + ], + Bitcoin::Maj64 => [ + 0x73, 0x49, 0x03, 0xba, 0xef, 0xb7, 0x1d, 0x5e, 0xa4, 0x16, 0x48, 0xff, 0x43, 0xee, + 0xe6, 0x98, 0x94, 0xe0, 0x63, 0xb3, 0x88, 0xea, 0x42, 0x2f, 0x96, 0xae, 0xde, 0x19, + 0x3c, 0xea, 0xb8, 0x39, + ], + Bitcoin::Maj8 => [ + 0xba, 0x47, 0xa3, 0x99, 0xdc, 0x94, 0x35, 0xe1, 0x8e, 0x08, 0x0a, 0x4e, 0x18, 0xaf, + 0x7c, 0x65, 0x7f, 0xd3, 0x9f, 0x7c, 0xe7, 0xd6, 0x05, 0x2e, 0x46, 0x90, 0x23, 0x11, + 0xb0, 0x78, 0xd5, 0x85, + ], + Bitcoin::Max16 => [ + 0xaa, 0x55, 0x23, 0x74, 0x6c, 0xab, 0xfa, 0xf5, 0x66, 0x8e, 0x9e, 0x07, 0x37, 0xe5, + 0x6b, 0x06, 0x06, 0x22, 0x51, 0xd7, 0xe8, 0x0a, 0xb9, 0xb9, 0x10, 0x6d, 0x8f, 0x17, + 0x2d, 0xc8, 0x4d, 0xd6, + ], + Bitcoin::Max32 => [ + 0x69, 0x22, 0x96, 0x5d, 0x14, 0x43, 0x45, 0xc9, 0x13, 0xec, 0xb3, 0x0b, 0x5e, 0xd4, + 0x7e, 0x88, 0xda, 0xe3, 0x5c, 0x12, 0x21, 0xf2, 0x6a, 0xa9, 0x2d, 0xd5, 0xa5, 0xf6, + 0x15, 0xdb, 0xdb, 0x53, + ], + Bitcoin::Max64 => [ + 0x8a, 0x9b, 0xe9, 0x07, 0xb6, 0xa4, 0xc3, 0x0a, 0xbc, 0xc0, 0xf2, 0x2d, 0x01, 0x30, + 0x74, 0xc2, 0xd5, 0x6b, 0xb0, 0x81, 0xf2, 0x62, 0x18, 0x57, 0xd5, 0x38, 0xcc, 0x97, + 0x13, 0x1e, 0x44, 0x09, + ], + Bitcoin::Max8 => [ + 0xb4, 0xbf, 0x93, 0x23, 0x40, 0x22, 0xe8, 0x60, 0xfe, 0x76, 0xc0, 0xb5, 0x36, 0x0e, + 0x8b, 0x36, 0xff, 0x81, 0xee, 0x67, 0x05, 0xb5, 0x93, 0xac, 0xdf, 0x65, 0x5a, 0xc6, + 0xe6, 0xd7, 0xae, 0xba, + ], + Bitcoin::Median16 => [ + 0x17, 0xe2, 0xe8, 0x7f, 0x07, 0x60, 0xf4, 0xfb, 0x3c, 0x9f, 0xd0, 0xbe, 0xd0, 0x00, + 0xd7, 0x39, 0x73, 0xab, 0x60, 0xf5, 0xe6, 0xc2, 0xc1, 0xfa, 0xb1, 0x7f, 0x9b, 0x23, + 0xee, 0x6a, 0xca, 0x48, + ], + Bitcoin::Median32 => [ + 0x11, 0x60, 0xae, 0x8e, 0xa8, 0xd3, 0x0f, 0x9a, 0x22, 0x33, 0xc4, 0x8e, 0x73, 0x12, + 0x40, 0xf8, 0x44, 0x93, 0xb8, 0x28, 0xb5, 0x57, 0x93, 0xe2, 0xf4, 0x04, 0x2a, 0x19, + 0x82, 0xac, 0x26, 0xa5, + ], + Bitcoin::Median64 => [ + 0xc8, 0x73, 0x73, 0x64, 0x9e, 0x7e, 0x40, 0x50, 0xbb, 0x73, 0x33, 0x7e, 0x08, 0xeb, + 0x5d, 0xe4, 0x52, 0x28, 0xab, 0x86, 0xad, 0x4e, 0x1f, 0x41, 0x91, 0xe5, 0x20, 0x2a, + 0xa6, 0xaf, 0xa0, 0xc5, + ], + Bitcoin::Median8 => [ + 0xc3, 0xb4, 0xe0, 0x89, 0x8a, 0x21, 0xbd, 0xe9, 0x4d, 0xae, 0xd3, 0x7a, 0x20, 0xad, + 0xf9, 0x0c, 0x8b, 0xe5, 0x69, 0x1a, 0x03, 0xb6, 0xa1, 0xe5, 0x56, 0x38, 0x5d, 0x42, + 0xeb, 0x19, 0x02, 0x2b, + ], + Bitcoin::Min16 => [ + 0x5f, 0xd0, 0x05, 0x1e, 0xdb, 0x37, 0x19, 0xa6, 0x45, 0xb2, 0x72, 0xa0, 0x21, 0x08, + 0xef, 0xbb, 0x3d, 0x9b, 0xc0, 0xf6, 0x06, 0x21, 0xbf, 0x5a, 0x5b, 0xab, 0xe1, 0x16, + 0xd5, 0x55, 0xd5, 0x78, + ], + Bitcoin::Min32 => [ + 0xd8, 0x07, 0x82, 0xa2, 0xb5, 0xd8, 0x6a, 0xb6, 0xb9, 0xc9, 0xc3, 0xfb, 0x77, 0x8a, + 0x34, 0x73, 0xf6, 0x00, 0xb1, 0x85, 0xfe, 0x19, 0x25, 0xee, 0x9f, 0xc2, 0xe8, 0x77, + 0x7e, 0xd2, 0x66, 0x01, + ], + Bitcoin::Min64 => [ + 0xc5, 0xc0, 0x9d, 0x50, 0x13, 0x38, 0xe9, 0xa5, 0x12, 0xcf, 0x89, 0x76, 0xca, 0x4b, + 0x32, 0xb9, 0x24, 0x80, 0xbe, 0xf6, 0xae, 0xb2, 0x9d, 0x36, 0xd5, 0x90, 0xd3, 0x5b, + 0xf9, 0xf9, 0xec, 0xe1, + ], + Bitcoin::Min8 => [ + 0x81, 0xd2, 0x1e, 0x12, 0x81, 0x42, 0x38, 0x81, 0x80, 0x2c, 0x0e, 0x0c, 0x7d, 0x22, + 0xbd, 0x34, 0xd2, 0x6b, 0xd1, 0x2a, 0x4c, 0x4f, 0x1b, 0x70, 0x68, 0xe7, 0xe1, 0x83, + 0x82, 0x08, 0x48, 0xe9, + ], + Bitcoin::Modulo16 => [ + 0xb6, 0xb8, 0x7c, 0xfa, 0xb6, 0x7e, 0x55, 0x19, 0xf1, 0xc9, 0x98, 0xda, 0x47, 0x94, + 0x37, 0xbb, 0x79, 0xe6, 0x74, 0xf7, 0x15, 0xe9, 0xa2, 0xe5, 0x38, 0xee, 0xc5, 0xec, + 0x18, 0xe1, 0x8e, 0xa5, + ], + Bitcoin::Modulo32 => [ + 0x8d, 0x48, 0x6e, 0x83, 0x16, 0x54, 0xf3, 0x8a, 0x32, 0xda, 0x35, 0xeb, 0x7b, 0xb6, + 0x55, 0xa6, 0xed, 0x69, 0x4d, 0xbf, 0xa0, 0x58, 0x95, 0x7d, 0x9f, 0x5c, 0xbf, 0xcc, + 0x57, 0x92, 0xc6, 0x5b, + ], + Bitcoin::Modulo64 => [ + 0x14, 0xdf, 0x20, 0xd9, 0x3d, 0xfd, 0xef, 0xe2, 0x55, 0x9b, 0xac, 0x50, 0xed, 0x38, + 0x19, 0x3b, 0xd7, 0x8b, 0xd6, 0x3f, 0x92, 0x9d, 0x86, 0xfb, 0x4f, 0x29, 0xa7, 0xc5, + 0xaf, 0x32, 0x42, 0xad, + ], + Bitcoin::Modulo8 => [ + 0x2c, 0x75, 0x8a, 0x7c, 0x0f, 0x59, 0xe8, 0x00, 0xe9, 0x4f, 0x3d, 0xc5, 0xa0, 0x01, + 0xbf, 0x8e, 0xd9, 0x43, 0x5f, 0x75, 0xa2, 0xd9, 0x69, 0x30, 0xc5, 0x7e, 0xaa, 0xb0, + 0xcd, 0x80, 0xaf, 0x5c, + ], + Bitcoin::Multiply16 => [ + 0x75, 0xbd, 0x41, 0xf2, 0xd2, 0xb3, 0x39, 0xf0, 0x69, 0xbf, 0xdf, 0xd8, 0x02, 0xd6, + 0x1e, 0x6c, 0xa8, 0xe3, 0xba, 0xd6, 0xfb, 0x6d, 0x95, 0xb6, 0x72, 0x09, 0x5b, 0x93, + 0x34, 0x5f, 0x04, 0x7f, + ], + Bitcoin::Multiply32 => [ + 0x84, 0xcb, 0xe6, 0xce, 0x87, 0x03, 0x79, 0x92, 0x13, 0x87, 0x7c, 0x1b, 0xd5, 0x05, + 0xc7, 0x64, 0x34, 0x33, 0x69, 0x00, 0x2e, 0x50, 0x2c, 0x43, 0xd9, 0x7f, 0x3d, 0x57, + 0x77, 0x2d, 0x6c, 0x87, + ], + Bitcoin::Multiply64 => [ + 0x92, 0x98, 0x7b, 0x80, 0x1b, 0x92, 0xf6, 0x79, 0xeb, 0x96, 0x13, 0x68, 0x84, 0x44, + 0xa1, 0x78, 0x87, 0x50, 0xa8, 0x50, 0x6e, 0x03, 0xa9, 0x21, 0x8c, 0x21, 0xec, 0xc7, + 0x20, 0x82, 0xdc, 0x6a, + ], + Bitcoin::Multiply8 => [ + 0x76, 0x4c, 0xab, 0x71, 0xdb, 0x94, 0x59, 0xa7, 0x69, 0x6d, 0x94, 0x4a, 0x50, 0x09, + 0x5b, 0x1a, 0xeb, 0xdf, 0xd9, 0x28, 0x4b, 0xdb, 0x74, 0x96, 0xa7, 0xb3, 0x02, 0x41, + 0xcc, 0xba, 0x3e, 0xce, + ], + Bitcoin::Negate16 => [ + 0xe7, 0x60, 0xee, 0x40, 0x29, 0xc3, 0x4f, 0x89, 0x74, 0x06, 0xff, 0xde, 0xa5, 0x55, + 0x84, 0x86, 0x62, 0xe8, 0x9c, 0x98, 0x3e, 0x60, 0x70, 0xbd, 0x02, 0x72, 0xad, 0x0f, + 0xa3, 0x42, 0xef, 0xa3, + ], + Bitcoin::Negate32 => [ + 0x84, 0x95, 0xb7, 0x40, 0x09, 0xad, 0x07, 0xc9, 0x30, 0x2a, 0x25, 0xae, 0x56, 0xc3, + 0xe9, 0x73, 0x3f, 0x00, 0xc2, 0xba, 0xa4, 0x10, 0xea, 0xc4, 0xa5, 0x8e, 0x75, 0xdb, + 0x83, 0xaf, 0x1d, 0x22, + ], + Bitcoin::Negate64 => [ + 0x34, 0xe8, 0x9f, 0xaf, 0x34, 0x5a, 0xfd, 0x5e, 0x7b, 0x29, 0x00, 0x14, 0x52, 0xfc, + 0x5f, 0xc2, 0xe3, 0x78, 0x3a, 0xf7, 0xf2, 0x10, 0x16, 0x43, 0xbd, 0x76, 0x70, 0x6a, + 0x6f, 0xc3, 0xf3, 0x6a, + ], + Bitcoin::Negate8 => [ + 0xe8, 0x1b, 0xe0, 0xb1, 0x5c, 0x67, 0x1a, 0xb8, 0xdf, 0x1f, 0x48, 0x69, 0xc5, 0x7f, + 0x11, 0x11, 0x18, 0xcb, 0x66, 0x83, 0x54, 0x97, 0x5c, 0x63, 0x66, 0xec, 0xb2, 0xb8, + 0xbb, 0x7c, 0x15, 0xcf, + ], + Bitcoin::NumInputs => [ + 0x5c, 0x5a, 0xc4, 0xff, 0x6d, 0xa5, 0x6c, 0xb3, 0x72, 0xb2, 0x32, 0x66, 0x6e, 0x83, + 0x34, 0xb9, 0xe2, 0xcf, 0xb0, 0xdc, 0xb4, 0x18, 0xf1, 0x61, 0xbf, 0xf1, 0x49, 0xe8, + 0x4e, 0xc9, 0x2c, 0x3e, + ], + Bitcoin::NumOutputs => [ + 0x98, 0xa1, 0xcc, 0xa7, 0x05, 0xdf, 0xcf, 0xaf, 0xd3, 0xa6, 0x9e, 0x9a, 0xdc, 0x05, + 0xba, 0x47, 0xe1, 0xfe, 0xfa, 0x6a, 0x29, 0xf3, 0x42, 0x86, 0x20, 0x48, 0xe4, 0x96, + 0x86, 0x48, 0xc3, 0xd7, + ], + Bitcoin::One16 => [ + 0x2e, 0x5e, 0x3d, 0x95, 0xe4, 0x53, 0x16, 0x88, 0x8e, 0x4f, 0x37, 0x09, 0xef, 0x83, + 0x2b, 0x9f, 0xd9, 0xe1, 0x5f, 0x30, 0x71, 0x9b, 0xf5, 0x5f, 0xc2, 0xe0, 0xe0, 0x9a, + 0x36, 0x57, 0xd8, 0x82, + ], + Bitcoin::One32 => [ + 0x06, 0x42, 0x6b, 0x85, 0x3c, 0x1b, 0xcb, 0x33, 0x8a, 0xed, 0xbe, 0x1f, 0x89, 0xa6, + 0xd9, 0xb7, 0xa3, 0xda, 0x03, 0x8c, 0xd0, 0x0a, 0x44, 0x71, 0x18, 0x36, 0x93, 0x49, + 0x66, 0x9e, 0x29, 0x76, + ], + Bitcoin::One64 => [ + 0xab, 0x1d, 0x2c, 0xd9, 0x96, 0x78, 0xda, 0x3c, 0x12, 0x8d, 0x39, 0xad, 0x9f, 0xe6, + 0xff, 0xa9, 0x55, 0xc1, 0x6e, 0x5e, 0xf2, 0xc2, 0x5b, 0xb4, 0x31, 0x83, 0x15, 0x59, + 0x69, 0x51, 0xf4, 0x27, + ], + Bitcoin::One8 => [ + 0x3c, 0xc5, 0xf5, 0x23, 0xd6, 0xa6, 0x35, 0x5d, 0xc9, 0x24, 0xee, 0x0a, 0xc1, 0xf5, + 0xfe, 0x2c, 0x52, 0x12, 0x75, 0xe3, 0xaa, 0x9f, 0x21, 0xd3, 0x1b, 0x08, 0x2d, 0xb2, + 0xac, 0x23, 0x0d, 0x9d, + ], + Bitcoin::Or1 => [ + 0xc4, 0x65, 0x96, 0x43, 0x69, 0xfc, 0xa2, 0x09, 0x7f, 0x83, 0x53, 0x0c, 0x87, 0xbc, + 0xbc, 0x90, 0xc3, 0x06, 0x57, 0x9d, 0x9f, 0x3b, 0xfe, 0xdd, 0xf4, 0xa1, 0x72, 0xa4, + 0xea, 0x0b, 0x58, 0xec, + ], + Bitcoin::Or16 => [ + 0x5a, 0x98, 0x5e, 0x04, 0x3b, 0x85, 0x27, 0x3b, 0x90, 0xf9, 0x0e, 0x20, 0xf8, 0x2b, + 0x75, 0x32, 0x33, 0x51, 0xcf, 0x2a, 0x4e, 0x62, 0xa7, 0xf9, 0xcb, 0x2f, 0x05, 0x96, + 0x40, 0x2e, 0x9e, 0x28, + ], + Bitcoin::Or32 => [ + 0x35, 0x52, 0x38, 0x3a, 0x57, 0xff, 0xb4, 0x8d, 0x63, 0xa0, 0x33, 0x7a, 0xf0, 0xdd, + 0x6e, 0xfa, 0xb6, 0xb4, 0x6c, 0x5d, 0xe1, 0x72, 0x0e, 0x42, 0x0b, 0xdd, 0x1c, 0x82, + 0x27, 0x6b, 0xc9, 0xa9, + ], + Bitcoin::Or64 => [ + 0x51, 0xa1, 0x73, 0xda, 0xdc, 0xa0, 0x1a, 0xc6, 0xf6, 0x2e, 0x75, 0xd5, 0xcd, 0x35, + 0x22, 0xf0, 0x9f, 0xde, 0x62, 0xb1, 0x15, 0x13, 0xe0, 0x68, 0x42, 0x28, 0x52, 0xa4, + 0x91, 0x67, 0xb6, 0x06, + ], + Bitcoin::Or8 => [ + 0x79, 0xef, 0xbd, 0xcb, 0x53, 0x7b, 0xeb, 0xcb, 0x18, 0x8d, 0x11, 0x16, 0xb7, 0x8a, + 0x10, 0x9b, 0xff, 0xbc, 0x2a, 0x6c, 0xe3, 0xd1, 0xf8, 0x70, 0x15, 0x4a, 0x79, 0x56, + 0x09, 0x1b, 0x34, 0x2f, + ], + Bitcoin::OutpointHash => [ + 0x3a, 0x1a, 0xe9, 0x0e, 0x16, 0x7f, 0xb4, 0x0d, 0x6e, 0x13, 0xb4, 0x51, 0xad, 0x67, + 0x41, 0x0d, 0x8d, 0xd9, 0x91, 0xc8, 0x7d, 0x6a, 0x4a, 0x59, 0xcc, 0x76, 0xc6, 0x3f, + 0x3b, 0x9e, 0x5e, 0x56, + ], + Bitcoin::OutputHash => [ + 0x91, 0x21, 0x1f, 0xc6, 0x01, 0x1a, 0x64, 0x93, 0x00, 0xc6, 0xbe, 0xe9, 0x4f, 0xdd, + 0x48, 0xa9, 0x7f, 0xa2, 0xa9, 0xb6, 0xf2, 0x84, 0xbe, 0x01, 0x5d, 0x46, 0x2d, 0x17, + 0xde, 0x66, 0x4a, 0xc3, + ], + Bitcoin::OutputScriptHash => [ + 0xbd, 0xfd, 0xb2, 0x31, 0xf4, 0xf1, 0xa6, 0x2c, 0x9d, 0x7b, 0x03, 0x93, 0x1e, 0x7f, + 0x19, 0xa4, 0x54, 0x6a, 0xf2, 0x34, 0x75, 0x4c, 0xbf, 0x70, 0x05, 0x9f, 0xdd, 0x42, + 0xbb, 0xbc, 0x41, 0x26, + ], + Bitcoin::OutputScriptsHash => [ + 0xff, 0x20, 0xbc, 0x43, 0x65, 0xe7, 0x17, 0x07, 0x57, 0x1c, 0x6e, 0x17, 0x38, 0xe1, + 0xed, 0x32, 0x6f, 0x7c, 0x35, 0x1d, 0xe1, 0x30, 0x22, 0xae, 0xa3, 0xd6, 0x40, 0x6b, + 0x8a, 0xee, 0x8e, 0x3b, + ], + Bitcoin::OutputValue => [ + 0x93, 0x36, 0x43, 0xb6, 0xc5, 0xa6, 0x22, 0x0a, 0xbb, 0xca, 0x6f, 0x35, 0x09, 0xfe, + 0xff, 0x6d, 0x13, 0xef, 0xa6, 0xc9, 0xfa, 0xe9, 0x59, 0x24, 0x57, 0x53, 0x64, 0xf2, + 0xb1, 0x64, 0xd2, 0xbc, + ], + Bitcoin::OutputValuesHash => [ + 0x22, 0x89, 0x93, 0x79, 0x00, 0x57, 0x06, 0x6f, 0x20, 0x16, 0x97, 0x1d, 0xf5, 0x5e, + 0x6f, 0x67, 0xd2, 0x52, 0xef, 0xb6, 0xda, 0xab, 0xd0, 0xfc, 0x56, 0x6a, 0x8d, 0x21, + 0x56, 0xef, 0xbb, 0xfc, + ], + Bitcoin::OutputsHash => [ + 0xf2, 0xeb, 0x6d, 0x0f, 0x01, 0x8e, 0x6f, 0x15, 0xe3, 0x5b, 0xaa, 0x82, 0xe5, 0x7e, + 0x14, 0xfe, 0x34, 0x37, 0x96, 0xf2, 0x19, 0x68, 0x26, 0xbe, 0xd7, 0xc7, 0x87, 0x55, + 0x98, 0xd6, 0x64, 0x1d, + ], + Bitcoin::ParseLock => [ + 0x3d, 0xb8, 0x45, 0x35, 0xfa, 0x3d, 0x90, 0xef, 0x0b, 0x58, 0x1e, 0x22, 0xb6, 0x1d, + 0x21, 0x27, 0x84, 0x4b, 0x21, 0x16, 0xe8, 0x4f, 0x81, 0x4a, 0x5c, 0xba, 0xc5, 0x2d, + 0xf5, 0x15, 0xf2, 0xd2, + ], + Bitcoin::ParseSequence => [ + 0x38, 0xb2, 0x53, 0x3f, 0x5f, 0xed, 0xe8, 0x69, 0xba, 0xa1, 0x70, 0x69, 0x83, 0xdf, + 0x4c, 0x89, 0xd6, 0x2d, 0x5f, 0x90, 0x80, 0x0b, 0x47, 0xea, 0xb2, 0x11, 0x13, 0x31, + 0x1a, 0x5a, 0xae, 0xc9, + ], + Bitcoin::PointVerify1 => [ + 0xbe, 0x2a, 0x98, 0x90, 0xf1, 0xd5, 0xb6, 0x15, 0x14, 0x7f, 0x82, 0x41, 0xe0, 0x60, + 0x9b, 0x5c, 0xac, 0x01, 0xec, 0xe0, 0xa3, 0xf9, 0x23, 0x68, 0x67, 0xb2, 0xbf, 0xde, + 0xa1, 0xb8, 0x04, 0x4e, + ], + Bitcoin::RightExtend16_32 => [ + 0xdb, 0xf1, 0x8d, 0x87, 0xa7, 0x89, 0x21, 0x39, 0xa3, 0x88, 0xe9, 0xa9, 0x83, 0xc4, + 0x89, 0x92, 0xac, 0x35, 0xa8, 0x45, 0x56, 0xee, 0x0d, 0xef, 0xc1, 0xda, 0xdf, 0x0c, + 0x5f, 0x47, 0x1a, 0x26, + ], + Bitcoin::RightExtend16_64 => [ + 0xd0, 0x11, 0xac, 0xc7, 0x94, 0xe3, 0xc4, 0x78, 0x9a, 0xcc, 0xd0, 0xd5, 0xfe, 0x49, + 0x97, 0xd3, 0x34, 0xd9, 0x1f, 0x08, 0x31, 0xa1, 0xeb, 0x35, 0x04, 0xb4, 0xcb, 0x2d, + 0xdf, 0x47, 0x97, 0xaf, + ], + Bitcoin::RightExtend32_64 => [ + 0xa5, 0xaa, 0x5d, 0xb1, 0xe5, 0x35, 0xe7, 0x23, 0x2a, 0xd3, 0x6d, 0xaf, 0xba, 0x6d, + 0x5a, 0x20, 0x0d, 0x54, 0xeb, 0x85, 0x3b, 0x75, 0xdc, 0x70, 0xa5, 0x94, 0xed, 0x64, + 0xaa, 0x6b, 0xd9, 0xab, + ], + Bitcoin::RightExtend8_16 => [ + 0x81, 0x06, 0xd5, 0x8a, 0x80, 0x66, 0xee, 0x6e, 0x15, 0xe5, 0x5c, 0xa5, 0x2c, 0xb7, + 0xaf, 0xd8, 0xe3, 0x27, 0x75, 0x87, 0xbf, 0xd7, 0xde, 0xc0, 0xbe, 0x37, 0xd4, 0x06, + 0x74, 0x2a, 0x39, 0x31, + ], + Bitcoin::RightExtend8_32 => [ + 0xdf, 0xa4, 0xba, 0xfa, 0x43, 0x2a, 0x53, 0x38, 0xd3, 0x74, 0xde, 0xb6, 0xb7, 0x24, + 0xb7, 0xf6, 0xea, 0xe5, 0x58, 0x61, 0xfe, 0x73, 0x1d, 0x43, 0x04, 0x8a, 0xa3, 0x04, + 0xd1, 0xf7, 0xf9, 0xa2, + ], + Bitcoin::RightExtend8_64 => [ + 0x62, 0x0a, 0x37, 0x03, 0x8b, 0x6f, 0xa1, 0x27, 0x49, 0x5f, 0x0b, 0x46, 0x49, 0x6f, + 0x64, 0x35, 0xdd, 0x2d, 0xad, 0x7e, 0xf0, 0xc0, 0xfd, 0x2c, 0xd6, 0x5f, 0x54, 0xdc, + 0x18, 0x5e, 0x99, 0x7b, + ], + Bitcoin::RightPadHigh16_32 => [ + 0x2b, 0x6a, 0xbc, 0x38, 0x32, 0x1a, 0x7c, 0x54, 0x2f, 0xb1, 0x69, 0x74, 0x62, 0x1c, + 0xed, 0x80, 0x88, 0x0d, 0xb5, 0x19, 0xbb, 0x48, 0x60, 0x93, 0x42, 0x6e, 0x8c, 0xe1, + 0x8e, 0x01, 0x69, 0xb1, + ], + Bitcoin::RightPadHigh16_64 => [ + 0xad, 0x90, 0xd8, 0xff, 0xa5, 0x74, 0x50, 0xb3, 0xb5, 0xe9, 0x09, 0x62, 0x25, 0x34, + 0x9e, 0xd8, 0xf0, 0x72, 0xe1, 0x01, 0x72, 0x93, 0xf3, 0x92, 0xef, 0x85, 0x4e, 0x03, + 0x19, 0xab, 0xc9, 0x34, + ], + Bitcoin::RightPadHigh1_16 => [ + 0x28, 0x81, 0x58, 0xb1, 0xc9, 0x10, 0x87, 0x7b, 0x7e, 0xea, 0x3d, 0xfc, 0xf2, 0xb2, + 0xb7, 0x88, 0x92, 0x28, 0x08, 0xb6, 0xd6, 0xfa, 0x75, 0xf8, 0x96, 0x77, 0x19, 0x04, + 0x8b, 0x14, 0x12, 0x49, + ], + Bitcoin::RightPadHigh1_32 => [ + 0xee, 0x2a, 0xd7, 0x7f, 0x66, 0x8d, 0x3d, 0x6a, 0x2e, 0x68, 0x50, 0x6e, 0x49, 0x04, + 0xcf, 0x50, 0xa0, 0x84, 0x60, 0xe1, 0xd2, 0xb8, 0x6a, 0x81, 0xe1, 0x4e, 0x41, 0xf8, + 0xda, 0x4c, 0xdd, 0xf2, + ], + Bitcoin::RightPadHigh1_64 => [ + 0x3d, 0x6a, 0x7f, 0xe6, 0x9a, 0x11, 0x64, 0x2a, 0xce, 0xd6, 0x84, 0x2b, 0x89, 0xaa, + 0x1b, 0xb8, 0x41, 0x3e, 0x39, 0x90, 0x63, 0xcc, 0x16, 0x78, 0x6a, 0xf7, 0xc0, 0x33, + 0xda, 0xd5, 0x8b, 0x95, + ], + Bitcoin::RightPadHigh1_8 => [ + 0x28, 0x44, 0xbd, 0xfd, 0x6a, 0xba, 0x29, 0xdf, 0x03, 0xf9, 0x3a, 0xa6, 0xae, 0xb2, + 0x1c, 0x06, 0x40, 0x28, 0xdb, 0x05, 0xff, 0x77, 0xd8, 0xd9, 0x1c, 0xfd, 0xcd, 0xef, + 0xb1, 0x90, 0xc5, 0xbd, + ], + Bitcoin::RightPadHigh32_64 => [ + 0xb4, 0x32, 0xe5, 0x32, 0x1a, 0xe1, 0x71, 0x4c, 0xe1, 0x95, 0x29, 0xd8, 0x5f, 0x24, + 0xff, 0x89, 0x87, 0x91, 0x0e, 0xbc, 0xf0, 0x15, 0xf8, 0x7f, 0x15, 0xbb, 0xed, 0x55, + 0xf0, 0xa0, 0xe8, 0x92, + ], + Bitcoin::RightPadHigh8_16 => [ + 0x6f, 0x2d, 0x96, 0xc9, 0x54, 0x13, 0xca, 0x9a, 0xa8, 0xcc, 0x55, 0x0f, 0x25, 0x73, + 0xe1, 0x66, 0x99, 0x56, 0xd6, 0x07, 0x69, 0x2c, 0xf1, 0xca, 0x6d, 0xc7, 0x6d, 0x2f, + 0x2b, 0x4a, 0x3a, 0xc8, + ], + Bitcoin::RightPadHigh8_32 => [ + 0xdf, 0x2c, 0x7f, 0x92, 0x99, 0x00, 0xa4, 0x49, 0x01, 0xe6, 0xff, 0x65, 0x27, 0x6a, + 0x95, 0x1a, 0xeb, 0x95, 0xdf, 0x25, 0x0b, 0x13, 0x97, 0x14, 0xd4, 0x19, 0x54, 0x04, + 0xd7, 0x78, 0x98, 0xed, + ], + Bitcoin::RightPadHigh8_64 => [ + 0x79, 0xc0, 0x1d, 0xa3, 0xe6, 0x0b, 0x9c, 0x69, 0x35, 0xce, 0x3e, 0x15, 0x98, 0xb1, + 0x78, 0x40, 0xaf, 0x82, 0xdc, 0xb0, 0xdd, 0xc6, 0x3a, 0xef, 0x4a, 0x06, 0xe7, 0xf9, + 0xca, 0x5d, 0x27, 0x41, + ], + Bitcoin::RightPadLow16_32 => [ + 0x6f, 0x20, 0x10, 0x27, 0xcc, 0x75, 0x98, 0x02, 0x30, 0xa0, 0x70, 0x85, 0x9c, 0x3e, + 0x38, 0x02, 0x36, 0xa1, 0xcb, 0x10, 0xe6, 0x1a, 0x01, 0xaa, 0x1f, 0x6d, 0x23, 0x1d, + 0x15, 0x14, 0x2f, 0x25, + ], + Bitcoin::RightPadLow16_64 => [ + 0xb8, 0x6e, 0x1f, 0x0b, 0xfe, 0xc6, 0x55, 0x98, 0xd0, 0xa3, 0xd1, 0xec, 0x96, 0x03, + 0x05, 0xb9, 0x67, 0x45, 0x67, 0x3e, 0x1b, 0x16, 0xbf, 0x32, 0x7a, 0x71, 0x68, 0x05, + 0x83, 0xd7, 0x1d, 0x90, + ], + Bitcoin::RightPadLow1_16 => [ + 0x05, 0x2a, 0x64, 0x99, 0xc9, 0x3e, 0xe6, 0xbc, 0x1a, 0xe6, 0x57, 0xf8, 0x5f, 0xd4, + 0xd4, 0xfe, 0x67, 0x7a, 0xbc, 0xee, 0x54, 0x0d, 0x13, 0x40, 0x33, 0x54, 0x2e, 0x9a, + 0xb6, 0x0a, 0x63, 0xdd, + ], + Bitcoin::RightPadLow1_32 => [ + 0x5b, 0x70, 0xd4, 0x28, 0x96, 0x0e, 0x95, 0xcc, 0x40, 0xd5, 0x18, 0x46, 0xf5, 0x3a, + 0x4d, 0x0a, 0x35, 0xc9, 0x01, 0x5d, 0x15, 0x00, 0xb6, 0xbc, 0x84, 0x9b, 0x72, 0x83, + 0x5e, 0x2b, 0xd4, 0x40, + ], + Bitcoin::RightPadLow1_64 => [ + 0x44, 0xef, 0xeb, 0x87, 0xca, 0x2a, 0xd7, 0xfd, 0x4b, 0x73, 0xf1, 0x63, 0x07, 0xc7, + 0xf0, 0x59, 0x02, 0x65, 0x6f, 0x35, 0x09, 0x0f, 0xb0, 0xa4, 0x32, 0x6c, 0x64, 0x89, + 0x88, 0xae, 0x1d, 0x39, + ], + Bitcoin::RightPadLow1_8 => [ + 0x93, 0x40, 0x39, 0x8b, 0xcc, 0x8e, 0xa8, 0x3e, 0xc8, 0x40, 0xbe, 0x72, 0x9d, 0xbb, + 0x8b, 0x81, 0x20, 0x78, 0x24, 0xee, 0x87, 0x5d, 0x15, 0x82, 0x59, 0xd6, 0xda, 0xd2, + 0x0a, 0x83, 0x93, 0x0c, + ], + Bitcoin::RightPadLow32_64 => [ + 0x69, 0x3e, 0x28, 0x10, 0x1e, 0x04, 0xfd, 0xa4, 0x3b, 0x97, 0xe6, 0x11, 0xf0, 0xfe, + 0x98, 0x00, 0x0e, 0x14, 0x30, 0x2e, 0x5d, 0xcd, 0x6e, 0xd6, 0x5e, 0xee, 0x42, 0xe3, + 0x40, 0x14, 0x24, 0x2f, + ], + Bitcoin::RightPadLow8_16 => [ + 0x09, 0x6b, 0x25, 0xc3, 0xc8, 0x41, 0x5f, 0x04, 0xd8, 0x83, 0x27, 0x43, 0xeb, 0x2f, + 0x84, 0x56, 0xd5, 0xf0, 0xa6, 0x44, 0x91, 0x3d, 0x3e, 0xc5, 0x9d, 0x34, 0xf4, 0x55, + 0x25, 0x01, 0xfa, 0x20, + ], + Bitcoin::RightPadLow8_32 => [ + 0xfc, 0x7f, 0x57, 0x22, 0xa6, 0x2a, 0xa2, 0x20, 0x18, 0xcc, 0x81, 0xcd, 0x00, 0xa9, + 0x32, 0x6c, 0x7f, 0xe9, 0xc6, 0x3a, 0xbc, 0xe2, 0xbd, 0xa4, 0xc0, 0xe6, 0x6a, 0x3f, + 0x47, 0xc6, 0x7c, 0x53, + ], + Bitcoin::RightPadLow8_64 => [ + 0xa5, 0xbb, 0x7d, 0x5e, 0xfc, 0xa0, 0xe4, 0x8d, 0x9d, 0x80, 0xc5, 0x02, 0x71, 0x15, + 0xb4, 0x85, 0x78, 0x10, 0x51, 0xe0, 0xef, 0x46, 0xe4, 0xd6, 0x08, 0x31, 0x7a, 0x1c, + 0x42, 0x61, 0xbc, 0x46, + ], + Bitcoin::RightRotate16 => [ + 0x48, 0x2e, 0xa7, 0xe1, 0x21, 0x45, 0x01, 0xd9, 0x3c, 0x9a, 0xd1, 0x6f, 0xa8, 0xb9, + 0x7b, 0xf5, 0xb3, 0x84, 0xfc, 0x2b, 0x54, 0x78, 0x9b, 0x8c, 0xd9, 0xe7, 0x84, 0xcc, + 0xd0, 0xeb, 0x9d, 0x57, + ], + Bitcoin::RightRotate32 => [ + 0x09, 0x41, 0xb6, 0xee, 0xea, 0x9a, 0xf8, 0x19, 0x5b, 0x02, 0x8a, 0xfc, 0x0b, 0xd2, + 0xa5, 0x34, 0x21, 0x8b, 0xf9, 0x0d, 0x1a, 0x0e, 0x37, 0x3d, 0x74, 0x74, 0x18, 0x54, + 0x0b, 0x72, 0x6d, 0x73, + ], + Bitcoin::RightRotate64 => [ + 0x44, 0x4d, 0xbb, 0xc3, 0xdd, 0x2a, 0x11, 0xa5, 0xc7, 0xb0, 0x43, 0x9f, 0xdb, 0xa9, + 0x9a, 0xc7, 0x4a, 0x11, 0xb8, 0xee, 0xb2, 0xdb, 0x30, 0x1e, 0x24, 0x3e, 0xa8, 0x91, + 0x22, 0x90, 0x71, 0x52, + ], + Bitcoin::RightRotate8 => [ + 0x72, 0x65, 0xa3, 0x0c, 0x2e, 0x83, 0x6e, 0x65, 0x54, 0x4a, 0xba, 0x91, 0x1b, 0x64, + 0xd1, 0x8f, 0xa6, 0x9b, 0x17, 0x65, 0x45, 0x85, 0x6c, 0x77, 0xc4, 0xf0, 0xd7, 0x6f, + 0xc3, 0xf5, 0x83, 0x51, + ], + Bitcoin::RightShift16 => [ + 0xcd, 0x57, 0xa3, 0xd3, 0xab, 0x2d, 0x92, 0xd4, 0xf0, 0x86, 0x55, 0x04, 0x3a, 0x8b, + 0x8b, 0xb6, 0x73, 0x89, 0x81, 0xfa, 0xe6, 0xda, 0x01, 0x34, 0xb4, 0xde, 0xda, 0xce, + 0x5f, 0x00, 0x88, 0x60, + ], + Bitcoin::RightShift32 => [ + 0xd6, 0xb3, 0x26, 0xb1, 0xa3, 0x23, 0x57, 0xa3, 0x32, 0x80, 0x7d, 0x3f, 0xa1, 0xb1, + 0x56, 0xc2, 0x8b, 0x16, 0x22, 0xf7, 0x38, 0xde, 0xf1, 0x26, 0x81, 0x46, 0x7f, 0x34, + 0x9b, 0xd3, 0x49, 0x4b, + ], + Bitcoin::RightShift64 => [ + 0xb2, 0x09, 0x5f, 0x2d, 0x47, 0x33, 0x5d, 0x5f, 0x98, 0xc8, 0x54, 0x34, 0xa2, 0xfa, + 0xf5, 0xb0, 0xf7, 0x5c, 0xf8, 0x99, 0x01, 0x2a, 0x34, 0xbb, 0xcd, 0x0a, 0x14, 0xcb, + 0xed, 0xb6, 0x11, 0x07, + ], + Bitcoin::RightShift8 => [ + 0x4b, 0x2b, 0x1a, 0xa2, 0xef, 0x73, 0x21, 0x73, 0x17, 0x0d, 0x62, 0x1a, 0x38, 0xde, + 0xb2, 0x61, 0xe4, 0x73, 0xc0, 0x7c, 0x55, 0x8b, 0x05, 0x5a, 0x25, 0xa8, 0x6e, 0x4e, + 0x32, 0x1a, 0xfc, 0x04, + ], + Bitcoin::RightShiftWith16 => [ + 0x14, 0xb7, 0x76, 0x85, 0x47, 0xb3, 0xd3, 0xf4, 0x7e, 0xe5, 0xc2, 0xb8, 0x0d, 0x9b, + 0xda, 0xe2, 0xae, 0xc1, 0xf9, 0xc6, 0x59, 0x4e, 0xd3, 0x12, 0x7b, 0x12, 0x64, 0x5a, + 0xdc, 0xf5, 0x97, 0x54, + ], + Bitcoin::RightShiftWith32 => [ + 0x32, 0x7b, 0x6e, 0x98, 0xa6, 0xfd, 0x34, 0x0c, 0x60, 0xcf, 0x83, 0xaa, 0x64, 0x99, + 0x33, 0x11, 0x4c, 0xb8, 0xd8, 0x4f, 0x59, 0x0e, 0x01, 0x21, 0x3a, 0x26, 0x10, 0x01, + 0x2b, 0x46, 0x07, 0xea, + ], + Bitcoin::RightShiftWith64 => [ + 0x06, 0x2f, 0xa7, 0x4a, 0xf3, 0x47, 0x6e, 0x59, 0x38, 0x7b, 0xe0, 0x8e, 0x69, 0x49, + 0xa0, 0x05, 0x43, 0xbc, 0x84, 0xa2, 0xb6, 0x89, 0xea, 0x39, 0xad, 0x6e, 0xed, 0x7f, + 0x75, 0x67, 0x85, 0xd4, + ], + Bitcoin::RightShiftWith8 => [ + 0x14, 0x1b, 0xe4, 0x7e, 0x96, 0x7b, 0x2f, 0xd7, 0xc7, 0x12, 0x6c, 0x5a, 0xdf, 0x2d, + 0xfe, 0x47, 0x31, 0x5b, 0xbc, 0x10, 0x53, 0xbb, 0xe6, 0x05, 0xb3, 0x88, 0x98, 0xdb, + 0xed, 0x49, 0xf2, 0x27, + ], + Bitcoin::Rightmost16_1 => [ + 0x3f, 0x3c, 0x43, 0x46, 0x87, 0x17, 0x42, 0x26, 0x5e, 0x87, 0xf0, 0x01, 0xb4, 0x6d, + 0xe7, 0xd1, 0x98, 0x75, 0x1b, 0x34, 0xfa, 0xa1, 0x80, 0x18, 0xde, 0x60, 0xc8, 0x46, + 0x8d, 0x9b, 0x98, 0xa4, + ], + Bitcoin::Rightmost16_2 => [ + 0xc1, 0x8b, 0x9f, 0xdd, 0x34, 0x0a, 0x26, 0x7a, 0xc1, 0x6d, 0x4f, 0x39, 0xee, 0x75, + 0x43, 0x56, 0x52, 0xaa, 0xca, 0x52, 0x56, 0x50, 0xb5, 0x1a, 0x45, 0x87, 0x98, 0x04, + 0x8e, 0x62, 0x7d, 0x51, + ], + Bitcoin::Rightmost16_4 => [ + 0xc6, 0xc5, 0x3f, 0xa7, 0x1e, 0x23, 0x0c, 0xf0, 0x58, 0x51, 0x58, 0xf4, 0x70, 0x58, + 0x8b, 0xac, 0x5c, 0x51, 0x8f, 0x84, 0xf9, 0xfc, 0x23, 0x86, 0x52, 0xf1, 0x75, 0xfb, + 0x6e, 0xa1, 0x8c, 0x11, + ], + Bitcoin::Rightmost16_8 => [ + 0xee, 0x76, 0x9c, 0x1c, 0xc8, 0xa3, 0xfd, 0xd1, 0x83, 0x8f, 0xc9, 0xf0, 0x49, 0x0c, + 0xe7, 0x03, 0x93, 0xfd, 0x91, 0xba, 0x3c, 0xbd, 0x4a, 0xbd, 0x08, 0x64, 0x9f, 0xb9, + 0xc4, 0x43, 0x11, 0xbd, + ], + Bitcoin::Rightmost32_1 => [ + 0x1c, 0x44, 0x23, 0x69, 0xfb, 0x81, 0xf6, 0x11, 0xd3, 0x28, 0x01, 0x0b, 0x86, 0x4b, + 0xcc, 0xb7, 0xf3, 0x5e, 0xd4, 0x77, 0xdf, 0xa3, 0x85, 0x55, 0x74, 0xc1, 0x35, 0x64, + 0xcd, 0xbd, 0xb8, 0x60, + ], + Bitcoin::Rightmost32_16 => [ + 0xad, 0xd2, 0xc3, 0x39, 0x0d, 0x9a, 0xf7, 0xc2, 0x4a, 0x15, 0x9a, 0x37, 0xd6, 0x9d, + 0x44, 0x84, 0xd2, 0xc2, 0x4a, 0x2c, 0xb5, 0xb0, 0xeb, 0x2d, 0x3c, 0x49, 0x3d, 0x98, + 0x12, 0xac, 0xfd, 0x74, + ], + Bitcoin::Rightmost32_2 => [ + 0x00, 0xb8, 0x81, 0x5a, 0xd7, 0x42, 0x3d, 0xd5, 0x8c, 0xb9, 0x8b, 0xe8, 0x2c, 0xad, + 0x26, 0x67, 0x5c, 0x3b, 0xf5, 0x4a, 0x0b, 0xed, 0xba, 0xde, 0x34, 0x64, 0xb4, 0xfe, + 0x5a, 0x4e, 0x8c, 0xe6, + ], + Bitcoin::Rightmost32_4 => [ + 0x84, 0xfa, 0x5a, 0x54, 0xf7, 0x72, 0x9f, 0x9d, 0x68, 0x99, 0x4b, 0xea, 0xb9, 0x3a, + 0xe7, 0x9b, 0x8c, 0x4a, 0x10, 0xd5, 0xb7, 0xae, 0x97, 0x27, 0xaa, 0x17, 0x16, 0xe5, + 0x7d, 0x03, 0x3b, 0x74, + ], + Bitcoin::Rightmost32_8 => [ + 0x7d, 0x38, 0x05, 0xd3, 0xc7, 0x8c, 0x4e, 0xea, 0x91, 0xe3, 0xd3, 0x5e, 0xfd, 0xd4, + 0x7e, 0xed, 0xd4, 0x21, 0xaf, 0x84, 0xd2, 0x19, 0x10, 0x32, 0x93, 0x32, 0xa0, 0xb5, + 0x48, 0x7f, 0xab, 0x63, + ], + Bitcoin::Rightmost64_1 => [ + 0xd3, 0xb1, 0x64, 0xc5, 0xdc, 0x66, 0xcc, 0x7e, 0xf9, 0x23, 0x4f, 0xed, 0xe4, 0xdc, + 0x7f, 0x0d, 0xa5, 0xcd, 0x71, 0xc1, 0xc1, 0xd4, 0xca, 0xd6, 0x0f, 0xb4, 0xec, 0x57, + 0x3e, 0x2b, 0x8a, 0x75, + ], + Bitcoin::Rightmost64_16 => [ + 0xea, 0xe4, 0x34, 0x78, 0xf9, 0xf2, 0xf4, 0x52, 0xef, 0xac, 0x15, 0xee, 0xe6, 0x0f, + 0x8b, 0x52, 0x53, 0xd8, 0x0a, 0x2d, 0x32, 0x12, 0x9b, 0x4e, 0x5b, 0xa3, 0x83, 0x00, + 0xad, 0x98, 0x52, 0xfd, + ], + Bitcoin::Rightmost64_2 => [ + 0x9c, 0xd4, 0xa9, 0x8b, 0xbd, 0xb8, 0xa3, 0x35, 0x85, 0xc0, 0x0f, 0x47, 0xd6, 0xad, + 0xab, 0x7a, 0xf5, 0x42, 0x86, 0xfb, 0x8a, 0xe6, 0x0f, 0x72, 0x30, 0x11, 0xfb, 0x84, + 0xc0, 0xee, 0x78, 0xf9, + ], + Bitcoin::Rightmost64_32 => [ + 0x7f, 0x24, 0x20, 0xae, 0x5b, 0x0f, 0x5a, 0x3f, 0x6f, 0x2e, 0x60, 0xb6, 0x1f, 0x8a, + 0x41, 0x5c, 0x08, 0x8b, 0x94, 0xb2, 0x1c, 0x1a, 0x62, 0xa3, 0xfd, 0xaa, 0xc7, 0x49, + 0xdb, 0xdf, 0x4c, 0x71, + ], + Bitcoin::Rightmost64_4 => [ + 0xe2, 0x65, 0x55, 0x2a, 0x24, 0xfb, 0xcd, 0xec, 0x05, 0x83, 0xd7, 0x18, 0x3e, 0x48, + 0xeb, 0xc2, 0xff, 0x6d, 0x31, 0x65, 0x57, 0xba, 0xc5, 0x91, 0x5c, 0x03, 0xcb, 0x23, + 0x35, 0xd2, 0x32, 0x95, + ], + Bitcoin::Rightmost64_8 => [ + 0x98, 0xcd, 0x95, 0xf9, 0x5d, 0x46, 0x64, 0x1b, 0x04, 0x9e, 0x77, 0xbf, 0x90, 0xee, + 0xa5, 0x98, 0xad, 0xf2, 0x9e, 0xe5, 0x00, 0xe6, 0x50, 0x72, 0x87, 0x54, 0x8b, 0xb1, + 0xcd, 0xaf, 0x78, 0x4d, + ], + Bitcoin::Rightmost8_1 => [ + 0x08, 0x76, 0xfc, 0xd4, 0x69, 0x85, 0x91, 0xf3, 0x31, 0x91, 0x01, 0x57, 0x4c, 0xe1, + 0x53, 0xfc, 0xdf, 0xe9, 0x4f, 0x58, 0x1a, 0xac, 0x5e, 0x75, 0xf3, 0xcd, 0x74, 0x46, + 0xdf, 0x56, 0xf3, 0xc7, + ], + Bitcoin::Rightmost8_2 => [ + 0xb9, 0xf7, 0xb2, 0x90, 0xaf, 0xe7, 0xf1, 0x89, 0xe3, 0x2a, 0xeb, 0xf2, 0xcc, 0x4d, + 0xdc, 0xa9, 0x6b, 0xb0, 0x07, 0x64, 0xc7, 0xbe, 0x28, 0x87, 0xdc, 0xe0, 0x54, 0xd0, + 0x9e, 0x38, 0xc3, 0x53, + ], + Bitcoin::Rightmost8_4 => [ + 0xf2, 0x8e, 0x9a, 0xf5, 0xaf, 0x4c, 0x9c, 0xca, 0x4b, 0x43, 0xcc, 0x6a, 0xdf, 0x9d, + 0x9d, 0x8d, 0x16, 0x9c, 0x87, 0xc5, 0x55, 0x9f, 0x9f, 0x3c, 0xca, 0xc8, 0xf2, 0x35, + 0x2b, 0x62, 0x9f, 0x18, + ], + Bitcoin::ScalarAdd => [ + 0x11, 0xdd, 0xbe, 0xba, 0xeb, 0xf4, 0x21, 0x80, 0xa0, 0xb7, 0xed, 0xdf, 0xfd, 0xc4, + 0x8e, 0xc7, 0x51, 0x13, 0x30, 0xfb, 0x33, 0x15, 0xfa, 0x65, 0xd5, 0x8a, 0xff, 0x66, + 0xb9, 0xca, 0xf2, 0xd4, + ], + Bitcoin::ScalarInvert => [ + 0xa6, 0x39, 0x27, 0x25, 0xbb, 0x2d, 0xad, 0xbb, 0x1e, 0x76, 0xdf, 0x2d, 0xec, 0x57, + 0xdf, 0x55, 0xc3, 0xfc, 0xc5, 0x77, 0x3b, 0x62, 0x21, 0x8a, 0xec, 0x55, 0xa7, 0x5e, + 0x14, 0xf3, 0xd6, 0x0d, + ], + Bitcoin::ScalarIsZero => [ + 0xf7, 0x5e, 0xda, 0x06, 0xce, 0x6a, 0xf0, 0x9f, 0xae, 0x37, 0xdb, 0x4e, 0x62, 0x25, + 0xe6, 0xa8, 0xac, 0x86, 0xa2, 0x36, 0x37, 0x62, 0x7d, 0x62, 0x64, 0x09, 0x19, 0x0f, + 0xf3, 0xb3, 0x9d, 0x90, + ], + Bitcoin::ScalarMultiply => [ + 0x4a, 0x61, 0x67, 0x2a, 0xce, 0xc4, 0x88, 0x77, 0x56, 0xde, 0x1d, 0xb6, 0x04, 0x21, + 0xa1, 0x2b, 0x90, 0x1a, 0x85, 0x8a, 0x6e, 0xe6, 0x35, 0x2e, 0x55, 0x9d, 0x4c, 0xe5, + 0x97, 0x33, 0x52, 0xbe, + ], + Bitcoin::ScalarMultiplyLambda => [ + 0x49, 0xea, 0x9c, 0x3f, 0xb1, 0xd8, 0xff, 0x52, 0xd2, 0xdb, 0x03, 0x46, 0x9f, 0xdf, + 0xe8, 0x50, 0x50, 0x3f, 0xdd, 0xeb, 0x45, 0xe1, 0x6d, 0x26, 0xe8, 0x92, 0x8a, 0xdd, + 0x25, 0x87, 0x0e, 0x91, + ], + Bitcoin::ScalarNegate => [ + 0x1d, 0xbf, 0x8b, 0x49, 0x1e, 0xc6, 0x65, 0x80, 0x3f, 0x63, 0x33, 0x30, 0xd3, 0xff, + 0xb0, 0xe7, 0x81, 0xe6, 0x7c, 0x18, 0x01, 0xac, 0x9d, 0x49, 0xbb, 0xf4, 0x35, 0x89, + 0xab, 0xf7, 0x82, 0xbf, + ], + Bitcoin::ScalarNormalize => [ + 0x46, 0x33, 0x18, 0x0e, 0xa0, 0x2c, 0x4d, 0xf7, 0x81, 0x9d, 0x3d, 0x54, 0xa4, 0x01, + 0x73, 0x4f, 0x96, 0x5b, 0x31, 0xac, 0xc7, 0x84, 0x05, 0x4e, 0xbf, 0xb7, 0x31, 0x68, + 0x16, 0xb0, 0x29, 0xec, + ], + Bitcoin::ScalarSquare => [ + 0x8a, 0x27, 0x9e, 0x6f, 0x61, 0x3a, 0xa9, 0xe9, 0x34, 0xf2, 0xf2, 0xa3, 0x43, 0xc0, + 0xd3, 0x29, 0x1c, 0x36, 0x70, 0xe2, 0x97, 0xdd, 0xae, 0x20, 0x52, 0x9e, 0x82, 0x50, + 0x69, 0xef, 0xea, 0x0e, + ], + Bitcoin::Scale => [ + 0x12, 0x6e, 0x22, 0x12, 0x5b, 0xac, 0x80, 0xb9, 0x9b, 0x7b, 0x73, 0x43, 0xb4, 0xe5, + 0xe5, 0x86, 0x60, 0x82, 0x16, 0x10, 0x5d, 0x4d, 0xe6, 0xf7, 0x94, 0xad, 0xd3, 0x4e, + 0x23, 0xb1, 0x95, 0xca, + ], + Bitcoin::ScriptCMR => [ + 0xa8, 0xa4, 0xa6, 0x22, 0x10, 0xb5, 0xe4, 0x95, 0x0e, 0x25, 0x34, 0x24, 0x7c, 0x74, + 0x11, 0xd1, 0xc8, 0xff, 0x22, 0x86, 0x5b, 0x54, 0x56, 0xbb, 0xb2, 0x16, 0x38, 0xe9, + 0x14, 0xf5, 0xe5, 0x28, + ], + Bitcoin::Sha256Block => [ + 0x45, 0x35, 0xf3, 0xe1, 0xab, 0x9f, 0x1b, 0x75, 0x7a, 0x06, 0x91, 0x37, 0xe1, 0xd5, + 0xb1, 0xca, 0xad, 0x8e, 0x31, 0xf7, 0x8d, 0xc5, 0xfb, 0xd0, 0x73, 0x46, 0x49, 0xf9, + 0x40, 0xa7, 0xfc, 0x96, + ], + Bitcoin::Sha256Ctx8Add1 => [ + 0x9a, 0x47, 0x11, 0xb8, 0xc5, 0x69, 0x0e, 0x58, 0x7e, 0x5f, 0x79, 0xe6, 0x8d, 0x6e, + 0xca, 0x04, 0x74, 0x58, 0xaa, 0x63, 0xb8, 0xbc, 0x9e, 0xe5, 0x68, 0x08, 0x6a, 0x4a, + 0x1b, 0x56, 0xd8, 0x34, + ], + Bitcoin::Sha256Ctx8Add128 => [ + 0x1c, 0xb1, 0xdb, 0x8a, 0x05, 0x5b, 0x31, 0x97, 0xac, 0xf0, 0xf0, 0x8c, 0xe9, 0xc6, + 0x35, 0xad, 0xd6, 0x95, 0xb6, 0x0f, 0x23, 0x4b, 0x18, 0xe0, 0xb3, 0x23, 0xc9, 0x37, + 0xb0, 0x38, 0x5a, 0xea, + ], + Bitcoin::Sha256Ctx8Add16 => [ + 0xe0, 0x84, 0x54, 0x75, 0xeb, 0xb9, 0x01, 0x40, 0xfa, 0x4e, 0x01, 0xaf, 0x8a, 0x94, + 0x35, 0x99, 0x1a, 0xd8, 0x7a, 0xf9, 0x8c, 0x08, 0xae, 0xce, 0x11, 0x0e, 0x99, 0xcb, + 0xce, 0xcd, 0xee, 0x79, + ], + Bitcoin::Sha256Ctx8Add2 => [ + 0x7d, 0x69, 0x13, 0x8f, 0x1c, 0x94, 0x2b, 0xee, 0x2f, 0xdf, 0x60, 0x0c, 0xe4, 0x4b, + 0x36, 0xff, 0x97, 0x83, 0x9d, 0xc2, 0xbb, 0xda, 0xfb, 0xd5, 0xfa, 0xb4, 0xdf, 0xbc, + 0x3c, 0x97, 0x6f, 0x29, + ], + Bitcoin::Sha256Ctx8Add256 => [ + 0x4f, 0x5c, 0x29, 0xd5, 0x36, 0x86, 0xc0, 0x60, 0x62, 0xb3, 0x83, 0x24, 0xf8, 0xaf, + 0xf1, 0x7e, 0xc5, 0x56, 0xa2, 0x95, 0xff, 0x09, 0x8b, 0x10, 0xe7, 0x05, 0xdd, 0x22, + 0xe1, 0x3b, 0xc3, 0xc9, + ], + Bitcoin::Sha256Ctx8Add32 => [ + 0xd5, 0x7b, 0x67, 0xb1, 0x74, 0xe7, 0x8e, 0x38, 0xf9, 0xbc, 0xa8, 0xe0, 0x7a, 0xdd, + 0x61, 0xc7, 0x53, 0xe2, 0xc1, 0x56, 0xd8, 0xe9, 0x83, 0x2a, 0xa6, 0x62, 0x04, 0x55, + 0x00, 0xf5, 0x1a, 0x80, + ], + Bitcoin::Sha256Ctx8Add4 => [ + 0x95, 0xda, 0x32, 0x99, 0x3f, 0x5c, 0x7d, 0x00, 0x83, 0x06, 0x4c, 0xdf, 0xf1, 0xbe, + 0xc3, 0xb9, 0x36, 0xc6, 0x38, 0x33, 0x7a, 0xde, 0xc5, 0x47, 0x48, 0x7a, 0xf2, 0x32, + 0xd6, 0x9f, 0xdf, 0x65, + ], + Bitcoin::Sha256Ctx8Add512 => [ + 0x4a, 0xcb, 0x16, 0x3a, 0xa4, 0x8f, 0x09, 0xd5, 0xf2, 0x6d, 0x2b, 0x2a, 0xb1, 0x88, + 0xa6, 0xc6, 0xb6, 0xc4, 0xae, 0xdf, 0x23, 0xc9, 0x19, 0x00, 0x1c, 0x02, 0xee, 0x15, + 0xb3, 0x37, 0xa9, 0x6e, + ], + Bitcoin::Sha256Ctx8Add64 => [ + 0x52, 0xe5, 0x3e, 0xc5, 0x77, 0x0f, 0x9b, 0xe4, 0x06, 0x9a, 0xee, 0xfc, 0xb2, 0x13, + 0x22, 0xb1, 0x3a, 0xb6, 0xe3, 0x94, 0x1f, 0xdc, 0x2c, 0x85, 0xf4, 0xb4, 0x1b, 0xe6, + 0x7d, 0x38, 0xea, 0x7e, + ], + Bitcoin::Sha256Ctx8Add8 => [ + 0xc2, 0x6b, 0x28, 0xaf, 0xe5, 0xe8, 0x66, 0xd8, 0x46, 0x16, 0x81, 0x4d, 0x1a, 0x13, + 0xfb, 0x86, 0x30, 0xb9, 0xe8, 0x4e, 0x5d, 0x78, 0x15, 0x56, 0xc6, 0xd8, 0x23, 0x6e, + 0xfb, 0x45, 0xdf, 0xf9, + ], + Bitcoin::Sha256Ctx8AddBuffer511 => [ + 0xad, 0x69, 0x90, 0x46, 0x48, 0xa8, 0x23, 0x8d, 0x00, 0xd8, 0x51, 0x63, 0xfc, 0xe8, + 0x19, 0x63, 0xa0, 0x04, 0x7a, 0xb5, 0x82, 0xbe, 0x97, 0xa4, 0x14, 0x00, 0x65, 0x59, + 0x79, 0xcf, 0xdd, 0x28, + ], + Bitcoin::Sha256Ctx8Finalize => [ + 0x8e, 0x45, 0xbd, 0xc3, 0x87, 0xd4, 0xed, 0xfa, 0x73, 0x35, 0x25, 0xf3, 0xab, 0x19, + 0xe4, 0x2b, 0x58, 0xec, 0xb1, 0xb5, 0xf6, 0xdc, 0xcf, 0x94, 0xed, 0xbf, 0x59, 0x95, + 0x8a, 0xe3, 0xe1, 0x16, + ], + Bitcoin::Sha256Ctx8Init => [ + 0x63, 0x5f, 0x64, 0x05, 0x84, 0x86, 0x85, 0xc0, 0x11, 0xfe, 0xbd, 0x41, 0xfa, 0xac, + 0x87, 0x4b, 0xbb, 0xf5, 0xb2, 0x4d, 0x5f, 0xb1, 0x2f, 0xed, 0xbc, 0xb6, 0xcb, 0xff, + 0x95, 0xa0, 0xf3, 0x66, + ], + Bitcoin::Sha256Iv => [ + 0x12, 0xe4, 0x59, 0x37, 0x51, 0xc9, 0x46, 0x3b, 0x56, 0x25, 0x03, 0xc1, 0x40, 0xd7, + 0x8b, 0x3b, 0x75, 0x7a, 0x1f, 0x4f, 0x16, 0x32, 0x1d, 0x28, 0x62, 0xd3, 0x25, 0x43, + 0x85, 0x38, 0x97, 0x1b, + ], + Bitcoin::SigAllHash => [ + 0x09, 0x78, 0xb9, 0xe5, 0x0b, 0x9e, 0x8e, 0x09, 0x8b, 0x27, 0xf2, 0xb8, 0xb5, 0x9d, + 0xe5, 0x4f, 0x62, 0xba, 0x7c, 0x13, 0x33, 0xdf, 0x3b, 0xed, 0x22, 0x1e, 0x26, 0x62, + 0x68, 0x05, 0xbc, 0x55, + ], + Bitcoin::Some1 => [ + 0x15, 0xca, 0x4e, 0x4b, 0x82, 0xc2, 0xf9, 0x1b, 0x9a, 0x79, 0x29, 0x92, 0xcd, 0xc1, + 0xb2, 0x92, 0xab, 0x86, 0xa2, 0xd2, 0x93, 0x9c, 0x9a, 0x64, 0xb5, 0x0b, 0xe6, 0x0b, + 0xda, 0x6a, 0xb4, 0xca, + ], + Bitcoin::Some16 => [ + 0xa9, 0xdf, 0xbb, 0xea, 0xb5, 0x9d, 0xf7, 0x2a, 0x45, 0xfc, 0x3f, 0xc7, 0xac, 0x58, + 0x1e, 0xc8, 0xda, 0x71, 0x3f, 0x2f, 0x81, 0x03, 0xf7, 0x87, 0xaa, 0x1c, 0xee, 0x4e, + 0x0b, 0xa6, 0x48, 0x66, + ], + Bitcoin::Some32 => [ + 0x46, 0x33, 0xa3, 0x97, 0x74, 0x2e, 0xf4, 0x82, 0xbe, 0x2f, 0xa3, 0xfb, 0x64, 0x10, + 0xec, 0x79, 0xc3, 0x73, 0x83, 0x65, 0x69, 0xfb, 0xbc, 0xb1, 0xf9, 0x48, 0xec, 0x32, + 0x48, 0x73, 0x78, 0xb7, + ], + Bitcoin::Some64 => [ + 0x1d, 0xc2, 0x45, 0xac, 0x6f, 0x5b, 0x42, 0x2b, 0xd1, 0x88, 0x6e, 0xf5, 0x14, 0x4c, + 0x4d, 0xc7, 0x2c, 0x96, 0x73, 0x15, 0x59, 0x66, 0x07, 0x6c, 0xd8, 0x39, 0x68, 0x1d, + 0x9e, 0xc7, 0xf8, 0xf5, + ], + Bitcoin::Some8 => [ + 0x33, 0xaf, 0xb9, 0xc6, 0x45, 0x4e, 0x59, 0x0e, 0xc1, 0x3e, 0xd7, 0x5e, 0x1b, 0x7d, + 0x9c, 0x3a, 0x3d, 0xe6, 0x75, 0x2b, 0xcc, 0x7c, 0x1d, 0x4c, 0xb3, 0x63, 0xfa, 0x51, + 0x82, 0x8b, 0xcb, 0x74, + ], + Bitcoin::Subtract16 => [ + 0x4e, 0x06, 0xec, 0x31, 0x37, 0x62, 0x22, 0xe2, 0x5e, 0x27, 0xd0, 0x15, 0x9d, 0xc1, + 0xc0, 0x71, 0x4a, 0x44, 0xca, 0x6a, 0xac, 0xf9, 0x50, 0x5c, 0xaa, 0xd2, 0x80, 0xe9, + 0x73, 0xfb, 0x5c, 0xab, + ], + Bitcoin::Subtract32 => [ + 0xb9, 0xc0, 0xf3, 0x6e, 0x75, 0x22, 0xa8, 0xd9, 0x49, 0x05, 0x0d, 0x51, 0x6a, 0x05, + 0xce, 0x20, 0x3a, 0x1f, 0x9a, 0x9e, 0x37, 0x2f, 0xd2, 0x63, 0xde, 0x38, 0xb0, 0xe9, + 0x03, 0x13, 0x41, 0x98, + ], + Bitcoin::Subtract64 => [ + 0x1c, 0xdb, 0x5c, 0x74, 0xad, 0xd1, 0x02, 0xf5, 0x0f, 0x93, 0x8e, 0xd8, 0x86, 0xf4, + 0x96, 0xe5, 0xba, 0xb2, 0x75, 0x5c, 0x3c, 0x48, 0x4e, 0x88, 0x87, 0x90, 0x3d, 0x2f, + 0x6a, 0x57, 0xf3, 0xaa, + ], + Bitcoin::Subtract8 => [ + 0x4f, 0x21, 0x17, 0xa0, 0xe8, 0x10, 0x59, 0xff, 0x0c, 0xd6, 0x4d, 0x84, 0x88, 0x65, + 0x42, 0xe5, 0x75, 0xea, 0x8d, 0x6e, 0xc0, 0x31, 0x08, 0xfd, 0x0b, 0x50, 0x8b, 0x39, + 0x20, 0x8c, 0xd0, 0xef, + ], + Bitcoin::Swu => [ + 0x00, 0xf5, 0x1f, 0x4f, 0x4b, 0xec, 0xe7, 0x90, 0x03, 0xec, 0xad, 0x48, 0x1a, 0x12, + 0x5a, 0xf7, 0x17, 0x6e, 0x4d, 0xe9, 0x8c, 0x33, 0x92, 0x42, 0x5c, 0xb9, 0x14, 0x66, + 0x26, 0xc1, 0x3b, 0x3b, + ], + Bitcoin::TapEnvHash => [ + 0x19, 0xd9, 0x94, 0x4c, 0x4d, 0x45, 0x7c, 0x70, 0xba, 0xbc, 0x45, 0xcc, 0xcb, 0xd5, + 0x73, 0xb3, 0x9a, 0x51, 0xd0, 0xc9, 0x91, 0x15, 0xb4, 0x12, 0x78, 0x3b, 0x49, 0x00, + 0x82, 0xfd, 0x0e, 0x58, + ], + Bitcoin::TapdataInit => [ + 0xa4, 0xd0, 0x22, 0xef, 0x5c, 0xf4, 0x67, 0xbc, 0xa0, 0x32, 0x5e, 0x46, 0x3f, 0xca, + 0xce, 0x7c, 0xbd, 0xd6, 0x4f, 0xf8, 0xf7, 0x1c, 0x5c, 0x7f, 0x63, 0xe6, 0x07, 0x84, + 0xaa, 0x0a, 0xc4, 0x86, + ], + Bitcoin::TapleafHash => [ + 0x0c, 0x07, 0x16, 0xfe, 0x5d, 0x97, 0x8e, 0xa8, 0xe0, 0xc7, 0x5a, 0xdc, 0x82, 0x10, + 0xd6, 0x60, 0x06, 0x2e, 0x3d, 0xa0, 0x6f, 0x1a, 0x66, 0x61, 0x31, 0x79, 0x27, 0xd3, + 0xb8, 0x4b, 0x50, 0x73, + ], + Bitcoin::TapleafVersion => [ + 0xe2, 0xec, 0xb1, 0xcb, 0x0e, 0xd4, 0xed, 0x93, 0x48, 0x35, 0x45, 0xfd, 0x8a, 0x62, + 0xf8, 0xaa, 0x10, 0x17, 0x53, 0x49, 0xff, 0xcc, 0x5a, 0xd3, 0xde, 0x7f, 0x34, 0x84, + 0xea, 0x1f, 0x10, 0x3f, + ], + Bitcoin::Tappath => [ + 0x99, 0xe8, 0x21, 0x1e, 0x8c, 0x1b, 0xe6, 0xd9, 0xca, 0x98, 0xd3, 0xd4, 0x3d, 0x91, + 0x42, 0x56, 0x7e, 0x06, 0xa8, 0x40, 0x22, 0x39, 0x33, 0x03, 0xfa, 0xb0, 0xb5, 0x7d, + 0x39, 0x40, 0x74, 0xe8, + ], + Bitcoin::TappathHash => [ + 0x02, 0x11, 0x54, 0x6d, 0x07, 0x78, 0xe7, 0x87, 0x14, 0x1e, 0xce, 0x65, 0xdf, 0x6c, + 0xd1, 0xdb, 0x31, 0x38, 0x8f, 0xc1, 0x42, 0x19, 0x68, 0xc8, 0xcf, 0xd8, 0xd7, 0x59, + 0x26, 0xdb, 0x47, 0xb3, + ], + Bitcoin::TotalInputValue => [ + 0x81, 0x28, 0x7a, 0x15, 0x89, 0xdd, 0xc2, 0x17, 0x99, 0x26, 0xb7, 0x06, 0x5e, 0x9b, + 0x26, 0x77, 0xb7, 0xfb, 0x09, 0x9b, 0x95, 0xf9, 0x47, 0xa7, 0xdd, 0x59, 0x0c, 0xdd, + 0x4c, 0xcf, 0x4a, 0x56, + ], + Bitcoin::TotalOutputValue => [ + 0xba, 0x03, 0x2f, 0x3e, 0x62, 0xf8, 0xfc, 0xb0, 0x4b, 0x04, 0x29, 0xa2, 0x53, 0xb5, + 0xec, 0x57, 0xe4, 0xc8, 0x7a, 0xe2, 0xe9, 0x51, 0xe1, 0x45, 0xd7, 0x65, 0x0e, 0x7f, + 0x0c, 0x63, 0xe5, 0x55, + ], + Bitcoin::TransactionId => [ + 0x5c, 0x49, 0xea, 0x98, 0x6b, 0x32, 0x8b, 0xe2, 0xa4, 0xe0, 0xb3, 0x15, 0xb6, 0xb3, + 0xfe, 0xf2, 0x3c, 0x1f, 0x68, 0x56, 0xbb, 0xc3, 0xb0, 0x56, 0xc9, 0x9c, 0xf5, 0x9f, + 0xbd, 0x54, 0x6e, 0x65, + ], + Bitcoin::TxHash => [ + 0x54, 0xe5, 0x3c, 0x99, 0x93, 0xab, 0xd5, 0x5d, 0x1f, 0x85, 0x23, 0xd2, 0xbb, 0x21, + 0x7b, 0x32, 0xe6, 0xfe, 0x86, 0x1f, 0x84, 0xc9, 0x86, 0xb7, 0xee, 0x8b, 0xdc, 0x68, + 0x81, 0x06, 0x87, 0x4a, + ], + Bitcoin::TxIsFinal => [ + 0x7b, 0x0e, 0x4f, 0x4c, 0xa8, 0xe5, 0xaf, 0x61, 0xa1, 0xd3, 0x45, 0x4e, 0x11, 0xef, + 0x9a, 0xb6, 0x88, 0x70, 0x61, 0x21, 0x1c, 0x00, 0x90, 0xeb, 0xa9, 0x55, 0x3d, 0xa2, + 0xe4, 0x5d, 0x84, 0x73, + ], + Bitcoin::TxLockDistance => [ + 0xb6, 0xfb, 0xaa, 0xc2, 0x10, 0xa3, 0x06, 0xbe, 0x8b, 0x58, 0xd0, 0xd7, 0xb1, 0x56, + 0x3f, 0x62, 0x23, 0x36, 0xd2, 0xae, 0xb5, 0x6c, 0x39, 0x3d, 0x27, 0x64, 0x45, 0xa9, + 0xa2, 0x2c, 0xc4, 0xa7, + ], + Bitcoin::TxLockDuration => [ + 0x53, 0x57, 0x28, 0x18, 0xe7, 0xe5, 0xb9, 0x8f, 0x96, 0x8c, 0x9d, 0xa7, 0xdf, 0x50, + 0x90, 0xd9, 0x82, 0x6f, 0x9b, 0xcf, 0x84, 0xb6, 0x36, 0x39, 0x5e, 0xea, 0x32, 0x1b, + 0x69, 0x09, 0xec, 0xe9, + ], + Bitcoin::TxLockHeight => [ + 0x44, 0x9f, 0x61, 0xdf, 0x1a, 0x7b, 0xad, 0x8d, 0x9e, 0x0a, 0x96, 0x67, 0x14, 0x22, + 0x7e, 0x57, 0x10, 0x07, 0xf9, 0x3c, 0x51, 0x7b, 0x80, 0x5d, 0x61, 0x65, 0x10, 0xe8, + 0xff, 0x62, 0x17, 0x2b, + ], + Bitcoin::TxLockTime => [ + 0x31, 0xdf, 0x36, 0x3f, 0x17, 0xb2, 0xcf, 0xc9, 0x7a, 0x1f, 0x93, 0x72, 0xc1, 0x4a, + 0x32, 0x58, 0x64, 0xd7, 0xcb, 0x13, 0xaa, 0x8d, 0x52, 0x15, 0xfb, 0x25, 0x3d, 0x33, + 0x10, 0x91, 0x77, 0x62, + ], + Bitcoin::Verify => [ + 0xcd, 0xca, 0x2a, 0x05, 0xe5, 0x2c, 0xef, 0xa5, 0x9d, 0xc7, 0xa5, 0xb0, 0xda, 0xe2, + 0x20, 0x98, 0xfb, 0x89, 0x6e, 0x39, 0x13, 0xbf, 0xdd, 0x44, 0x6b, 0x59, 0x4e, 0x1f, + 0x92, 0x50, 0x78, 0x3e, + ], + Bitcoin::Version => [ + 0x83, 0x73, 0x58, 0x64, 0x00, 0xb6, 0x79, 0x0b, 0x46, 0xab, 0x04, 0x10, 0x52, 0x3c, + 0xf0, 0x1e, 0xb7, 0x4d, 0x10, 0xfa, 0xf4, 0x8a, 0x3a, 0xcc, 0x86, 0xc4, 0xc5, 0x1d, + 0x06, 0xa5, 0x2c, 0x49, + ], + Bitcoin::Xor1 => [ + 0x8c, 0x4e, 0x4e, 0x6e, 0xbf, 0x46, 0x30, 0xb2, 0x9b, 0x5a, 0x57, 0xea, 0x79, 0xf0, + 0xc9, 0xaf, 0x6b, 0xff, 0x54, 0xc4, 0xd2, 0xd7, 0x69, 0xbf, 0x51, 0x59, 0x47, 0x74, + 0xa5, 0x2b, 0x99, 0xc9, + ], + Bitcoin::Xor16 => [ + 0xd9, 0xf0, 0xaf, 0x3f, 0xe3, 0xfd, 0x24, 0x7c, 0x1d, 0xf3, 0x4a, 0x25, 0x27, 0x13, + 0xb2, 0xe9, 0x33, 0xa9, 0x45, 0xa5, 0x67, 0x19, 0x48, 0x7f, 0x8e, 0xd7, 0xf5, 0x63, + 0xea, 0x86, 0x1a, 0xb5, + ], + Bitcoin::Xor32 => [ + 0xd5, 0xae, 0x27, 0x12, 0xed, 0xea, 0xf6, 0x76, 0x52, 0x0f, 0xa3, 0xba, 0x0f, 0x40, + 0xbf, 0x4a, 0x16, 0x57, 0x43, 0x7e, 0xff, 0xbd, 0x99, 0x86, 0xd0, 0x6a, 0xe8, 0x1b, + 0x29, 0xa4, 0xf9, 0x8c, + ], + Bitcoin::Xor64 => [ + 0xc4, 0xdf, 0x1c, 0xcf, 0x33, 0x3e, 0xde, 0xbd, 0xd4, 0x0d, 0xea, 0x9a, 0x0e, 0x6c, + 0xbb, 0x83, 0x06, 0x31, 0xe8, 0x3a, 0x94, 0xbb, 0x77, 0x9f, 0xe6, 0x00, 0x7b, 0xc6, + 0xcb, 0x53, 0xa5, 0x44, + ], + Bitcoin::Xor8 => [ + 0x4a, 0xb1, 0x4a, 0x81, 0x4a, 0x39, 0x52, 0x8a, 0x80, 0xfd, 0xb4, 0x30, 0x58, 0x9b, + 0xa4, 0x50, 0x10, 0x4b, 0x9c, 0x72, 0x09, 0xaa, 0x2f, 0xe2, 0x85, 0xcd, 0x60, 0xc0, + 0x90, 0x43, 0x11, 0x4a, + ], + Bitcoin::XorXor1 => [ + 0x18, 0xb9, 0x44, 0x6a, 0x41, 0x66, 0xa3, 0xfe, 0xe2, 0xbc, 0xb2, 0x54, 0x5b, 0xb9, + 0x01, 0x18, 0xdc, 0xf0, 0xe8, 0xf8, 0x86, 0xa1, 0x07, 0x6d, 0x4c, 0x38, 0x60, 0x06, + 0x0c, 0xde, 0x1a, 0x51, + ], + Bitcoin::XorXor16 => [ + 0x94, 0x6c, 0xde, 0x87, 0x2e, 0x30, 0xe6, 0x50, 0x9d, 0xaf, 0xf4, 0x05, 0xf0, 0xe0, + 0xfe, 0xfe, 0x27, 0x55, 0x47, 0xb4, 0x0e, 0xb2, 0x03, 0x84, 0xaf, 0xe9, 0xa8, 0x63, + 0x60, 0xfc, 0x80, 0xef, + ], + Bitcoin::XorXor32 => [ + 0x65, 0x27, 0xdf, 0x67, 0xa5, 0x0d, 0x14, 0x8d, 0xb4, 0xfc, 0x8f, 0xee, 0xc7, 0x84, + 0x55, 0x64, 0x99, 0xa8, 0xc7, 0xf0, 0xfa, 0x7d, 0x28, 0xe6, 0x27, 0x8e, 0x99, 0x7f, + 0x49, 0x59, 0xbe, 0x39, + ], + Bitcoin::XorXor64 => [ + 0xf1, 0x62, 0xf9, 0xe6, 0x56, 0x63, 0xa6, 0x9a, 0xc5, 0xf9, 0x2a, 0x5e, 0xb5, 0x2c, + 0x03, 0x32, 0x39, 0x2e, 0xdd, 0x1e, 0xd1, 0xba, 0x35, 0x5e, 0x6f, 0x19, 0x40, 0x6e, + 0xab, 0xe3, 0xf6, 0xed, + ], + Bitcoin::XorXor8 => [ + 0xe0, 0x6d, 0x69, 0x4c, 0x5b, 0x40, 0x7d, 0xda, 0xd7, 0xaa, 0x1f, 0x88, 0x07, 0x16, + 0xbc, 0xb7, 0x0a, 0xcd, 0xba, 0x75, 0x85, 0xca, 0x40, 0x09, 0x9a, 0x0a, 0x0a, 0x61, + 0xf3, 0xad, 0x2d, 0xb5, + ], + }; + + Cmr::from_byte_array(bytes) } fn source_ty(&self) -> TypeName { @@ -4699,7 +6842,436 @@ impl Jet for Bitcoin { } fn cost(&self) -> Cost { - unimplemented!("Unspecified cost of Bitcoin jets") + match self { + Bitcoin::Add16 => Cost::from_milliweight(80), + Bitcoin::Add32 => Cost::from_milliweight(92), + Bitcoin::Add64 => Cost::from_milliweight(105), + Bitcoin::Add8 => Cost::from_milliweight(97), + Bitcoin::All16 => Cost::from_milliweight(60), + Bitcoin::All32 => Cost::from_milliweight(62), + Bitcoin::All64 => Cost::from_milliweight(63), + Bitcoin::All8 => Cost::from_milliweight(50), + Bitcoin::And1 => Cost::from_milliweight(77), + Bitcoin::And16 => Cost::from_milliweight(83), + Bitcoin::And32 => Cost::from_milliweight(77), + Bitcoin::And64 => Cost::from_milliweight(78), + Bitcoin::And8 => Cost::from_milliweight(98), + Bitcoin::AnnexHash => Cost::from_milliweight(1491), + Bitcoin::Bip0340Verify => Cost::from_milliweight(49421), + Bitcoin::BuildTapbranch => Cost::from_milliweight(2554), + Bitcoin::BuildTapleafSimplicity => Cost::from_milliweight(1927), + Bitcoin::BuildTaptweak => Cost::from_milliweight(77780), + Bitcoin::Ch1 => Cost::from_milliweight(50), + Bitcoin::Ch16 => Cost::from_milliweight(83), + Bitcoin::Ch32 => Cost::from_milliweight(69), + Bitcoin::Ch64 => Cost::from_milliweight(78), + Bitcoin::Ch8 => Cost::from_milliweight(86), + Bitcoin::CheckLockDistance => Cost::from_milliweight(84), + Bitcoin::CheckLockDuration => Cost::from_milliweight(78), + Bitcoin::CheckLockHeight => Cost::from_milliweight(108), + Bitcoin::CheckLockTime => Cost::from_milliweight(123), + Bitcoin::CheckSigVerify => Cost::from_milliweight(50000), + Bitcoin::Complement1 => Cost::from_milliweight(51), + Bitcoin::Complement16 => Cost::from_milliweight(86), + Bitcoin::Complement32 => Cost::from_milliweight(58), + Bitcoin::Complement64 => Cost::from_milliweight(64), + Bitcoin::Complement8 => Cost::from_milliweight(62), + Bitcoin::CurrentAnnexHash => Cost::from_milliweight(74), + Bitcoin::CurrentIndex => Cost::from_milliweight(66), + Bitcoin::CurrentPrevOutpoint => Cost::from_milliweight(130), + Bitcoin::CurrentScriptHash => Cost::from_milliweight(127), + Bitcoin::CurrentScriptSigHash => Cost::from_milliweight(126), + Bitcoin::CurrentSequence => Cost::from_milliweight(66), + Bitcoin::CurrentValue => Cost::from_milliweight(85), + Bitcoin::Decompress => Cost::from_milliweight(10495), + Bitcoin::Decrement16 => Cost::from_milliweight(58), + Bitcoin::Decrement32 => Cost::from_milliweight(57), + Bitcoin::Decrement64 => Cost::from_milliweight(79), + Bitcoin::Decrement8 => Cost::from_milliweight(77), + Bitcoin::DivMod128_64 => Cost::from_milliweight(169), + Bitcoin::DivMod16 => Cost::from_milliweight(92), + Bitcoin::DivMod32 => Cost::from_milliweight(90), + Bitcoin::DivMod64 => Cost::from_milliweight(82), + Bitcoin::DivMod8 => Cost::from_milliweight(91), + Bitcoin::Divide16 => Cost::from_milliweight(85), + Bitcoin::Divide32 => Cost::from_milliweight(82), + Bitcoin::Divide64 => Cost::from_milliweight(81), + Bitcoin::Divide8 => Cost::from_milliweight(85), + Bitcoin::Divides16 => Cost::from_milliweight(84), + Bitcoin::Divides32 => Cost::from_milliweight(80), + Bitcoin::Divides64 => Cost::from_milliweight(67), + Bitcoin::Divides8 => Cost::from_milliweight(73), + Bitcoin::Eq1 => Cost::from_milliweight(63), + Bitcoin::Eq16 => Cost::from_milliweight(68), + Bitcoin::Eq256 => Cost::from_milliweight(188), + Bitcoin::Eq32 => Cost::from_milliweight(74), + Bitcoin::Eq64 => Cost::from_milliweight(82), + Bitcoin::Eq8 => Cost::from_milliweight(76), + Bitcoin::FeAdd => Cost::from_milliweight(777), + Bitcoin::FeInvert => Cost::from_milliweight(3237), + Bitcoin::FeIsOdd => Cost::from_milliweight(313), + Bitcoin::FeIsZero => Cost::from_milliweight(277), + Bitcoin::FeMultiply => Cost::from_milliweight(813), + Bitcoin::FeMultiplyBeta => Cost::from_milliweight(607), + Bitcoin::FeNegate => Cost::from_milliweight(541), + Bitcoin::FeNormalize => Cost::from_milliweight(656), + Bitcoin::FeSquare => Cost::from_milliweight(570), + Bitcoin::FeSquareRoot => Cost::from_milliweight(10162), + Bitcoin::Fee => Cost::from_milliweight(65), + Bitcoin::FullAdd16 => Cost::from_milliweight(106), + Bitcoin::FullAdd32 => Cost::from_milliweight(96), + Bitcoin::FullAdd64 => Cost::from_milliweight(93), + Bitcoin::FullAdd8 => Cost::from_milliweight(131), + Bitcoin::FullDecrement16 => Cost::from_milliweight(60), + Bitcoin::FullDecrement32 => Cost::from_milliweight(71), + Bitcoin::FullDecrement64 => Cost::from_milliweight(71), + Bitcoin::FullDecrement8 => Cost::from_milliweight(68), + Bitcoin::FullIncrement16 => Cost::from_milliweight(70), + Bitcoin::FullIncrement32 => Cost::from_milliweight(57), + Bitcoin::FullIncrement64 => Cost::from_milliweight(68), + Bitcoin::FullIncrement8 => Cost::from_milliweight(73), + Bitcoin::FullLeftShift16_1 => Cost::from_milliweight(76), + Bitcoin::FullLeftShift16_2 => Cost::from_milliweight(59), + Bitcoin::FullLeftShift16_4 => Cost::from_milliweight(68), + Bitcoin::FullLeftShift16_8 => Cost::from_milliweight(68), + Bitcoin::FullLeftShift32_1 => Cost::from_milliweight(58), + Bitcoin::FullLeftShift32_16 => Cost::from_milliweight(52), + Bitcoin::FullLeftShift32_2 => Cost::from_milliweight(73), + Bitcoin::FullLeftShift32_4 => Cost::from_milliweight(59), + Bitcoin::FullLeftShift32_8 => Cost::from_milliweight(60), + Bitcoin::FullLeftShift64_1 => Cost::from_milliweight(74), + Bitcoin::FullLeftShift64_16 => Cost::from_milliweight(69), + Bitcoin::FullLeftShift64_2 => Cost::from_milliweight(70), + Bitcoin::FullLeftShift64_32 => Cost::from_milliweight(73), + Bitcoin::FullLeftShift64_4 => Cost::from_milliweight(66), + Bitcoin::FullLeftShift64_8 => Cost::from_milliweight(68), + Bitcoin::FullLeftShift8_1 => Cost::from_milliweight(60), + Bitcoin::FullLeftShift8_2 => Cost::from_milliweight(64), + Bitcoin::FullLeftShift8_4 => Cost::from_milliweight(72), + Bitcoin::FullMultiply16 => Cost::from_milliweight(99), + Bitcoin::FullMultiply32 => Cost::from_milliweight(87), + Bitcoin::FullMultiply64 => Cost::from_milliweight(103), + Bitcoin::FullMultiply8 => Cost::from_milliweight(95), + Bitcoin::FullRightShift16_1 => Cost::from_milliweight(55), + Bitcoin::FullRightShift16_2 => Cost::from_milliweight(60), + Bitcoin::FullRightShift16_4 => Cost::from_milliweight(64), + Bitcoin::FullRightShift16_8 => Cost::from_milliweight(55), + Bitcoin::FullRightShift32_1 => Cost::from_milliweight(49), + Bitcoin::FullRightShift32_16 => Cost::from_milliweight(48), + Bitcoin::FullRightShift32_2 => Cost::from_milliweight(66), + Bitcoin::FullRightShift32_4 => Cost::from_milliweight(49), + Bitcoin::FullRightShift32_8 => Cost::from_milliweight(66), + Bitcoin::FullRightShift64_1 => Cost::from_milliweight(60), + Bitcoin::FullRightShift64_16 => Cost::from_milliweight(73), + Bitcoin::FullRightShift64_2 => Cost::from_milliweight(76), + Bitcoin::FullRightShift64_32 => Cost::from_milliweight(73), + Bitcoin::FullRightShift64_4 => Cost::from_milliweight(56), + Bitcoin::FullRightShift64_8 => Cost::from_milliweight(68), + Bitcoin::FullRightShift8_1 => Cost::from_milliweight(59), + Bitcoin::FullRightShift8_2 => Cost::from_milliweight(49), + Bitcoin::FullRightShift8_4 => Cost::from_milliweight(51), + Bitcoin::FullSubtract16 => Cost::from_milliweight(99), + Bitcoin::FullSubtract32 => Cost::from_milliweight(92), + Bitcoin::FullSubtract64 => Cost::from_milliweight(109), + Bitcoin::FullSubtract8 => Cost::from_milliweight(106), + Bitcoin::GeIsOnCurve => Cost::from_milliweight(688), + Bitcoin::GeNegate => Cost::from_milliweight(1071), + Bitcoin::GejAdd => Cost::from_milliweight(3000), + Bitcoin::GejDouble => Cost::from_milliweight(1862), + Bitcoin::GejEquiv => Cost::from_milliweight(2376), + Bitcoin::GejGeAdd => Cost::from_milliweight(2609), + Bitcoin::GejGeAddEx => Cost::from_milliweight(2860), + Bitcoin::GejGeEquiv => Cost::from_milliweight(1823), + Bitcoin::GejInfinity => Cost::from_milliweight(765), + Bitcoin::GejIsInfinity => Cost::from_milliweight(701), + Bitcoin::GejIsOnCurve => Cost::from_milliweight(1039), + Bitcoin::GejNegate => Cost::from_milliweight(1549), + Bitcoin::GejNormalize => Cost::from_milliweight(4184), + Bitcoin::GejRescale => Cost::from_milliweight(2011), + Bitcoin::GejXEquiv => Cost::from_milliweight(1103), + Bitcoin::GejYIsOdd => Cost::from_milliweight(3702), + Bitcoin::Generate => Cost::from_milliweight(49851), + Bitcoin::HashToCurve => Cost::from_milliweight(69844), + Bitcoin::High1 => Cost::from_milliweight(42), + Bitcoin::High16 => Cost::from_milliweight(50), + Bitcoin::High32 => Cost::from_milliweight(64), + Bitcoin::High64 => Cost::from_milliweight(52), + Bitcoin::High8 => Cost::from_milliweight(59), + Bitcoin::Increment16 => Cost::from_milliweight(56), + Bitcoin::Increment32 => Cost::from_milliweight(73), + Bitcoin::Increment64 => Cost::from_milliweight(64), + Bitcoin::Increment8 => Cost::from_milliweight(69), + Bitcoin::InputAnnexHash => Cost::from_milliweight(77), + Bitcoin::InputAnnexesHash => Cost::from_milliweight(124), + Bitcoin::InputHash => Cost::from_milliweight(832), + Bitcoin::InputOutpointsHash => Cost::from_milliweight(126), + Bitcoin::InputPrevOutpoint => Cost::from_milliweight(140), + Bitcoin::InputScriptHash => Cost::from_milliweight(143), + Bitcoin::InputScriptSigHash => Cost::from_milliweight(137), + Bitcoin::InputScriptSigsHash => Cost::from_milliweight(127), + Bitcoin::InputScriptsHash => Cost::from_milliweight(129), + Bitcoin::InputSequence => Cost::from_milliweight(78), + Bitcoin::InputSequencesHash => Cost::from_milliweight(125), + Bitcoin::InputUtxoHash => Cost::from_milliweight(824), + Bitcoin::InputUtxosHash => Cost::from_milliweight(122), + Bitcoin::InputValue => Cost::from_milliweight(81), + Bitcoin::InputValuesHash => Cost::from_milliweight(126), + Bitcoin::InputsHash => Cost::from_milliweight(122), + Bitcoin::InternalKey => Cost::from_milliweight(124), + Bitcoin::IsOne16 => Cost::from_milliweight(64), + Bitcoin::IsOne32 => Cost::from_milliweight(64), + Bitcoin::IsOne64 => Cost::from_milliweight(66), + Bitcoin::IsOne8 => Cost::from_milliweight(47), + Bitcoin::IsZero16 => Cost::from_milliweight(52), + Bitcoin::IsZero32 => Cost::from_milliweight(58), + Bitcoin::IsZero64 => Cost::from_milliweight(68), + Bitcoin::IsZero8 => Cost::from_milliweight(59), + Bitcoin::Le16 => Cost::from_milliweight(83), + Bitcoin::Le32 => Cost::from_milliweight(99), + Bitcoin::Le64 => Cost::from_milliweight(79), + Bitcoin::Le8 => Cost::from_milliweight(93), + Bitcoin::LeftExtend16_32 => Cost::from_milliweight(72), + Bitcoin::LeftExtend16_64 => Cost::from_milliweight(69), + Bitcoin::LeftExtend1_16 => Cost::from_milliweight(50), + Bitcoin::LeftExtend1_32 => Cost::from_milliweight(48), + Bitcoin::LeftExtend1_64 => Cost::from_milliweight(49), + Bitcoin::LeftExtend1_8 => Cost::from_milliweight(46), + Bitcoin::LeftExtend32_64 => Cost::from_milliweight(69), + Bitcoin::LeftExtend8_16 => Cost::from_milliweight(58), + Bitcoin::LeftExtend8_32 => Cost::from_milliweight(86), + Bitcoin::LeftExtend8_64 => Cost::from_milliweight(98), + Bitcoin::LeftPadHigh16_32 => Cost::from_milliweight(71), + Bitcoin::LeftPadHigh16_64 => Cost::from_milliweight(82), + Bitcoin::LeftPadHigh1_16 => Cost::from_milliweight(106), + Bitcoin::LeftPadHigh1_32 => Cost::from_milliweight(220), + Bitcoin::LeftPadHigh1_64 => Cost::from_milliweight(302), + Bitcoin::LeftPadHigh1_8 => Cost::from_milliweight(73), + Bitcoin::LeftPadHigh32_64 => Cost::from_milliweight(69), + Bitcoin::LeftPadHigh8_16 => Cost::from_milliweight(65), + Bitcoin::LeftPadHigh8_32 => Cost::from_milliweight(105), + Bitcoin::LeftPadHigh8_64 => Cost::from_milliweight(113), + Bitcoin::LeftPadLow16_32 => Cost::from_milliweight(65), + Bitcoin::LeftPadLow16_64 => Cost::from_milliweight(68), + Bitcoin::LeftPadLow1_16 => Cost::from_milliweight(59), + Bitcoin::LeftPadLow1_32 => Cost::from_milliweight(47), + Bitcoin::LeftPadLow1_64 => Cost::from_milliweight(46), + Bitcoin::LeftPadLow1_8 => Cost::from_milliweight(48), + Bitcoin::LeftPadLow32_64 => Cost::from_milliweight(62), + Bitcoin::LeftPadLow8_16 => Cost::from_milliweight(56), + Bitcoin::LeftPadLow8_32 => Cost::from_milliweight(75), + Bitcoin::LeftPadLow8_64 => Cost::from_milliweight(116), + Bitcoin::LeftRotate16 => Cost::from_milliweight(88), + Bitcoin::LeftRotate32 => Cost::from_milliweight(62), + Bitcoin::LeftRotate64 => Cost::from_milliweight(68), + Bitcoin::LeftRotate8 => Cost::from_milliweight(66), + Bitcoin::LeftShift16 => Cost::from_milliweight(109), + Bitcoin::LeftShift32 => Cost::from_milliweight(79), + Bitcoin::LeftShift64 => Cost::from_milliweight(70), + Bitcoin::LeftShift8 => Cost::from_milliweight(72), + Bitcoin::LeftShiftWith16 => Cost::from_milliweight(72), + Bitcoin::LeftShiftWith32 => Cost::from_milliweight(87), + Bitcoin::LeftShiftWith64 => Cost::from_milliweight(97), + Bitcoin::LeftShiftWith8 => Cost::from_milliweight(104), + Bitcoin::Leftmost16_1 => Cost::from_milliweight(68), + Bitcoin::Leftmost16_2 => Cost::from_milliweight(58), + Bitcoin::Leftmost16_4 => Cost::from_milliweight(51), + Bitcoin::Leftmost16_8 => Cost::from_milliweight(62), + Bitcoin::Leftmost32_1 => Cost::from_milliweight(53), + Bitcoin::Leftmost32_16 => Cost::from_milliweight(63), + Bitcoin::Leftmost32_2 => Cost::from_milliweight(62), + Bitcoin::Leftmost32_4 => Cost::from_milliweight(61), + Bitcoin::Leftmost32_8 => Cost::from_milliweight(60), + Bitcoin::Leftmost64_1 => Cost::from_milliweight(65), + Bitcoin::Leftmost64_16 => Cost::from_milliweight(62), + Bitcoin::Leftmost64_2 => Cost::from_milliweight(61), + Bitcoin::Leftmost64_32 => Cost::from_milliweight(77), + Bitcoin::Leftmost64_4 => Cost::from_milliweight(80), + Bitcoin::Leftmost64_8 => Cost::from_milliweight(54), + Bitcoin::Leftmost8_1 => Cost::from_milliweight(54), + Bitcoin::Leftmost8_2 => Cost::from_milliweight(71), + Bitcoin::Leftmost8_4 => Cost::from_milliweight(65), + Bitcoin::LinearCombination1 => Cost::from_milliweight(85743), + Bitcoin::LinearVerify1 => Cost::from_milliweight(43579), + Bitcoin::LockTime => Cost::from_milliweight(66), + Bitcoin::Low1 => Cost::from_milliweight(40), + Bitcoin::Low16 => Cost::from_milliweight(60), + Bitcoin::Low32 => Cost::from_milliweight(52), + Bitcoin::Low64 => Cost::from_milliweight(50), + Bitcoin::Low8 => Cost::from_milliweight(45), + Bitcoin::Lt16 => Cost::from_milliweight(83), + Bitcoin::Lt32 => Cost::from_milliweight(89), + Bitcoin::Lt64 => Cost::from_milliweight(71), + Bitcoin::Lt8 => Cost::from_milliweight(86), + Bitcoin::Maj1 => Cost::from_milliweight(54), + Bitcoin::Maj16 => Cost::from_milliweight(85), + Bitcoin::Maj32 => Cost::from_milliweight(73), + Bitcoin::Maj64 => Cost::from_milliweight(79), + Bitcoin::Maj8 => Cost::from_milliweight(64), + Bitcoin::Max16 => Cost::from_milliweight(80), + Bitcoin::Max32 => Cost::from_milliweight(70), + Bitcoin::Max64 => Cost::from_milliweight(75), + Bitcoin::Max8 => Cost::from_milliweight(79), + Bitcoin::Median16 => Cost::from_milliweight(80), + Bitcoin::Median32 => Cost::from_milliweight(77), + Bitcoin::Median64 => Cost::from_milliweight(89), + Bitcoin::Median8 => Cost::from_milliweight(77), + Bitcoin::Min16 => Cost::from_milliweight(83), + Bitcoin::Min32 => Cost::from_milliweight(96), + Bitcoin::Min64 => Cost::from_milliweight(82), + Bitcoin::Min8 => Cost::from_milliweight(78), + Bitcoin::Modulo16 => Cost::from_milliweight(85), + Bitcoin::Modulo32 => Cost::from_milliweight(81), + Bitcoin::Modulo64 => Cost::from_milliweight(71), + Bitcoin::Modulo8 => Cost::from_milliweight(85), + Bitcoin::Multiply16 => Cost::from_milliweight(79), + Bitcoin::Multiply32 => Cost::from_milliweight(78), + Bitcoin::Multiply64 => Cost::from_milliweight(72), + Bitcoin::Multiply8 => Cost::from_milliweight(79), + Bitcoin::Negate16 => Cost::from_milliweight(69), + Bitcoin::Negate32 => Cost::from_milliweight(56), + Bitcoin::Negate64 => Cost::from_milliweight(56), + Bitcoin::Negate8 => Cost::from_milliweight(69), + Bitcoin::NumInputs => Cost::from_milliweight(74), + Bitcoin::NumOutputs => Cost::from_milliweight(68), + Bitcoin::One16 => Cost::from_milliweight(45), + Bitcoin::One32 => Cost::from_milliweight(45), + Bitcoin::One64 => Cost::from_milliweight(45), + Bitcoin::One8 => Cost::from_milliweight(46), + Bitcoin::Or1 => Cost::from_milliweight(56), + Bitcoin::Or16 => Cost::from_milliweight(78), + Bitcoin::Or32 => Cost::from_milliweight(80), + Bitcoin::Or64 => Cost::from_milliweight(71), + Bitcoin::Or8 => Cost::from_milliweight(81), + Bitcoin::OutpointHash => Cost::from_milliweight(1788), + Bitcoin::OutputHash => Cost::from_milliweight(822), + Bitcoin::OutputScriptHash => Cost::from_milliweight(135), + Bitcoin::OutputScriptsHash => Cost::from_milliweight(123), + Bitcoin::OutputValue => Cost::from_milliweight(82), + Bitcoin::OutputValuesHash => Cost::from_milliweight(119), + Bitcoin::OutputsHash => Cost::from_milliweight(117), + Bitcoin::ParseLock => Cost::from_milliweight(82), + Bitcoin::ParseSequence => Cost::from_milliweight(93), + Bitcoin::PointVerify1 => Cost::from_milliweight(41394), + Bitcoin::RightExtend16_32 => Cost::from_milliweight(73), + Bitcoin::RightExtend16_64 => Cost::from_milliweight(70), + Bitcoin::RightExtend32_64 => Cost::from_milliweight(62), + Bitcoin::RightExtend8_16 => Cost::from_milliweight(63), + Bitcoin::RightExtend8_32 => Cost::from_milliweight(69), + Bitcoin::RightExtend8_64 => Cost::from_milliweight(141), + Bitcoin::RightPadHigh16_32 => Cost::from_milliweight(66), + Bitcoin::RightPadHigh16_64 => Cost::from_milliweight(81), + Bitcoin::RightPadHigh1_16 => Cost::from_milliweight(114), + Bitcoin::RightPadHigh1_32 => Cost::from_milliweight(220), + Bitcoin::RightPadHigh1_64 => Cost::from_milliweight(313), + Bitcoin::RightPadHigh1_8 => Cost::from_milliweight(73), + Bitcoin::RightPadHigh32_64 => Cost::from_milliweight(62), + Bitcoin::RightPadHigh8_16 => Cost::from_milliweight(75), + Bitcoin::RightPadHigh8_32 => Cost::from_milliweight(81), + Bitcoin::RightPadHigh8_64 => Cost::from_milliweight(118), + Bitcoin::RightPadLow16_32 => Cost::from_milliweight(62), + Bitcoin::RightPadLow16_64 => Cost::from_milliweight(98), + Bitcoin::RightPadLow1_16 => Cost::from_milliweight(60), + Bitcoin::RightPadLow1_32 => Cost::from_milliweight(47), + Bitcoin::RightPadLow1_64 => Cost::from_milliweight(57), + Bitcoin::RightPadLow1_8 => Cost::from_milliweight(48), + Bitcoin::RightPadLow32_64 => Cost::from_milliweight(74), + Bitcoin::RightPadLow8_16 => Cost::from_milliweight(62), + Bitcoin::RightPadLow8_32 => Cost::from_milliweight(69), + Bitcoin::RightPadLow8_64 => Cost::from_milliweight(98), + Bitcoin::RightRotate16 => Cost::from_milliweight(67), + Bitcoin::RightRotate32 => Cost::from_milliweight(77), + Bitcoin::RightRotate64 => Cost::from_milliweight(64), + Bitcoin::RightRotate8 => Cost::from_milliweight(72), + Bitcoin::RightShift16 => Cost::from_milliweight(60), + Bitcoin::RightShift32 => Cost::from_milliweight(69), + Bitcoin::RightShift64 => Cost::from_milliweight(68), + Bitcoin::RightShift8 => Cost::from_milliweight(63), + Bitcoin::RightShiftWith16 => Cost::from_milliweight(83), + Bitcoin::RightShiftWith32 => Cost::from_milliweight(78), + Bitcoin::RightShiftWith64 => Cost::from_milliweight(72), + Bitcoin::RightShiftWith8 => Cost::from_milliweight(71), + Bitcoin::Rightmost16_1 => Cost::from_milliweight(70), + Bitcoin::Rightmost16_2 => Cost::from_milliweight(65), + Bitcoin::Rightmost16_4 => Cost::from_milliweight(72), + Bitcoin::Rightmost16_8 => Cost::from_milliweight(69), + Bitcoin::Rightmost32_1 => Cost::from_milliweight(70), + Bitcoin::Rightmost32_16 => Cost::from_milliweight(56), + Bitcoin::Rightmost32_2 => Cost::from_milliweight(74), + Bitcoin::Rightmost32_4 => Cost::from_milliweight(57), + Bitcoin::Rightmost32_8 => Cost::from_milliweight(55), + Bitcoin::Rightmost64_1 => Cost::from_milliweight(61), + Bitcoin::Rightmost64_16 => Cost::from_milliweight(63), + Bitcoin::Rightmost64_2 => Cost::from_milliweight(65), + Bitcoin::Rightmost64_32 => Cost::from_milliweight(64), + Bitcoin::Rightmost64_4 => Cost::from_milliweight(57), + Bitcoin::Rightmost64_8 => Cost::from_milliweight(49), + Bitcoin::Rightmost8_1 => Cost::from_milliweight(65), + Bitcoin::Rightmost8_2 => Cost::from_milliweight(63), + Bitcoin::Rightmost8_4 => Cost::from_milliweight(56), + Bitcoin::ScalarAdd => Cost::from_milliweight(778), + Bitcoin::ScalarInvert => Cost::from_milliweight(3178), + Bitcoin::ScalarIsZero => Cost::from_milliweight(271), + Bitcoin::ScalarMultiply => Cost::from_milliweight(793), + Bitcoin::ScalarMultiplyLambda => Cost::from_milliweight(567), + Bitcoin::ScalarNegate => Cost::from_milliweight(516), + Bitcoin::ScalarNormalize => Cost::from_milliweight(500), + Bitcoin::ScalarSquare => Cost::from_milliweight(571), + Bitcoin::Scale => Cost::from_milliweight(73548), + Bitcoin::ScriptCMR => Cost::from_milliweight(122), + Bitcoin::Sha256Block => Cost::from_milliweight(765), + Bitcoin::Sha256Ctx8Add1 => Cost::from_milliweight(664), + Bitcoin::Sha256Ctx8Add128 => Cost::from_milliweight(1778), + Bitcoin::Sha256Ctx8Add16 => Cost::from_milliweight(781), + Bitcoin::Sha256Ctx8Add2 => Cost::from_milliweight(674), + Bitcoin::Sha256Ctx8Add256 => Cost::from_milliweight(2894), + Bitcoin::Sha256Ctx8Add32 => Cost::from_milliweight(928), + Bitcoin::Sha256Ctx8Add4 => Cost::from_milliweight(656), + Bitcoin::Sha256Ctx8Add512 => Cost::from_milliweight(5161), + Bitcoin::Sha256Ctx8Add64 => Cost::from_milliweight(1220), + Bitcoin::Sha256Ctx8Add8 => Cost::from_milliweight(694), + Bitcoin::Sha256Ctx8AddBuffer511 => Cost::from_milliweight(5137), + Bitcoin::Sha256Ctx8Finalize => Cost::from_milliweight(833), + Bitcoin::Sha256Ctx8Init => Cost::from_milliweight(123), + Bitcoin::Sha256Iv => Cost::from_milliweight(92), + Bitcoin::SigAllHash => Cost::from_milliweight(120), + Bitcoin::Some1 => Cost::from_milliweight(60), + Bitcoin::Some16 => Cost::from_milliweight(52), + Bitcoin::Some32 => Cost::from_milliweight(49), + Bitcoin::Some64 => Cost::from_milliweight(62), + Bitcoin::Some8 => Cost::from_milliweight(57), + Bitcoin::Subtract16 => Cost::from_milliweight(93), + Bitcoin::Subtract32 => Cost::from_milliweight(87), + Bitcoin::Subtract64 => Cost::from_milliweight(125), + Bitcoin::Subtract8 => Cost::from_milliweight(96), + Bitcoin::Swu => Cost::from_milliweight(32780), + Bitcoin::TapEnvHash => Cost::from_milliweight(120), + Bitcoin::TapdataInit => Cost::from_milliweight(1233), + Bitcoin::TapleafHash => Cost::from_milliweight(116), + Bitcoin::TapleafVersion => Cost::from_milliweight(66), + Bitcoin::Tappath => Cost::from_milliweight(76), + Bitcoin::TappathHash => Cost::from_milliweight(123), + Bitcoin::TotalInputValue => Cost::from_milliweight(69), + Bitcoin::TotalOutputValue => Cost::from_milliweight(71), + Bitcoin::TransactionId => Cost::from_milliweight(122), + Bitcoin::TxHash => Cost::from_milliweight(119), + Bitcoin::TxIsFinal => Cost::from_milliweight(62), + Bitcoin::TxLockDistance => Cost::from_milliweight(72), + Bitcoin::TxLockDuration => Cost::from_milliweight(66), + Bitcoin::TxLockHeight => Cost::from_milliweight(72), + Bitcoin::TxLockTime => Cost::from_milliweight(72), + Bitcoin::Verify => Cost::from_milliweight(44), + Bitcoin::Version => Cost::from_milliweight(78), + Bitcoin::Xor1 => Cost::from_milliweight(60), + Bitcoin::Xor16 => Cost::from_milliweight(73), + Bitcoin::Xor32 => Cost::from_milliweight(77), + Bitcoin::Xor64 => Cost::from_milliweight(68), + Bitcoin::Xor8 => Cost::from_milliweight(80), + Bitcoin::XorXor1 => Cost::from_milliweight(50), + Bitcoin::XorXor16 => Cost::from_milliweight(82), + Bitcoin::XorXor32 => Cost::from_milliweight(82), + Bitcoin::XorXor64 => Cost::from_milliweight(80), + Bitcoin::XorXor8 => Cost::from_milliweight(86), + } } fn parse(s: &str) -> Result where Self: Sized { diff --git a/update_jets.lock b/update_jets.lock index f00d8690..b2e0953a 100644 --- a/update_jets.lock +++ b/update_jets.lock @@ -6,10 +6,10 @@ # # "update_jets.sh --check" (run in CI) fails unless the revision matches # simplicity-sys/depend/simplicity-HEAD-revision.txt and every hash still matches. -libsimplicity 3f0bb69c4547bcf3483ca5ccbd06699464166650 +libsimplicity 4e0beb5947b7e75ee7974d82a1447e89a0b4b5d6 1ce6a0f903060ade42c4e30bd254fb9f3ff3ddd9cf0e6f0d46c3386d7c9dc8a3 simplicity-sys/src/c_jets/jets_ffi.rs f19ccd980ef3b34a2677ddedf0eba3a2b57620b27c6d04f0da2b3af71a6f120a simplicity-sys/src/c_jets/jets_wrapper.rs de53fabadd15684b5cbfd9af50519a88dd2b15d8d990f1b0ec4a41f98c857587 simplicity-sys/depend/jets_wrapper.c 6f1d6fb026b37b362b7f072c2cce39588f323a400afe65e20e52c786b2b166b3 src/jet/init/core.rs -2e142cbe51830ccd9d0a598830c8eeb6d8dfa6f9d592ee6e3756ebe0dc8d61d2 src/jet/init/bitcoin.rs +fb6e2a45104c57ab17c3e7c1240d0d61fb6c1e35240443e444002619029ce1dc src/jet/init/bitcoin.rs 44a294d0e9b48aedd7a8e726bd7f24470d4bf29263eaee94a8914125626affea src/jet/init/elements.rs From 9537b3b4e3a67702cd5fe4c7806cc3fac7405fe1 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 9 Nov 2026 18:43:22 +0200 Subject: [PATCH 2/9] jet: add self-checks for the Bitcoin CMR and cost tables Add src/jet/bitcoin/spec_tests.rs, asserting the CMR and cost of every Bitcoin jet against the values in libsimplicity's primitiveJetNode.inc. Both tables are generated from that file by update_jets.sh, so these tests detect drift between the vendored C data and the generated Rust: if the vendored revision changes and the regenerated tables move, the tests fail rather than silently changing consensus behaviour. --- src/jet/bitcoin/mod.rs | 2 + src/jet/bitcoin/spec_tests.rs | 4065 +++++++++++++++++++++++++++++++++ 2 files changed, 4067 insertions(+) create mode 100644 src/jet/bitcoin/spec_tests.rs diff --git a/src/jet/bitcoin/mod.rs b/src/jet/bitcoin/mod.rs index c67dbdef..a485fb31 100644 --- a/src/jet/bitcoin/mod.rs +++ b/src/jet/bitcoin/mod.rs @@ -2,6 +2,8 @@ mod c_env; mod environment; +#[cfg(test)] +mod spec_tests; pub use environment::BitcoinEnv; diff --git a/src/jet/bitcoin/spec_tests.rs b/src/jet/bitcoin/spec_tests.rs new file mode 100644 index 00000000..2429dbbf --- /dev/null +++ b/src/jet/bitcoin/spec_tests.rs @@ -0,0 +1,4065 @@ +// SPDX-License-Identifier: CC0-1.0 + +//! Checks that the generated Bitcoin jet CMR and cost tables agree with the +//! values recorded in libsimplicity's `primitiveJetNode.inc`. + +use super::Bitcoin; +use crate::analysis::Cost; +use crate::jet::Jet; +use crate::merkle::cmr::Cmr; + +#[test] +fn cmr_matches_spec() { + assert_eq!( + Bitcoin::Add16.cmr(), + Cmr::from_byte_array([ + 0x49, 0x42, 0x5a, 0x86, 0xe2, 0x0a, 0x67, 0x6d, 0x8b, 0x87, 0xe3, 0xc1, 0xa9, 0xb8, + 0xea, 0x6e, 0xc7, 0x5d, 0x85, 0x9c, 0x12, 0xc5, 0x1b, 0xcb, 0x7f, 0xa9, 0xf9, 0x69, + 0x12, 0xc3, 0x49, 0xcf + ]) + ); + assert_eq!( + Bitcoin::Add32.cmr(), + Cmr::from_byte_array([ + 0x46, 0x68, 0xcd, 0x55, 0xe8, 0xd1, 0x59, 0x19, 0x53, 0x32, 0x70, 0x14, 0xec, 0x64, + 0xc8, 0xe7, 0xd5, 0x2b, 0x86, 0xb5, 0x3e, 0x11, 0xc0, 0x14, 0x57, 0xea, 0xf2, 0xc3, + 0xd3, 0xce, 0xbf, 0x9f + ]) + ); + assert_eq!( + Bitcoin::Add64.cmr(), + Cmr::from_byte_array([ + 0xbe, 0x2b, 0x75, 0x19, 0x30, 0x3a, 0x67, 0xee, 0xa6, 0xb4, 0x82, 0x95, 0x0e, 0xda, + 0x83, 0x43, 0x5e, 0x1d, 0xe8, 0x55, 0x9c, 0x39, 0x4a, 0x23, 0x62, 0x22, 0xff, 0x5b, + 0xf0, 0x89, 0xd3, 0x46 + ]) + ); + assert_eq!( + Bitcoin::Add8.cmr(), + Cmr::from_byte_array([ + 0xdf, 0xa1, 0x79, 0xad, 0xf4, 0x55, 0x0b, 0x28, 0x48, 0x73, 0xbf, 0x30, 0x12, 0x3e, + 0x0d, 0x4e, 0x54, 0x06, 0x9b, 0x08, 0x58, 0x34, 0xce, 0x56, 0x58, 0x15, 0xef, 0x7e, + 0x45, 0x78, 0x4a, 0xcb + ]) + ); + assert_eq!( + Bitcoin::All16.cmr(), + Cmr::from_byte_array([ + 0x24, 0xf4, 0x82, 0xa5, 0x13, 0xd3, 0x33, 0x62, 0x01, 0x5d, 0x28, 0xdf, 0x4b, 0xb6, + 0xc3, 0xee, 0x08, 0xab, 0x8a, 0xfb, 0xbd, 0x25, 0x57, 0x1f, 0x0e, 0xa8, 0x9d, 0x8c, + 0xab, 0xa3, 0x14, 0x04 + ]) + ); + assert_eq!( + Bitcoin::All32.cmr(), + Cmr::from_byte_array([ + 0xa7, 0x16, 0x52, 0x2d, 0x0f, 0x37, 0x87, 0xc8, 0xb4, 0xd5, 0x07, 0x64, 0x7f, 0x1f, + 0x80, 0x7b, 0x67, 0xf3, 0x20, 0xd6, 0xeb, 0x67, 0xb8, 0x4b, 0x60, 0x9c, 0xec, 0x1d, + 0x2f, 0x12, 0x21, 0x8a + ]) + ); + assert_eq!( + Bitcoin::All64.cmr(), + Cmr::from_byte_array([ + 0x7a, 0xee, 0xfe, 0x2e, 0xce, 0x24, 0xba, 0xb3, 0x7c, 0x6e, 0x54, 0x30, 0xee, 0xd4, + 0x19, 0xfc, 0xd5, 0xf0, 0x37, 0x91, 0x2d, 0x17, 0x70, 0xcb, 0x7d, 0x65, 0x20, 0xdc, + 0xe5, 0x25, 0x29, 0x1a + ]) + ); + assert_eq!( + Bitcoin::All8.cmr(), + Cmr::from_byte_array([ + 0x46, 0x37, 0xf4, 0x0e, 0x5f, 0x47, 0x26, 0xb0, 0x05, 0x70, 0x76, 0x5a, 0xc7, 0x94, + 0xe2, 0x9e, 0xd1, 0xbb, 0x26, 0x55, 0xff, 0xc4, 0x12, 0xb2, 0xdc, 0x41, 0x25, 0x8e, + 0x41, 0xaa, 0xc6, 0x24 + ]) + ); + assert_eq!( + Bitcoin::And1.cmr(), + Cmr::from_byte_array([ + 0x10, 0x68, 0x4d, 0x0d, 0xd7, 0x2c, 0xb0, 0xa8, 0x26, 0xa8, 0x63, 0x83, 0x4e, 0x01, + 0x1f, 0x50, 0xfa, 0x0d, 0x55, 0x8b, 0xa7, 0x7d, 0x6b, 0x9f, 0x49, 0xa1, 0xac, 0x22, + 0x90, 0x2a, 0x6a, 0xd0 + ]) + ); + assert_eq!( + Bitcoin::And16.cmr(), + Cmr::from_byte_array([ + 0x37, 0x3c, 0x73, 0x0f, 0xad, 0x3e, 0x88, 0x47, 0x99, 0x1a, 0xa4, 0x17, 0xd9, 0xf0, + 0x80, 0xee, 0x1c, 0xb8, 0x8a, 0x7f, 0x72, 0x06, 0xf3, 0xfa, 0x84, 0x0b, 0x19, 0x50, + 0x77, 0x61, 0xfb, 0x23 + ]) + ); + assert_eq!( + Bitcoin::And32.cmr(), + Cmr::from_byte_array([ + 0x13, 0xb0, 0x2c, 0x4c, 0x60, 0xae, 0x6e, 0xa4, 0x91, 0x16, 0x16, 0x49, 0xac, 0xf9, + 0xa4, 0x7a, 0x70, 0x25, 0xaf, 0x84, 0x7d, 0x5f, 0x58, 0x1e, 0x6f, 0x1c, 0xcc, 0xfb, + 0x21, 0xd3, 0x00, 0x1d + ]) + ); + assert_eq!( + Bitcoin::And64.cmr(), + Cmr::from_byte_array([ + 0x92, 0x18, 0x55, 0x35, 0xd4, 0x50, 0x54, 0x07, 0xde, 0xa3, 0xc8, 0xa6, 0x08, 0x26, + 0xed, 0xe6, 0x4a, 0x8f, 0xbb, 0x3d, 0xb4, 0x86, 0xd5, 0x6f, 0x64, 0x2d, 0x21, 0x7c, + 0x29, 0xcb, 0xd7, 0x95 + ]) + ); + assert_eq!( + Bitcoin::And8.cmr(), + Cmr::from_byte_array([ + 0x26, 0x9a, 0x1b, 0x44, 0x62, 0x66, 0xf8, 0xf4, 0xa4, 0xa3, 0x8f, 0xa7, 0xe7, 0xe3, + 0x91, 0x82, 0xf1, 0x52, 0x14, 0x36, 0x14, 0x2b, 0xad, 0xed, 0xf3, 0xaa, 0x63, 0xfb, + 0x2f, 0x17, 0x2d, 0x2f + ]) + ); + assert_eq!( + Bitcoin::AnnexHash.cmr(), + Cmr::from_byte_array([ + 0x51, 0xfa, 0x19, 0x13, 0xa6, 0x29, 0x73, 0x48, 0x4a, 0x70, 0x0a, 0xf3, 0xff, 0x93, + 0x26, 0x94, 0xd3, 0x89, 0x0a, 0xe0, 0xad, 0x87, 0xa4, 0x55, 0xda, 0xf4, 0x90, 0x6f, + 0x22, 0x4a, 0x48, 0xd5 + ]) + ); + assert_eq!( + Bitcoin::Bip0340Verify.cmr(), + Cmr::from_byte_array([ + 0x49, 0x15, 0x65, 0xfe, 0x23, 0xa7, 0xbd, 0xc1, 0x84, 0x2b, 0xe7, 0x49, 0x50, 0x93, + 0x37, 0xf9, 0x68, 0x90, 0xd5, 0xb3, 0x58, 0xb3, 0x65, 0x20, 0x90, 0xda, 0x55, 0x66, + 0x54, 0xe2, 0x95, 0x49 + ]) + ); + assert_eq!( + Bitcoin::BuildTapbranch.cmr(), + Cmr::from_byte_array([ + 0xef, 0x8e, 0x92, 0x91, 0x9b, 0x26, 0x08, 0xea, 0x6b, 0x5b, 0xcd, 0xd3, 0x9c, 0x51, + 0x78, 0xe5, 0x46, 0x24, 0x95, 0x53, 0x91, 0x4b, 0x0f, 0x8d, 0x33, 0x73, 0x5d, 0x28, + 0x86, 0xe1, 0xa5, 0xe8 + ]) + ); + assert_eq!( + Bitcoin::BuildTapleafSimplicity.cmr(), + Cmr::from_byte_array([ + 0x22, 0x41, 0x19, 0x09, 0x98, 0x41, 0x47, 0xde, 0x8f, 0x5a, 0x04, 0x28, 0x35, 0x8b, + 0x47, 0x16, 0xdb, 0x08, 0x76, 0x64, 0xa7, 0x28, 0x56, 0x08, 0x52, 0xb0, 0xe6, 0x16, + 0xeb, 0xc6, 0x2d, 0x30 + ]) + ); + assert_eq!( + Bitcoin::BuildTaptweak.cmr(), + Cmr::from_byte_array([ + 0xf1, 0x92, 0xdb, 0x17, 0x06, 0x60, 0x8d, 0xef, 0x16, 0x5d, 0xbd, 0xda, 0x72, 0xa3, + 0x8c, 0x88, 0x82, 0xcb, 0x36, 0xc6, 0xda, 0x47, 0x07, 0x0d, 0x8a, 0x5f, 0x58, 0x96, + 0xfb, 0xda, 0x84, 0x34 + ]) + ); + assert_eq!( + Bitcoin::CheckLockDistance.cmr(), + Cmr::from_byte_array([ + 0x38, 0xfd, 0xf7, 0xdd, 0x28, 0x53, 0x86, 0x70, 0xfb, 0x34, 0xc1, 0xbf, 0xe7, 0x2f, + 0x17, 0xe2, 0xca, 0x57, 0x84, 0xf8, 0x7f, 0xed, 0x88, 0xea, 0xb5, 0x84, 0x79, 0x2b, + 0x39, 0x74, 0xbd, 0x18 + ]) + ); + assert_eq!( + Bitcoin::CheckLockDuration.cmr(), + Cmr::from_byte_array([ + 0x77, 0x50, 0x38, 0x32, 0x6e, 0xae, 0x25, 0xc7, 0x20, 0x9b, 0x24, 0x43, 0x06, 0xea, + 0xa9, 0xf9, 0x20, 0x4c, 0x7e, 0xce, 0x2d, 0xd6, 0x3b, 0x45, 0x2e, 0x10, 0x01, 0x7f, + 0xa4, 0xea, 0x53, 0xcf + ]) + ); + assert_eq!( + Bitcoin::CheckLockHeight.cmr(), + Cmr::from_byte_array([ + 0xb9, 0x0f, 0x15, 0x1f, 0x45, 0xb4, 0xeb, 0x37, 0x21, 0x06, 0x21, 0xf9, 0x70, 0x0a, + 0x36, 0xc8, 0xc5, 0x04, 0xbe, 0xe0, 0x67, 0x77, 0x11, 0x63, 0xa8, 0xb8, 0x3a, 0x77, + 0x18, 0xe6, 0x68, 0x6a + ]) + ); + assert_eq!( + Bitcoin::CheckLockTime.cmr(), + Cmr::from_byte_array([ + 0xa4, 0x51, 0xeb, 0xb2, 0x25, 0xd6, 0xb1, 0x33, 0xa5, 0xe6, 0x35, 0x39, 0x78, 0x00, + 0xd4, 0x87, 0xb3, 0x96, 0x8b, 0x0d, 0xe5, 0x5c, 0x96, 0xeb, 0x82, 0xf2, 0x90, 0xec, + 0xff, 0x9c, 0x25, 0x90 + ]) + ); + assert_eq!( + Bitcoin::CheckSigVerify.cmr(), + Cmr::from_byte_array([ + 0xb5, 0x80, 0x15, 0x54, 0x6d, 0x28, 0x52, 0x66, 0x5d, 0xd2, 0x1b, 0xf1, 0x12, 0x66, + 0x26, 0x70, 0x20, 0xfa, 0x5e, 0x27, 0x50, 0x01, 0xdd, 0x46, 0x18, 0xfa, 0x41, 0x56, + 0x25, 0x95, 0x2e, 0x68 + ]) + ); + assert_eq!( + Bitcoin::Ch1.cmr(), + Cmr::from_byte_array([ + 0x73, 0xb2, 0xa9, 0x81, 0xd7, 0x21, 0x98, 0x6f, 0x8c, 0xde, 0xd6, 0x97, 0xe0, 0x63, + 0x05, 0xd4, 0x58, 0x54, 0x10, 0x2d, 0xff, 0x20, 0xc0, 0xe5, 0xb9, 0x8a, 0xe1, 0x76, + 0x23, 0x2f, 0xf2, 0x5b + ]) + ); + assert_eq!( + Bitcoin::Ch16.cmr(), + Cmr::from_byte_array([ + 0x78, 0xde, 0x46, 0x5e, 0x61, 0xd9, 0xa5, 0x0f, 0x78, 0x25, 0x2f, 0xf4, 0xab, 0x23, + 0xc9, 0xe6, 0x3a, 0xe6, 0x8c, 0x76, 0x9d, 0x36, 0x66, 0x12, 0x71, 0x20, 0x7d, 0xc6, + 0x93, 0xf4, 0x69, 0xb4 + ]) + ); + assert_eq!( + Bitcoin::Ch32.cmr(), + Cmr::from_byte_array([ + 0xed, 0x93, 0xbe, 0xf1, 0xf6, 0x6e, 0x3a, 0x75, 0xe6, 0x12, 0x06, 0x02, 0xec, 0xee, + 0x67, 0x40, 0x65, 0x3e, 0x7b, 0xd4, 0x6e, 0x07, 0xeb, 0x77, 0x14, 0x4e, 0xf1, 0xbb, + 0x2c, 0x9d, 0xe5, 0x3d + ]) + ); + assert_eq!( + Bitcoin::Ch64.cmr(), + Cmr::from_byte_array([ + 0xce, 0xd0, 0x07, 0x9b, 0x0b, 0xd1, 0xcc, 0x00, 0x20, 0x9a, 0x7c, 0xbc, 0x23, 0xf1, + 0x3d, 0xfd, 0x20, 0x28, 0x08, 0xf0, 0xf5, 0x25, 0x7d, 0x8a, 0x50, 0xac, 0x54, 0x3e, + 0x64, 0xee, 0x3a, 0x05 + ]) + ); + assert_eq!( + Bitcoin::Ch8.cmr(), + Cmr::from_byte_array([ + 0xc7, 0x07, 0xca, 0x72, 0x3e, 0x24, 0xf6, 0xb2, 0x5b, 0xf3, 0x94, 0xa9, 0x9a, 0x4d, + 0x75, 0xe8, 0x13, 0x79, 0xb4, 0x67, 0x84, 0x38, 0xac, 0x78, 0x9d, 0xee, 0x18, 0x8e, + 0xdc, 0xce, 0x75, 0xfa + ]) + ); + assert_eq!( + Bitcoin::Complement1.cmr(), + Cmr::from_byte_array([ + 0x1b, 0xcf, 0xae, 0x13, 0xd5, 0xd2, 0x37, 0xa0, 0xbb, 0x9b, 0x1d, 0x75, 0x32, 0x04, + 0x74, 0x62, 0xb2, 0x76, 0x90, 0xde, 0x5c, 0xac, 0x0e, 0x20, 0x19, 0x29, 0x89, 0x64, + 0x57, 0x93, 0x40, 0x60 + ]) + ); + assert_eq!( + Bitcoin::Complement16.cmr(), + Cmr::from_byte_array([ + 0x81, 0xad, 0x4d, 0x2c, 0x3d, 0x16, 0xbf, 0x34, 0x0a, 0xf3, 0x88, 0x6d, 0x35, 0x5c, + 0xc5, 0xbd, 0x1d, 0x59, 0x67, 0xe1, 0x6a, 0xce, 0x92, 0x4f, 0x19, 0xec, 0xf7, 0xd4, + 0x86, 0xd6, 0xc7, 0xe9 + ]) + ); + assert_eq!( + Bitcoin::Complement32.cmr(), + Cmr::from_byte_array([ + 0x13, 0x74, 0x2c, 0x18, 0x04, 0xa9, 0x6e, 0x6c, 0x03, 0x95, 0x28, 0xbf, 0xd0, 0x3b, + 0x8c, 0xf2, 0xb4, 0x62, 0x52, 0x6b, 0xb1, 0x81, 0xa3, 0xd8, 0xb4, 0x32, 0xf9, 0x9a, + 0xc4, 0xf5, 0xa7, 0xef + ]) + ); + assert_eq!( + Bitcoin::Complement64.cmr(), + Cmr::from_byte_array([ + 0x65, 0xb7, 0xbd, 0x09, 0x36, 0x39, 0xc5, 0x6d, 0xa2, 0x85, 0xce, 0xfa, 0x2d, 0x04, + 0x64, 0x64, 0x5e, 0x14, 0xdd, 0x13, 0x64, 0x2f, 0x34, 0x95, 0x7d, 0x47, 0x37, 0xbd, + 0x52, 0xfa, 0xc5, 0x88 + ]) + ); + assert_eq!( + Bitcoin::Complement8.cmr(), + Cmr::from_byte_array([ + 0x95, 0x4b, 0x70, 0xdc, 0xec, 0x53, 0x9e, 0x6b, 0x67, 0xdf, 0xfe, 0xc5, 0x3c, 0xf2, + 0x4a, 0x66, 0x99, 0x39, 0x60, 0x8b, 0x22, 0x3f, 0x5f, 0x8b, 0x6d, 0x12, 0x9d, 0xaa, + 0x48, 0xca, 0x1c, 0xf0 + ]) + ); + assert_eq!( + Bitcoin::CurrentAnnexHash.cmr(), + Cmr::from_byte_array([ + 0xce, 0xd9, 0x02, 0x2e, 0xdc, 0x69, 0x24, 0x1f, 0xe7, 0x07, 0x49, 0xa7, 0xf5, 0xd4, + 0x89, 0xc3, 0x13, 0x5e, 0xe8, 0xc9, 0x6f, 0xe6, 0x4c, 0x44, 0x64, 0x40, 0x1f, 0x98, + 0x51, 0xd7, 0xa1, 0x7d + ]) + ); + assert_eq!( + Bitcoin::CurrentIndex.cmr(), + Cmr::from_byte_array([ + 0x0e, 0x8c, 0x96, 0x4c, 0x2f, 0x2b, 0x34, 0x90, 0x36, 0x2f, 0x3b, 0xbc, 0x74, 0x83, + 0xde, 0xa3, 0x7f, 0xda, 0x81, 0x0b, 0x69, 0x31, 0x4f, 0xf6, 0x64, 0xfe, 0xa0, 0xe3, + 0x27, 0x08, 0xec, 0x8f + ]) + ); + assert_eq!( + Bitcoin::CurrentPrevOutpoint.cmr(), + Cmr::from_byte_array([ + 0x64, 0x43, 0x39, 0x1b, 0x34, 0x40, 0x86, 0x84, 0x6d, 0x5a, 0x17, 0xa6, 0x2e, 0x3e, + 0x06, 0x28, 0x2a, 0xd6, 0x96, 0x2c, 0x4d, 0xfc, 0xed, 0x2f, 0x6a, 0x83, 0xd0, 0xdf, + 0xbf, 0x6a, 0x5c, 0x54 + ]) + ); + assert_eq!( + Bitcoin::CurrentScriptHash.cmr(), + Cmr::from_byte_array([ + 0x23, 0x49, 0x8d, 0xd6, 0x64, 0x5e, 0xd1, 0x38, 0xb3, 0x44, 0x93, 0x7c, 0xf6, 0x54, + 0xaa, 0xff, 0xa6, 0x27, 0xf8, 0x5a, 0x47, 0xca, 0xa6, 0x89, 0x54, 0xf1, 0x3f, 0x4c, + 0x6a, 0x4d, 0xc7, 0x72 + ]) + ); + assert_eq!( + Bitcoin::CurrentScriptSigHash.cmr(), + Cmr::from_byte_array([ + 0x34, 0xa3, 0xc5, 0x5d, 0x14, 0x73, 0x74, 0xd8, 0xf3, 0xa1, 0x76, 0x1b, 0xba, 0xb2, + 0x86, 0x96, 0x84, 0x55, 0x40, 0x4c, 0x2c, 0xa0, 0x3f, 0x69, 0x39, 0x3f, 0x63, 0x39, + 0xd0, 0xf5, 0x8b, 0x59 + ]) + ); + assert_eq!( + Bitcoin::CurrentSequence.cmr(), + Cmr::from_byte_array([ + 0xc4, 0x9f, 0x76, 0xac, 0x79, 0xf8, 0xf1, 0x5c, 0x40, 0x9b, 0xa8, 0x15, 0xc1, 0x6e, + 0xdc, 0xb8, 0xd1, 0x1e, 0x9a, 0x07, 0x56, 0x5c, 0x8e, 0x09, 0xb6, 0x3e, 0x7f, 0xdf, + 0x31, 0x03, 0x00, 0x9f + ]) + ); + assert_eq!( + Bitcoin::CurrentValue.cmr(), + Cmr::from_byte_array([ + 0x91, 0xb9, 0x6e, 0x82, 0x9e, 0x3b, 0x49, 0x72, 0xb0, 0xcb, 0x09, 0x1a, 0x0a, 0x90, + 0x4b, 0xa4, 0x11, 0x33, 0x8a, 0xbf, 0xc0, 0x8d, 0xa7, 0x86, 0xd5, 0xa8, 0x4f, 0x04, + 0x9b, 0x5b, 0xa3, 0xb8 + ]) + ); + assert_eq!( + Bitcoin::Decompress.cmr(), + Cmr::from_byte_array([ + 0x89, 0x00, 0x56, 0xdf, 0x82, 0x8a, 0x76, 0x6e, 0xe9, 0xf6, 0x56, 0x07, 0x22, 0x1e, + 0x89, 0x46, 0xfa, 0x77, 0xc2, 0x56, 0xbb, 0x96, 0xe2, 0x31, 0xe1, 0x94, 0xd3, 0x00, + 0x8c, 0xf3, 0x56, 0xf6 + ]) + ); + assert_eq!( + Bitcoin::Decrement16.cmr(), + Cmr::from_byte_array([ + 0x35, 0xfd, 0xa3, 0x8b, 0x67, 0x2c, 0x38, 0x31, 0xd8, 0xca, 0x11, 0xa4, 0xf3, 0xa9, + 0x59, 0x62, 0x22, 0x52, 0x9e, 0xb1, 0xc1, 0x5f, 0x8c, 0x70, 0x50, 0x13, 0x97, 0x7d, + 0x7d, 0xfb, 0x5d, 0x8b + ]) + ); + assert_eq!( + Bitcoin::Decrement32.cmr(), + Cmr::from_byte_array([ + 0x3b, 0x2b, 0x19, 0x39, 0x55, 0x22, 0x84, 0xf6, 0x14, 0x69, 0x4b, 0xa1, 0x8d, 0xce, + 0x70, 0xce, 0xe4, 0x76, 0xff, 0x42, 0xdc, 0xd0, 0x89, 0xe1, 0xa3, 0xc0, 0xa4, 0x2b, + 0xeb, 0xd1, 0x08, 0xf6 + ]) + ); + assert_eq!( + Bitcoin::Decrement64.cmr(), + Cmr::from_byte_array([ + 0x7e, 0xf7, 0xbd, 0xd3, 0x5d, 0xb6, 0x85, 0xae, 0x99, 0x05, 0x53, 0x37, 0x35, 0xa2, + 0xc7, 0xa7, 0xcc, 0xbc, 0x17, 0x08, 0xae, 0x63, 0x6f, 0x93, 0x1b, 0x5c, 0xe0, 0x26, + 0xe5, 0xa1, 0x7f, 0xed + ]) + ); + assert_eq!( + Bitcoin::Decrement8.cmr(), + Cmr::from_byte_array([ + 0xe3, 0x64, 0xf2, 0xe5, 0xc0, 0x8a, 0xe0, 0x11, 0x8e, 0xbe, 0x99, 0x3e, 0x8b, 0x3c, + 0x95, 0x8c, 0x2b, 0xcc, 0x60, 0x62, 0xa3, 0x3b, 0xaa, 0xb9, 0x28, 0xc0, 0x4b, 0x3e, + 0xc9, 0x32, 0xf5, 0x1b + ]) + ); + assert_eq!( + Bitcoin::Divides16.cmr(), + Cmr::from_byte_array([ + 0x10, 0xbb, 0x18, 0x18, 0x0e, 0xab, 0x5b, 0xad, 0xdc, 0x16, 0x5d, 0x03, 0x37, 0xc4, + 0xad, 0xa0, 0x88, 0xe1, 0x57, 0xb1, 0xaa, 0x67, 0x83, 0x34, 0x2a, 0x45, 0x20, 0xa3, + 0x24, 0xdd, 0x9d, 0x2b + ]) + ); + assert_eq!( + Bitcoin::Divides32.cmr(), + Cmr::from_byte_array([ + 0xf5, 0xe8, 0xe7, 0x8c, 0x82, 0x76, 0x9a, 0x48, 0xc9, 0x10, 0x3e, 0x44, 0xdd, 0xb4, + 0x7f, 0x84, 0x1d, 0x76, 0x93, 0xb0, 0x41, 0x9e, 0x5e, 0x7d, 0xa4, 0xe6, 0x8b, 0x78, + 0xb2, 0x37, 0xa5, 0x72 + ]) + ); + assert_eq!( + Bitcoin::Divides64.cmr(), + Cmr::from_byte_array([ + 0x9e, 0xbd, 0x55, 0xfa, 0xe4, 0x18, 0x88, 0x5e, 0xea, 0x04, 0xc3, 0xcd, 0xff, 0xf5, + 0x31, 0xb7, 0xd7, 0x14, 0xd0, 0x59, 0x4f, 0xa7, 0xda, 0x87, 0xeb, 0x65, 0x55, 0xd3, + 0x6b, 0x95, 0x3d, 0xb2 + ]) + ); + assert_eq!( + Bitcoin::Divides8.cmr(), + Cmr::from_byte_array([ + 0xa2, 0x36, 0xbc, 0x3e, 0x5c, 0xf4, 0xd2, 0x56, 0x40, 0x8b, 0xa3, 0x8c, 0x1e, 0xae, + 0xe7, 0x36, 0x9a, 0x9c, 0x40, 0x2f, 0x74, 0xbc, 0xd1, 0xc8, 0x02, 0xf9, 0x09, 0x4f, + 0xbf, 0x36, 0x80, 0x3d + ]) + ); + assert_eq!( + Bitcoin::Divide16.cmr(), + Cmr::from_byte_array([ + 0x52, 0xab, 0xfe, 0xf1, 0x79, 0x75, 0x4c, 0x90, 0xf9, 0xa4, 0x26, 0x0f, 0x32, 0x3a, + 0x8c, 0xa4, 0x95, 0x15, 0x92, 0x90, 0x2b, 0x8e, 0xcb, 0xd6, 0x4b, 0xa4, 0x26, 0x56, + 0xfa, 0xc0, 0x59, 0x68 + ]) + ); + assert_eq!( + Bitcoin::Divide32.cmr(), + Cmr::from_byte_array([ + 0x4a, 0x8a, 0xe5, 0x35, 0x44, 0xe1, 0x47, 0xed, 0x02, 0x25, 0x04, 0x23, 0x79, 0x34, + 0xcc, 0x25, 0x44, 0x79, 0xbc, 0xf9, 0x3d, 0xe1, 0xe1, 0x97, 0x4d, 0xda, 0xb3, 0xbb, + 0x51, 0x6e, 0x60, 0x6c + ]) + ); + assert_eq!( + Bitcoin::Divide64.cmr(), + Cmr::from_byte_array([ + 0xd7, 0x02, 0x5d, 0x05, 0xad, 0xfa, 0xe6, 0x6b, 0x47, 0x10, 0xd0, 0xff, 0x1e, 0x87, + 0xe8, 0x28, 0x15, 0x57, 0x3e, 0x9c, 0xb6, 0x31, 0xb4, 0xc7, 0xd1, 0x3d, 0x2f, 0x1b, + 0xe4, 0xdd, 0x26, 0xd2 + ]) + ); + assert_eq!( + Bitcoin::Divide8.cmr(), + Cmr::from_byte_array([ + 0x40, 0xcd, 0x1d, 0xac, 0xea, 0x24, 0x66, 0x9b, 0x6a, 0x58, 0x9b, 0x61, 0x47, 0x54, + 0x74, 0xaf, 0x31, 0xd1, 0x4f, 0x8d, 0x46, 0x87, 0x70, 0x84, 0x52, 0xd3, 0xdf, 0x37, + 0x30, 0x25, 0x31, 0x26 + ]) + ); + assert_eq!( + Bitcoin::DivMod128_64.cmr(), + Cmr::from_byte_array([ + 0x9a, 0x94, 0x43, 0xa2, 0xb5, 0x41, 0xe2, 0x9f, 0x27, 0x2f, 0xfd, 0x56, 0x7d, 0x1b, + 0xf7, 0x42, 0xd6, 0x8c, 0xcb, 0xe9, 0x53, 0x8a, 0x87, 0x29, 0x1b, 0x0c, 0xa6, 0x38, + 0x15, 0x63, 0xac, 0x2c + ]) + ); + assert_eq!( + Bitcoin::DivMod16.cmr(), + Cmr::from_byte_array([ + 0x39, 0xbc, 0xb5, 0xc0, 0x1d, 0xc1, 0x80, 0x5c, 0x49, 0x19, 0x89, 0x5c, 0xb5, 0x9e, + 0x8f, 0x3b, 0x41, 0x44, 0x67, 0x17, 0xf7, 0xff, 0x48, 0xfd, 0xc9, 0x37, 0xdd, 0x03, + 0x80, 0x24, 0xa0, 0x8a + ]) + ); + assert_eq!( + Bitcoin::DivMod32.cmr(), + Cmr::from_byte_array([ + 0xfb, 0x12, 0x02, 0xf4, 0xe8, 0x66, 0x3a, 0x87, 0xf5, 0x68, 0x99, 0x2a, 0x18, 0x50, + 0x24, 0xc7, 0x0b, 0x4f, 0x07, 0x9f, 0xbe, 0x95, 0x30, 0x01, 0x0f, 0x6d, 0xb2, 0x84, + 0x21, 0x8a, 0xf6, 0xcd + ]) + ); + assert_eq!( + Bitcoin::DivMod64.cmr(), + Cmr::from_byte_array([ + 0x67, 0x64, 0xdf, 0x5e, 0x2a, 0xa0, 0x30, 0x32, 0x6e, 0xe5, 0x44, 0xc6, 0xe5, 0x3f, + 0xf3, 0x8e, 0xf0, 0xb2, 0x85, 0x17, 0x91, 0x5e, 0xec, 0x65, 0xc7, 0x2e, 0xa5, 0x7a, + 0x12, 0x98, 0x28, 0xeb + ]) + ); + assert_eq!( + Bitcoin::DivMod8.cmr(), + Cmr::from_byte_array([ + 0xd3, 0x00, 0x24, 0x4e, 0x48, 0x0d, 0xd9, 0x74, 0x12, 0x13, 0xe4, 0xcb, 0x0e, 0xba, + 0x83, 0x6d, 0x30, 0x59, 0xe7, 0x78, 0xb8, 0x12, 0x2f, 0x78, 0x90, 0x03, 0x26, 0x73, + 0x73, 0x9c, 0x6a, 0x2c + ]) + ); + assert_eq!( + Bitcoin::Eq1.cmr(), + Cmr::from_byte_array([ + 0x65, 0x49, 0xf9, 0x86, 0x20, 0x3a, 0x64, 0x97, 0x35, 0x6e, 0x43, 0x2b, 0x2a, 0xa1, + 0x60, 0xd6, 0xee, 0x87, 0x0b, 0x11, 0x19, 0x08, 0x65, 0xbd, 0x36, 0xa4, 0x7c, 0xb0, + 0x47, 0x04, 0x33, 0xa5 + ]) + ); + assert_eq!( + Bitcoin::Eq16.cmr(), + Cmr::from_byte_array([ + 0x0c, 0x54, 0x02, 0xb0, 0xad, 0xc8, 0xfc, 0x65, 0x70, 0x1b, 0xb7, 0x5b, 0x32, 0x54, + 0xc8, 0x35, 0xf8, 0xfe, 0xc1, 0x30, 0x81, 0xcd, 0x35, 0xe1, 0x32, 0x8f, 0x2b, 0xd7, + 0xdb, 0xd2, 0x3f, 0xa6 + ]) + ); + assert_eq!( + Bitcoin::Eq256.cmr(), + Cmr::from_byte_array([ + 0x26, 0x0e, 0x1d, 0x13, 0x6d, 0xd7, 0x44, 0xfc, 0xb0, 0x50, 0x7a, 0x2d, 0x27, 0x70, + 0x27, 0xa7, 0x72, 0x43, 0x54, 0xeb, 0x17, 0x6b, 0x2f, 0xbf, 0x31, 0xc6, 0xc7, 0xd7, + 0xfb, 0x3e, 0xcd, 0x6f + ]) + ); + assert_eq!( + Bitcoin::Eq32.cmr(), + Cmr::from_byte_array([ + 0xf5, 0xd6, 0xed, 0xc8, 0xb6, 0x16, 0x4e, 0x12, 0x5b, 0xbb, 0xef, 0x08, 0xc9, 0xe0, + 0x8a, 0x1e, 0x6f, 0xd4, 0x92, 0xf5, 0xbd, 0xca, 0x6f, 0xdc, 0x8b, 0x5f, 0x5a, 0x6f, + 0x05, 0xc5, 0xab, 0x96 + ]) + ); + assert_eq!( + Bitcoin::Eq64.cmr(), + Cmr::from_byte_array([ + 0x1f, 0x93, 0xac, 0xb8, 0x09, 0x2f, 0xa0, 0x6d, 0xea, 0xf3, 0xc3, 0x87, 0xf5, 0x4a, + 0x18, 0xff, 0xea, 0xa6, 0x9a, 0x47, 0xa6, 0xf5, 0xca, 0xf4, 0xae, 0x49, 0x7e, 0x5c, + 0xc2, 0xb3, 0x6c, 0x43 + ]) + ); + assert_eq!( + Bitcoin::Eq8.cmr(), + Cmr::from_byte_array([ + 0xd7, 0x52, 0xfa, 0x7f, 0x51, 0x47, 0x30, 0x14, 0xeb, 0xb6, 0x9e, 0x1e, 0x1d, 0x2c, + 0x86, 0xd5, 0x11, 0x48, 0xb6, 0xba, 0xa0, 0x21, 0x37, 0xa4, 0x8f, 0x62, 0xd5, 0x7e, + 0xaf, 0x8d, 0xf1, 0xcd + ]) + ); + assert_eq!( + Bitcoin::Fee.cmr(), + Cmr::from_byte_array([ + 0xfb, 0x9c, 0xa9, 0x39, 0x81, 0x67, 0x3d, 0x1d, 0x23, 0xae, 0xd2, 0x4d, 0x61, 0x2c, + 0x1f, 0x5d, 0xc7, 0xcd, 0x49, 0xf8, 0x6d, 0x34, 0x8e, 0x67, 0xa1, 0x5b, 0xc4, 0xa7, + 0x13, 0x0a, 0xe1, 0x85 + ]) + ); + assert_eq!( + Bitcoin::FeAdd.cmr(), + Cmr::from_byte_array([ + 0xa6, 0xc9, 0x0e, 0x02, 0xfd, 0xe4, 0xee, 0x6e, 0xef, 0x66, 0x67, 0x37, 0x49, 0x2e, + 0x14, 0xaf, 0xc8, 0x76, 0x25, 0x04, 0x97, 0x4a, 0xf5, 0xd5, 0x47, 0x2b, 0xb9, 0x43, + 0x3a, 0xd2, 0xd2, 0x94 + ]) + ); + assert_eq!( + Bitcoin::FeInvert.cmr(), + Cmr::from_byte_array([ + 0x7c, 0x4a, 0xba, 0xce, 0x33, 0xc7, 0x2b, 0x3b, 0xe1, 0xfd, 0x0e, 0xe3, 0x9f, 0xc6, + 0xcb, 0x3e, 0xe5, 0xc8, 0xf1, 0x1e, 0xf2, 0x19, 0x98, 0xc0, 0x60, 0x2b, 0x52, 0x15, + 0xaa, 0x2a, 0x75, 0xc2 + ]) + ); + assert_eq!( + Bitcoin::FeIsOdd.cmr(), + Cmr::from_byte_array([ + 0x30, 0xf5, 0x17, 0x1f, 0x58, 0xf1, 0x08, 0x9d, 0x5d, 0xcf, 0xb6, 0xe6, 0x68, 0x3f, + 0x5a, 0xde, 0x98, 0x4c, 0x07, 0x99, 0x76, 0x3c, 0xa7, 0x38, 0x3f, 0x75, 0xdf, 0x1c, + 0xa0, 0x81, 0x3e, 0xfe + ]) + ); + assert_eq!( + Bitcoin::FeIsZero.cmr(), + Cmr::from_byte_array([ + 0xb0, 0xb7, 0x4d, 0x86, 0x51, 0xff, 0x55, 0x7c, 0xa9, 0x60, 0x44, 0xdd, 0x97, 0x28, + 0x13, 0x38, 0xa8, 0xf7, 0xd3, 0xac, 0xb3, 0x84, 0x7d, 0x03, 0xac, 0xbf, 0x3d, 0x32, + 0xd9, 0x6f, 0xae, 0x55 + ]) + ); + assert_eq!( + Bitcoin::FeMultiply.cmr(), + Cmr::from_byte_array([ + 0x50, 0x6b, 0x93, 0x19, 0xc1, 0x7a, 0x14, 0xa9, 0x46, 0x9d, 0x46, 0x27, 0x61, 0xa3, + 0x30, 0x3a, 0xb4, 0x7d, 0xdb, 0x3a, 0x30, 0x79, 0xfb, 0xa3, 0x40, 0x73, 0xaa, 0x55, + 0x42, 0x16, 0xa3, 0x88 + ]) + ); + assert_eq!( + Bitcoin::FeMultiplyBeta.cmr(), + Cmr::from_byte_array([ + 0x6e, 0x18, 0x0e, 0xea, 0xbe, 0x84, 0x22, 0xb7, 0x99, 0x68, 0xe7, 0x11, 0xdd, 0x00, + 0xa4, 0xb6, 0x57, 0x8b, 0xb2, 0x75, 0xbe, 0xf4, 0x7f, 0xe5, 0xff, 0x96, 0x8f, 0x14, + 0x72, 0xd7, 0x6f, 0x2a + ]) + ); + assert_eq!( + Bitcoin::FeNegate.cmr(), + Cmr::from_byte_array([ + 0xd4, 0x37, 0xea, 0x00, 0x33, 0x98, 0x80, 0xb3, 0x83, 0xd8, 0x5f, 0xb2, 0xae, 0xaf, + 0x20, 0x1b, 0xbe, 0x8f, 0xfc, 0x83, 0x70, 0x50, 0x62, 0xf9, 0xc9, 0x68, 0x59, 0x0d, + 0x5d, 0xb3, 0x37, 0xf6 + ]) + ); + assert_eq!( + Bitcoin::FeNormalize.cmr(), + Cmr::from_byte_array([ + 0xec, 0x0c, 0x3d, 0xd9, 0xc5, 0x28, 0x63, 0x64, 0x78, 0xbe, 0xc0, 0xe1, 0x60, 0xe5, + 0x0a, 0xd9, 0xbf, 0x45, 0x2c, 0x5b, 0x6f, 0x84, 0xe9, 0x40, 0xe1, 0x65, 0x84, 0xeb, + 0x08, 0x5a, 0xce, 0x38 + ]) + ); + assert_eq!( + Bitcoin::FeSquare.cmr(), + Cmr::from_byte_array([ + 0xb9, 0x04, 0x77, 0x2d, 0x74, 0xa1, 0x85, 0xb8, 0x28, 0xeb, 0x15, 0x47, 0x28, 0xd2, + 0x49, 0xc5, 0x08, 0x47, 0x11, 0xe9, 0xa1, 0x83, 0x2b, 0x89, 0xca, 0xf2, 0xaf, 0x59, + 0xf9, 0x60, 0xe1, 0x18 + ]) + ); + assert_eq!( + Bitcoin::FeSquareRoot.cmr(), + Cmr::from_byte_array([ + 0x16, 0xfb, 0x9a, 0xce, 0xbe, 0x8b, 0x5b, 0x87, 0xf2, 0xea, 0x7d, 0xb6, 0xaa, 0x3a, + 0x2a, 0xf8, 0x8c, 0xa2, 0xb5, 0x8f, 0x02, 0xcd, 0xc8, 0x7e, 0x7c, 0xe6, 0xbe, 0x0c, + 0x1f, 0xfc, 0xe0, 0x14 + ]) + ); + assert_eq!( + Bitcoin::FullAdd16.cmr(), + Cmr::from_byte_array([ + 0xc5, 0x03, 0xb0, 0x78, 0xdd, 0xe3, 0x99, 0xc6, 0x3a, 0xc4, 0xa2, 0x32, 0xbd, 0x2a, + 0x32, 0x9b, 0x04, 0x30, 0x8c, 0x75, 0xea, 0xec, 0x53, 0xa2, 0xf8, 0x89, 0xb8, 0xdf, + 0x0d, 0x03, 0x34, 0x72 + ]) + ); + assert_eq!( + Bitcoin::FullAdd32.cmr(), + Cmr::from_byte_array([ + 0xa7, 0xaf, 0xd0, 0x40, 0xfc, 0xb0, 0xb2, 0xf2, 0x71, 0x90, 0x78, 0x1a, 0xe5, 0x3a, + 0x6c, 0xca, 0x00, 0xe9, 0xfe, 0x59, 0x53, 0x11, 0x15, 0xc2, 0x58, 0xcc, 0xb6, 0x9d, + 0x3b, 0xe5, 0xa2, 0x13 + ]) + ); + assert_eq!( + Bitcoin::FullAdd64.cmr(), + Cmr::from_byte_array([ + 0x80, 0xa3, 0xef, 0x6c, 0xdb, 0x84, 0xae, 0x7c, 0x8d, 0xbc, 0xf3, 0xa1, 0x84, 0x24, + 0x84, 0xc0, 0x98, 0xdf, 0x6f, 0x19, 0x42, 0x7a, 0x5a, 0x4a, 0xdf, 0xe7, 0x6c, 0xd5, + 0xff, 0x28, 0x36, 0xca + ]) + ); + assert_eq!( + Bitcoin::FullAdd8.cmr(), + Cmr::from_byte_array([ + 0x4b, 0x90, 0x76, 0xb8, 0xc1, 0xad, 0x56, 0xc9, 0xdb, 0x6b, 0xb3, 0xba, 0xf5, 0x93, + 0x89, 0x54, 0x46, 0xce, 0x61, 0xc7, 0x4f, 0x79, 0x7e, 0xb8, 0xb2, 0x30, 0xd2, 0x05, + 0x42, 0x1c, 0x96, 0x17 + ]) + ); + assert_eq!( + Bitcoin::FullDecrement16.cmr(), + Cmr::from_byte_array([ + 0xfb, 0xa3, 0xc9, 0x78, 0x6e, 0xa3, 0x07, 0xf6, 0xd8, 0x54, 0x34, 0xfd, 0xa2, 0x56, + 0x24, 0x82, 0x43, 0xa0, 0x0b, 0xac, 0x9a, 0x53, 0x53, 0xb6, 0x1e, 0xd3, 0x9c, 0x60, + 0x55, 0xb6, 0x93, 0xb0 + ]) + ); + assert_eq!( + Bitcoin::FullDecrement32.cmr(), + Cmr::from_byte_array([ + 0x62, 0x3d, 0x21, 0xd0, 0x46, 0x79, 0x22, 0xc0, 0x01, 0xc5, 0x65, 0x68, 0x61, 0xd0, + 0xdd, 0xb8, 0x60, 0xc0, 0xc9, 0xa8, 0x6b, 0xd4, 0xcf, 0xdc, 0x37, 0xa1, 0x4c, 0x14, + 0x06, 0xe3, 0x44, 0x6e + ]) + ); + assert_eq!( + Bitcoin::FullDecrement64.cmr(), + Cmr::from_byte_array([ + 0x14, 0x8b, 0x3e, 0xe1, 0xf7, 0x49, 0xea, 0x0b, 0xfb, 0xa7, 0x63, 0xbe, 0xe9, 0x99, + 0xa2, 0x96, 0x77, 0x45, 0x6e, 0xae, 0x9e, 0xf5, 0x3a, 0xd8, 0x78, 0xf8, 0xb6, 0x14, + 0x94, 0xf0, 0x8f, 0x00 + ]) + ); + assert_eq!( + Bitcoin::FullDecrement8.cmr(), + Cmr::from_byte_array([ + 0xb4, 0x1a, 0xfe, 0x97, 0x4e, 0xaa, 0x11, 0x82, 0xac, 0x46, 0x10, 0x52, 0x1e, 0x28, + 0x27, 0x81, 0x31, 0x8c, 0xe2, 0x95, 0xa3, 0xf2, 0x3f, 0x0b, 0x87, 0x6a, 0xe2, 0x69, + 0x67, 0x3f, 0xb1, 0xdf + ]) + ); + assert_eq!( + Bitcoin::FullIncrement16.cmr(), + Cmr::from_byte_array([ + 0xa6, 0x8e, 0xcc, 0xdb, 0x9e, 0xad, 0x29, 0x26, 0xc3, 0xe4, 0x5b, 0x4b, 0xae, 0x43, + 0x1c, 0xc4, 0x66, 0xd5, 0x8b, 0x8f, 0xac, 0xc9, 0x5a, 0x1b, 0x48, 0x44, 0xb9, 0x12, + 0xdf, 0x56, 0x76, 0xdf + ]) + ); + assert_eq!( + Bitcoin::FullIncrement32.cmr(), + Cmr::from_byte_array([ + 0xd0, 0xeb, 0x0e, 0x94, 0xa5, 0xc2, 0x57, 0x13, 0xeb, 0x94, 0x4c, 0xad, 0x4d, 0x70, + 0x1c, 0x6a, 0x96, 0x88, 0x09, 0xbc, 0x1a, 0xf9, 0x03, 0xfd, 0xb1, 0x1e, 0x6f, 0xad, + 0x0b, 0xb3, 0x1b, 0x10 + ]) + ); + assert_eq!( + Bitcoin::FullIncrement64.cmr(), + Cmr::from_byte_array([ + 0xc0, 0x03, 0xd2, 0xe9, 0xb0, 0xa5, 0x10, 0xc2, 0xdd, 0x78, 0x3e, 0x7d, 0x64, 0xeb, + 0x87, 0xb3, 0x38, 0x55, 0xd3, 0x29, 0x90, 0xdf, 0xc2, 0x86, 0x26, 0x6e, 0x47, 0x8d, + 0xa4, 0xe7, 0x47, 0x91 + ]) + ); + assert_eq!( + Bitcoin::FullIncrement8.cmr(), + Cmr::from_byte_array([ + 0x0b, 0xea, 0x24, 0x29, 0x18, 0xf2, 0xdd, 0x17, 0x64, 0x77, 0x78, 0x11, 0xe4, 0x44, + 0x28, 0x63, 0x93, 0x52, 0x25, 0xb0, 0xf8, 0xb2, 0x39, 0xc2, 0x37, 0x52, 0xf9, 0xd8, + 0x53, 0x92, 0xa1, 0x39 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift16_1.cmr(), + Cmr::from_byte_array([ + 0xb3, 0x66, 0xa8, 0x16, 0x92, 0x2f, 0xc4, 0x55, 0x01, 0x0f, 0xe8, 0x8a, 0x5f, 0x6a, + 0x5c, 0xf2, 0xce, 0xa9, 0x17, 0xe1, 0x2b, 0xd1, 0x40, 0xae, 0x6d, 0x43, 0xb6, 0x41, + 0xe5, 0x7f, 0x42, 0xb3 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift16_2.cmr(), + Cmr::from_byte_array([ + 0x27, 0x96, 0x0d, 0x0d, 0xf2, 0xfb, 0xbc, 0x38, 0x99, 0x3d, 0x86, 0xfb, 0x8f, 0x0c, + 0xd2, 0xc3, 0x43, 0x4e, 0xdb, 0x11, 0x04, 0x82, 0x13, 0xc1, 0x41, 0x18, 0x93, 0xca, + 0x99, 0x33, 0xb2, 0xee + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift16_4.cmr(), + Cmr::from_byte_array([ + 0x65, 0x51, 0x37, 0xbe, 0xc5, 0xc0, 0x36, 0x8f, 0x29, 0xbc, 0x99, 0x2c, 0x88, 0x42, + 0x1a, 0x15, 0x98, 0x56, 0x40, 0x39, 0x7b, 0x61, 0x7f, 0xc4, 0x8d, 0x33, 0x21, 0x0f, + 0xc0, 0x05, 0x3a, 0xd1 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift16_8.cmr(), + Cmr::from_byte_array([ + 0x16, 0x8f, 0x57, 0x6a, 0xa5, 0x6e, 0xa4, 0x7e, 0x07, 0x06, 0x46, 0xe7, 0x88, 0x96, + 0xbe, 0xb2, 0x49, 0x8b, 0x1a, 0xe6, 0xb1, 0xff, 0x9c, 0x78, 0x62, 0x70, 0xe9, 0x55, + 0x65, 0x84, 0x19, 0x29 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift32_1.cmr(), + Cmr::from_byte_array([ + 0xd7, 0xcd, 0x52, 0x24, 0x49, 0x11, 0x8e, 0x81, 0x00, 0xa7, 0x66, 0x2f, 0x4d, 0xf0, + 0x39, 0xf8, 0xca, 0xeb, 0xf4, 0x33, 0xeb, 0x03, 0x9e, 0xdc, 0x42, 0xe8, 0x82, 0x37, + 0x92, 0xcc, 0xea, 0x8a + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift32_16.cmr(), + Cmr::from_byte_array([ + 0x8b, 0xd8, 0x0d, 0x4d, 0x2f, 0x8b, 0x22, 0x46, 0xc1, 0x23, 0x15, 0xc4, 0x28, 0x41, + 0xb4, 0xe4, 0x0a, 0x71, 0xae, 0x76, 0x96, 0x6a, 0x08, 0x95, 0x4d, 0x66, 0x6b, 0x86, + 0x32, 0x86, 0x74, 0x37 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift32_2.cmr(), + Cmr::from_byte_array([ + 0x13, 0x06, 0x3d, 0x62, 0x93, 0x83, 0x29, 0x31, 0x1f, 0xb7, 0xda, 0xbb, 0x15, 0xc3, + 0xfe, 0x58, 0xc2, 0x88, 0x76, 0x83, 0x00, 0x97, 0xec, 0xc6, 0xbf, 0xdd, 0x48, 0x0b, + 0xe1, 0x98, 0x81, 0x46 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift32_4.cmr(), + Cmr::from_byte_array([ + 0x25, 0xa1, 0xb5, 0xdd, 0xe5, 0xdb, 0x28, 0x4e, 0x8a, 0x88, 0x21, 0x26, 0x7c, 0x26, + 0x53, 0x01, 0x14, 0xbb, 0xe6, 0x71, 0xcf, 0xaf, 0xb4, 0x4a, 0x60, 0xd7, 0x50, 0x27, + 0x67, 0xdb, 0x78, 0x2e + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift32_8.cmr(), + Cmr::from_byte_array([ + 0xce, 0x54, 0x70, 0xaf, 0xbf, 0xad, 0xbf, 0xba, 0x68, 0xf9, 0xb2, 0xd5, 0xb0, 0x64, + 0x5a, 0x44, 0x08, 0xbe, 0x6f, 0x85, 0xa6, 0x9c, 0x7f, 0x09, 0xd0, 0x96, 0x45, 0x53, + 0x68, 0x04, 0x87, 0x64 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift64_1.cmr(), + Cmr::from_byte_array([ + 0x05, 0x1f, 0x36, 0x05, 0x86, 0xc3, 0x79, 0xac, 0x2c, 0xe3, 0x99, 0xcb, 0xeb, 0x68, + 0x7e, 0x77, 0x53, 0xb1, 0x5d, 0x73, 0x03, 0xdd, 0x31, 0x6c, 0xbd, 0x12, 0x30, 0x12, + 0x08, 0x7c, 0xc6, 0x6f + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift64_16.cmr(), + Cmr::from_byte_array([ + 0xb2, 0x48, 0xbe, 0x4d, 0xfc, 0xb8, 0x8c, 0x5d, 0x89, 0xb1, 0xca, 0x61, 0x86, 0xa0, + 0x41, 0xe9, 0x02, 0xb4, 0xc8, 0xa6, 0x2b, 0xb1, 0x6e, 0x09, 0xfe, 0x15, 0x61, 0x6e, + 0x0e, 0x3a, 0xbd, 0x6d + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift64_2.cmr(), + Cmr::from_byte_array([ + 0x34, 0xbb, 0x51, 0x62, 0x6b, 0x1d, 0x6b, 0x89, 0x7a, 0xbc, 0x15, 0x5d, 0x03, 0x4f, + 0xe0, 0x66, 0x3a, 0x0e, 0xc0, 0xfd, 0x8f, 0x64, 0x0e, 0x5f, 0xe1, 0xbf, 0x3c, 0xb7, + 0x67, 0x0a, 0x29, 0x25 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift64_32.cmr(), + Cmr::from_byte_array([ + 0x9d, 0xac, 0x8c, 0xd7, 0xfd, 0x8b, 0x48, 0x88, 0x9e, 0x55, 0xc5, 0xaa, 0x12, 0xfe, + 0x97, 0xb7, 0x29, 0xfe, 0xbc, 0x04, 0x1a, 0x9f, 0xff, 0x44, 0xc4, 0xd9, 0xb6, 0xf1, + 0xe0, 0x7e, 0xb4, 0x42 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift64_4.cmr(), + Cmr::from_byte_array([ + 0x94, 0xb7, 0x3d, 0xad, 0xc3, 0xee, 0xeb, 0x2e, 0xe4, 0xa4, 0xd4, 0x44, 0xdd, 0x0f, + 0x72, 0xac, 0x30, 0x62, 0x01, 0xf2, 0xff, 0xcf, 0x71, 0x4b, 0x8e, 0xbe, 0x79, 0x82, + 0x74, 0x4c, 0x0c, 0x7e + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift64_8.cmr(), + Cmr::from_byte_array([ + 0x0e, 0xf7, 0x14, 0x75, 0x7e, 0xcf, 0x11, 0xca, 0x3c, 0x73, 0xce, 0x25, 0xef, 0x24, + 0xee, 0x72, 0x95, 0xdd, 0x41, 0x71, 0xcc, 0x16, 0x28, 0x7f, 0xe6, 0x97, 0x1b, 0xd6, + 0x7b, 0x47, 0x8b, 0x46 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift8_1.cmr(), + Cmr::from_byte_array([ + 0x9b, 0xfa, 0x48, 0xb7, 0xad, 0x51, 0x00, 0x91, 0xba, 0x60, 0x85, 0x44, 0x62, 0xd8, + 0x59, 0xef, 0xd1, 0xa2, 0xaa, 0x18, 0x73, 0x1b, 0x5f, 0x0c, 0x9e, 0x2b, 0xa4, 0xd8, + 0x9d, 0x3a, 0xa8, 0x43 + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift8_2.cmr(), + Cmr::from_byte_array([ + 0x79, 0x7c, 0x20, 0x87, 0x01, 0xb2, 0xa4, 0xe1, 0x04, 0x9e, 0x83, 0xd6, 0x95, 0xf5, + 0x54, 0xb9, 0x84, 0xf5, 0xdb, 0x28, 0x21, 0x52, 0x55, 0x58, 0x7c, 0x37, 0x34, 0x21, + 0x51, 0xb7, 0x24, 0x1d + ]) + ); + assert_eq!( + Bitcoin::FullLeftShift8_4.cmr(), + Cmr::from_byte_array([ + 0x37, 0xbd, 0xac, 0x91, 0x53, 0x8f, 0x22, 0x19, 0xcb, 0x89, 0xdf, 0x0e, 0xf9, 0xf1, + 0x97, 0xcd, 0x68, 0x03, 0x1f, 0x27, 0x67, 0xe8, 0x94, 0xf0, 0x01, 0xc2, 0x6f, 0xff, + 0x5e, 0xeb, 0x58, 0xcd + ]) + ); + assert_eq!( + Bitcoin::FullMultiply16.cmr(), + Cmr::from_byte_array([ + 0x09, 0xba, 0xff, 0x92, 0x1e, 0x9f, 0x14, 0xd1, 0x20, 0x8d, 0x1d, 0xd8, 0x26, 0x4c, + 0xf1, 0xf3, 0xb8, 0x54, 0xc9, 0xaf, 0x21, 0xf7, 0x78, 0xb2, 0xb5, 0x5a, 0x8a, 0x42, + 0x6d, 0xfe, 0x89, 0x28 + ]) + ); + assert_eq!( + Bitcoin::FullMultiply32.cmr(), + Cmr::from_byte_array([ + 0x10, 0xc4, 0xb8, 0xc4, 0xc0, 0xac, 0xd9, 0x73, 0x90, 0xf8, 0x5c, 0xb3, 0xf5, 0xff, + 0xe3, 0x6a, 0x29, 0x20, 0x37, 0xc1, 0x90, 0xee, 0xba, 0xb3, 0xe9, 0x89, 0x34, 0xfe, + 0x93, 0xb2, 0xed, 0x90 + ]) + ); + assert_eq!( + Bitcoin::FullMultiply64.cmr(), + Cmr::from_byte_array([ + 0x2d, 0xb1, 0x9d, 0xba, 0x90, 0xef, 0x86, 0x7b, 0x5a, 0x3e, 0x91, 0x4b, 0x89, 0xfd, + 0xa2, 0xda, 0x63, 0x7c, 0xa8, 0x0c, 0x42, 0x67, 0xe1, 0x98, 0x18, 0x37, 0xee, 0x3c, + 0x6f, 0xe3, 0xda, 0xf5 + ]) + ); + assert_eq!( + Bitcoin::FullMultiply8.cmr(), + Cmr::from_byte_array([ + 0x7f, 0x46, 0xee, 0x72, 0x84, 0xf3, 0x9e, 0x73, 0x42, 0x75, 0xa2, 0x50, 0x9a, 0x0b, + 0x73, 0x7e, 0xd9, 0x39, 0x11, 0x5f, 0x02, 0x19, 0xa5, 0x74, 0xd4, 0x69, 0xcd, 0x30, + 0xb8, 0x19, 0xef, 0xe3 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift16_1.cmr(), + Cmr::from_byte_array([ + 0x7e, 0xbe, 0x0c, 0x66, 0xc3, 0xc7, 0xdc, 0x16, 0xa5, 0x46, 0x9e, 0x91, 0x79, 0x09, + 0x84, 0x17, 0xac, 0x5f, 0x20, 0xa3, 0x9c, 0xc4, 0x1a, 0xc3, 0x82, 0xfb, 0x1d, 0xbd, + 0x98, 0xe8, 0xe3, 0x0f + ]) + ); + assert_eq!( + Bitcoin::FullRightShift16_2.cmr(), + Cmr::from_byte_array([ + 0x8d, 0xb0, 0xc2, 0x16, 0x19, 0xc6, 0x2d, 0x63, 0xd4, 0xc2, 0x7b, 0xfc, 0xf6, 0x47, + 0xd7, 0x09, 0xce, 0x37, 0xbe, 0xd0, 0x57, 0x18, 0xe9, 0x3e, 0x45, 0x15, 0xe2, 0x9e, + 0xf3, 0x73, 0x0c, 0xf4 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift16_4.cmr(), + Cmr::from_byte_array([ + 0x5c, 0x74, 0xb1, 0x32, 0x06, 0x31, 0x79, 0x17, 0xe0, 0x70, 0xe5, 0xfc, 0x1c, 0x82, + 0xf4, 0xc5, 0xc2, 0xfb, 0xe9, 0xf3, 0x1b, 0x81, 0x29, 0x46, 0xba, 0x23, 0x0d, 0x8c, + 0x94, 0xd4, 0x06, 0x16 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift16_8.cmr(), + Cmr::from_byte_array([ + 0x11, 0x05, 0x81, 0x8a, 0xc9, 0x48, 0xd7, 0xbb, 0x63, 0x47, 0x07, 0xe6, 0x9d, 0xbf, + 0x1f, 0x67, 0x90, 0x58, 0xa1, 0x3d, 0x35, 0xfa, 0xc2, 0xa6, 0x4d, 0xf9, 0x72, 0x62, + 0xf2, 0x42, 0xb6, 0x3b + ]) + ); + assert_eq!( + Bitcoin::FullRightShift32_1.cmr(), + Cmr::from_byte_array([ + 0x9b, 0x42, 0xc8, 0xf3, 0x3b, 0xc5, 0x75, 0x0e, 0x2a, 0x83, 0xaa, 0xdb, 0xf2, 0x9c, + 0xc7, 0xfc, 0xb9, 0x50, 0xfe, 0x5a, 0x40, 0xaa, 0x0e, 0xc5, 0x24, 0x52, 0xe5, 0x33, + 0xf8, 0x25, 0xa1, 0x15 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift32_16.cmr(), + Cmr::from_byte_array([ + 0x0a, 0xe5, 0x65, 0x9c, 0x2f, 0xa7, 0x57, 0x94, 0x78, 0xeb, 0xd5, 0x7c, 0x4c, 0x98, + 0xae, 0xe7, 0x77, 0x01, 0x56, 0x45, 0xb2, 0x84, 0x31, 0x81, 0x64, 0xfc, 0xbd, 0x30, + 0x65, 0xfc, 0x87, 0x3c + ]) + ); + assert_eq!( + Bitcoin::FullRightShift32_2.cmr(), + Cmr::from_byte_array([ + 0x57, 0xfb, 0x1c, 0x03, 0xc2, 0xeb, 0x17, 0xf6, 0x23, 0x47, 0x87, 0x34, 0xfd, 0x69, + 0x37, 0xf9, 0xe3, 0xef, 0x02, 0x7c, 0x15, 0x60, 0x03, 0x8f, 0xa6, 0x06, 0x69, 0x05, + 0x17, 0x89, 0xe3, 0x68 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift32_4.cmr(), + Cmr::from_byte_array([ + 0x85, 0x82, 0xcd, 0xfa, 0x74, 0xef, 0x46, 0x6b, 0x81, 0x27, 0xb1, 0x97, 0x88, 0x13, + 0x45, 0x93, 0x99, 0x8e, 0x49, 0x69, 0x00, 0xb3, 0x8f, 0x0f, 0x3d, 0x37, 0x58, 0x18, + 0xd6, 0x73, 0x45, 0x1e + ]) + ); + assert_eq!( + Bitcoin::FullRightShift32_8.cmr(), + Cmr::from_byte_array([ + 0xd9, 0x05, 0x93, 0x2e, 0xbf, 0xca, 0x2a, 0x38, 0x61, 0x9d, 0x80, 0x7e, 0x28, 0xff, + 0x2e, 0x0d, 0x3b, 0xe0, 0x8a, 0x26, 0x06, 0x76, 0xd2, 0x57, 0xef, 0xa0, 0x40, 0xc3, + 0x05, 0xaa, 0xdc, 0x33 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift64_1.cmr(), + Cmr::from_byte_array([ + 0x3c, 0x15, 0x20, 0x9b, 0x99, 0xd2, 0x84, 0x5e, 0x22, 0x5e, 0x14, 0xe1, 0xe9, 0xe5, + 0xe6, 0xa4, 0x87, 0x8b, 0xc8, 0xce, 0xa3, 0xf9, 0xf3, 0x6b, 0x8b, 0x53, 0x5a, 0xc6, + 0x83, 0xe2, 0x9d, 0x00 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift64_16.cmr(), + Cmr::from_byte_array([ + 0x02, 0x85, 0x25, 0x7b, 0x09, 0x0d, 0x8d, 0xa1, 0x28, 0xef, 0x64, 0xa8, 0x0c, 0x8d, + 0x16, 0xfd, 0xc3, 0xbf, 0x5c, 0xe5, 0x0f, 0xcd, 0x56, 0xfe, 0xc5, 0xf9, 0x02, 0x55, + 0xd9, 0xc8, 0xdf, 0x47 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift64_2.cmr(), + Cmr::from_byte_array([ + 0x7e, 0xc2, 0xdd, 0x65, 0xc9, 0xe0, 0x13, 0xe3, 0xe4, 0xce, 0x90, 0xfb, 0xeb, 0x3f, + 0xb1, 0xc7, 0x8c, 0xcc, 0x5d, 0x2a, 0x7d, 0x26, 0xd8, 0xaf, 0x77, 0xf9, 0x9d, 0xe8, + 0x4c, 0xf7, 0x29, 0x73 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift64_32.cmr(), + Cmr::from_byte_array([ + 0x35, 0x6f, 0x7d, 0xd4, 0x6b, 0xa3, 0x3f, 0x84, 0xb0, 0x66, 0x72, 0xfd, 0xe9, 0xa2, + 0x97, 0x2e, 0x80, 0xf3, 0xea, 0x96, 0x5a, 0xe8, 0xbc, 0x0b, 0xff, 0x67, 0xaa, 0x2f, + 0x69, 0xf1, 0x0b, 0x56 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift64_4.cmr(), + Cmr::from_byte_array([ + 0x05, 0x46, 0x4a, 0x33, 0x35, 0xaf, 0xbb, 0x09, 0xd0, 0x46, 0x82, 0x8a, 0x92, 0x2c, + 0x4d, 0xa0, 0xec, 0xee, 0xb1, 0x09, 0x77, 0xe4, 0x68, 0x01, 0xc9, 0x3c, 0xdd, 0x66, + 0x8f, 0x22, 0xee, 0x63 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift64_8.cmr(), + Cmr::from_byte_array([ + 0x70, 0x17, 0x2e, 0x1a, 0x69, 0x48, 0xbf, 0x40, 0x12, 0x0e, 0x68, 0xfb, 0x8b, 0x4b, + 0x23, 0xbc, 0x35, 0x5a, 0x12, 0x00, 0x2c, 0xcc, 0x1d, 0xb6, 0x47, 0xc8, 0x9b, 0x12, + 0xd1, 0x0e, 0xc5, 0x06 + ]) + ); + assert_eq!( + Bitcoin::FullRightShift8_1.cmr(), + Cmr::from_byte_array([ + 0x56, 0x69, 0xdb, 0xfc, 0xc6, 0x33, 0xec, 0x0b, 0xdf, 0x59, 0xe2, 0x2f, 0x03, 0xed, + 0x4b, 0x64, 0x19, 0x20, 0x95, 0xf5, 0xdf, 0x20, 0xff, 0xc1, 0x2d, 0xd9, 0x0d, 0x7c, + 0xda, 0x11, 0x37, 0x4f + ]) + ); + assert_eq!( + Bitcoin::FullRightShift8_2.cmr(), + Cmr::from_byte_array([ + 0x1f, 0x94, 0x43, 0x61, 0x09, 0xdf, 0x52, 0xb3, 0x45, 0xfa, 0x3a, 0x89, 0xac, 0x2a, + 0x49, 0xed, 0xc9, 0xd2, 0x85, 0xf2, 0x1f, 0x45, 0xed, 0x11, 0xd7, 0x75, 0xf7, 0xf7, + 0xf3, 0x9d, 0x3e, 0x8f + ]) + ); + assert_eq!( + Bitcoin::FullRightShift8_4.cmr(), + Cmr::from_byte_array([ + 0x71, 0x46, 0x98, 0xa2, 0x76, 0x84, 0xb5, 0xba, 0xa6, 0xb6, 0x48, 0x0e, 0xe3, 0xb2, + 0x57, 0xcb, 0xb7, 0xcd, 0xab, 0x74, 0x72, 0xf3, 0x71, 0xa6, 0x27, 0x06, 0x18, 0xc0, + 0xab, 0x12, 0x90, 0x8b + ]) + ); + assert_eq!( + Bitcoin::FullSubtract16.cmr(), + Cmr::from_byte_array([ + 0x40, 0x09, 0x61, 0x52, 0xb5, 0x4e, 0x74, 0x25, 0x45, 0x55, 0xa6, 0x5d, 0xcc, 0xc6, + 0x29, 0xdf, 0x57, 0xb9, 0x79, 0xc8, 0x47, 0x00, 0x54, 0x50, 0x36, 0xfe, 0x19, 0x0a, + 0x6a, 0xf3, 0xd3, 0x8a + ]) + ); + assert_eq!( + Bitcoin::FullSubtract32.cmr(), + Cmr::from_byte_array([ + 0xe7, 0x93, 0x0d, 0x64, 0x35, 0xa9, 0x68, 0x0b, 0xef, 0xb4, 0x9d, 0xb7, 0xd8, 0x7c, + 0x2f, 0x50, 0xaf, 0xd4, 0x6d, 0x98, 0x88, 0x0d, 0xed, 0x50, 0xe5, 0x05, 0x5f, 0xa3, + 0x09, 0xe1, 0xaf, 0xca + ]) + ); + assert_eq!( + Bitcoin::FullSubtract64.cmr(), + Cmr::from_byte_array([ + 0xff, 0x28, 0x1d, 0xf8, 0xc4, 0x2a, 0x31, 0x59, 0xd9, 0xff, 0xa9, 0x25, 0x16, 0xca, + 0x89, 0x3e, 0x23, 0xb0, 0xeb, 0x93, 0x8b, 0x4c, 0xb0, 0xb3, 0xf1, 0x34, 0x46, 0x8e, + 0x9f, 0x4e, 0xbc, 0x46 + ]) + ); + assert_eq!( + Bitcoin::FullSubtract8.cmr(), + Cmr::from_byte_array([ + 0x7e, 0x3d, 0xcf, 0xe4, 0x56, 0xae, 0x3c, 0x5c, 0x87, 0xde, 0xbf, 0x04, 0x71, 0x89, + 0xc2, 0x74, 0x82, 0xa4, 0xff, 0x4e, 0x8c, 0xfd, 0x1f, 0x17, 0x30, 0xc8, 0x7d, 0x2b, + 0x7b, 0xff, 0x73, 0xba + ]) + ); + assert_eq!( + Bitcoin::GejAdd.cmr(), + Cmr::from_byte_array([ + 0x45, 0xba, 0x7f, 0x3d, 0x1e, 0x1e, 0x6d, 0x34, 0x9f, 0xcf, 0x86, 0x98, 0x7b, 0x0e, + 0x7f, 0x7a, 0xce, 0x66, 0x2e, 0x82, 0x20, 0x1d, 0x35, 0x02, 0x60, 0x45, 0x4e, 0x2f, + 0xfe, 0xec, 0xb5, 0x4d + ]) + ); + assert_eq!( + Bitcoin::GejDouble.cmr(), + Cmr::from_byte_array([ + 0x23, 0xe9, 0x78, 0xf3, 0x41, 0x54, 0x11, 0x9b, 0xde, 0xfc, 0x5d, 0x13, 0xfc, 0xfd, + 0x0a, 0x34, 0xa7, 0x5e, 0x37, 0x26, 0xd6, 0xcb, 0x25, 0x81, 0x33, 0x70, 0xad, 0x7d, + 0x9d, 0xe5, 0xe1, 0x33 + ]) + ); + assert_eq!( + Bitcoin::GejEquiv.cmr(), + Cmr::from_byte_array([ + 0xb9, 0x4b, 0x2a, 0xac, 0x73, 0xa6, 0x7f, 0x44, 0x95, 0x85, 0x99, 0x13, 0x4d, 0xe2, + 0x30, 0x17, 0x9e, 0x9d, 0x6b, 0xb6, 0x47, 0xfd, 0x06, 0x11, 0x15, 0x8a, 0xab, 0xa7, + 0x0b, 0x73, 0xe4, 0x00 + ]) + ); + assert_eq!( + Bitcoin::GejGeAdd.cmr(), + Cmr::from_byte_array([ + 0xf1, 0x16, 0x0b, 0x6f, 0x5e, 0xe2, 0xc5, 0x82, 0xe4, 0x95, 0x66, 0xe6, 0xc3, 0x86, + 0xb3, 0x80, 0x94, 0xab, 0xc1, 0xa7, 0x18, 0x2d, 0x33, 0xa1, 0x50, 0x1f, 0xa2, 0xaa, + 0xf0, 0x0a, 0xf3, 0xea + ]) + ); + assert_eq!( + Bitcoin::GejGeAddEx.cmr(), + Cmr::from_byte_array([ + 0xc3, 0xd7, 0x34, 0x7f, 0xfe, 0x2d, 0x9c, 0x83, 0x9a, 0xac, 0x56, 0x7e, 0x29, 0x98, + 0xe0, 0x16, 0xaf, 0x39, 0x4e, 0x2a, 0x19, 0x29, 0x31, 0x4b, 0x52, 0xe3, 0x1e, 0xed, + 0x67, 0x8e, 0x30, 0xbf + ]) + ); + assert_eq!( + Bitcoin::GejGeEquiv.cmr(), + Cmr::from_byte_array([ + 0x27, 0xc2, 0x99, 0x69, 0x13, 0x9f, 0x8d, 0x57, 0xed, 0xc9, 0x89, 0x5c, 0x30, 0x40, + 0x3d, 0xf0, 0x15, 0xc5, 0x0c, 0xe7, 0x21, 0xc3, 0x81, 0xfb, 0x19, 0x7c, 0x0c, 0x04, + 0x03, 0xf1, 0xdb, 0x0c + ]) + ); + assert_eq!( + Bitcoin::GejInfinity.cmr(), + Cmr::from_byte_array([ + 0xaa, 0xfb, 0x93, 0x80, 0xd6, 0x1a, 0x7f, 0x14, 0x78, 0x46, 0x80, 0x6b, 0x2c, 0xc3, + 0x74, 0xfb, 0xe8, 0x2d, 0xd1, 0xae, 0xd4, 0x85, 0xb9, 0x8a, 0x0f, 0x16, 0x4b, 0x3a, + 0x54, 0xc2, 0xc0, 0xb0 + ]) + ); + assert_eq!( + Bitcoin::GejIsInfinity.cmr(), + Cmr::from_byte_array([ + 0xdb, 0x49, 0x5f, 0xd1, 0x31, 0x42, 0xe9, 0xb3, 0x37, 0x63, 0xfc, 0x6d, 0x48, 0xd2, + 0xfb, 0x0e, 0x71, 0xb0, 0xd9, 0xd9, 0x9b, 0xd7, 0x26, 0xf4, 0x7a, 0xd1, 0x3f, 0xc5, + 0x56, 0x06, 0x70, 0xa2 + ]) + ); + assert_eq!( + Bitcoin::GejIsOnCurve.cmr(), + Cmr::from_byte_array([ + 0xbf, 0x4c, 0xa1, 0x3f, 0xf2, 0x12, 0xe3, 0x4b, 0xf1, 0x7d, 0x90, 0xc1, 0x2e, 0x45, + 0x3d, 0x08, 0xac, 0x7d, 0xaa, 0x4a, 0x47, 0xd5, 0x7e, 0x85, 0xb4, 0x3f, 0x2d, 0x43, + 0x66, 0xd4, 0x3d, 0xda + ]) + ); + assert_eq!( + Bitcoin::GejNegate.cmr(), + Cmr::from_byte_array([ + 0x01, 0xbd, 0x1a, 0x35, 0x1f, 0xb8, 0x16, 0x4c, 0x81, 0x3d, 0x91, 0x6d, 0x07, 0x77, + 0x49, 0x99, 0x6b, 0x7d, 0xb1, 0x18, 0xd3, 0x15, 0x86, 0xca, 0x9d, 0x75, 0xe7, 0x56, + 0x35, 0x18, 0xf4, 0x54 + ]) + ); + assert_eq!( + Bitcoin::GejNormalize.cmr(), + Cmr::from_byte_array([ + 0xec, 0x59, 0x7d, 0x17, 0xe2, 0xef, 0xb6, 0xd2, 0xa0, 0x02, 0xd5, 0x0e, 0x67, 0x75, + 0x27, 0xd3, 0xd4, 0xa2, 0x90, 0x7a, 0x11, 0x9d, 0x68, 0xf1, 0x22, 0x84, 0xb9, 0xa1, + 0xb0, 0xd2, 0x30, 0x3a + ]) + ); + assert_eq!( + Bitcoin::GejRescale.cmr(), + Cmr::from_byte_array([ + 0x29, 0x77, 0xd9, 0x53, 0xef, 0x7a, 0x11, 0x56, 0xce, 0xc6, 0xdb, 0x2d, 0xc2, 0x92, + 0x54, 0x12, 0x75, 0xcb, 0xc8, 0x2f, 0xb8, 0x29, 0xfd, 0x67, 0x1b, 0x97, 0x2e, 0x89, + 0xeb, 0xed, 0x0c, 0x24 + ]) + ); + assert_eq!( + Bitcoin::GejXEquiv.cmr(), + Cmr::from_byte_array([ + 0xf9, 0xf1, 0x89, 0xfc, 0x00, 0xb6, 0x1f, 0x72, 0xf1, 0x0b, 0xaa, 0xa2, 0x1b, 0xcd, + 0x88, 0xe5, 0xd2, 0x2e, 0x0a, 0xa9, 0xb7, 0x50, 0x9a, 0xe1, 0x62, 0xa1, 0x83, 0xa4, + 0xb6, 0x64, 0xa4, 0xaf + ]) + ); + assert_eq!( + Bitcoin::GejYIsOdd.cmr(), + Cmr::from_byte_array([ + 0x9e, 0xb6, 0xe4, 0x53, 0x5f, 0xb6, 0x9b, 0xf6, 0x09, 0x91, 0x65, 0x99, 0xf1, 0x34, + 0x5a, 0xd7, 0x73, 0x5d, 0xa3, 0xf3, 0x94, 0x8d, 0x06, 0x86, 0x90, 0x8e, 0x44, 0xf4, + 0x5b, 0x2f, 0xf6, 0x0c + ]) + ); + assert_eq!( + Bitcoin::Generate.cmr(), + Cmr::from_byte_array([ + 0x14, 0x88, 0x85, 0xac, 0x73, 0x81, 0x31, 0x13, 0xc5, 0x23, 0xe8, 0x09, 0xbe, 0xa4, + 0x7f, 0xfd, 0x8b, 0x1d, 0xaf, 0x37, 0x8d, 0x9d, 0xd5, 0x4b, 0xf9, 0x66, 0xcc, 0xb8, + 0x83, 0xb1, 0xa9, 0x84 + ]) + ); + assert_eq!( + Bitcoin::GeIsOnCurve.cmr(), + Cmr::from_byte_array([ + 0x7d, 0x44, 0x87, 0x19, 0xf5, 0xf9, 0x57, 0x2b, 0xf5, 0x40, 0x2e, 0x12, 0xd1, 0x93, + 0xaf, 0xf6, 0x77, 0x48, 0x2d, 0x66, 0xff, 0x3d, 0xcf, 0x27, 0x48, 0xf2, 0x5c, 0x6b, + 0x73, 0x77, 0x02, 0x8c + ]) + ); + assert_eq!( + Bitcoin::GeNegate.cmr(), + Cmr::from_byte_array([ + 0x3d, 0x2c, 0x8d, 0xe4, 0xc7, 0x01, 0x5f, 0xd3, 0x13, 0x26, 0x95, 0xfd, 0x66, 0xdf, + 0xcf, 0x0f, 0x17, 0x78, 0xc7, 0x91, 0x85, 0x26, 0x8e, 0x9f, 0xae, 0x77, 0x89, 0xda, + 0x53, 0x8e, 0xca, 0x59 + ]) + ); + assert_eq!( + Bitcoin::HashToCurve.cmr(), + Cmr::from_byte_array([ + 0xef, 0x4f, 0x54, 0x8b, 0x3c, 0x6c, 0x75, 0x17, 0x5f, 0x2c, 0xe2, 0xd1, 0x99, 0x3b, + 0x2d, 0x19, 0x9b, 0xeb, 0x16, 0xc0, 0xa1, 0x40, 0x17, 0x5c, 0x48, 0xa1, 0x27, 0x7e, + 0xfc, 0x43, 0xa9, 0x9b + ]) + ); + assert_eq!( + Bitcoin::High1.cmr(), + Cmr::from_byte_array([ + 0xb1, 0x09, 0xcf, 0x1c, 0xce, 0x35, 0xf7, 0xe9, 0xb6, 0x49, 0x67, 0x1a, 0x9b, 0x45, + 0xdb, 0xc2, 0x40, 0x99, 0xa7, 0x13, 0xae, 0xb9, 0xa8, 0x9c, 0xc4, 0xcf, 0x6e, 0xf6, + 0xed, 0x8b, 0x30, 0x8b + ]) + ); + assert_eq!( + Bitcoin::High16.cmr(), + Cmr::from_byte_array([ + 0x03, 0x5d, 0xad, 0xd9, 0xd7, 0xbf, 0x74, 0x33, 0x64, 0x45, 0xe7, 0x1d, 0xdc, 0x4d, + 0x82, 0x02, 0x24, 0xff, 0x7e, 0x38, 0xe0, 0xb8, 0xd5, 0x2b, 0xec, 0x97, 0x29, 0xb5, + 0x72, 0xb5, 0x31, 0xf9 + ]) + ); + assert_eq!( + Bitcoin::High32.cmr(), + Cmr::from_byte_array([ + 0xc5, 0xf1, 0xdf, 0x0d, 0x64, 0xa2, 0x73, 0x7a, 0x63, 0x1b, 0x3a, 0xae, 0x8f, 0x26, + 0x0e, 0x8b, 0x8d, 0xc1, 0x95, 0x7b, 0xd0, 0x92, 0x91, 0x1b, 0x91, 0xd2, 0x07, 0x8a, + 0xd2, 0x1e, 0x41, 0x8a + ]) + ); + assert_eq!( + Bitcoin::High64.cmr(), + Cmr::from_byte_array([ + 0xa3, 0x12, 0x63, 0x3e, 0x0a, 0x23, 0x05, 0xe6, 0x9b, 0x3f, 0x34, 0x1d, 0x91, 0xd6, + 0x83, 0xdd, 0x94, 0x19, 0x6a, 0x2f, 0x90, 0x05, 0xc9, 0xb1, 0x87, 0x2a, 0x2c, 0x15, + 0xad, 0x46, 0xcf, 0x17 + ]) + ); + assert_eq!( + Bitcoin::High8.cmr(), + Cmr::from_byte_array([ + 0xcb, 0xd7, 0x8d, 0x50, 0xaf, 0x77, 0x99, 0x85, 0x5a, 0xdc, 0x49, 0x03, 0xdb, 0xbe, + 0xfc, 0x13, 0x45, 0xd5, 0x14, 0x84, 0xf0, 0x3d, 0x3c, 0x75, 0x5c, 0xaa, 0xa5, 0xca, + 0xa9, 0x7d, 0x4a, 0x14 + ]) + ); + assert_eq!( + Bitcoin::Increment16.cmr(), + Cmr::from_byte_array([ + 0x86, 0x77, 0x49, 0x49, 0x39, 0xb2, 0x7b, 0x86, 0xcb, 0x5a, 0x8c, 0x7f, 0x81, 0x72, + 0xad, 0x55, 0x50, 0x95, 0x31, 0xc9, 0xb0, 0xe1, 0x1e, 0x99, 0x75, 0x7e, 0x29, 0x6c, + 0xc3, 0xc7, 0xc1, 0x92 + ]) + ); + assert_eq!( + Bitcoin::Increment32.cmr(), + Cmr::from_byte_array([ + 0x6b, 0xdb, 0xab, 0x7c, 0xfc, 0x16, 0xc5, 0x03, 0x36, 0x3c, 0x2f, 0x07, 0x7e, 0x02, + 0xc3, 0x35, 0xda, 0x40, 0x61, 0x75, 0xd1, 0x92, 0xfb, 0xef, 0x50, 0xc0, 0x7f, 0xc2, + 0x79, 0xb3, 0xf4, 0x0c + ]) + ); + assert_eq!( + Bitcoin::Increment64.cmr(), + Cmr::from_byte_array([ + 0x20, 0xe7, 0x5e, 0x71, 0x7c, 0xb7, 0x6d, 0x46, 0x95, 0x56, 0x4f, 0x7c, 0x20, 0x22, + 0x1b, 0x7a, 0x01, 0x43, 0x13, 0x87, 0x38, 0xf1, 0x51, 0xaa, 0x19, 0x5e, 0xb1, 0x70, + 0xec, 0x13, 0xc0, 0x49 + ]) + ); + assert_eq!( + Bitcoin::Increment8.cmr(), + Cmr::from_byte_array([ + 0x5f, 0x4e, 0x05, 0x6e, 0xf4, 0xed, 0x8d, 0x68, 0xbf, 0x91, 0x1f, 0xc5, 0xcb, 0x69, + 0x03, 0x7e, 0xbf, 0x6c, 0x92, 0x21, 0x73, 0x43, 0xa8, 0x90, 0x5d, 0x38, 0xc4, 0x32, + 0xc1, 0x83, 0x23, 0x3c + ]) + ); + assert_eq!( + Bitcoin::InputsHash.cmr(), + Cmr::from_byte_array([ + 0xab, 0xbf, 0xe1, 0xc7, 0xd1, 0x15, 0xc4, 0x19, 0x1f, 0x50, 0x48, 0x39, 0xf9, 0x8c, + 0x3f, 0x20, 0x42, 0x2b, 0x84, 0xe7, 0xfa, 0x14, 0xda, 0x14, 0x02, 0x89, 0x6c, 0x4d, + 0x98, 0xbf, 0xa8, 0xd8 + ]) + ); + assert_eq!( + Bitcoin::InputAnnexesHash.cmr(), + Cmr::from_byte_array([ + 0x89, 0xb6, 0x02, 0x70, 0x44, 0x14, 0x1f, 0x20, 0x65, 0xb6, 0xf2, 0x36, 0xcf, 0xcc, + 0x13, 0xb9, 0x68, 0x48, 0x5e, 0x00, 0x74, 0x6b, 0x78, 0x59, 0x28, 0x69, 0x03, 0xc6, + 0x8c, 0x7f, 0x88, 0x0d + ]) + ); + assert_eq!( + Bitcoin::InputAnnexHash.cmr(), + Cmr::from_byte_array([ + 0x94, 0x5b, 0x14, 0x7e, 0x5f, 0x0e, 0xdb, 0x83, 0x2d, 0x62, 0x34, 0x8c, 0xae, 0xea, + 0xc2, 0x24, 0x56, 0xee, 0xe9, 0x44, 0x65, 0x37, 0x6d, 0xbf, 0x59, 0x6b, 0x9d, 0x62, + 0x98, 0x5b, 0x01, 0xb6 + ]) + ); + assert_eq!( + Bitcoin::InputHash.cmr(), + Cmr::from_byte_array([ + 0x3a, 0xd2, 0x22, 0x31, 0xd6, 0xb9, 0xdf, 0xf6, 0xa0, 0xb4, 0xdb, 0xcf, 0xf0, 0x44, + 0xe1, 0x1c, 0x08, 0x2e, 0x04, 0x68, 0x4e, 0x73, 0xce, 0x95, 0xc2, 0x05, 0xe0, 0xc4, + 0x49, 0x6e, 0x5e, 0xca + ]) + ); + assert_eq!( + Bitcoin::InputOutpointsHash.cmr(), + Cmr::from_byte_array([ + 0x17, 0x59, 0xc6, 0xf4, 0x70, 0xb9, 0xab, 0xa6, 0x2a, 0x31, 0x79, 0x1e, 0xa0, 0x10, + 0x56, 0xe3, 0x60, 0x8b, 0xdf, 0x22, 0xf5, 0xdd, 0x43, 0xbf, 0x7d, 0xb0, 0x0e, 0xa5, + 0x82, 0x3f, 0x7c, 0xce + ]) + ); + assert_eq!( + Bitcoin::InputPrevOutpoint.cmr(), + Cmr::from_byte_array([ + 0x5d, 0x17, 0x12, 0x42, 0x09, 0xee, 0x05, 0x21, 0x24, 0xe5, 0x52, 0x38, 0xe0, 0xb6, + 0xa6, 0xfe, 0x85, 0xa4, 0x86, 0x88, 0xc1, 0xe1, 0x5e, 0x61, 0x81, 0xde, 0x94, 0xf7, + 0x8d, 0xb0, 0x40, 0x18 + ]) + ); + assert_eq!( + Bitcoin::InputScriptsHash.cmr(), + Cmr::from_byte_array([ + 0xf1, 0x77, 0x67, 0x1d, 0x60, 0x96, 0x0e, 0x46, 0x3a, 0x9a, 0x8f, 0x7e, 0x1f, 0x52, + 0x13, 0xaa, 0xba, 0x91, 0x22, 0xd2, 0xdb, 0x75, 0xfe, 0x91, 0xf8, 0xf1, 0xcf, 0x91, + 0xbe, 0x00, 0x19, 0x07 + ]) + ); + assert_eq!( + Bitcoin::InputScriptHash.cmr(), + Cmr::from_byte_array([ + 0x05, 0x62, 0x41, 0x2f, 0x02, 0x1d, 0xa4, 0x81, 0x9b, 0x01, 0x9c, 0x8c, 0xd8, 0x87, + 0xd5, 0x30, 0x49, 0x2b, 0x9f, 0x94, 0x2c, 0x4e, 0xbf, 0x21, 0xae, 0x39, 0xed, 0x32, + 0x33, 0x0d, 0x7c, 0xfe + ]) + ); + assert_eq!( + Bitcoin::InputScriptSigsHash.cmr(), + Cmr::from_byte_array([ + 0xe7, 0x29, 0xc5, 0xf5, 0x8a, 0x93, 0x89, 0x08, 0x1a, 0x5c, 0xa8, 0x45, 0xf7, 0x6c, + 0xb9, 0x80, 0xf0, 0x85, 0x99, 0xce, 0xb3, 0xc7, 0xd7, 0xea, 0xe1, 0x14, 0x5b, 0x53, + 0xa6, 0x0a, 0xe3, 0xd5 + ]) + ); + assert_eq!( + Bitcoin::InputScriptSigHash.cmr(), + Cmr::from_byte_array([ + 0x1c, 0x7e, 0xfb, 0x37, 0xcb, 0xc4, 0xb9, 0x96, 0xd9, 0xb8, 0xc6, 0x17, 0x08, 0xe6, + 0x65, 0x73, 0xce, 0x87, 0xc1, 0xf0, 0xaa, 0x05, 0x22, 0xd0, 0x65, 0xba, 0x90, 0x25, + 0x05, 0x6e, 0x3f, 0x80 + ]) + ); + assert_eq!( + Bitcoin::InputSequence.cmr(), + Cmr::from_byte_array([ + 0x5d, 0xd1, 0x7f, 0xe1, 0x55, 0x0f, 0x48, 0xf7, 0xba, 0xed, 0x4d, 0x06, 0x80, 0x08, + 0xd4, 0xa1, 0xff, 0x98, 0xcb, 0xeb, 0xe2, 0x54, 0x1c, 0x5d, 0xc7, 0x7a, 0xc5, 0x3a, + 0xd8, 0x3f, 0xa7, 0x79 + ]) + ); + assert_eq!( + Bitcoin::InputSequencesHash.cmr(), + Cmr::from_byte_array([ + 0x55, 0x97, 0x3d, 0x64, 0x43, 0x45, 0x74, 0x72, 0x81, 0x37, 0x73, 0x64, 0xba, 0xd2, + 0xa8, 0x0b, 0x75, 0x8f, 0x45, 0x66, 0x60, 0xc1, 0x8d, 0xe5, 0xc0, 0x1a, 0x38, 0x82, + 0x07, 0x1d, 0x50, 0xe8 + ]) + ); + assert_eq!( + Bitcoin::InputUtxosHash.cmr(), + Cmr::from_byte_array([ + 0xd6, 0xf9, 0x0c, 0xd1, 0x04, 0xe1, 0xa5, 0xc6, 0x1a, 0x4b, 0x50, 0x00, 0xad, 0x9a, + 0xba, 0x8d, 0x43, 0x00, 0x4b, 0xf9, 0x43, 0xdf, 0x32, 0x5f, 0xa6, 0x36, 0xd1, 0xa2, + 0x2b, 0xec, 0xa0, 0xcb + ]) + ); + assert_eq!( + Bitcoin::InputUtxoHash.cmr(), + Cmr::from_byte_array([ + 0x93, 0x1e, 0x4e, 0x95, 0xe0, 0xa6, 0x47, 0x60, 0x27, 0x6e, 0x91, 0xb5, 0xdc, 0x74, + 0x67, 0x80, 0xd0, 0x69, 0x7d, 0x0a, 0xf5, 0xaa, 0xf5, 0xbb, 0xc8, 0x1d, 0xbe, 0xb3, + 0x98, 0x59, 0x6a, 0xbb + ]) + ); + assert_eq!( + Bitcoin::InputValue.cmr(), + Cmr::from_byte_array([ + 0x7d, 0x3c, 0x3f, 0x95, 0x5b, 0x2c, 0xf0, 0xd0, 0xd1, 0x28, 0x0a, 0x1b, 0xb1, 0x20, + 0x46, 0x92, 0x92, 0xd1, 0x32, 0x9c, 0x83, 0xa9, 0xc2, 0xff, 0x7e, 0x7e, 0x1e, 0xb3, + 0xf6, 0x97, 0x83, 0xa3 + ]) + ); + assert_eq!( + Bitcoin::InputValuesHash.cmr(), + Cmr::from_byte_array([ + 0x29, 0x83, 0x9e, 0xad, 0x0e, 0xb0, 0x3f, 0xe4, 0x65, 0x42, 0xe3, 0x6d, 0x71, 0xe9, + 0xe6, 0xaf, 0xdf, 0x96, 0x93, 0x01, 0x53, 0x3d, 0x74, 0xee, 0x09, 0x9b, 0x12, 0x66, + 0xa2, 0x50, 0x55, 0x2c + ]) + ); + assert_eq!( + Bitcoin::InternalKey.cmr(), + Cmr::from_byte_array([ + 0x37, 0x48, 0x36, 0x99, 0x28, 0x10, 0x02, 0x2f, 0x88, 0xe0, 0x14, 0x5b, 0xca, 0xd7, + 0x7f, 0x4a, 0x84, 0x91, 0xfa, 0x80, 0x83, 0xcb, 0x51, 0xc3, 0x01, 0xfc, 0xf7, 0xa1, + 0x34, 0x78, 0xc2, 0xcc + ]) + ); + assert_eq!( + Bitcoin::IsOne16.cmr(), + Cmr::from_byte_array([ + 0x1b, 0xd3, 0xa2, 0x53, 0xdb, 0x24, 0x3f, 0xca, 0x45, 0x53, 0x37, 0x99, 0xfe, 0x91, + 0x48, 0x38, 0xc3, 0x8e, 0x38, 0x06, 0xb1, 0x2b, 0xd7, 0xe8, 0x5c, 0xa7, 0x12, 0x07, + 0xa8, 0x84, 0x62, 0xb0 + ]) + ); + assert_eq!( + Bitcoin::IsOne32.cmr(), + Cmr::from_byte_array([ + 0x78, 0xb1, 0xba, 0xe0, 0x99, 0xec, 0x9c, 0x59, 0xcb, 0xf4, 0x12, 0x62, 0x51, 0xc1, + 0xe9, 0x67, 0x41, 0xb3, 0x50, 0xd5, 0x63, 0xbd, 0x74, 0xd5, 0x44, 0x18, 0xba, 0x78, + 0xeb, 0xea, 0x25, 0xbf + ]) + ); + assert_eq!( + Bitcoin::IsOne64.cmr(), + Cmr::from_byte_array([ + 0x81, 0x7b, 0x95, 0xa5, 0x39, 0x5e, 0xfb, 0xec, 0xbb, 0x85, 0x15, 0xa5, 0x5b, 0x3f, + 0xfe, 0x1a, 0x4d, 0x7b, 0xac, 0x6e, 0x23, 0xdb, 0xca, 0x54, 0xad, 0x60, 0x66, 0x66, + 0x2f, 0x20, 0x2b, 0x93 + ]) + ); + assert_eq!( + Bitcoin::IsOne8.cmr(), + Cmr::from_byte_array([ + 0xf6, 0x92, 0x54, 0x91, 0xd3, 0x4b, 0x37, 0x74, 0x2c, 0xb0, 0x8d, 0xec, 0x19, 0x3e, + 0xe5, 0x12, 0x5f, 0x93, 0x3c, 0xad, 0xcc, 0x23, 0x2a, 0xed, 0xee, 0xdb, 0x57, 0x2d, + 0x12, 0x60, 0xff, 0xd5 + ]) + ); + assert_eq!( + Bitcoin::IsZero16.cmr(), + Cmr::from_byte_array([ + 0x1b, 0xa7, 0x21, 0x3b, 0x58, 0x8b, 0xe0, 0x92, 0xb4, 0x46, 0x59, 0x9c, 0x2a, 0x60, + 0xff, 0x54, 0x67, 0x13, 0x6a, 0x79, 0x75, 0x99, 0x61, 0x0b, 0xd7, 0xa5, 0xf1, 0x78, + 0x04, 0xe3, 0x2a, 0x2c + ]) + ); + assert_eq!( + Bitcoin::IsZero32.cmr(), + Cmr::from_byte_array([ + 0x5e, 0xbf, 0x14, 0x66, 0x93, 0xf0, 0xe2, 0xd2, 0xf9, 0x36, 0x1b, 0x47, 0x6d, 0xba, + 0x34, 0x85, 0x8b, 0x83, 0x2d, 0x66, 0xfa, 0xcf, 0x71, 0x3b, 0xfb, 0x32, 0xc3, 0xbb, + 0x8d, 0xb9, 0xee, 0xbf + ]) + ); + assert_eq!( + Bitcoin::IsZero64.cmr(), + Cmr::from_byte_array([ + 0x19, 0xab, 0x9a, 0xc0, 0xcf, 0x42, 0x66, 0x82, 0x19, 0xba, 0x6c, 0xb8, 0x97, 0xe4, + 0x87, 0xfe, 0x36, 0x80, 0x93, 0x7f, 0xff, 0xa8, 0xd2, 0x03, 0x51, 0x1d, 0xb7, 0x5d, + 0xbb, 0x10, 0xc7, 0xe5 + ]) + ); + assert_eq!( + Bitcoin::IsZero8.cmr(), + Cmr::from_byte_array([ + 0x8e, 0xff, 0x62, 0x08, 0x44, 0x07, 0xe9, 0xaf, 0xd5, 0x40, 0xf3, 0x18, 0xf6, 0x6b, + 0xcf, 0x31, 0xdf, 0x1d, 0x42, 0xa5, 0xc1, 0x61, 0xca, 0xe3, 0x5a, 0x29, 0x48, 0x18, + 0x0c, 0xa2, 0xaa, 0x2e + ]) + ); + assert_eq!( + Bitcoin::Leftmost16_1.cmr(), + Cmr::from_byte_array([ + 0x5b, 0xff, 0x4c, 0xb5, 0x58, 0x76, 0x05, 0xd5, 0xfd, 0x05, 0x9d, 0x77, 0x33, 0x49, + 0x0d, 0x7d, 0xd2, 0x2d, 0x27, 0x8b, 0x59, 0x9e, 0x06, 0xd3, 0xb5, 0xdb, 0x6d, 0x79, + 0xf3, 0xc9, 0x23, 0xbd + ]) + ); + assert_eq!( + Bitcoin::Leftmost16_2.cmr(), + Cmr::from_byte_array([ + 0x53, 0x6d, 0xb4, 0x86, 0xb1, 0x22, 0x27, 0xe5, 0xb0, 0x9d, 0x6f, 0xeb, 0xd2, 0x77, + 0x6b, 0x1a, 0xbb, 0xc6, 0x74, 0x99, 0x96, 0xaa, 0x78, 0x3e, 0xd7, 0xe5, 0x37, 0x44, + 0x6b, 0xbf, 0x15, 0x1b + ]) + ); + assert_eq!( + Bitcoin::Leftmost16_4.cmr(), + Cmr::from_byte_array([ + 0xf2, 0x32, 0x13, 0x67, 0x49, 0x6d, 0x1a, 0x77, 0xee, 0xa0, 0x5e, 0x95, 0xe3, 0xb8, + 0x07, 0xd3, 0xba, 0x5f, 0x05, 0x13, 0x6c, 0xe0, 0x91, 0x2a, 0xe7, 0x17, 0xc8, 0x3a, + 0x02, 0x61, 0xb2, 0xe1 + ]) + ); + assert_eq!( + Bitcoin::Leftmost16_8.cmr(), + Cmr::from_byte_array([ + 0x24, 0x14, 0x8e, 0xf3, 0x0a, 0xd4, 0x3e, 0xbe, 0xc5, 0x63, 0x72, 0x83, 0x22, 0xc3, + 0xce, 0x11, 0x79, 0xae, 0xd7, 0xa7, 0x82, 0x16, 0xd7, 0x99, 0x88, 0x8b, 0xf1, 0x8b, + 0x39, 0x57, 0x06, 0x71 + ]) + ); + assert_eq!( + Bitcoin::Leftmost32_1.cmr(), + Cmr::from_byte_array([ + 0xb9, 0x2e, 0x15, 0xec, 0x5d, 0xa0, 0x7e, 0xe8, 0xed, 0x39, 0x7c, 0xb9, 0xf6, 0x0a, + 0x4c, 0x5d, 0xa8, 0x38, 0x62, 0x93, 0x1a, 0x90, 0x73, 0x59, 0xd2, 0x7c, 0xae, 0xb6, + 0x0e, 0x60, 0xef, 0x8a + ]) + ); + assert_eq!( + Bitcoin::Leftmost32_16.cmr(), + Cmr::from_byte_array([ + 0xad, 0xb0, 0x27, 0xb2, 0x06, 0x56, 0x73, 0x58, 0x53, 0x26, 0xc0, 0x1c, 0x3b, 0xe2, + 0xfa, 0xeb, 0x38, 0x63, 0x49, 0xe2, 0x90, 0x09, 0xb6, 0x57, 0x6e, 0xe5, 0x3a, 0x85, + 0x55, 0x12, 0xcc, 0x67 + ]) + ); + assert_eq!( + Bitcoin::Leftmost32_2.cmr(), + Cmr::from_byte_array([ + 0xb7, 0x5b, 0x31, 0xc5, 0x59, 0x12, 0x3d, 0x3d, 0x63, 0x35, 0x98, 0x59, 0x32, 0xb8, + 0xb1, 0xb2, 0x66, 0x4e, 0xe5, 0x97, 0xaf, 0xb1, 0x5f, 0xd1, 0xa4, 0x99, 0xd0, 0x07, + 0xcf, 0xf2, 0x75, 0x5c + ]) + ); + assert_eq!( + Bitcoin::Leftmost32_4.cmr(), + Cmr::from_byte_array([ + 0xcb, 0x75, 0x7e, 0x47, 0x1e, 0x9d, 0x9a, 0x40, 0x77, 0x1d, 0xd1, 0xcf, 0x3c, 0x1b, + 0xf5, 0xd2, 0x3c, 0x17, 0xed, 0x68, 0xcd, 0xbd, 0xb2, 0x2d, 0xad, 0xa1, 0x7a, 0x73, + 0xa7, 0xb4, 0x07, 0xb2 + ]) + ); + assert_eq!( + Bitcoin::Leftmost32_8.cmr(), + Cmr::from_byte_array([ + 0xbf, 0xc5, 0x34, 0xb4, 0x9e, 0x06, 0x00, 0x6e, 0x19, 0xf3, 0xb6, 0x8e, 0x0a, 0x02, + 0x39, 0x1c, 0x14, 0x9f, 0x9a, 0x34, 0xf4, 0x3e, 0xe3, 0x6b, 0x9f, 0x1d, 0x79, 0xa7, + 0x9c, 0x9a, 0x9e, 0x4d + ]) + ); + assert_eq!( + Bitcoin::Leftmost64_1.cmr(), + Cmr::from_byte_array([ + 0x1b, 0x1d, 0x4e, 0x92, 0x38, 0x4b, 0x8b, 0x15, 0x9b, 0xa0, 0xd8, 0x06, 0x55, 0x8b, + 0x54, 0x94, 0xe3, 0x61, 0x4e, 0xed, 0xe0, 0x3c, 0x94, 0x6c, 0xea, 0xf1, 0x41, 0xf3, + 0x6f, 0x01, 0xc7, 0x9b + ]) + ); + assert_eq!( + Bitcoin::Leftmost64_16.cmr(), + Cmr::from_byte_array([ + 0x0d, 0xeb, 0xdc, 0x1a, 0xa0, 0x43, 0x30, 0x34, 0x42, 0xe1, 0x8f, 0xe0, 0x3d, 0x8a, + 0x99, 0xd2, 0xbe, 0x6b, 0xb8, 0xa8, 0x69, 0x1a, 0xba, 0x19, 0x56, 0x62, 0x59, 0xe3, + 0x67, 0x60, 0xf7, 0xf9 + ]) + ); + assert_eq!( + Bitcoin::Leftmost64_2.cmr(), + Cmr::from_byte_array([ + 0x83, 0x9e, 0xcf, 0xa3, 0x18, 0x70, 0x5c, 0x25, 0x3d, 0x0c, 0x52, 0xff, 0x27, 0xb9, + 0x04, 0x64, 0x92, 0x3d, 0x8c, 0x0e, 0x55, 0xa8, 0x2c, 0x0d, 0x16, 0x24, 0x02, 0x39, + 0x7f, 0x36, 0x53, 0x78 + ]) + ); + assert_eq!( + Bitcoin::Leftmost64_32.cmr(), + Cmr::from_byte_array([ + 0x92, 0x91, 0x97, 0xa9, 0x64, 0x28, 0x61, 0xa7, 0x7b, 0xd6, 0x62, 0x58, 0x05, 0x11, + 0x97, 0xbe, 0x86, 0xff, 0x08, 0xe6, 0x28, 0xe3, 0x0f, 0x7e, 0xfc, 0xbd, 0x2c, 0x4d, + 0xfe, 0xcf, 0x9b, 0xdd + ]) + ); + assert_eq!( + Bitcoin::Leftmost64_4.cmr(), + Cmr::from_byte_array([ + 0x02, 0xbd, 0x16, 0x45, 0xd5, 0x75, 0xf0, 0x4b, 0x3c, 0xbb, 0xaa, 0x6d, 0x8c, 0xa9, + 0x86, 0xef, 0x1c, 0x8c, 0xd0, 0xff, 0xe1, 0x65, 0x89, 0x03, 0x93, 0x9d, 0xb7, 0x64, + 0x56, 0x2a, 0x26, 0x47 + ]) + ); + assert_eq!( + Bitcoin::Leftmost64_8.cmr(), + Cmr::from_byte_array([ + 0x35, 0x58, 0xb3, 0x1b, 0x3b, 0x6e, 0x8f, 0x9a, 0x28, 0x8f, 0xdc, 0x72, 0xf2, 0x46, + 0x02, 0xbe, 0x05, 0x58, 0x19, 0x10, 0x71, 0xa5, 0x4a, 0x99, 0xfa, 0x03, 0xa0, 0x25, + 0x34, 0xf8, 0x80, 0x05 + ]) + ); + assert_eq!( + Bitcoin::Leftmost8_1.cmr(), + Cmr::from_byte_array([ + 0x28, 0x65, 0xef, 0xd4, 0x29, 0x83, 0xcb, 0xe3, 0xf8, 0x16, 0x37, 0x3a, 0xb8, 0xa8, + 0x82, 0xf1, 0x83, 0x17, 0x19, 0x4d, 0xc1, 0xab, 0xa3, 0x8d, 0xa0, 0x30, 0x4b, 0x8c, + 0x14, 0x4b, 0x1d, 0xa4 + ]) + ); + assert_eq!( + Bitcoin::Leftmost8_2.cmr(), + Cmr::from_byte_array([ + 0x51, 0x96, 0x4c, 0xb0, 0x74, 0x05, 0xa8, 0xd2, 0x3d, 0x21, 0x87, 0x74, 0x1a, 0x9e, + 0xd3, 0x04, 0xbc, 0xb4, 0x69, 0xd9, 0xac, 0x9f, 0x5d, 0x92, 0x55, 0x82, 0x5c, 0xfd, + 0xa3, 0xda, 0x07, 0xc0 + ]) + ); + assert_eq!( + Bitcoin::Leftmost8_4.cmr(), + Cmr::from_byte_array([ + 0x88, 0x3c, 0x94, 0xf8, 0xa2, 0x6c, 0xda, 0xb7, 0xbc, 0x5c, 0xd6, 0x31, 0xe5, 0x22, + 0x55, 0xa8, 0x5e, 0xf6, 0xe0, 0x70, 0x76, 0x64, 0x57, 0xf6, 0x32, 0x1e, 0x2c, 0xcb, + 0x11, 0x9d, 0x9b, 0x2b + ]) + ); + assert_eq!( + Bitcoin::LeftExtend16_32.cmr(), + Cmr::from_byte_array([ + 0x28, 0x99, 0x97, 0xfb, 0xa1, 0xfa, 0xe7, 0xec, 0x1c, 0x45, 0x31, 0xc5, 0x0b, 0xbf, + 0x86, 0x71, 0xb8, 0x97, 0x13, 0x9b, 0xdd, 0x3a, 0xad, 0x97, 0xa3, 0x76, 0x39, 0x57, + 0x4a, 0x04, 0x7c, 0x80 + ]) + ); + assert_eq!( + Bitcoin::LeftExtend16_64.cmr(), + Cmr::from_byte_array([ + 0x5d, 0xff, 0x21, 0xf6, 0xe6, 0x12, 0x47, 0x75, 0xc5, 0x78, 0xea, 0xf4, 0x85, 0x5c, + 0x0b, 0x01, 0x64, 0xf7, 0x87, 0x9b, 0x17, 0x60, 0xf9, 0x02, 0x7c, 0xb5, 0x0f, 0x7b, + 0x5a, 0xcb, 0x49, 0x18 + ]) + ); + assert_eq!( + Bitcoin::LeftExtend1_16.cmr(), + Cmr::from_byte_array([ + 0x8c, 0x87, 0xd7, 0x56, 0xd1, 0x4b, 0xd3, 0xd9, 0xa7, 0x86, 0x90, 0x81, 0x29, 0x12, + 0xb8, 0x94, 0x29, 0xc0, 0x17, 0x1a, 0x41, 0x10, 0x3a, 0x58, 0xc6, 0xe9, 0xf2, 0x25, + 0x14, 0x1a, 0x02, 0x22 + ]) + ); + assert_eq!( + Bitcoin::LeftExtend1_32.cmr(), + Cmr::from_byte_array([ + 0xc8, 0xf1, 0x54, 0xd4, 0x6d, 0x2e, 0x78, 0x95, 0xda, 0x1b, 0x33, 0xc2, 0xb3, 0x15, + 0xe6, 0xd4, 0xd4, 0x85, 0x1d, 0xde, 0xe2, 0x8a, 0xef, 0x8b, 0x70, 0x70, 0x90, 0x61, + 0x6b, 0xc7, 0xee, 0xa0 + ]) + ); + assert_eq!( + Bitcoin::LeftExtend1_64.cmr(), + Cmr::from_byte_array([ + 0xa3, 0x40, 0x4d, 0xf6, 0x8c, 0xc9, 0x20, 0x75, 0x4c, 0x6e, 0x18, 0x47, 0x20, 0x7d, + 0xb3, 0x84, 0x5d, 0x11, 0xc7, 0x49, 0x09, 0xd0, 0x7c, 0xa8, 0x2a, 0xd1, 0xf1, 0xcc, + 0x67, 0xbf, 0x3a, 0x9b + ]) + ); + assert_eq!( + Bitcoin::LeftExtend1_8.cmr(), + Cmr::from_byte_array([ + 0x3b, 0xca, 0x33, 0x97, 0xb8, 0x3c, 0x27, 0xf3, 0x63, 0x16, 0xf8, 0xb8, 0xb3, 0x03, + 0x35, 0x0a, 0xfe, 0x8b, 0xa0, 0x07, 0x8f, 0x77, 0xf1, 0xd4, 0x2a, 0x9b, 0x78, 0x92, + 0xb2, 0xa4, 0xdb, 0xee + ]) + ); + assert_eq!( + Bitcoin::LeftExtend32_64.cmr(), + Cmr::from_byte_array([ + 0x42, 0xcb, 0xeb, 0x01, 0xfe, 0x7a, 0x3a, 0x6d, 0xd3, 0x31, 0x1d, 0xb3, 0x36, 0x5f, + 0x91, 0xe5, 0xc1, 0x18, 0xc7, 0xe4, 0x1f, 0x03, 0xaa, 0xe7, 0xb2, 0x83, 0xde, 0x6b, + 0xb9, 0x05, 0x3e, 0x6b + ]) + ); + assert_eq!( + Bitcoin::LeftExtend8_16.cmr(), + Cmr::from_byte_array([ + 0x9a, 0x57, 0xc9, 0x6a, 0xf5, 0x71, 0x48, 0x96, 0xb7, 0x24, 0xde, 0x45, 0xeb, 0x9f, + 0xe9, 0x7d, 0x73, 0x69, 0x7d, 0xe6, 0x2e, 0x8d, 0xad, 0x78, 0x71, 0xeb, 0x58, 0xf5, + 0x81, 0xa0, 0x11, 0xbb + ]) + ); + assert_eq!( + Bitcoin::LeftExtend8_32.cmr(), + Cmr::from_byte_array([ + 0xd6, 0x24, 0xbd, 0x40, 0x40, 0x76, 0x3c, 0xb1, 0x3c, 0xca, 0xd4, 0x98, 0xf5, 0x3d, + 0x38, 0xc1, 0x12, 0xf1, 0x92, 0x95, 0x68, 0x26, 0xda, 0xfe, 0xc9, 0xac, 0x91, 0x65, + 0x79, 0x2b, 0x34, 0x7a + ]) + ); + assert_eq!( + Bitcoin::LeftExtend8_64.cmr(), + Cmr::from_byte_array([ + 0x9d, 0xc4, 0xa2, 0x05, 0x4d, 0x5d, 0x26, 0x34, 0x2a, 0xc5, 0x90, 0xb6, 0x67, 0xf1, + 0xb0, 0x1d, 0xf5, 0x4f, 0xd0, 0xcd, 0xaa, 0x40, 0x5e, 0xf8, 0xcb, 0xb7, 0x6f, 0xd8, + 0xf9, 0xb0, 0x0e, 0xe5 + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh16_32.cmr(), + Cmr::from_byte_array([ + 0x05, 0x45, 0xc4, 0xb5, 0x8f, 0x00, 0x4a, 0x21, 0xe7, 0xf1, 0x29, 0xa4, 0xc0, 0x51, + 0x89, 0x97, 0x17, 0x14, 0xca, 0xa2, 0xd9, 0x1d, 0x1d, 0xfd, 0x5f, 0xad, 0x3e, 0x63, + 0x24, 0x49, 0x94, 0x28 + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh16_64.cmr(), + Cmr::from_byte_array([ + 0x1c, 0x61, 0xd0, 0x3d, 0x49, 0x3b, 0xbd, 0x05, 0x82, 0x22, 0x59, 0xd1, 0x73, 0x0a, + 0x8d, 0x7a, 0x5f, 0x55, 0xb0, 0xba, 0x2a, 0x93, 0x91, 0xa6, 0xc8, 0x88, 0x1e, 0xb4, + 0x75, 0x04, 0xaf, 0xfd + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh1_16.cmr(), + Cmr::from_byte_array([ + 0x56, 0xfd, 0xf5, 0x4f, 0x1f, 0xcd, 0x19, 0x82, 0x5e, 0x7c, 0x3b, 0x79, 0x06, 0x15, + 0xc1, 0xd3, 0xfe, 0x82, 0x88, 0x6c, 0x74, 0x7b, 0xc4, 0x87, 0x59, 0x87, 0xf5, 0x05, + 0x16, 0x94, 0x5f, 0xb3 + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh1_32.cmr(), + Cmr::from_byte_array([ + 0xdb, 0x33, 0x05, 0x9a, 0xbe, 0x2d, 0x43, 0x2d, 0x67, 0xf4, 0x2b, 0x1e, 0x94, 0x27, + 0x56, 0xdc, 0xa6, 0xcd, 0xe6, 0x37, 0x85, 0xe5, 0xbd, 0x43, 0x0d, 0xc8, 0xf4, 0xae, + 0xfc, 0x31, 0xb8, 0xdf + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh1_64.cmr(), + Cmr::from_byte_array([ + 0x1d, 0x66, 0x9c, 0x1f, 0xa5, 0xfd, 0x3e, 0xf6, 0x6e, 0xb4, 0xae, 0xf6, 0x18, 0x6e, + 0x3e, 0xc1, 0x36, 0xee, 0x75, 0x84, 0x10, 0xdf, 0x3e, 0xde, 0xbb, 0x31, 0xbf, 0x26, + 0xd4, 0x56, 0x20, 0x51 + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh1_8.cmr(), + Cmr::from_byte_array([ + 0x9a, 0x1b, 0xad, 0x3d, 0x8a, 0xb9, 0x00, 0x30, 0x3d, 0xa2, 0x02, 0xf0, 0xf4, 0x49, + 0xf0, 0xb7, 0xe6, 0x79, 0x5c, 0x2a, 0x7c, 0x12, 0x17, 0x18, 0x80, 0x0a, 0xc4, 0x0c, + 0x87, 0xd8, 0x27, 0x29 + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh32_64.cmr(), + Cmr::from_byte_array([ + 0x39, 0x20, 0xcc, 0x4b, 0x33, 0xba, 0xf7, 0xef, 0xa5, 0xca, 0xf9, 0xe7, 0x80, 0x01, + 0x44, 0x67, 0x06, 0xf6, 0xe4, 0xe8, 0x26, 0x56, 0x74, 0x05, 0x7e, 0xed, 0x87, 0x17, + 0x78, 0x08, 0x9e, 0x94 + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh8_16.cmr(), + Cmr::from_byte_array([ + 0x75, 0x2e, 0x29, 0xf2, 0xfe, 0x2b, 0xec, 0xc3, 0xf6, 0x62, 0x90, 0xfe, 0x44, 0xe1, + 0xae, 0xb3, 0x78, 0x41, 0x80, 0xdd, 0x90, 0x5e, 0x19, 0x62, 0x4e, 0x19, 0x5f, 0x21, + 0x6c, 0x07, 0xc5, 0x7c + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh8_32.cmr(), + Cmr::from_byte_array([ + 0xbe, 0xe8, 0x8f, 0x1c, 0x8c, 0x30, 0x63, 0x4c, 0x6e, 0x95, 0xca, 0xcc, 0x0e, 0x9a, + 0xdd, 0x49, 0x41, 0x32, 0x21, 0xfd, 0xab, 0xbd, 0x8d, 0x4c, 0x0a, 0xcc, 0xf1, 0xca, + 0xe2, 0xd2, 0xa7, 0x78 + ]) + ); + assert_eq!( + Bitcoin::LeftPadHigh8_64.cmr(), + Cmr::from_byte_array([ + 0x39, 0x23, 0x87, 0xf6, 0xdc, 0x04, 0xbf, 0xc5, 0x4d, 0xd4, 0xa2, 0x81, 0x19, 0xc8, + 0x1d, 0x15, 0xd7, 0xa5, 0x80, 0x9b, 0xbf, 0x62, 0xfc, 0xc2, 0x7d, 0xc5, 0x5c, 0xf8, + 0x2e, 0x9e, 0x5e, 0xe6 + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow16_32.cmr(), + Cmr::from_byte_array([ + 0x4f, 0xfd, 0x6c, 0xb3, 0x40, 0x23, 0x05, 0x82, 0x1d, 0xd8, 0x99, 0x70, 0xd7, 0x22, + 0xd1, 0xc1, 0x3f, 0x1f, 0xf7, 0x73, 0x9f, 0xd5, 0xf3, 0x4b, 0xa1, 0x6c, 0x73, 0x65, + 0x3b, 0x04, 0x47, 0x18 + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow16_64.cmr(), + Cmr::from_byte_array([ + 0xbe, 0x3e, 0xb8, 0x5c, 0x5f, 0x19, 0x91, 0x53, 0xfb, 0x1c, 0x46, 0x13, 0x5c, 0x04, + 0xfa, 0xcf, 0xdb, 0xc6, 0xf1, 0xb7, 0x8c, 0x2b, 0xb7, 0xae, 0x75, 0xf1, 0x55, 0xbc, + 0x3e, 0xa0, 0x8a, 0x8b + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow1_16.cmr(), + Cmr::from_byte_array([ + 0xdd, 0xd0, 0x15, 0x3e, 0xf3, 0x12, 0xf2, 0x8d, 0x64, 0x2c, 0xd9, 0x4c, 0xb3, 0x6f, + 0x32, 0x97, 0x75, 0xb0, 0x0d, 0xa8, 0x8f, 0xcc, 0xc4, 0xce, 0xa1, 0xba, 0xe8, 0x9b, + 0xad, 0x13, 0xbe, 0x6b + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow1_32.cmr(), + Cmr::from_byte_array([ + 0xbc, 0x9d, 0x31, 0x14, 0x35, 0x46, 0x7b, 0xc0, 0x8b, 0x10, 0x08, 0xe5, 0x47, 0xaa, + 0x7a, 0x07, 0xe8, 0x3b, 0x15, 0x14, 0x68, 0x61, 0xa9, 0xe9, 0xb5, 0x41, 0x3b, 0xe3, + 0x1b, 0x82, 0xb6, 0xb5 + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow1_64.cmr(), + Cmr::from_byte_array([ + 0x8b, 0xc6, 0x2f, 0x93, 0x60, 0x89, 0x4e, 0x48, 0xa4, 0x73, 0x2c, 0x95, 0x76, 0x9c, + 0x8f, 0xaa, 0xe9, 0x56, 0x8f, 0x9d, 0xe8, 0xe8, 0xa2, 0x00, 0x83, 0x6b, 0xd4, 0xe5, + 0x0b, 0x02, 0xcd, 0x84 + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow1_8.cmr(), + Cmr::from_byte_array([ + 0xf6, 0x6c, 0xd7, 0xa4, 0x2b, 0x32, 0x0f, 0x97, 0xc1, 0x9f, 0x2d, 0x54, 0x16, 0xcd, + 0xe0, 0x87, 0x25, 0x3a, 0x27, 0x91, 0x29, 0x65, 0xd5, 0x5b, 0x65, 0x71, 0x2a, 0xd8, + 0x09, 0xb8, 0x3c, 0xfd + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow32_64.cmr(), + Cmr::from_byte_array([ + 0xa3, 0x3a, 0x07, 0xb9, 0xbc, 0xf9, 0x45, 0xf6, 0x4f, 0x07, 0x2b, 0x8b, 0x9c, 0x91, + 0x48, 0x39, 0xa5, 0x85, 0xbf, 0xa9, 0xf3, 0x42, 0x5b, 0x14, 0x77, 0x54, 0xab, 0x55, + 0xa8, 0xba, 0x6c, 0x0f + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow8_16.cmr(), + Cmr::from_byte_array([ + 0x2a, 0x51, 0x6a, 0x79, 0x3f, 0x97, 0xc4, 0x5f, 0xea, 0xeb, 0xb1, 0xcc, 0x96, 0x1a, + 0x15, 0x6d, 0x80, 0x35, 0x49, 0x28, 0x79, 0x78, 0x9d, 0x6e, 0xdc, 0x9b, 0x57, 0xe7, + 0x2f, 0x11, 0xe5, 0xb5 + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow8_32.cmr(), + Cmr::from_byte_array([ + 0x1a, 0xa2, 0xe4, 0xd0, 0x4b, 0xd6, 0x90, 0x55, 0x12, 0x3d, 0xd6, 0xaa, 0xfe, 0x27, + 0xf5, 0xf7, 0xf4, 0x7c, 0x3b, 0x30, 0x90, 0xc3, 0xa8, 0x27, 0x29, 0x73, 0xfe, 0x2f, + 0x75, 0x16, 0x5a, 0x5d + ]) + ); + assert_eq!( + Bitcoin::LeftPadLow8_64.cmr(), + Cmr::from_byte_array([ + 0xb6, 0x52, 0xe0, 0xae, 0xdd, 0x0f, 0x4f, 0x66, 0xf6, 0xa1, 0xcd, 0x4b, 0xeb, 0xf8, + 0x75, 0xff, 0x7b, 0xbb, 0x2d, 0xd9, 0x9b, 0x06, 0x5b, 0x2d, 0xb5, 0xb5, 0xb5, 0x90, + 0x53, 0x61, 0x61, 0x4d + ]) + ); + assert_eq!( + Bitcoin::LeftRotate16.cmr(), + Cmr::from_byte_array([ + 0x8a, 0x12, 0xff, 0x6a, 0x4b, 0xf2, 0x37, 0x15, 0xdd, 0x3b, 0x76, 0x6b, 0x99, 0x67, + 0xc7, 0x15, 0x8b, 0xf3, 0xed, 0x74, 0xb3, 0xdc, 0xe7, 0x30, 0xaf, 0xfc, 0xf4, 0x66, + 0x16, 0x47, 0x8e, 0xcb + ]) + ); + assert_eq!( + Bitcoin::LeftRotate32.cmr(), + Cmr::from_byte_array([ + 0x2f, 0xcb, 0x52, 0x17, 0x2f, 0xd4, 0x9c, 0x36, 0x21, 0x7d, 0xea, 0xe0, 0xc2, 0x37, + 0x14, 0x32, 0x1f, 0x69, 0xf5, 0xf1, 0x3f, 0x6e, 0x94, 0xb2, 0xbd, 0xfe, 0x4b, 0x74, + 0x88, 0x69, 0x7f, 0xd5 + ]) + ); + assert_eq!( + Bitcoin::LeftRotate64.cmr(), + Cmr::from_byte_array([ + 0x72, 0xcc, 0xd6, 0xc4, 0xe5, 0xfd, 0xf6, 0x8a, 0xd3, 0x3b, 0x6d, 0x58, 0xfb, 0x37, + 0x2b, 0xe4, 0xf1, 0xb8, 0x0e, 0xef, 0x70, 0x1f, 0x9d, 0xb7, 0xe5, 0xed, 0x85, 0x9b, + 0x96, 0xb3, 0x62, 0x09 + ]) + ); + assert_eq!( + Bitcoin::LeftRotate8.cmr(), + Cmr::from_byte_array([ + 0x1a, 0xae, 0xc9, 0xf3, 0xb7, 0x5d, 0x89, 0xf8, 0x2a, 0x64, 0x98, 0x45, 0x8c, 0x44, + 0x83, 0xcb, 0x9a, 0x78, 0x44, 0x89, 0x05, 0xf3, 0xbb, 0x39, 0xfc, 0x08, 0x3f, 0x14, + 0xdd, 0xcc, 0xdc, 0x9b + ]) + ); + assert_eq!( + Bitcoin::LeftShift16.cmr(), + Cmr::from_byte_array([ + 0x37, 0xac, 0x63, 0x87, 0x21, 0xab, 0x09, 0x7a, 0x96, 0x02, 0xba, 0x4d, 0xc9, 0x2e, + 0x19, 0xb5, 0xa1, 0x85, 0xb2, 0x32, 0x9f, 0x1a, 0xa6, 0x00, 0xcb, 0x9c, 0x15, 0x61, + 0x5a, 0x00, 0x81, 0xf8 + ]) + ); + assert_eq!( + Bitcoin::LeftShift32.cmr(), + Cmr::from_byte_array([ + 0x8e, 0x3c, 0x47, 0x3b, 0x28, 0x67, 0xf1, 0x54, 0x73, 0xb3, 0x63, 0x2d, 0xbf, 0xdd, + 0x99, 0x77, 0x55, 0x51, 0xef, 0x5f, 0x9d, 0xba, 0x47, 0x5e, 0x9c, 0xf0, 0x90, 0x75, + 0x80, 0x70, 0xf0, 0xbf + ]) + ); + assert_eq!( + Bitcoin::LeftShift64.cmr(), + Cmr::from_byte_array([ + 0x50, 0x49, 0xf4, 0x04, 0xd1, 0x73, 0x29, 0x9a, 0x3a, 0xee, 0x04, 0xcb, 0xc2, 0x46, + 0x2c, 0xb3, 0x4c, 0x80, 0x69, 0xc1, 0xb6, 0xdb, 0x7f, 0xed, 0x0e, 0x38, 0x8f, 0xf6, + 0xd4, 0x67, 0xa0, 0x86 + ]) + ); + assert_eq!( + Bitcoin::LeftShift8.cmr(), + Cmr::from_byte_array([ + 0x83, 0x2f, 0x63, 0x6e, 0x63, 0x44, 0x6c, 0xef, 0xba, 0x8d, 0xf3, 0xa4, 0x6e, 0xfb, + 0xb3, 0x61, 0x59, 0xc1, 0x88, 0x54, 0x56, 0x77, 0x68, 0xad, 0xc9, 0xb8, 0xdb, 0x8a, + 0x07, 0x49, 0x2a, 0x58 + ]) + ); + assert_eq!( + Bitcoin::LeftShiftWith16.cmr(), + Cmr::from_byte_array([ + 0xe6, 0x47, 0x62, 0xb1, 0xc5, 0xe6, 0x14, 0x4a, 0x71, 0x81, 0xea, 0xaf, 0x4d, 0xd9, + 0xd9, 0xb3, 0xaa, 0x43, 0xaa, 0xd9, 0x55, 0x15, 0x81, 0x98, 0xee, 0x20, 0x90, 0xeb, + 0xd9, 0xe4, 0xbb, 0x0d + ]) + ); + assert_eq!( + Bitcoin::LeftShiftWith32.cmr(), + Cmr::from_byte_array([ + 0x64, 0x76, 0xba, 0x89, 0x95, 0xf8, 0x3b, 0x5e, 0xe1, 0xeb, 0xc2, 0x2c, 0xb4, 0x16, + 0xf5, 0x58, 0x15, 0x7f, 0x2e, 0x57, 0x69, 0x9a, 0x5c, 0xaf, 0x84, 0x29, 0x1f, 0xf3, + 0xfc, 0x14, 0x83, 0xc1 + ]) + ); + assert_eq!( + Bitcoin::LeftShiftWith64.cmr(), + Cmr::from_byte_array([ + 0x06, 0xb8, 0xfe, 0x67, 0xcf, 0xc5, 0x86, 0x32, 0x23, 0x97, 0xaf, 0x02, 0x4f, 0xde, + 0x29, 0x11, 0xf7, 0xae, 0x87, 0xa0, 0x6a, 0xbc, 0x6c, 0x59, 0x30, 0x93, 0x40, 0x97, + 0x15, 0x69, 0x1c, 0x19 + ]) + ); + assert_eq!( + Bitcoin::LeftShiftWith8.cmr(), + Cmr::from_byte_array([ + 0xb1, 0xac, 0x9c, 0x68, 0x23, 0x58, 0xc4, 0x5b, 0xab, 0xf4, 0x06, 0x95, 0x56, 0xfe, + 0x6e, 0x37, 0x5b, 0x45, 0x54, 0xde, 0x9e, 0x10, 0xc5, 0x91, 0xc1, 0x48, 0x39, 0x84, + 0x47, 0xac, 0x18, 0x0e + ]) + ); + assert_eq!( + Bitcoin::Le16.cmr(), + Cmr::from_byte_array([ + 0x01, 0x67, 0x05, 0xa7, 0xd7, 0xdc, 0xe1, 0xaf, 0xc6, 0x3e, 0xab, 0x84, 0x20, 0x3f, + 0x5f, 0x42, 0xd6, 0xb6, 0xbb, 0xad, 0x75, 0xce, 0xe3, 0x8c, 0xec, 0x5a, 0x51, 0x5b, + 0x59, 0x97, 0x48, 0x9f + ]) + ); + assert_eq!( + Bitcoin::Le32.cmr(), + Cmr::from_byte_array([ + 0x53, 0x51, 0xfc, 0x5d, 0xeb, 0xe5, 0xb2, 0x98, 0xad, 0x70, 0x57, 0xe4, 0xa5, 0xa7, + 0x6a, 0x3b, 0x9c, 0x65, 0x8a, 0xcd, 0xe7, 0xd1, 0xbb, 0x52, 0xe5, 0x88, 0x9c, 0xa1, + 0xe3, 0x8f, 0x5e, 0xfb + ]) + ); + assert_eq!( + Bitcoin::Le64.cmr(), + Cmr::from_byte_array([ + 0xae, 0x2d, 0xe1, 0xe0, 0xcf, 0x73, 0x0d, 0x1d, 0xcc, 0x96, 0xd7, 0xcc, 0xfe, 0x71, + 0x16, 0x8a, 0x24, 0x0d, 0xea, 0xf8, 0x04, 0x61, 0x5a, 0x7b, 0xa9, 0x20, 0xdc, 0x16, + 0xfd, 0x6e, 0xa4, 0x5f + ]) + ); + assert_eq!( + Bitcoin::Le8.cmr(), + Cmr::from_byte_array([ + 0xaf, 0x29, 0xf6, 0x16, 0x8e, 0xbd, 0xc0, 0x9e, 0xfb, 0xe0, 0xe6, 0x39, 0xcb, 0x75, + 0x0b, 0x12, 0x05, 0x78, 0x8f, 0x90, 0x21, 0xd6, 0x66, 0xef, 0xce, 0xfe, 0x13, 0xf1, + 0x2f, 0x96, 0x71, 0xf0 + ]) + ); + assert_eq!( + Bitcoin::LinearCombination1.cmr(), + Cmr::from_byte_array([ + 0x34, 0x10, 0xa9, 0xee, 0x33, 0x3d, 0xf8, 0xc8, 0xa0, 0x1c, 0x14, 0x11, 0x5b, 0x54, + 0x43, 0x27, 0xe3, 0x24, 0xe2, 0x87, 0xaa, 0x11, 0x07, 0xe0, 0x19, 0x55, 0xbd, 0x20, + 0x50, 0x6e, 0xa9, 0x87 + ]) + ); + assert_eq!( + Bitcoin::LinearVerify1.cmr(), + Cmr::from_byte_array([ + 0xdc, 0x66, 0xd3, 0x31, 0xc1, 0x7f, 0x3f, 0xdd, 0xa3, 0x99, 0x46, 0x98, 0x1b, 0x39, + 0xb3, 0x57, 0xd0, 0x55, 0x5c, 0x35, 0x62, 0xec, 0xae, 0x02, 0xaa, 0x2d, 0xad, 0x16, + 0x3e, 0x6c, 0x9a, 0x2e + ]) + ); + assert_eq!( + Bitcoin::LockTime.cmr(), + Cmr::from_byte_array([ + 0x9a, 0xe0, 0xac, 0xc3, 0x7b, 0xc2, 0x04, 0x47, 0x79, 0xb0, 0x7c, 0x3d, 0x46, 0x02, + 0xa5, 0xfd, 0xe8, 0xbc, 0x33, 0xf8, 0x79, 0xf6, 0x6b, 0x73, 0x9b, 0x10, 0xf0, 0x1a, + 0xeb, 0x11, 0x54, 0xec + ]) + ); + assert_eq!( + Bitcoin::Low1.cmr(), + Cmr::from_byte_array([ + 0xfe, 0x62, 0x14, 0xf9, 0x67, 0x15, 0x6d, 0xcd, 0xe6, 0xdd, 0x49, 0xfd, 0xc5, 0x5e, + 0xfb, 0x86, 0x50, 0x69, 0xfe, 0xab, 0xff, 0xf0, 0xfe, 0x93, 0x1d, 0xba, 0x85, 0x31, + 0x34, 0xee, 0xd1, 0x30 + ]) + ); + assert_eq!( + Bitcoin::Low16.cmr(), + Cmr::from_byte_array([ + 0x74, 0x93, 0xcf, 0x69, 0x8a, 0x48, 0x82, 0xe5, 0xc3, 0x57, 0x9d, 0x06, 0x51, 0x8e, + 0x7e, 0xca, 0x2b, 0x84, 0x28, 0xf6, 0x2e, 0x2b, 0x51, 0x38, 0x02, 0xab, 0xe6, 0x22, + 0x17, 0x0c, 0x20, 0xfe + ]) + ); + assert_eq!( + Bitcoin::Low32.cmr(), + Cmr::from_byte_array([ + 0x36, 0x2d, 0x66, 0xa4, 0xf0, 0xae, 0xb9, 0x65, 0x84, 0xa5, 0x67, 0x57, 0x82, 0x71, + 0xb1, 0xf7, 0xbb, 0xfc, 0xc2, 0xde, 0x0d, 0xcf, 0x95, 0x79, 0x6b, 0x6f, 0x7a, 0x82, + 0x6b, 0x2a, 0x8a, 0xf7 + ]) + ); + assert_eq!( + Bitcoin::Low64.cmr(), + Cmr::from_byte_array([ + 0x97, 0x33, 0x23, 0xbc, 0x2b, 0x92, 0xe4, 0x28, 0x04, 0xd2, 0xe4, 0xf5, 0x8b, 0x86, + 0xf6, 0x5b, 0x56, 0xf9, 0x1d, 0xee, 0xb4, 0x81, 0x0e, 0xab, 0x8a, 0x1d, 0xed, 0xa9, + 0x69, 0x7a, 0x08, 0x72 + ]) + ); + assert_eq!( + Bitcoin::Low8.cmr(), + Cmr::from_byte_array([ + 0xcd, 0x1a, 0x85, 0x58, 0xef, 0x99, 0xa3, 0x22, 0x60, 0x21, 0x7a, 0x76, 0x49, 0xff, + 0x51, 0x40, 0xda, 0x69, 0xda, 0x70, 0x06, 0x72, 0x69, 0x0b, 0x27, 0x91, 0x7b, 0x07, + 0xd7, 0xc1, 0x4c, 0x67 + ]) + ); + assert_eq!( + Bitcoin::Lt16.cmr(), + Cmr::from_byte_array([ + 0x04, 0xac, 0xa8, 0x7e, 0x3e, 0x17, 0xf8, 0x05, 0xa2, 0x1c, 0xf2, 0x91, 0x7a, 0xee, + 0x99, 0x57, 0xb9, 0x50, 0xb2, 0xdb, 0x5d, 0x7a, 0xe5, 0xc8, 0x26, 0xd4, 0xac, 0x2e, + 0xc9, 0x7b, 0x5a, 0x52 + ]) + ); + assert_eq!( + Bitcoin::Lt32.cmr(), + Cmr::from_byte_array([ + 0x23, 0xa0, 0xa5, 0xc1, 0x97, 0x74, 0x7e, 0x3a, 0x95, 0x79, 0xe9, 0x0e, 0x0f, 0x22, + 0xf8, 0x4a, 0x29, 0xbf, 0xb5, 0xf0, 0x7b, 0x84, 0xb5, 0x9b, 0x26, 0x68, 0x8a, 0x0c, + 0xd5, 0x9d, 0xfe, 0xbd + ]) + ); + assert_eq!( + Bitcoin::Lt64.cmr(), + Cmr::from_byte_array([ + 0xd2, 0x99, 0x90, 0x1c, 0x7b, 0x5b, 0x3a, 0x59, 0xff, 0xc8, 0xdd, 0x09, 0x54, 0x5a, + 0x32, 0x38, 0x24, 0xb7, 0x79, 0xa9, 0x9b, 0x2d, 0x1a, 0x2f, 0x87, 0x45, 0x2d, 0x9e, + 0x4b, 0xef, 0xaf, 0x30 + ]) + ); + assert_eq!( + Bitcoin::Lt8.cmr(), + Cmr::from_byte_array([ + 0xdd, 0x94, 0x41, 0x3b, 0x52, 0x9c, 0x29, 0x8c, 0x16, 0x96, 0xe9, 0xfb, 0x08, 0xe6, + 0x67, 0x67, 0xb3, 0xf8, 0x33, 0x7a, 0xc0, 0x2e, 0x44, 0xb0, 0x68, 0xe9, 0x40, 0x14, + 0xf7, 0xc4, 0x1f, 0x2a + ]) + ); + assert_eq!( + Bitcoin::Maj1.cmr(), + Cmr::from_byte_array([ + 0x0e, 0x6f, 0xb4, 0x0f, 0xe3, 0x1a, 0x3a, 0x52, 0x6b, 0x44, 0xcf, 0x0b, 0x7c, 0x79, + 0x36, 0xc7, 0x77, 0xcb, 0xba, 0x89, 0x65, 0xa7, 0x25, 0x52, 0x32, 0xa7, 0xcf, 0x53, + 0xa9, 0x22, 0x88, 0x5a + ]) + ); + assert_eq!( + Bitcoin::Maj16.cmr(), + Cmr::from_byte_array([ + 0x38, 0x66, 0x9c, 0xe5, 0xe1, 0xe1, 0x71, 0x47, 0x54, 0x00, 0x73, 0x1b, 0xee, 0xb6, + 0x0b, 0xca, 0xfa, 0xd6, 0x66, 0x04, 0xc9, 0x39, 0x40, 0x16, 0x0c, 0xd7, 0x12, 0x88, + 0x35, 0x55, 0x93, 0x42 + ]) + ); + assert_eq!( + Bitcoin::Maj32.cmr(), + Cmr::from_byte_array([ + 0x55, 0x54, 0x34, 0x9b, 0x58, 0x4f, 0x5c, 0x38, 0x72, 0xc7, 0xf4, 0xf2, 0x57, 0x82, + 0x9e, 0x2a, 0xe8, 0x22, 0xd8, 0x23, 0x42, 0x4c, 0xeb, 0x95, 0x98, 0xf0, 0x83, 0x18, + 0x58, 0x6a, 0x88, 0x07 + ]) + ); + assert_eq!( + Bitcoin::Maj64.cmr(), + Cmr::from_byte_array([ + 0x73, 0x49, 0x03, 0xba, 0xef, 0xb7, 0x1d, 0x5e, 0xa4, 0x16, 0x48, 0xff, 0x43, 0xee, + 0xe6, 0x98, 0x94, 0xe0, 0x63, 0xb3, 0x88, 0xea, 0x42, 0x2f, 0x96, 0xae, 0xde, 0x19, + 0x3c, 0xea, 0xb8, 0x39 + ]) + ); + assert_eq!( + Bitcoin::Maj8.cmr(), + Cmr::from_byte_array([ + 0xba, 0x47, 0xa3, 0x99, 0xdc, 0x94, 0x35, 0xe1, 0x8e, 0x08, 0x0a, 0x4e, 0x18, 0xaf, + 0x7c, 0x65, 0x7f, 0xd3, 0x9f, 0x7c, 0xe7, 0xd6, 0x05, 0x2e, 0x46, 0x90, 0x23, 0x11, + 0xb0, 0x78, 0xd5, 0x85 + ]) + ); + assert_eq!( + Bitcoin::Max16.cmr(), + Cmr::from_byte_array([ + 0xaa, 0x55, 0x23, 0x74, 0x6c, 0xab, 0xfa, 0xf5, 0x66, 0x8e, 0x9e, 0x07, 0x37, 0xe5, + 0x6b, 0x06, 0x06, 0x22, 0x51, 0xd7, 0xe8, 0x0a, 0xb9, 0xb9, 0x10, 0x6d, 0x8f, 0x17, + 0x2d, 0xc8, 0x4d, 0xd6 + ]) + ); + assert_eq!( + Bitcoin::Max32.cmr(), + Cmr::from_byte_array([ + 0x69, 0x22, 0x96, 0x5d, 0x14, 0x43, 0x45, 0xc9, 0x13, 0xec, 0xb3, 0x0b, 0x5e, 0xd4, + 0x7e, 0x88, 0xda, 0xe3, 0x5c, 0x12, 0x21, 0xf2, 0x6a, 0xa9, 0x2d, 0xd5, 0xa5, 0xf6, + 0x15, 0xdb, 0xdb, 0x53 + ]) + ); + assert_eq!( + Bitcoin::Max64.cmr(), + Cmr::from_byte_array([ + 0x8a, 0x9b, 0xe9, 0x07, 0xb6, 0xa4, 0xc3, 0x0a, 0xbc, 0xc0, 0xf2, 0x2d, 0x01, 0x30, + 0x74, 0xc2, 0xd5, 0x6b, 0xb0, 0x81, 0xf2, 0x62, 0x18, 0x57, 0xd5, 0x38, 0xcc, 0x97, + 0x13, 0x1e, 0x44, 0x09 + ]) + ); + assert_eq!( + Bitcoin::Max8.cmr(), + Cmr::from_byte_array([ + 0xb4, 0xbf, 0x93, 0x23, 0x40, 0x22, 0xe8, 0x60, 0xfe, 0x76, 0xc0, 0xb5, 0x36, 0x0e, + 0x8b, 0x36, 0xff, 0x81, 0xee, 0x67, 0x05, 0xb5, 0x93, 0xac, 0xdf, 0x65, 0x5a, 0xc6, + 0xe6, 0xd7, 0xae, 0xba + ]) + ); + assert_eq!( + Bitcoin::Median16.cmr(), + Cmr::from_byte_array([ + 0x17, 0xe2, 0xe8, 0x7f, 0x07, 0x60, 0xf4, 0xfb, 0x3c, 0x9f, 0xd0, 0xbe, 0xd0, 0x00, + 0xd7, 0x39, 0x73, 0xab, 0x60, 0xf5, 0xe6, 0xc2, 0xc1, 0xfa, 0xb1, 0x7f, 0x9b, 0x23, + 0xee, 0x6a, 0xca, 0x48 + ]) + ); + assert_eq!( + Bitcoin::Median32.cmr(), + Cmr::from_byte_array([ + 0x11, 0x60, 0xae, 0x8e, 0xa8, 0xd3, 0x0f, 0x9a, 0x22, 0x33, 0xc4, 0x8e, 0x73, 0x12, + 0x40, 0xf8, 0x44, 0x93, 0xb8, 0x28, 0xb5, 0x57, 0x93, 0xe2, 0xf4, 0x04, 0x2a, 0x19, + 0x82, 0xac, 0x26, 0xa5 + ]) + ); + assert_eq!( + Bitcoin::Median64.cmr(), + Cmr::from_byte_array([ + 0xc8, 0x73, 0x73, 0x64, 0x9e, 0x7e, 0x40, 0x50, 0xbb, 0x73, 0x33, 0x7e, 0x08, 0xeb, + 0x5d, 0xe4, 0x52, 0x28, 0xab, 0x86, 0xad, 0x4e, 0x1f, 0x41, 0x91, 0xe5, 0x20, 0x2a, + 0xa6, 0xaf, 0xa0, 0xc5 + ]) + ); + assert_eq!( + Bitcoin::Median8.cmr(), + Cmr::from_byte_array([ + 0xc3, 0xb4, 0xe0, 0x89, 0x8a, 0x21, 0xbd, 0xe9, 0x4d, 0xae, 0xd3, 0x7a, 0x20, 0xad, + 0xf9, 0x0c, 0x8b, 0xe5, 0x69, 0x1a, 0x03, 0xb6, 0xa1, 0xe5, 0x56, 0x38, 0x5d, 0x42, + 0xeb, 0x19, 0x02, 0x2b + ]) + ); + assert_eq!( + Bitcoin::Min16.cmr(), + Cmr::from_byte_array([ + 0x5f, 0xd0, 0x05, 0x1e, 0xdb, 0x37, 0x19, 0xa6, 0x45, 0xb2, 0x72, 0xa0, 0x21, 0x08, + 0xef, 0xbb, 0x3d, 0x9b, 0xc0, 0xf6, 0x06, 0x21, 0xbf, 0x5a, 0x5b, 0xab, 0xe1, 0x16, + 0xd5, 0x55, 0xd5, 0x78 + ]) + ); + assert_eq!( + Bitcoin::Min32.cmr(), + Cmr::from_byte_array([ + 0xd8, 0x07, 0x82, 0xa2, 0xb5, 0xd8, 0x6a, 0xb6, 0xb9, 0xc9, 0xc3, 0xfb, 0x77, 0x8a, + 0x34, 0x73, 0xf6, 0x00, 0xb1, 0x85, 0xfe, 0x19, 0x25, 0xee, 0x9f, 0xc2, 0xe8, 0x77, + 0x7e, 0xd2, 0x66, 0x01 + ]) + ); + assert_eq!( + Bitcoin::Min64.cmr(), + Cmr::from_byte_array([ + 0xc5, 0xc0, 0x9d, 0x50, 0x13, 0x38, 0xe9, 0xa5, 0x12, 0xcf, 0x89, 0x76, 0xca, 0x4b, + 0x32, 0xb9, 0x24, 0x80, 0xbe, 0xf6, 0xae, 0xb2, 0x9d, 0x36, 0xd5, 0x90, 0xd3, 0x5b, + 0xf9, 0xf9, 0xec, 0xe1 + ]) + ); + assert_eq!( + Bitcoin::Min8.cmr(), + Cmr::from_byte_array([ + 0x81, 0xd2, 0x1e, 0x12, 0x81, 0x42, 0x38, 0x81, 0x80, 0x2c, 0x0e, 0x0c, 0x7d, 0x22, + 0xbd, 0x34, 0xd2, 0x6b, 0xd1, 0x2a, 0x4c, 0x4f, 0x1b, 0x70, 0x68, 0xe7, 0xe1, 0x83, + 0x82, 0x08, 0x48, 0xe9 + ]) + ); + assert_eq!( + Bitcoin::Modulo16.cmr(), + Cmr::from_byte_array([ + 0xb6, 0xb8, 0x7c, 0xfa, 0xb6, 0x7e, 0x55, 0x19, 0xf1, 0xc9, 0x98, 0xda, 0x47, 0x94, + 0x37, 0xbb, 0x79, 0xe6, 0x74, 0xf7, 0x15, 0xe9, 0xa2, 0xe5, 0x38, 0xee, 0xc5, 0xec, + 0x18, 0xe1, 0x8e, 0xa5 + ]) + ); + assert_eq!( + Bitcoin::Modulo32.cmr(), + Cmr::from_byte_array([ + 0x8d, 0x48, 0x6e, 0x83, 0x16, 0x54, 0xf3, 0x8a, 0x32, 0xda, 0x35, 0xeb, 0x7b, 0xb6, + 0x55, 0xa6, 0xed, 0x69, 0x4d, 0xbf, 0xa0, 0x58, 0x95, 0x7d, 0x9f, 0x5c, 0xbf, 0xcc, + 0x57, 0x92, 0xc6, 0x5b + ]) + ); + assert_eq!( + Bitcoin::Modulo64.cmr(), + Cmr::from_byte_array([ + 0x14, 0xdf, 0x20, 0xd9, 0x3d, 0xfd, 0xef, 0xe2, 0x55, 0x9b, 0xac, 0x50, 0xed, 0x38, + 0x19, 0x3b, 0xd7, 0x8b, 0xd6, 0x3f, 0x92, 0x9d, 0x86, 0xfb, 0x4f, 0x29, 0xa7, 0xc5, + 0xaf, 0x32, 0x42, 0xad + ]) + ); + assert_eq!( + Bitcoin::Modulo8.cmr(), + Cmr::from_byte_array([ + 0x2c, 0x75, 0x8a, 0x7c, 0x0f, 0x59, 0xe8, 0x00, 0xe9, 0x4f, 0x3d, 0xc5, 0xa0, 0x01, + 0xbf, 0x8e, 0xd9, 0x43, 0x5f, 0x75, 0xa2, 0xd9, 0x69, 0x30, 0xc5, 0x7e, 0xaa, 0xb0, + 0xcd, 0x80, 0xaf, 0x5c + ]) + ); + assert_eq!( + Bitcoin::Multiply16.cmr(), + Cmr::from_byte_array([ + 0x75, 0xbd, 0x41, 0xf2, 0xd2, 0xb3, 0x39, 0xf0, 0x69, 0xbf, 0xdf, 0xd8, 0x02, 0xd6, + 0x1e, 0x6c, 0xa8, 0xe3, 0xba, 0xd6, 0xfb, 0x6d, 0x95, 0xb6, 0x72, 0x09, 0x5b, 0x93, + 0x34, 0x5f, 0x04, 0x7f + ]) + ); + assert_eq!( + Bitcoin::Multiply32.cmr(), + Cmr::from_byte_array([ + 0x84, 0xcb, 0xe6, 0xce, 0x87, 0x03, 0x79, 0x92, 0x13, 0x87, 0x7c, 0x1b, 0xd5, 0x05, + 0xc7, 0x64, 0x34, 0x33, 0x69, 0x00, 0x2e, 0x50, 0x2c, 0x43, 0xd9, 0x7f, 0x3d, 0x57, + 0x77, 0x2d, 0x6c, 0x87 + ]) + ); + assert_eq!( + Bitcoin::Multiply64.cmr(), + Cmr::from_byte_array([ + 0x92, 0x98, 0x7b, 0x80, 0x1b, 0x92, 0xf6, 0x79, 0xeb, 0x96, 0x13, 0x68, 0x84, 0x44, + 0xa1, 0x78, 0x87, 0x50, 0xa8, 0x50, 0x6e, 0x03, 0xa9, 0x21, 0x8c, 0x21, 0xec, 0xc7, + 0x20, 0x82, 0xdc, 0x6a + ]) + ); + assert_eq!( + Bitcoin::Multiply8.cmr(), + Cmr::from_byte_array([ + 0x76, 0x4c, 0xab, 0x71, 0xdb, 0x94, 0x59, 0xa7, 0x69, 0x6d, 0x94, 0x4a, 0x50, 0x09, + 0x5b, 0x1a, 0xeb, 0xdf, 0xd9, 0x28, 0x4b, 0xdb, 0x74, 0x96, 0xa7, 0xb3, 0x02, 0x41, + 0xcc, 0xba, 0x3e, 0xce + ]) + ); + assert_eq!( + Bitcoin::Negate16.cmr(), + Cmr::from_byte_array([ + 0xe7, 0x60, 0xee, 0x40, 0x29, 0xc3, 0x4f, 0x89, 0x74, 0x06, 0xff, 0xde, 0xa5, 0x55, + 0x84, 0x86, 0x62, 0xe8, 0x9c, 0x98, 0x3e, 0x60, 0x70, 0xbd, 0x02, 0x72, 0xad, 0x0f, + 0xa3, 0x42, 0xef, 0xa3 + ]) + ); + assert_eq!( + Bitcoin::Negate32.cmr(), + Cmr::from_byte_array([ + 0x84, 0x95, 0xb7, 0x40, 0x09, 0xad, 0x07, 0xc9, 0x30, 0x2a, 0x25, 0xae, 0x56, 0xc3, + 0xe9, 0x73, 0x3f, 0x00, 0xc2, 0xba, 0xa4, 0x10, 0xea, 0xc4, 0xa5, 0x8e, 0x75, 0xdb, + 0x83, 0xaf, 0x1d, 0x22 + ]) + ); + assert_eq!( + Bitcoin::Negate64.cmr(), + Cmr::from_byte_array([ + 0x34, 0xe8, 0x9f, 0xaf, 0x34, 0x5a, 0xfd, 0x5e, 0x7b, 0x29, 0x00, 0x14, 0x52, 0xfc, + 0x5f, 0xc2, 0xe3, 0x78, 0x3a, 0xf7, 0xf2, 0x10, 0x16, 0x43, 0xbd, 0x76, 0x70, 0x6a, + 0x6f, 0xc3, 0xf3, 0x6a + ]) + ); + assert_eq!( + Bitcoin::Negate8.cmr(), + Cmr::from_byte_array([ + 0xe8, 0x1b, 0xe0, 0xb1, 0x5c, 0x67, 0x1a, 0xb8, 0xdf, 0x1f, 0x48, 0x69, 0xc5, 0x7f, + 0x11, 0x11, 0x18, 0xcb, 0x66, 0x83, 0x54, 0x97, 0x5c, 0x63, 0x66, 0xec, 0xb2, 0xb8, + 0xbb, 0x7c, 0x15, 0xcf + ]) + ); + assert_eq!( + Bitcoin::NumInputs.cmr(), + Cmr::from_byte_array([ + 0x5c, 0x5a, 0xc4, 0xff, 0x6d, 0xa5, 0x6c, 0xb3, 0x72, 0xb2, 0x32, 0x66, 0x6e, 0x83, + 0x34, 0xb9, 0xe2, 0xcf, 0xb0, 0xdc, 0xb4, 0x18, 0xf1, 0x61, 0xbf, 0xf1, 0x49, 0xe8, + 0x4e, 0xc9, 0x2c, 0x3e + ]) + ); + assert_eq!( + Bitcoin::NumOutputs.cmr(), + Cmr::from_byte_array([ + 0x98, 0xa1, 0xcc, 0xa7, 0x05, 0xdf, 0xcf, 0xaf, 0xd3, 0xa6, 0x9e, 0x9a, 0xdc, 0x05, + 0xba, 0x47, 0xe1, 0xfe, 0xfa, 0x6a, 0x29, 0xf3, 0x42, 0x86, 0x20, 0x48, 0xe4, 0x96, + 0x86, 0x48, 0xc3, 0xd7 + ]) + ); + assert_eq!( + Bitcoin::One16.cmr(), + Cmr::from_byte_array([ + 0x2e, 0x5e, 0x3d, 0x95, 0xe4, 0x53, 0x16, 0x88, 0x8e, 0x4f, 0x37, 0x09, 0xef, 0x83, + 0x2b, 0x9f, 0xd9, 0xe1, 0x5f, 0x30, 0x71, 0x9b, 0xf5, 0x5f, 0xc2, 0xe0, 0xe0, 0x9a, + 0x36, 0x57, 0xd8, 0x82 + ]) + ); + assert_eq!( + Bitcoin::One32.cmr(), + Cmr::from_byte_array([ + 0x06, 0x42, 0x6b, 0x85, 0x3c, 0x1b, 0xcb, 0x33, 0x8a, 0xed, 0xbe, 0x1f, 0x89, 0xa6, + 0xd9, 0xb7, 0xa3, 0xda, 0x03, 0x8c, 0xd0, 0x0a, 0x44, 0x71, 0x18, 0x36, 0x93, 0x49, + 0x66, 0x9e, 0x29, 0x76 + ]) + ); + assert_eq!( + Bitcoin::One64.cmr(), + Cmr::from_byte_array([ + 0xab, 0x1d, 0x2c, 0xd9, 0x96, 0x78, 0xda, 0x3c, 0x12, 0x8d, 0x39, 0xad, 0x9f, 0xe6, + 0xff, 0xa9, 0x55, 0xc1, 0x6e, 0x5e, 0xf2, 0xc2, 0x5b, 0xb4, 0x31, 0x83, 0x15, 0x59, + 0x69, 0x51, 0xf4, 0x27 + ]) + ); + assert_eq!( + Bitcoin::One8.cmr(), + Cmr::from_byte_array([ + 0x3c, 0xc5, 0xf5, 0x23, 0xd6, 0xa6, 0x35, 0x5d, 0xc9, 0x24, 0xee, 0x0a, 0xc1, 0xf5, + 0xfe, 0x2c, 0x52, 0x12, 0x75, 0xe3, 0xaa, 0x9f, 0x21, 0xd3, 0x1b, 0x08, 0x2d, 0xb2, + 0xac, 0x23, 0x0d, 0x9d + ]) + ); + assert_eq!( + Bitcoin::Or1.cmr(), + Cmr::from_byte_array([ + 0xc4, 0x65, 0x96, 0x43, 0x69, 0xfc, 0xa2, 0x09, 0x7f, 0x83, 0x53, 0x0c, 0x87, 0xbc, + 0xbc, 0x90, 0xc3, 0x06, 0x57, 0x9d, 0x9f, 0x3b, 0xfe, 0xdd, 0xf4, 0xa1, 0x72, 0xa4, + 0xea, 0x0b, 0x58, 0xec + ]) + ); + assert_eq!( + Bitcoin::Or16.cmr(), + Cmr::from_byte_array([ + 0x5a, 0x98, 0x5e, 0x04, 0x3b, 0x85, 0x27, 0x3b, 0x90, 0xf9, 0x0e, 0x20, 0xf8, 0x2b, + 0x75, 0x32, 0x33, 0x51, 0xcf, 0x2a, 0x4e, 0x62, 0xa7, 0xf9, 0xcb, 0x2f, 0x05, 0x96, + 0x40, 0x2e, 0x9e, 0x28 + ]) + ); + assert_eq!( + Bitcoin::Or32.cmr(), + Cmr::from_byte_array([ + 0x35, 0x52, 0x38, 0x3a, 0x57, 0xff, 0xb4, 0x8d, 0x63, 0xa0, 0x33, 0x7a, 0xf0, 0xdd, + 0x6e, 0xfa, 0xb6, 0xb4, 0x6c, 0x5d, 0xe1, 0x72, 0x0e, 0x42, 0x0b, 0xdd, 0x1c, 0x82, + 0x27, 0x6b, 0xc9, 0xa9 + ]) + ); + assert_eq!( + Bitcoin::Or64.cmr(), + Cmr::from_byte_array([ + 0x51, 0xa1, 0x73, 0xda, 0xdc, 0xa0, 0x1a, 0xc6, 0xf6, 0x2e, 0x75, 0xd5, 0xcd, 0x35, + 0x22, 0xf0, 0x9f, 0xde, 0x62, 0xb1, 0x15, 0x13, 0xe0, 0x68, 0x42, 0x28, 0x52, 0xa4, + 0x91, 0x67, 0xb6, 0x06 + ]) + ); + assert_eq!( + Bitcoin::Or8.cmr(), + Cmr::from_byte_array([ + 0x79, 0xef, 0xbd, 0xcb, 0x53, 0x7b, 0xeb, 0xcb, 0x18, 0x8d, 0x11, 0x16, 0xb7, 0x8a, + 0x10, 0x9b, 0xff, 0xbc, 0x2a, 0x6c, 0xe3, 0xd1, 0xf8, 0x70, 0x15, 0x4a, 0x79, 0x56, + 0x09, 0x1b, 0x34, 0x2f + ]) + ); + assert_eq!( + Bitcoin::OutpointHash.cmr(), + Cmr::from_byte_array([ + 0x3a, 0x1a, 0xe9, 0x0e, 0x16, 0x7f, 0xb4, 0x0d, 0x6e, 0x13, 0xb4, 0x51, 0xad, 0x67, + 0x41, 0x0d, 0x8d, 0xd9, 0x91, 0xc8, 0x7d, 0x6a, 0x4a, 0x59, 0xcc, 0x76, 0xc6, 0x3f, + 0x3b, 0x9e, 0x5e, 0x56 + ]) + ); + assert_eq!( + Bitcoin::OutputsHash.cmr(), + Cmr::from_byte_array([ + 0xf2, 0xeb, 0x6d, 0x0f, 0x01, 0x8e, 0x6f, 0x15, 0xe3, 0x5b, 0xaa, 0x82, 0xe5, 0x7e, + 0x14, 0xfe, 0x34, 0x37, 0x96, 0xf2, 0x19, 0x68, 0x26, 0xbe, 0xd7, 0xc7, 0x87, 0x55, + 0x98, 0xd6, 0x64, 0x1d + ]) + ); + assert_eq!( + Bitcoin::OutputHash.cmr(), + Cmr::from_byte_array([ + 0x91, 0x21, 0x1f, 0xc6, 0x01, 0x1a, 0x64, 0x93, 0x00, 0xc6, 0xbe, 0xe9, 0x4f, 0xdd, + 0x48, 0xa9, 0x7f, 0xa2, 0xa9, 0xb6, 0xf2, 0x84, 0xbe, 0x01, 0x5d, 0x46, 0x2d, 0x17, + 0xde, 0x66, 0x4a, 0xc3 + ]) + ); + assert_eq!( + Bitcoin::OutputScriptsHash.cmr(), + Cmr::from_byte_array([ + 0xff, 0x20, 0xbc, 0x43, 0x65, 0xe7, 0x17, 0x07, 0x57, 0x1c, 0x6e, 0x17, 0x38, 0xe1, + 0xed, 0x32, 0x6f, 0x7c, 0x35, 0x1d, 0xe1, 0x30, 0x22, 0xae, 0xa3, 0xd6, 0x40, 0x6b, + 0x8a, 0xee, 0x8e, 0x3b + ]) + ); + assert_eq!( + Bitcoin::OutputScriptHash.cmr(), + Cmr::from_byte_array([ + 0xbd, 0xfd, 0xb2, 0x31, 0xf4, 0xf1, 0xa6, 0x2c, 0x9d, 0x7b, 0x03, 0x93, 0x1e, 0x7f, + 0x19, 0xa4, 0x54, 0x6a, 0xf2, 0x34, 0x75, 0x4c, 0xbf, 0x70, 0x05, 0x9f, 0xdd, 0x42, + 0xbb, 0xbc, 0x41, 0x26 + ]) + ); + assert_eq!( + Bitcoin::OutputValue.cmr(), + Cmr::from_byte_array([ + 0x93, 0x36, 0x43, 0xb6, 0xc5, 0xa6, 0x22, 0x0a, 0xbb, 0xca, 0x6f, 0x35, 0x09, 0xfe, + 0xff, 0x6d, 0x13, 0xef, 0xa6, 0xc9, 0xfa, 0xe9, 0x59, 0x24, 0x57, 0x53, 0x64, 0xf2, + 0xb1, 0x64, 0xd2, 0xbc + ]) + ); + assert_eq!( + Bitcoin::OutputValuesHash.cmr(), + Cmr::from_byte_array([ + 0x22, 0x89, 0x93, 0x79, 0x00, 0x57, 0x06, 0x6f, 0x20, 0x16, 0x97, 0x1d, 0xf5, 0x5e, + 0x6f, 0x67, 0xd2, 0x52, 0xef, 0xb6, 0xda, 0xab, 0xd0, 0xfc, 0x56, 0x6a, 0x8d, 0x21, + 0x56, 0xef, 0xbb, 0xfc + ]) + ); + assert_eq!( + Bitcoin::ParseLock.cmr(), + Cmr::from_byte_array([ + 0x3d, 0xb8, 0x45, 0x35, 0xfa, 0x3d, 0x90, 0xef, 0x0b, 0x58, 0x1e, 0x22, 0xb6, 0x1d, + 0x21, 0x27, 0x84, 0x4b, 0x21, 0x16, 0xe8, 0x4f, 0x81, 0x4a, 0x5c, 0xba, 0xc5, 0x2d, + 0xf5, 0x15, 0xf2, 0xd2 + ]) + ); + assert_eq!( + Bitcoin::ParseSequence.cmr(), + Cmr::from_byte_array([ + 0x38, 0xb2, 0x53, 0x3f, 0x5f, 0xed, 0xe8, 0x69, 0xba, 0xa1, 0x70, 0x69, 0x83, 0xdf, + 0x4c, 0x89, 0xd6, 0x2d, 0x5f, 0x90, 0x80, 0x0b, 0x47, 0xea, 0xb2, 0x11, 0x13, 0x31, + 0x1a, 0x5a, 0xae, 0xc9 + ]) + ); + assert_eq!( + Bitcoin::PointVerify1.cmr(), + Cmr::from_byte_array([ + 0xbe, 0x2a, 0x98, 0x90, 0xf1, 0xd5, 0xb6, 0x15, 0x14, 0x7f, 0x82, 0x41, 0xe0, 0x60, + 0x9b, 0x5c, 0xac, 0x01, 0xec, 0xe0, 0xa3, 0xf9, 0x23, 0x68, 0x67, 0xb2, 0xbf, 0xde, + 0xa1, 0xb8, 0x04, 0x4e + ]) + ); + assert_eq!( + Bitcoin::Rightmost16_1.cmr(), + Cmr::from_byte_array([ + 0x3f, 0x3c, 0x43, 0x46, 0x87, 0x17, 0x42, 0x26, 0x5e, 0x87, 0xf0, 0x01, 0xb4, 0x6d, + 0xe7, 0xd1, 0x98, 0x75, 0x1b, 0x34, 0xfa, 0xa1, 0x80, 0x18, 0xde, 0x60, 0xc8, 0x46, + 0x8d, 0x9b, 0x98, 0xa4 + ]) + ); + assert_eq!( + Bitcoin::Rightmost16_2.cmr(), + Cmr::from_byte_array([ + 0xc1, 0x8b, 0x9f, 0xdd, 0x34, 0x0a, 0x26, 0x7a, 0xc1, 0x6d, 0x4f, 0x39, 0xee, 0x75, + 0x43, 0x56, 0x52, 0xaa, 0xca, 0x52, 0x56, 0x50, 0xb5, 0x1a, 0x45, 0x87, 0x98, 0x04, + 0x8e, 0x62, 0x7d, 0x51 + ]) + ); + assert_eq!( + Bitcoin::Rightmost16_4.cmr(), + Cmr::from_byte_array([ + 0xc6, 0xc5, 0x3f, 0xa7, 0x1e, 0x23, 0x0c, 0xf0, 0x58, 0x51, 0x58, 0xf4, 0x70, 0x58, + 0x8b, 0xac, 0x5c, 0x51, 0x8f, 0x84, 0xf9, 0xfc, 0x23, 0x86, 0x52, 0xf1, 0x75, 0xfb, + 0x6e, 0xa1, 0x8c, 0x11 + ]) + ); + assert_eq!( + Bitcoin::Rightmost16_8.cmr(), + Cmr::from_byte_array([ + 0xee, 0x76, 0x9c, 0x1c, 0xc8, 0xa3, 0xfd, 0xd1, 0x83, 0x8f, 0xc9, 0xf0, 0x49, 0x0c, + 0xe7, 0x03, 0x93, 0xfd, 0x91, 0xba, 0x3c, 0xbd, 0x4a, 0xbd, 0x08, 0x64, 0x9f, 0xb9, + 0xc4, 0x43, 0x11, 0xbd + ]) + ); + assert_eq!( + Bitcoin::Rightmost32_1.cmr(), + Cmr::from_byte_array([ + 0x1c, 0x44, 0x23, 0x69, 0xfb, 0x81, 0xf6, 0x11, 0xd3, 0x28, 0x01, 0x0b, 0x86, 0x4b, + 0xcc, 0xb7, 0xf3, 0x5e, 0xd4, 0x77, 0xdf, 0xa3, 0x85, 0x55, 0x74, 0xc1, 0x35, 0x64, + 0xcd, 0xbd, 0xb8, 0x60 + ]) + ); + assert_eq!( + Bitcoin::Rightmost32_16.cmr(), + Cmr::from_byte_array([ + 0xad, 0xd2, 0xc3, 0x39, 0x0d, 0x9a, 0xf7, 0xc2, 0x4a, 0x15, 0x9a, 0x37, 0xd6, 0x9d, + 0x44, 0x84, 0xd2, 0xc2, 0x4a, 0x2c, 0xb5, 0xb0, 0xeb, 0x2d, 0x3c, 0x49, 0x3d, 0x98, + 0x12, 0xac, 0xfd, 0x74 + ]) + ); + assert_eq!( + Bitcoin::Rightmost32_2.cmr(), + Cmr::from_byte_array([ + 0x00, 0xb8, 0x81, 0x5a, 0xd7, 0x42, 0x3d, 0xd5, 0x8c, 0xb9, 0x8b, 0xe8, 0x2c, 0xad, + 0x26, 0x67, 0x5c, 0x3b, 0xf5, 0x4a, 0x0b, 0xed, 0xba, 0xde, 0x34, 0x64, 0xb4, 0xfe, + 0x5a, 0x4e, 0x8c, 0xe6 + ]) + ); + assert_eq!( + Bitcoin::Rightmost32_4.cmr(), + Cmr::from_byte_array([ + 0x84, 0xfa, 0x5a, 0x54, 0xf7, 0x72, 0x9f, 0x9d, 0x68, 0x99, 0x4b, 0xea, 0xb9, 0x3a, + 0xe7, 0x9b, 0x8c, 0x4a, 0x10, 0xd5, 0xb7, 0xae, 0x97, 0x27, 0xaa, 0x17, 0x16, 0xe5, + 0x7d, 0x03, 0x3b, 0x74 + ]) + ); + assert_eq!( + Bitcoin::Rightmost32_8.cmr(), + Cmr::from_byte_array([ + 0x7d, 0x38, 0x05, 0xd3, 0xc7, 0x8c, 0x4e, 0xea, 0x91, 0xe3, 0xd3, 0x5e, 0xfd, 0xd4, + 0x7e, 0xed, 0xd4, 0x21, 0xaf, 0x84, 0xd2, 0x19, 0x10, 0x32, 0x93, 0x32, 0xa0, 0xb5, + 0x48, 0x7f, 0xab, 0x63 + ]) + ); + assert_eq!( + Bitcoin::Rightmost64_1.cmr(), + Cmr::from_byte_array([ + 0xd3, 0xb1, 0x64, 0xc5, 0xdc, 0x66, 0xcc, 0x7e, 0xf9, 0x23, 0x4f, 0xed, 0xe4, 0xdc, + 0x7f, 0x0d, 0xa5, 0xcd, 0x71, 0xc1, 0xc1, 0xd4, 0xca, 0xd6, 0x0f, 0xb4, 0xec, 0x57, + 0x3e, 0x2b, 0x8a, 0x75 + ]) + ); + assert_eq!( + Bitcoin::Rightmost64_16.cmr(), + Cmr::from_byte_array([ + 0xea, 0xe4, 0x34, 0x78, 0xf9, 0xf2, 0xf4, 0x52, 0xef, 0xac, 0x15, 0xee, 0xe6, 0x0f, + 0x8b, 0x52, 0x53, 0xd8, 0x0a, 0x2d, 0x32, 0x12, 0x9b, 0x4e, 0x5b, 0xa3, 0x83, 0x00, + 0xad, 0x98, 0x52, 0xfd + ]) + ); + assert_eq!( + Bitcoin::Rightmost64_2.cmr(), + Cmr::from_byte_array([ + 0x9c, 0xd4, 0xa9, 0x8b, 0xbd, 0xb8, 0xa3, 0x35, 0x85, 0xc0, 0x0f, 0x47, 0xd6, 0xad, + 0xab, 0x7a, 0xf5, 0x42, 0x86, 0xfb, 0x8a, 0xe6, 0x0f, 0x72, 0x30, 0x11, 0xfb, 0x84, + 0xc0, 0xee, 0x78, 0xf9 + ]) + ); + assert_eq!( + Bitcoin::Rightmost64_32.cmr(), + Cmr::from_byte_array([ + 0x7f, 0x24, 0x20, 0xae, 0x5b, 0x0f, 0x5a, 0x3f, 0x6f, 0x2e, 0x60, 0xb6, 0x1f, 0x8a, + 0x41, 0x5c, 0x08, 0x8b, 0x94, 0xb2, 0x1c, 0x1a, 0x62, 0xa3, 0xfd, 0xaa, 0xc7, 0x49, + 0xdb, 0xdf, 0x4c, 0x71 + ]) + ); + assert_eq!( + Bitcoin::Rightmost64_4.cmr(), + Cmr::from_byte_array([ + 0xe2, 0x65, 0x55, 0x2a, 0x24, 0xfb, 0xcd, 0xec, 0x05, 0x83, 0xd7, 0x18, 0x3e, 0x48, + 0xeb, 0xc2, 0xff, 0x6d, 0x31, 0x65, 0x57, 0xba, 0xc5, 0x91, 0x5c, 0x03, 0xcb, 0x23, + 0x35, 0xd2, 0x32, 0x95 + ]) + ); + assert_eq!( + Bitcoin::Rightmost64_8.cmr(), + Cmr::from_byte_array([ + 0x98, 0xcd, 0x95, 0xf9, 0x5d, 0x46, 0x64, 0x1b, 0x04, 0x9e, 0x77, 0xbf, 0x90, 0xee, + 0xa5, 0x98, 0xad, 0xf2, 0x9e, 0xe5, 0x00, 0xe6, 0x50, 0x72, 0x87, 0x54, 0x8b, 0xb1, + 0xcd, 0xaf, 0x78, 0x4d + ]) + ); + assert_eq!( + Bitcoin::Rightmost8_1.cmr(), + Cmr::from_byte_array([ + 0x08, 0x76, 0xfc, 0xd4, 0x69, 0x85, 0x91, 0xf3, 0x31, 0x91, 0x01, 0x57, 0x4c, 0xe1, + 0x53, 0xfc, 0xdf, 0xe9, 0x4f, 0x58, 0x1a, 0xac, 0x5e, 0x75, 0xf3, 0xcd, 0x74, 0x46, + 0xdf, 0x56, 0xf3, 0xc7 + ]) + ); + assert_eq!( + Bitcoin::Rightmost8_2.cmr(), + Cmr::from_byte_array([ + 0xb9, 0xf7, 0xb2, 0x90, 0xaf, 0xe7, 0xf1, 0x89, 0xe3, 0x2a, 0xeb, 0xf2, 0xcc, 0x4d, + 0xdc, 0xa9, 0x6b, 0xb0, 0x07, 0x64, 0xc7, 0xbe, 0x28, 0x87, 0xdc, 0xe0, 0x54, 0xd0, + 0x9e, 0x38, 0xc3, 0x53 + ]) + ); + assert_eq!( + Bitcoin::Rightmost8_4.cmr(), + Cmr::from_byte_array([ + 0xf2, 0x8e, 0x9a, 0xf5, 0xaf, 0x4c, 0x9c, 0xca, 0x4b, 0x43, 0xcc, 0x6a, 0xdf, 0x9d, + 0x9d, 0x8d, 0x16, 0x9c, 0x87, 0xc5, 0x55, 0x9f, 0x9f, 0x3c, 0xca, 0xc8, 0xf2, 0x35, + 0x2b, 0x62, 0x9f, 0x18 + ]) + ); + assert_eq!( + Bitcoin::RightExtend16_32.cmr(), + Cmr::from_byte_array([ + 0xdb, 0xf1, 0x8d, 0x87, 0xa7, 0x89, 0x21, 0x39, 0xa3, 0x88, 0xe9, 0xa9, 0x83, 0xc4, + 0x89, 0x92, 0xac, 0x35, 0xa8, 0x45, 0x56, 0xee, 0x0d, 0xef, 0xc1, 0xda, 0xdf, 0x0c, + 0x5f, 0x47, 0x1a, 0x26 + ]) + ); + assert_eq!( + Bitcoin::RightExtend16_64.cmr(), + Cmr::from_byte_array([ + 0xd0, 0x11, 0xac, 0xc7, 0x94, 0xe3, 0xc4, 0x78, 0x9a, 0xcc, 0xd0, 0xd5, 0xfe, 0x49, + 0x97, 0xd3, 0x34, 0xd9, 0x1f, 0x08, 0x31, 0xa1, 0xeb, 0x35, 0x04, 0xb4, 0xcb, 0x2d, + 0xdf, 0x47, 0x97, 0xaf + ]) + ); + assert_eq!( + Bitcoin::RightExtend32_64.cmr(), + Cmr::from_byte_array([ + 0xa5, 0xaa, 0x5d, 0xb1, 0xe5, 0x35, 0xe7, 0x23, 0x2a, 0xd3, 0x6d, 0xaf, 0xba, 0x6d, + 0x5a, 0x20, 0x0d, 0x54, 0xeb, 0x85, 0x3b, 0x75, 0xdc, 0x70, 0xa5, 0x94, 0xed, 0x64, + 0xaa, 0x6b, 0xd9, 0xab + ]) + ); + assert_eq!( + Bitcoin::RightExtend8_16.cmr(), + Cmr::from_byte_array([ + 0x81, 0x06, 0xd5, 0x8a, 0x80, 0x66, 0xee, 0x6e, 0x15, 0xe5, 0x5c, 0xa5, 0x2c, 0xb7, + 0xaf, 0xd8, 0xe3, 0x27, 0x75, 0x87, 0xbf, 0xd7, 0xde, 0xc0, 0xbe, 0x37, 0xd4, 0x06, + 0x74, 0x2a, 0x39, 0x31 + ]) + ); + assert_eq!( + Bitcoin::RightExtend8_32.cmr(), + Cmr::from_byte_array([ + 0xdf, 0xa4, 0xba, 0xfa, 0x43, 0x2a, 0x53, 0x38, 0xd3, 0x74, 0xde, 0xb6, 0xb7, 0x24, + 0xb7, 0xf6, 0xea, 0xe5, 0x58, 0x61, 0xfe, 0x73, 0x1d, 0x43, 0x04, 0x8a, 0xa3, 0x04, + 0xd1, 0xf7, 0xf9, 0xa2 + ]) + ); + assert_eq!( + Bitcoin::RightExtend8_64.cmr(), + Cmr::from_byte_array([ + 0x62, 0x0a, 0x37, 0x03, 0x8b, 0x6f, 0xa1, 0x27, 0x49, 0x5f, 0x0b, 0x46, 0x49, 0x6f, + 0x64, 0x35, 0xdd, 0x2d, 0xad, 0x7e, 0xf0, 0xc0, 0xfd, 0x2c, 0xd6, 0x5f, 0x54, 0xdc, + 0x18, 0x5e, 0x99, 0x7b + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh16_32.cmr(), + Cmr::from_byte_array([ + 0x2b, 0x6a, 0xbc, 0x38, 0x32, 0x1a, 0x7c, 0x54, 0x2f, 0xb1, 0x69, 0x74, 0x62, 0x1c, + 0xed, 0x80, 0x88, 0x0d, 0xb5, 0x19, 0xbb, 0x48, 0x60, 0x93, 0x42, 0x6e, 0x8c, 0xe1, + 0x8e, 0x01, 0x69, 0xb1 + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh16_64.cmr(), + Cmr::from_byte_array([ + 0xad, 0x90, 0xd8, 0xff, 0xa5, 0x74, 0x50, 0xb3, 0xb5, 0xe9, 0x09, 0x62, 0x25, 0x34, + 0x9e, 0xd8, 0xf0, 0x72, 0xe1, 0x01, 0x72, 0x93, 0xf3, 0x92, 0xef, 0x85, 0x4e, 0x03, + 0x19, 0xab, 0xc9, 0x34 + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh1_16.cmr(), + Cmr::from_byte_array([ + 0x28, 0x81, 0x58, 0xb1, 0xc9, 0x10, 0x87, 0x7b, 0x7e, 0xea, 0x3d, 0xfc, 0xf2, 0xb2, + 0xb7, 0x88, 0x92, 0x28, 0x08, 0xb6, 0xd6, 0xfa, 0x75, 0xf8, 0x96, 0x77, 0x19, 0x04, + 0x8b, 0x14, 0x12, 0x49 + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh1_32.cmr(), + Cmr::from_byte_array([ + 0xee, 0x2a, 0xd7, 0x7f, 0x66, 0x8d, 0x3d, 0x6a, 0x2e, 0x68, 0x50, 0x6e, 0x49, 0x04, + 0xcf, 0x50, 0xa0, 0x84, 0x60, 0xe1, 0xd2, 0xb8, 0x6a, 0x81, 0xe1, 0x4e, 0x41, 0xf8, + 0xda, 0x4c, 0xdd, 0xf2 + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh1_64.cmr(), + Cmr::from_byte_array([ + 0x3d, 0x6a, 0x7f, 0xe6, 0x9a, 0x11, 0x64, 0x2a, 0xce, 0xd6, 0x84, 0x2b, 0x89, 0xaa, + 0x1b, 0xb8, 0x41, 0x3e, 0x39, 0x90, 0x63, 0xcc, 0x16, 0x78, 0x6a, 0xf7, 0xc0, 0x33, + 0xda, 0xd5, 0x8b, 0x95 + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh1_8.cmr(), + Cmr::from_byte_array([ + 0x28, 0x44, 0xbd, 0xfd, 0x6a, 0xba, 0x29, 0xdf, 0x03, 0xf9, 0x3a, 0xa6, 0xae, 0xb2, + 0x1c, 0x06, 0x40, 0x28, 0xdb, 0x05, 0xff, 0x77, 0xd8, 0xd9, 0x1c, 0xfd, 0xcd, 0xef, + 0xb1, 0x90, 0xc5, 0xbd + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh32_64.cmr(), + Cmr::from_byte_array([ + 0xb4, 0x32, 0xe5, 0x32, 0x1a, 0xe1, 0x71, 0x4c, 0xe1, 0x95, 0x29, 0xd8, 0x5f, 0x24, + 0xff, 0x89, 0x87, 0x91, 0x0e, 0xbc, 0xf0, 0x15, 0xf8, 0x7f, 0x15, 0xbb, 0xed, 0x55, + 0xf0, 0xa0, 0xe8, 0x92 + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh8_16.cmr(), + Cmr::from_byte_array([ + 0x6f, 0x2d, 0x96, 0xc9, 0x54, 0x13, 0xca, 0x9a, 0xa8, 0xcc, 0x55, 0x0f, 0x25, 0x73, + 0xe1, 0x66, 0x99, 0x56, 0xd6, 0x07, 0x69, 0x2c, 0xf1, 0xca, 0x6d, 0xc7, 0x6d, 0x2f, + 0x2b, 0x4a, 0x3a, 0xc8 + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh8_32.cmr(), + Cmr::from_byte_array([ + 0xdf, 0x2c, 0x7f, 0x92, 0x99, 0x00, 0xa4, 0x49, 0x01, 0xe6, 0xff, 0x65, 0x27, 0x6a, + 0x95, 0x1a, 0xeb, 0x95, 0xdf, 0x25, 0x0b, 0x13, 0x97, 0x14, 0xd4, 0x19, 0x54, 0x04, + 0xd7, 0x78, 0x98, 0xed + ]) + ); + assert_eq!( + Bitcoin::RightPadHigh8_64.cmr(), + Cmr::from_byte_array([ + 0x79, 0xc0, 0x1d, 0xa3, 0xe6, 0x0b, 0x9c, 0x69, 0x35, 0xce, 0x3e, 0x15, 0x98, 0xb1, + 0x78, 0x40, 0xaf, 0x82, 0xdc, 0xb0, 0xdd, 0xc6, 0x3a, 0xef, 0x4a, 0x06, 0xe7, 0xf9, + 0xca, 0x5d, 0x27, 0x41 + ]) + ); + assert_eq!( + Bitcoin::RightPadLow16_32.cmr(), + Cmr::from_byte_array([ + 0x6f, 0x20, 0x10, 0x27, 0xcc, 0x75, 0x98, 0x02, 0x30, 0xa0, 0x70, 0x85, 0x9c, 0x3e, + 0x38, 0x02, 0x36, 0xa1, 0xcb, 0x10, 0xe6, 0x1a, 0x01, 0xaa, 0x1f, 0x6d, 0x23, 0x1d, + 0x15, 0x14, 0x2f, 0x25 + ]) + ); + assert_eq!( + Bitcoin::RightPadLow16_64.cmr(), + Cmr::from_byte_array([ + 0xb8, 0x6e, 0x1f, 0x0b, 0xfe, 0xc6, 0x55, 0x98, 0xd0, 0xa3, 0xd1, 0xec, 0x96, 0x03, + 0x05, 0xb9, 0x67, 0x45, 0x67, 0x3e, 0x1b, 0x16, 0xbf, 0x32, 0x7a, 0x71, 0x68, 0x05, + 0x83, 0xd7, 0x1d, 0x90 + ]) + ); + assert_eq!( + Bitcoin::RightPadLow1_16.cmr(), + Cmr::from_byte_array([ + 0x05, 0x2a, 0x64, 0x99, 0xc9, 0x3e, 0xe6, 0xbc, 0x1a, 0xe6, 0x57, 0xf8, 0x5f, 0xd4, + 0xd4, 0xfe, 0x67, 0x7a, 0xbc, 0xee, 0x54, 0x0d, 0x13, 0x40, 0x33, 0x54, 0x2e, 0x9a, + 0xb6, 0x0a, 0x63, 0xdd + ]) + ); + assert_eq!( + Bitcoin::RightPadLow1_32.cmr(), + Cmr::from_byte_array([ + 0x5b, 0x70, 0xd4, 0x28, 0x96, 0x0e, 0x95, 0xcc, 0x40, 0xd5, 0x18, 0x46, 0xf5, 0x3a, + 0x4d, 0x0a, 0x35, 0xc9, 0x01, 0x5d, 0x15, 0x00, 0xb6, 0xbc, 0x84, 0x9b, 0x72, 0x83, + 0x5e, 0x2b, 0xd4, 0x40 + ]) + ); + assert_eq!( + Bitcoin::RightPadLow1_64.cmr(), + Cmr::from_byte_array([ + 0x44, 0xef, 0xeb, 0x87, 0xca, 0x2a, 0xd7, 0xfd, 0x4b, 0x73, 0xf1, 0x63, 0x07, 0xc7, + 0xf0, 0x59, 0x02, 0x65, 0x6f, 0x35, 0x09, 0x0f, 0xb0, 0xa4, 0x32, 0x6c, 0x64, 0x89, + 0x88, 0xae, 0x1d, 0x39 + ]) + ); + assert_eq!( + Bitcoin::RightPadLow1_8.cmr(), + Cmr::from_byte_array([ + 0x93, 0x40, 0x39, 0x8b, 0xcc, 0x8e, 0xa8, 0x3e, 0xc8, 0x40, 0xbe, 0x72, 0x9d, 0xbb, + 0x8b, 0x81, 0x20, 0x78, 0x24, 0xee, 0x87, 0x5d, 0x15, 0x82, 0x59, 0xd6, 0xda, 0xd2, + 0x0a, 0x83, 0x93, 0x0c + ]) + ); + assert_eq!( + Bitcoin::RightPadLow32_64.cmr(), + Cmr::from_byte_array([ + 0x69, 0x3e, 0x28, 0x10, 0x1e, 0x04, 0xfd, 0xa4, 0x3b, 0x97, 0xe6, 0x11, 0xf0, 0xfe, + 0x98, 0x00, 0x0e, 0x14, 0x30, 0x2e, 0x5d, 0xcd, 0x6e, 0xd6, 0x5e, 0xee, 0x42, 0xe3, + 0x40, 0x14, 0x24, 0x2f + ]) + ); + assert_eq!( + Bitcoin::RightPadLow8_16.cmr(), + Cmr::from_byte_array([ + 0x09, 0x6b, 0x25, 0xc3, 0xc8, 0x41, 0x5f, 0x04, 0xd8, 0x83, 0x27, 0x43, 0xeb, 0x2f, + 0x84, 0x56, 0xd5, 0xf0, 0xa6, 0x44, 0x91, 0x3d, 0x3e, 0xc5, 0x9d, 0x34, 0xf4, 0x55, + 0x25, 0x01, 0xfa, 0x20 + ]) + ); + assert_eq!( + Bitcoin::RightPadLow8_32.cmr(), + Cmr::from_byte_array([ + 0xfc, 0x7f, 0x57, 0x22, 0xa6, 0x2a, 0xa2, 0x20, 0x18, 0xcc, 0x81, 0xcd, 0x00, 0xa9, + 0x32, 0x6c, 0x7f, 0xe9, 0xc6, 0x3a, 0xbc, 0xe2, 0xbd, 0xa4, 0xc0, 0xe6, 0x6a, 0x3f, + 0x47, 0xc6, 0x7c, 0x53 + ]) + ); + assert_eq!( + Bitcoin::RightPadLow8_64.cmr(), + Cmr::from_byte_array([ + 0xa5, 0xbb, 0x7d, 0x5e, 0xfc, 0xa0, 0xe4, 0x8d, 0x9d, 0x80, 0xc5, 0x02, 0x71, 0x15, + 0xb4, 0x85, 0x78, 0x10, 0x51, 0xe0, 0xef, 0x46, 0xe4, 0xd6, 0x08, 0x31, 0x7a, 0x1c, + 0x42, 0x61, 0xbc, 0x46 + ]) + ); + assert_eq!( + Bitcoin::RightRotate16.cmr(), + Cmr::from_byte_array([ + 0x48, 0x2e, 0xa7, 0xe1, 0x21, 0x45, 0x01, 0xd9, 0x3c, 0x9a, 0xd1, 0x6f, 0xa8, 0xb9, + 0x7b, 0xf5, 0xb3, 0x84, 0xfc, 0x2b, 0x54, 0x78, 0x9b, 0x8c, 0xd9, 0xe7, 0x84, 0xcc, + 0xd0, 0xeb, 0x9d, 0x57 + ]) + ); + assert_eq!( + Bitcoin::RightRotate32.cmr(), + Cmr::from_byte_array([ + 0x09, 0x41, 0xb6, 0xee, 0xea, 0x9a, 0xf8, 0x19, 0x5b, 0x02, 0x8a, 0xfc, 0x0b, 0xd2, + 0xa5, 0x34, 0x21, 0x8b, 0xf9, 0x0d, 0x1a, 0x0e, 0x37, 0x3d, 0x74, 0x74, 0x18, 0x54, + 0x0b, 0x72, 0x6d, 0x73 + ]) + ); + assert_eq!( + Bitcoin::RightRotate64.cmr(), + Cmr::from_byte_array([ + 0x44, 0x4d, 0xbb, 0xc3, 0xdd, 0x2a, 0x11, 0xa5, 0xc7, 0xb0, 0x43, 0x9f, 0xdb, 0xa9, + 0x9a, 0xc7, 0x4a, 0x11, 0xb8, 0xee, 0xb2, 0xdb, 0x30, 0x1e, 0x24, 0x3e, 0xa8, 0x91, + 0x22, 0x90, 0x71, 0x52 + ]) + ); + assert_eq!( + Bitcoin::RightRotate8.cmr(), + Cmr::from_byte_array([ + 0x72, 0x65, 0xa3, 0x0c, 0x2e, 0x83, 0x6e, 0x65, 0x54, 0x4a, 0xba, 0x91, 0x1b, 0x64, + 0xd1, 0x8f, 0xa6, 0x9b, 0x17, 0x65, 0x45, 0x85, 0x6c, 0x77, 0xc4, 0xf0, 0xd7, 0x6f, + 0xc3, 0xf5, 0x83, 0x51 + ]) + ); + assert_eq!( + Bitcoin::RightShift16.cmr(), + Cmr::from_byte_array([ + 0xcd, 0x57, 0xa3, 0xd3, 0xab, 0x2d, 0x92, 0xd4, 0xf0, 0x86, 0x55, 0x04, 0x3a, 0x8b, + 0x8b, 0xb6, 0x73, 0x89, 0x81, 0xfa, 0xe6, 0xda, 0x01, 0x34, 0xb4, 0xde, 0xda, 0xce, + 0x5f, 0x00, 0x88, 0x60 + ]) + ); + assert_eq!( + Bitcoin::RightShift32.cmr(), + Cmr::from_byte_array([ + 0xd6, 0xb3, 0x26, 0xb1, 0xa3, 0x23, 0x57, 0xa3, 0x32, 0x80, 0x7d, 0x3f, 0xa1, 0xb1, + 0x56, 0xc2, 0x8b, 0x16, 0x22, 0xf7, 0x38, 0xde, 0xf1, 0x26, 0x81, 0x46, 0x7f, 0x34, + 0x9b, 0xd3, 0x49, 0x4b + ]) + ); + assert_eq!( + Bitcoin::RightShift64.cmr(), + Cmr::from_byte_array([ + 0xb2, 0x09, 0x5f, 0x2d, 0x47, 0x33, 0x5d, 0x5f, 0x98, 0xc8, 0x54, 0x34, 0xa2, 0xfa, + 0xf5, 0xb0, 0xf7, 0x5c, 0xf8, 0x99, 0x01, 0x2a, 0x34, 0xbb, 0xcd, 0x0a, 0x14, 0xcb, + 0xed, 0xb6, 0x11, 0x07 + ]) + ); + assert_eq!( + Bitcoin::RightShift8.cmr(), + Cmr::from_byte_array([ + 0x4b, 0x2b, 0x1a, 0xa2, 0xef, 0x73, 0x21, 0x73, 0x17, 0x0d, 0x62, 0x1a, 0x38, 0xde, + 0xb2, 0x61, 0xe4, 0x73, 0xc0, 0x7c, 0x55, 0x8b, 0x05, 0x5a, 0x25, 0xa8, 0x6e, 0x4e, + 0x32, 0x1a, 0xfc, 0x04 + ]) + ); + assert_eq!( + Bitcoin::RightShiftWith16.cmr(), + Cmr::from_byte_array([ + 0x14, 0xb7, 0x76, 0x85, 0x47, 0xb3, 0xd3, 0xf4, 0x7e, 0xe5, 0xc2, 0xb8, 0x0d, 0x9b, + 0xda, 0xe2, 0xae, 0xc1, 0xf9, 0xc6, 0x59, 0x4e, 0xd3, 0x12, 0x7b, 0x12, 0x64, 0x5a, + 0xdc, 0xf5, 0x97, 0x54 + ]) + ); + assert_eq!( + Bitcoin::RightShiftWith32.cmr(), + Cmr::from_byte_array([ + 0x32, 0x7b, 0x6e, 0x98, 0xa6, 0xfd, 0x34, 0x0c, 0x60, 0xcf, 0x83, 0xaa, 0x64, 0x99, + 0x33, 0x11, 0x4c, 0xb8, 0xd8, 0x4f, 0x59, 0x0e, 0x01, 0x21, 0x3a, 0x26, 0x10, 0x01, + 0x2b, 0x46, 0x07, 0xea + ]) + ); + assert_eq!( + Bitcoin::RightShiftWith64.cmr(), + Cmr::from_byte_array([ + 0x06, 0x2f, 0xa7, 0x4a, 0xf3, 0x47, 0x6e, 0x59, 0x38, 0x7b, 0xe0, 0x8e, 0x69, 0x49, + 0xa0, 0x05, 0x43, 0xbc, 0x84, 0xa2, 0xb6, 0x89, 0xea, 0x39, 0xad, 0x6e, 0xed, 0x7f, + 0x75, 0x67, 0x85, 0xd4 + ]) + ); + assert_eq!( + Bitcoin::RightShiftWith8.cmr(), + Cmr::from_byte_array([ + 0x14, 0x1b, 0xe4, 0x7e, 0x96, 0x7b, 0x2f, 0xd7, 0xc7, 0x12, 0x6c, 0x5a, 0xdf, 0x2d, + 0xfe, 0x47, 0x31, 0x5b, 0xbc, 0x10, 0x53, 0xbb, 0xe6, 0x05, 0xb3, 0x88, 0x98, 0xdb, + 0xed, 0x49, 0xf2, 0x27 + ]) + ); + assert_eq!( + Bitcoin::ScalarAdd.cmr(), + Cmr::from_byte_array([ + 0x11, 0xdd, 0xbe, 0xba, 0xeb, 0xf4, 0x21, 0x80, 0xa0, 0xb7, 0xed, 0xdf, 0xfd, 0xc4, + 0x8e, 0xc7, 0x51, 0x13, 0x30, 0xfb, 0x33, 0x15, 0xfa, 0x65, 0xd5, 0x8a, 0xff, 0x66, + 0xb9, 0xca, 0xf2, 0xd4 + ]) + ); + assert_eq!( + Bitcoin::ScalarInvert.cmr(), + Cmr::from_byte_array([ + 0xa6, 0x39, 0x27, 0x25, 0xbb, 0x2d, 0xad, 0xbb, 0x1e, 0x76, 0xdf, 0x2d, 0xec, 0x57, + 0xdf, 0x55, 0xc3, 0xfc, 0xc5, 0x77, 0x3b, 0x62, 0x21, 0x8a, 0xec, 0x55, 0xa7, 0x5e, + 0x14, 0xf3, 0xd6, 0x0d + ]) + ); + assert_eq!( + Bitcoin::ScalarIsZero.cmr(), + Cmr::from_byte_array([ + 0xf7, 0x5e, 0xda, 0x06, 0xce, 0x6a, 0xf0, 0x9f, 0xae, 0x37, 0xdb, 0x4e, 0x62, 0x25, + 0xe6, 0xa8, 0xac, 0x86, 0xa2, 0x36, 0x37, 0x62, 0x7d, 0x62, 0x64, 0x09, 0x19, 0x0f, + 0xf3, 0xb3, 0x9d, 0x90 + ]) + ); + assert_eq!( + Bitcoin::ScalarMultiply.cmr(), + Cmr::from_byte_array([ + 0x4a, 0x61, 0x67, 0x2a, 0xce, 0xc4, 0x88, 0x77, 0x56, 0xde, 0x1d, 0xb6, 0x04, 0x21, + 0xa1, 0x2b, 0x90, 0x1a, 0x85, 0x8a, 0x6e, 0xe6, 0x35, 0x2e, 0x55, 0x9d, 0x4c, 0xe5, + 0x97, 0x33, 0x52, 0xbe + ]) + ); + assert_eq!( + Bitcoin::ScalarMultiplyLambda.cmr(), + Cmr::from_byte_array([ + 0x49, 0xea, 0x9c, 0x3f, 0xb1, 0xd8, 0xff, 0x52, 0xd2, 0xdb, 0x03, 0x46, 0x9f, 0xdf, + 0xe8, 0x50, 0x50, 0x3f, 0xdd, 0xeb, 0x45, 0xe1, 0x6d, 0x26, 0xe8, 0x92, 0x8a, 0xdd, + 0x25, 0x87, 0x0e, 0x91 + ]) + ); + assert_eq!( + Bitcoin::ScalarNegate.cmr(), + Cmr::from_byte_array([ + 0x1d, 0xbf, 0x8b, 0x49, 0x1e, 0xc6, 0x65, 0x80, 0x3f, 0x63, 0x33, 0x30, 0xd3, 0xff, + 0xb0, 0xe7, 0x81, 0xe6, 0x7c, 0x18, 0x01, 0xac, 0x9d, 0x49, 0xbb, 0xf4, 0x35, 0x89, + 0xab, 0xf7, 0x82, 0xbf + ]) + ); + assert_eq!( + Bitcoin::ScalarNormalize.cmr(), + Cmr::from_byte_array([ + 0x46, 0x33, 0x18, 0x0e, 0xa0, 0x2c, 0x4d, 0xf7, 0x81, 0x9d, 0x3d, 0x54, 0xa4, 0x01, + 0x73, 0x4f, 0x96, 0x5b, 0x31, 0xac, 0xc7, 0x84, 0x05, 0x4e, 0xbf, 0xb7, 0x31, 0x68, + 0x16, 0xb0, 0x29, 0xec + ]) + ); + assert_eq!( + Bitcoin::ScalarSquare.cmr(), + Cmr::from_byte_array([ + 0x8a, 0x27, 0x9e, 0x6f, 0x61, 0x3a, 0xa9, 0xe9, 0x34, 0xf2, 0xf2, 0xa3, 0x43, 0xc0, + 0xd3, 0x29, 0x1c, 0x36, 0x70, 0xe2, 0x97, 0xdd, 0xae, 0x20, 0x52, 0x9e, 0x82, 0x50, + 0x69, 0xef, 0xea, 0x0e + ]) + ); + assert_eq!( + Bitcoin::Scale.cmr(), + Cmr::from_byte_array([ + 0x12, 0x6e, 0x22, 0x12, 0x5b, 0xac, 0x80, 0xb9, 0x9b, 0x7b, 0x73, 0x43, 0xb4, 0xe5, + 0xe5, 0x86, 0x60, 0x82, 0x16, 0x10, 0x5d, 0x4d, 0xe6, 0xf7, 0x94, 0xad, 0xd3, 0x4e, + 0x23, 0xb1, 0x95, 0xca + ]) + ); + assert_eq!( + Bitcoin::ScriptCMR.cmr(), + Cmr::from_byte_array([ + 0xa8, 0xa4, 0xa6, 0x22, 0x10, 0xb5, 0xe4, 0x95, 0x0e, 0x25, 0x34, 0x24, 0x7c, 0x74, + 0x11, 0xd1, 0xc8, 0xff, 0x22, 0x86, 0x5b, 0x54, 0x56, 0xbb, 0xb2, 0x16, 0x38, 0xe9, + 0x14, 0xf5, 0xe5, 0x28 + ]) + ); + assert_eq!( + Bitcoin::Sha256Block.cmr(), + Cmr::from_byte_array([ + 0x45, 0x35, 0xf3, 0xe1, 0xab, 0x9f, 0x1b, 0x75, 0x7a, 0x06, 0x91, 0x37, 0xe1, 0xd5, + 0xb1, 0xca, 0xad, 0x8e, 0x31, 0xf7, 0x8d, 0xc5, 0xfb, 0xd0, 0x73, 0x46, 0x49, 0xf9, + 0x40, 0xa7, 0xfc, 0x96 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add1.cmr(), + Cmr::from_byte_array([ + 0x9a, 0x47, 0x11, 0xb8, 0xc5, 0x69, 0x0e, 0x58, 0x7e, 0x5f, 0x79, 0xe6, 0x8d, 0x6e, + 0xca, 0x04, 0x74, 0x58, 0xaa, 0x63, 0xb8, 0xbc, 0x9e, 0xe5, 0x68, 0x08, 0x6a, 0x4a, + 0x1b, 0x56, 0xd8, 0x34 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add128.cmr(), + Cmr::from_byte_array([ + 0x1c, 0xb1, 0xdb, 0x8a, 0x05, 0x5b, 0x31, 0x97, 0xac, 0xf0, 0xf0, 0x8c, 0xe9, 0xc6, + 0x35, 0xad, 0xd6, 0x95, 0xb6, 0x0f, 0x23, 0x4b, 0x18, 0xe0, 0xb3, 0x23, 0xc9, 0x37, + 0xb0, 0x38, 0x5a, 0xea + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add16.cmr(), + Cmr::from_byte_array([ + 0xe0, 0x84, 0x54, 0x75, 0xeb, 0xb9, 0x01, 0x40, 0xfa, 0x4e, 0x01, 0xaf, 0x8a, 0x94, + 0x35, 0x99, 0x1a, 0xd8, 0x7a, 0xf9, 0x8c, 0x08, 0xae, 0xce, 0x11, 0x0e, 0x99, 0xcb, + 0xce, 0xcd, 0xee, 0x79 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add2.cmr(), + Cmr::from_byte_array([ + 0x7d, 0x69, 0x13, 0x8f, 0x1c, 0x94, 0x2b, 0xee, 0x2f, 0xdf, 0x60, 0x0c, 0xe4, 0x4b, + 0x36, 0xff, 0x97, 0x83, 0x9d, 0xc2, 0xbb, 0xda, 0xfb, 0xd5, 0xfa, 0xb4, 0xdf, 0xbc, + 0x3c, 0x97, 0x6f, 0x29 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add256.cmr(), + Cmr::from_byte_array([ + 0x4f, 0x5c, 0x29, 0xd5, 0x36, 0x86, 0xc0, 0x60, 0x62, 0xb3, 0x83, 0x24, 0xf8, 0xaf, + 0xf1, 0x7e, 0xc5, 0x56, 0xa2, 0x95, 0xff, 0x09, 0x8b, 0x10, 0xe7, 0x05, 0xdd, 0x22, + 0xe1, 0x3b, 0xc3, 0xc9 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add32.cmr(), + Cmr::from_byte_array([ + 0xd5, 0x7b, 0x67, 0xb1, 0x74, 0xe7, 0x8e, 0x38, 0xf9, 0xbc, 0xa8, 0xe0, 0x7a, 0xdd, + 0x61, 0xc7, 0x53, 0xe2, 0xc1, 0x56, 0xd8, 0xe9, 0x83, 0x2a, 0xa6, 0x62, 0x04, 0x55, + 0x00, 0xf5, 0x1a, 0x80 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add4.cmr(), + Cmr::from_byte_array([ + 0x95, 0xda, 0x32, 0x99, 0x3f, 0x5c, 0x7d, 0x00, 0x83, 0x06, 0x4c, 0xdf, 0xf1, 0xbe, + 0xc3, 0xb9, 0x36, 0xc6, 0x38, 0x33, 0x7a, 0xde, 0xc5, 0x47, 0x48, 0x7a, 0xf2, 0x32, + 0xd6, 0x9f, 0xdf, 0x65 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add512.cmr(), + Cmr::from_byte_array([ + 0x4a, 0xcb, 0x16, 0x3a, 0xa4, 0x8f, 0x09, 0xd5, 0xf2, 0x6d, 0x2b, 0x2a, 0xb1, 0x88, + 0xa6, 0xc6, 0xb6, 0xc4, 0xae, 0xdf, 0x23, 0xc9, 0x19, 0x00, 0x1c, 0x02, 0xee, 0x15, + 0xb3, 0x37, 0xa9, 0x6e + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add64.cmr(), + Cmr::from_byte_array([ + 0x52, 0xe5, 0x3e, 0xc5, 0x77, 0x0f, 0x9b, 0xe4, 0x06, 0x9a, 0xee, 0xfc, 0xb2, 0x13, + 0x22, 0xb1, 0x3a, 0xb6, 0xe3, 0x94, 0x1f, 0xdc, 0x2c, 0x85, 0xf4, 0xb4, 0x1b, 0xe6, + 0x7d, 0x38, 0xea, 0x7e + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add8.cmr(), + Cmr::from_byte_array([ + 0xc2, 0x6b, 0x28, 0xaf, 0xe5, 0xe8, 0x66, 0xd8, 0x46, 0x16, 0x81, 0x4d, 0x1a, 0x13, + 0xfb, 0x86, 0x30, 0xb9, 0xe8, 0x4e, 0x5d, 0x78, 0x15, 0x56, 0xc6, 0xd8, 0x23, 0x6e, + 0xfb, 0x45, 0xdf, 0xf9 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8AddBuffer511.cmr(), + Cmr::from_byte_array([ + 0xad, 0x69, 0x90, 0x46, 0x48, 0xa8, 0x23, 0x8d, 0x00, 0xd8, 0x51, 0x63, 0xfc, 0xe8, + 0x19, 0x63, 0xa0, 0x04, 0x7a, 0xb5, 0x82, 0xbe, 0x97, 0xa4, 0x14, 0x00, 0x65, 0x59, + 0x79, 0xcf, 0xdd, 0x28 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Finalize.cmr(), + Cmr::from_byte_array([ + 0x8e, 0x45, 0xbd, 0xc3, 0x87, 0xd4, 0xed, 0xfa, 0x73, 0x35, 0x25, 0xf3, 0xab, 0x19, + 0xe4, 0x2b, 0x58, 0xec, 0xb1, 0xb5, 0xf6, 0xdc, 0xcf, 0x94, 0xed, 0xbf, 0x59, 0x95, + 0x8a, 0xe3, 0xe1, 0x16 + ]) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Init.cmr(), + Cmr::from_byte_array([ + 0x63, 0x5f, 0x64, 0x05, 0x84, 0x86, 0x85, 0xc0, 0x11, 0xfe, 0xbd, 0x41, 0xfa, 0xac, + 0x87, 0x4b, 0xbb, 0xf5, 0xb2, 0x4d, 0x5f, 0xb1, 0x2f, 0xed, 0xbc, 0xb6, 0xcb, 0xff, + 0x95, 0xa0, 0xf3, 0x66 + ]) + ); + assert_eq!( + Bitcoin::Sha256Iv.cmr(), + Cmr::from_byte_array([ + 0x12, 0xe4, 0x59, 0x37, 0x51, 0xc9, 0x46, 0x3b, 0x56, 0x25, 0x03, 0xc1, 0x40, 0xd7, + 0x8b, 0x3b, 0x75, 0x7a, 0x1f, 0x4f, 0x16, 0x32, 0x1d, 0x28, 0x62, 0xd3, 0x25, 0x43, + 0x85, 0x38, 0x97, 0x1b + ]) + ); + assert_eq!( + Bitcoin::SigAllHash.cmr(), + Cmr::from_byte_array([ + 0x09, 0x78, 0xb9, 0xe5, 0x0b, 0x9e, 0x8e, 0x09, 0x8b, 0x27, 0xf2, 0xb8, 0xb5, 0x9d, + 0xe5, 0x4f, 0x62, 0xba, 0x7c, 0x13, 0x33, 0xdf, 0x3b, 0xed, 0x22, 0x1e, 0x26, 0x62, + 0x68, 0x05, 0xbc, 0x55 + ]) + ); + assert_eq!( + Bitcoin::Some1.cmr(), + Cmr::from_byte_array([ + 0x15, 0xca, 0x4e, 0x4b, 0x82, 0xc2, 0xf9, 0x1b, 0x9a, 0x79, 0x29, 0x92, 0xcd, 0xc1, + 0xb2, 0x92, 0xab, 0x86, 0xa2, 0xd2, 0x93, 0x9c, 0x9a, 0x64, 0xb5, 0x0b, 0xe6, 0x0b, + 0xda, 0x6a, 0xb4, 0xca + ]) + ); + assert_eq!( + Bitcoin::Some16.cmr(), + Cmr::from_byte_array([ + 0xa9, 0xdf, 0xbb, 0xea, 0xb5, 0x9d, 0xf7, 0x2a, 0x45, 0xfc, 0x3f, 0xc7, 0xac, 0x58, + 0x1e, 0xc8, 0xda, 0x71, 0x3f, 0x2f, 0x81, 0x03, 0xf7, 0x87, 0xaa, 0x1c, 0xee, 0x4e, + 0x0b, 0xa6, 0x48, 0x66 + ]) + ); + assert_eq!( + Bitcoin::Some32.cmr(), + Cmr::from_byte_array([ + 0x46, 0x33, 0xa3, 0x97, 0x74, 0x2e, 0xf4, 0x82, 0xbe, 0x2f, 0xa3, 0xfb, 0x64, 0x10, + 0xec, 0x79, 0xc3, 0x73, 0x83, 0x65, 0x69, 0xfb, 0xbc, 0xb1, 0xf9, 0x48, 0xec, 0x32, + 0x48, 0x73, 0x78, 0xb7 + ]) + ); + assert_eq!( + Bitcoin::Some64.cmr(), + Cmr::from_byte_array([ + 0x1d, 0xc2, 0x45, 0xac, 0x6f, 0x5b, 0x42, 0x2b, 0xd1, 0x88, 0x6e, 0xf5, 0x14, 0x4c, + 0x4d, 0xc7, 0x2c, 0x96, 0x73, 0x15, 0x59, 0x66, 0x07, 0x6c, 0xd8, 0x39, 0x68, 0x1d, + 0x9e, 0xc7, 0xf8, 0xf5 + ]) + ); + assert_eq!( + Bitcoin::Some8.cmr(), + Cmr::from_byte_array([ + 0x33, 0xaf, 0xb9, 0xc6, 0x45, 0x4e, 0x59, 0x0e, 0xc1, 0x3e, 0xd7, 0x5e, 0x1b, 0x7d, + 0x9c, 0x3a, 0x3d, 0xe6, 0x75, 0x2b, 0xcc, 0x7c, 0x1d, 0x4c, 0xb3, 0x63, 0xfa, 0x51, + 0x82, 0x8b, 0xcb, 0x74 + ]) + ); + assert_eq!( + Bitcoin::Subtract16.cmr(), + Cmr::from_byte_array([ + 0x4e, 0x06, 0xec, 0x31, 0x37, 0x62, 0x22, 0xe2, 0x5e, 0x27, 0xd0, 0x15, 0x9d, 0xc1, + 0xc0, 0x71, 0x4a, 0x44, 0xca, 0x6a, 0xac, 0xf9, 0x50, 0x5c, 0xaa, 0xd2, 0x80, 0xe9, + 0x73, 0xfb, 0x5c, 0xab + ]) + ); + assert_eq!( + Bitcoin::Subtract32.cmr(), + Cmr::from_byte_array([ + 0xb9, 0xc0, 0xf3, 0x6e, 0x75, 0x22, 0xa8, 0xd9, 0x49, 0x05, 0x0d, 0x51, 0x6a, 0x05, + 0xce, 0x20, 0x3a, 0x1f, 0x9a, 0x9e, 0x37, 0x2f, 0xd2, 0x63, 0xde, 0x38, 0xb0, 0xe9, + 0x03, 0x13, 0x41, 0x98 + ]) + ); + assert_eq!( + Bitcoin::Subtract64.cmr(), + Cmr::from_byte_array([ + 0x1c, 0xdb, 0x5c, 0x74, 0xad, 0xd1, 0x02, 0xf5, 0x0f, 0x93, 0x8e, 0xd8, 0x86, 0xf4, + 0x96, 0xe5, 0xba, 0xb2, 0x75, 0x5c, 0x3c, 0x48, 0x4e, 0x88, 0x87, 0x90, 0x3d, 0x2f, + 0x6a, 0x57, 0xf3, 0xaa + ]) + ); + assert_eq!( + Bitcoin::Subtract8.cmr(), + Cmr::from_byte_array([ + 0x4f, 0x21, 0x17, 0xa0, 0xe8, 0x10, 0x59, 0xff, 0x0c, 0xd6, 0x4d, 0x84, 0x88, 0x65, + 0x42, 0xe5, 0x75, 0xea, 0x8d, 0x6e, 0xc0, 0x31, 0x08, 0xfd, 0x0b, 0x50, 0x8b, 0x39, + 0x20, 0x8c, 0xd0, 0xef + ]) + ); + assert_eq!( + Bitcoin::Swu.cmr(), + Cmr::from_byte_array([ + 0x00, 0xf5, 0x1f, 0x4f, 0x4b, 0xec, 0xe7, 0x90, 0x03, 0xec, 0xad, 0x48, 0x1a, 0x12, + 0x5a, 0xf7, 0x17, 0x6e, 0x4d, 0xe9, 0x8c, 0x33, 0x92, 0x42, 0x5c, 0xb9, 0x14, 0x66, + 0x26, 0xc1, 0x3b, 0x3b + ]) + ); + assert_eq!( + Bitcoin::TapdataInit.cmr(), + Cmr::from_byte_array([ + 0xa4, 0xd0, 0x22, 0xef, 0x5c, 0xf4, 0x67, 0xbc, 0xa0, 0x32, 0x5e, 0x46, 0x3f, 0xca, + 0xce, 0x7c, 0xbd, 0xd6, 0x4f, 0xf8, 0xf7, 0x1c, 0x5c, 0x7f, 0x63, 0xe6, 0x07, 0x84, + 0xaa, 0x0a, 0xc4, 0x86 + ]) + ); + assert_eq!( + Bitcoin::TapleafHash.cmr(), + Cmr::from_byte_array([ + 0x0c, 0x07, 0x16, 0xfe, 0x5d, 0x97, 0x8e, 0xa8, 0xe0, 0xc7, 0x5a, 0xdc, 0x82, 0x10, + 0xd6, 0x60, 0x06, 0x2e, 0x3d, 0xa0, 0x6f, 0x1a, 0x66, 0x61, 0x31, 0x79, 0x27, 0xd3, + 0xb8, 0x4b, 0x50, 0x73 + ]) + ); + assert_eq!( + Bitcoin::TapleafVersion.cmr(), + Cmr::from_byte_array([ + 0xe2, 0xec, 0xb1, 0xcb, 0x0e, 0xd4, 0xed, 0x93, 0x48, 0x35, 0x45, 0xfd, 0x8a, 0x62, + 0xf8, 0xaa, 0x10, 0x17, 0x53, 0x49, 0xff, 0xcc, 0x5a, 0xd3, 0xde, 0x7f, 0x34, 0x84, + 0xea, 0x1f, 0x10, 0x3f + ]) + ); + assert_eq!( + Bitcoin::Tappath.cmr(), + Cmr::from_byte_array([ + 0x99, 0xe8, 0x21, 0x1e, 0x8c, 0x1b, 0xe6, 0xd9, 0xca, 0x98, 0xd3, 0xd4, 0x3d, 0x91, + 0x42, 0x56, 0x7e, 0x06, 0xa8, 0x40, 0x22, 0x39, 0x33, 0x03, 0xfa, 0xb0, 0xb5, 0x7d, + 0x39, 0x40, 0x74, 0xe8 + ]) + ); + assert_eq!( + Bitcoin::TappathHash.cmr(), + Cmr::from_byte_array([ + 0x02, 0x11, 0x54, 0x6d, 0x07, 0x78, 0xe7, 0x87, 0x14, 0x1e, 0xce, 0x65, 0xdf, 0x6c, + 0xd1, 0xdb, 0x31, 0x38, 0x8f, 0xc1, 0x42, 0x19, 0x68, 0xc8, 0xcf, 0xd8, 0xd7, 0x59, + 0x26, 0xdb, 0x47, 0xb3 + ]) + ); + assert_eq!( + Bitcoin::TapEnvHash.cmr(), + Cmr::from_byte_array([ + 0x19, 0xd9, 0x94, 0x4c, 0x4d, 0x45, 0x7c, 0x70, 0xba, 0xbc, 0x45, 0xcc, 0xcb, 0xd5, + 0x73, 0xb3, 0x9a, 0x51, 0xd0, 0xc9, 0x91, 0x15, 0xb4, 0x12, 0x78, 0x3b, 0x49, 0x00, + 0x82, 0xfd, 0x0e, 0x58 + ]) + ); + assert_eq!( + Bitcoin::TotalInputValue.cmr(), + Cmr::from_byte_array([ + 0x81, 0x28, 0x7a, 0x15, 0x89, 0xdd, 0xc2, 0x17, 0x99, 0x26, 0xb7, 0x06, 0x5e, 0x9b, + 0x26, 0x77, 0xb7, 0xfb, 0x09, 0x9b, 0x95, 0xf9, 0x47, 0xa7, 0xdd, 0x59, 0x0c, 0xdd, + 0x4c, 0xcf, 0x4a, 0x56 + ]) + ); + assert_eq!( + Bitcoin::TotalOutputValue.cmr(), + Cmr::from_byte_array([ + 0xba, 0x03, 0x2f, 0x3e, 0x62, 0xf8, 0xfc, 0xb0, 0x4b, 0x04, 0x29, 0xa2, 0x53, 0xb5, + 0xec, 0x57, 0xe4, 0xc8, 0x7a, 0xe2, 0xe9, 0x51, 0xe1, 0x45, 0xd7, 0x65, 0x0e, 0x7f, + 0x0c, 0x63, 0xe5, 0x55 + ]) + ); + assert_eq!( + Bitcoin::TransactionId.cmr(), + Cmr::from_byte_array([ + 0x5c, 0x49, 0xea, 0x98, 0x6b, 0x32, 0x8b, 0xe2, 0xa4, 0xe0, 0xb3, 0x15, 0xb6, 0xb3, + 0xfe, 0xf2, 0x3c, 0x1f, 0x68, 0x56, 0xbb, 0xc3, 0xb0, 0x56, 0xc9, 0x9c, 0xf5, 0x9f, + 0xbd, 0x54, 0x6e, 0x65 + ]) + ); + assert_eq!( + Bitcoin::TxHash.cmr(), + Cmr::from_byte_array([ + 0x54, 0xe5, 0x3c, 0x99, 0x93, 0xab, 0xd5, 0x5d, 0x1f, 0x85, 0x23, 0xd2, 0xbb, 0x21, + 0x7b, 0x32, 0xe6, 0xfe, 0x86, 0x1f, 0x84, 0xc9, 0x86, 0xb7, 0xee, 0x8b, 0xdc, 0x68, + 0x81, 0x06, 0x87, 0x4a + ]) + ); + assert_eq!( + Bitcoin::TxIsFinal.cmr(), + Cmr::from_byte_array([ + 0x7b, 0x0e, 0x4f, 0x4c, 0xa8, 0xe5, 0xaf, 0x61, 0xa1, 0xd3, 0x45, 0x4e, 0x11, 0xef, + 0x9a, 0xb6, 0x88, 0x70, 0x61, 0x21, 0x1c, 0x00, 0x90, 0xeb, 0xa9, 0x55, 0x3d, 0xa2, + 0xe4, 0x5d, 0x84, 0x73 + ]) + ); + assert_eq!( + Bitcoin::TxLockDistance.cmr(), + Cmr::from_byte_array([ + 0xb6, 0xfb, 0xaa, 0xc2, 0x10, 0xa3, 0x06, 0xbe, 0x8b, 0x58, 0xd0, 0xd7, 0xb1, 0x56, + 0x3f, 0x62, 0x23, 0x36, 0xd2, 0xae, 0xb5, 0x6c, 0x39, 0x3d, 0x27, 0x64, 0x45, 0xa9, + 0xa2, 0x2c, 0xc4, 0xa7 + ]) + ); + assert_eq!( + Bitcoin::TxLockDuration.cmr(), + Cmr::from_byte_array([ + 0x53, 0x57, 0x28, 0x18, 0xe7, 0xe5, 0xb9, 0x8f, 0x96, 0x8c, 0x9d, 0xa7, 0xdf, 0x50, + 0x90, 0xd9, 0x82, 0x6f, 0x9b, 0xcf, 0x84, 0xb6, 0x36, 0x39, 0x5e, 0xea, 0x32, 0x1b, + 0x69, 0x09, 0xec, 0xe9 + ]) + ); + assert_eq!( + Bitcoin::TxLockHeight.cmr(), + Cmr::from_byte_array([ + 0x44, 0x9f, 0x61, 0xdf, 0x1a, 0x7b, 0xad, 0x8d, 0x9e, 0x0a, 0x96, 0x67, 0x14, 0x22, + 0x7e, 0x57, 0x10, 0x07, 0xf9, 0x3c, 0x51, 0x7b, 0x80, 0x5d, 0x61, 0x65, 0x10, 0xe8, + 0xff, 0x62, 0x17, 0x2b + ]) + ); + assert_eq!( + Bitcoin::TxLockTime.cmr(), + Cmr::from_byte_array([ + 0x31, 0xdf, 0x36, 0x3f, 0x17, 0xb2, 0xcf, 0xc9, 0x7a, 0x1f, 0x93, 0x72, 0xc1, 0x4a, + 0x32, 0x58, 0x64, 0xd7, 0xcb, 0x13, 0xaa, 0x8d, 0x52, 0x15, 0xfb, 0x25, 0x3d, 0x33, + 0x10, 0x91, 0x77, 0x62 + ]) + ); + assert_eq!( + Bitcoin::Verify.cmr(), + Cmr::from_byte_array([ + 0xcd, 0xca, 0x2a, 0x05, 0xe5, 0x2c, 0xef, 0xa5, 0x9d, 0xc7, 0xa5, 0xb0, 0xda, 0xe2, + 0x20, 0x98, 0xfb, 0x89, 0x6e, 0x39, 0x13, 0xbf, 0xdd, 0x44, 0x6b, 0x59, 0x4e, 0x1f, + 0x92, 0x50, 0x78, 0x3e + ]) + ); + assert_eq!( + Bitcoin::Version.cmr(), + Cmr::from_byte_array([ + 0x83, 0x73, 0x58, 0x64, 0x00, 0xb6, 0x79, 0x0b, 0x46, 0xab, 0x04, 0x10, 0x52, 0x3c, + 0xf0, 0x1e, 0xb7, 0x4d, 0x10, 0xfa, 0xf4, 0x8a, 0x3a, 0xcc, 0x86, 0xc4, 0xc5, 0x1d, + 0x06, 0xa5, 0x2c, 0x49 + ]) + ); + assert_eq!( + Bitcoin::Xor1.cmr(), + Cmr::from_byte_array([ + 0x8c, 0x4e, 0x4e, 0x6e, 0xbf, 0x46, 0x30, 0xb2, 0x9b, 0x5a, 0x57, 0xea, 0x79, 0xf0, + 0xc9, 0xaf, 0x6b, 0xff, 0x54, 0xc4, 0xd2, 0xd7, 0x69, 0xbf, 0x51, 0x59, 0x47, 0x74, + 0xa5, 0x2b, 0x99, 0xc9 + ]) + ); + assert_eq!( + Bitcoin::Xor16.cmr(), + Cmr::from_byte_array([ + 0xd9, 0xf0, 0xaf, 0x3f, 0xe3, 0xfd, 0x24, 0x7c, 0x1d, 0xf3, 0x4a, 0x25, 0x27, 0x13, + 0xb2, 0xe9, 0x33, 0xa9, 0x45, 0xa5, 0x67, 0x19, 0x48, 0x7f, 0x8e, 0xd7, 0xf5, 0x63, + 0xea, 0x86, 0x1a, 0xb5 + ]) + ); + assert_eq!( + Bitcoin::Xor32.cmr(), + Cmr::from_byte_array([ + 0xd5, 0xae, 0x27, 0x12, 0xed, 0xea, 0xf6, 0x76, 0x52, 0x0f, 0xa3, 0xba, 0x0f, 0x40, + 0xbf, 0x4a, 0x16, 0x57, 0x43, 0x7e, 0xff, 0xbd, 0x99, 0x86, 0xd0, 0x6a, 0xe8, 0x1b, + 0x29, 0xa4, 0xf9, 0x8c + ]) + ); + assert_eq!( + Bitcoin::Xor64.cmr(), + Cmr::from_byte_array([ + 0xc4, 0xdf, 0x1c, 0xcf, 0x33, 0x3e, 0xde, 0xbd, 0xd4, 0x0d, 0xea, 0x9a, 0x0e, 0x6c, + 0xbb, 0x83, 0x06, 0x31, 0xe8, 0x3a, 0x94, 0xbb, 0x77, 0x9f, 0xe6, 0x00, 0x7b, 0xc6, + 0xcb, 0x53, 0xa5, 0x44 + ]) + ); + assert_eq!( + Bitcoin::Xor8.cmr(), + Cmr::from_byte_array([ + 0x4a, 0xb1, 0x4a, 0x81, 0x4a, 0x39, 0x52, 0x8a, 0x80, 0xfd, 0xb4, 0x30, 0x58, 0x9b, + 0xa4, 0x50, 0x10, 0x4b, 0x9c, 0x72, 0x09, 0xaa, 0x2f, 0xe2, 0x85, 0xcd, 0x60, 0xc0, + 0x90, 0x43, 0x11, 0x4a + ]) + ); + assert_eq!( + Bitcoin::XorXor1.cmr(), + Cmr::from_byte_array([ + 0x18, 0xb9, 0x44, 0x6a, 0x41, 0x66, 0xa3, 0xfe, 0xe2, 0xbc, 0xb2, 0x54, 0x5b, 0xb9, + 0x01, 0x18, 0xdc, 0xf0, 0xe8, 0xf8, 0x86, 0xa1, 0x07, 0x6d, 0x4c, 0x38, 0x60, 0x06, + 0x0c, 0xde, 0x1a, 0x51 + ]) + ); + assert_eq!( + Bitcoin::XorXor16.cmr(), + Cmr::from_byte_array([ + 0x94, 0x6c, 0xde, 0x87, 0x2e, 0x30, 0xe6, 0x50, 0x9d, 0xaf, 0xf4, 0x05, 0xf0, 0xe0, + 0xfe, 0xfe, 0x27, 0x55, 0x47, 0xb4, 0x0e, 0xb2, 0x03, 0x84, 0xaf, 0xe9, 0xa8, 0x63, + 0x60, 0xfc, 0x80, 0xef + ]) + ); + assert_eq!( + Bitcoin::XorXor32.cmr(), + Cmr::from_byte_array([ + 0x65, 0x27, 0xdf, 0x67, 0xa5, 0x0d, 0x14, 0x8d, 0xb4, 0xfc, 0x8f, 0xee, 0xc7, 0x84, + 0x55, 0x64, 0x99, 0xa8, 0xc7, 0xf0, 0xfa, 0x7d, 0x28, 0xe6, 0x27, 0x8e, 0x99, 0x7f, + 0x49, 0x59, 0xbe, 0x39 + ]) + ); + assert_eq!( + Bitcoin::XorXor64.cmr(), + Cmr::from_byte_array([ + 0xf1, 0x62, 0xf9, 0xe6, 0x56, 0x63, 0xa6, 0x9a, 0xc5, 0xf9, 0x2a, 0x5e, 0xb5, 0x2c, + 0x03, 0x32, 0x39, 0x2e, 0xdd, 0x1e, 0xd1, 0xba, 0x35, 0x5e, 0x6f, 0x19, 0x40, 0x6e, + 0xab, 0xe3, 0xf6, 0xed + ]) + ); + assert_eq!( + Bitcoin::XorXor8.cmr(), + Cmr::from_byte_array([ + 0xe0, 0x6d, 0x69, 0x4c, 0x5b, 0x40, 0x7d, 0xda, 0xd7, 0xaa, 0x1f, 0x88, 0x07, 0x16, + 0xbc, 0xb7, 0x0a, 0xcd, 0xba, 0x75, 0x85, 0xca, 0x40, 0x09, 0x9a, 0x0a, 0x0a, 0x61, + 0xf3, 0xad, 0x2d, 0xb5 + ]) + ); +} + +#[test] +fn cost_matches_spec() { + // Every cost value, matching .cost in primitiveJetNode.inc (milliweight). + assert_eq!(Bitcoin::Add16.cost(), Cost::from_milliweight(80)); + assert_eq!(Bitcoin::Add32.cost(), Cost::from_milliweight(92)); + assert_eq!(Bitcoin::Add64.cost(), Cost::from_milliweight(105)); + assert_eq!(Bitcoin::Add8.cost(), Cost::from_milliweight(97)); + assert_eq!(Bitcoin::All16.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::All32.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::All64.cost(), Cost::from_milliweight(63)); + assert_eq!(Bitcoin::All8.cost(), Cost::from_milliweight(50)); + assert_eq!(Bitcoin::And1.cost(), Cost::from_milliweight(77)); + assert_eq!(Bitcoin::And16.cost(), Cost::from_milliweight(83)); + assert_eq!(Bitcoin::And32.cost(), Cost::from_milliweight(77)); + assert_eq!(Bitcoin::And64.cost(), Cost::from_milliweight(78)); + assert_eq!(Bitcoin::And8.cost(), Cost::from_milliweight(98)); + assert_eq!(Bitcoin::AnnexHash.cost(), Cost::from_milliweight(1491)); + assert_eq!(Bitcoin::Bip0340Verify.cost(), Cost::from_milliweight(49421)); + assert_eq!(Bitcoin::BuildTapbranch.cost(), Cost::from_milliweight(2554)); + assert_eq!( + Bitcoin::BuildTapleafSimplicity.cost(), + Cost::from_milliweight(1927) + ); + assert_eq!(Bitcoin::BuildTaptweak.cost(), Cost::from_milliweight(77780)); + assert_eq!(Bitcoin::Ch1.cost(), Cost::from_milliweight(50)); + assert_eq!(Bitcoin::Ch16.cost(), Cost::from_milliweight(83)); + assert_eq!(Bitcoin::Ch32.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::Ch64.cost(), Cost::from_milliweight(78)); + assert_eq!(Bitcoin::Ch8.cost(), Cost::from_milliweight(86)); + assert_eq!( + Bitcoin::CheckLockDistance.cost(), + Cost::from_milliweight(84) + ); + assert_eq!( + Bitcoin::CheckLockDuration.cost(), + Cost::from_milliweight(78) + ); + assert_eq!(Bitcoin::CheckLockHeight.cost(), Cost::from_milliweight(108)); + assert_eq!(Bitcoin::CheckLockTime.cost(), Cost::from_milliweight(123)); + assert_eq!( + Bitcoin::CheckSigVerify.cost(), + Cost::from_milliweight(50000) + ); + assert_eq!(Bitcoin::Complement1.cost(), Cost::from_milliweight(51)); + assert_eq!(Bitcoin::Complement16.cost(), Cost::from_milliweight(86)); + assert_eq!(Bitcoin::Complement32.cost(), Cost::from_milliweight(58)); + assert_eq!(Bitcoin::Complement64.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::Complement8.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::CurrentAnnexHash.cost(), Cost::from_milliweight(74)); + assert_eq!(Bitcoin::CurrentIndex.cost(), Cost::from_milliweight(66)); + assert_eq!( + Bitcoin::CurrentPrevOutpoint.cost(), + Cost::from_milliweight(130) + ); + assert_eq!( + Bitcoin::CurrentScriptHash.cost(), + Cost::from_milliweight(127) + ); + assert_eq!( + Bitcoin::CurrentScriptSigHash.cost(), + Cost::from_milliweight(126) + ); + assert_eq!(Bitcoin::CurrentSequence.cost(), Cost::from_milliweight(66)); + assert_eq!(Bitcoin::CurrentValue.cost(), Cost::from_milliweight(85)); + assert_eq!(Bitcoin::Decompress.cost(), Cost::from_milliweight(10495)); + assert_eq!(Bitcoin::Decrement16.cost(), Cost::from_milliweight(58)); + assert_eq!(Bitcoin::Decrement32.cost(), Cost::from_milliweight(57)); + assert_eq!(Bitcoin::Decrement64.cost(), Cost::from_milliweight(79)); + assert_eq!(Bitcoin::Decrement8.cost(), Cost::from_milliweight(77)); + assert_eq!(Bitcoin::DivMod128_64.cost(), Cost::from_milliweight(169)); + assert_eq!(Bitcoin::DivMod16.cost(), Cost::from_milliweight(92)); + assert_eq!(Bitcoin::DivMod32.cost(), Cost::from_milliweight(90)); + assert_eq!(Bitcoin::DivMod64.cost(), Cost::from_milliweight(82)); + assert_eq!(Bitcoin::DivMod8.cost(), Cost::from_milliweight(91)); + assert_eq!(Bitcoin::Divide16.cost(), Cost::from_milliweight(85)); + assert_eq!(Bitcoin::Divide32.cost(), Cost::from_milliweight(82)); + assert_eq!(Bitcoin::Divide64.cost(), Cost::from_milliweight(81)); + assert_eq!(Bitcoin::Divide8.cost(), Cost::from_milliweight(85)); + assert_eq!(Bitcoin::Divides16.cost(), Cost::from_milliweight(84)); + assert_eq!(Bitcoin::Divides32.cost(), Cost::from_milliweight(80)); + assert_eq!(Bitcoin::Divides64.cost(), Cost::from_milliweight(67)); + assert_eq!(Bitcoin::Divides8.cost(), Cost::from_milliweight(73)); + assert_eq!(Bitcoin::Eq1.cost(), Cost::from_milliweight(63)); + assert_eq!(Bitcoin::Eq16.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::Eq256.cost(), Cost::from_milliweight(188)); + assert_eq!(Bitcoin::Eq32.cost(), Cost::from_milliweight(74)); + assert_eq!(Bitcoin::Eq64.cost(), Cost::from_milliweight(82)); + assert_eq!(Bitcoin::Eq8.cost(), Cost::from_milliweight(76)); + assert_eq!(Bitcoin::FeAdd.cost(), Cost::from_milliweight(777)); + assert_eq!(Bitcoin::FeInvert.cost(), Cost::from_milliweight(3237)); + assert_eq!(Bitcoin::FeIsOdd.cost(), Cost::from_milliweight(313)); + assert_eq!(Bitcoin::FeIsZero.cost(), Cost::from_milliweight(277)); + assert_eq!(Bitcoin::FeMultiply.cost(), Cost::from_milliweight(813)); + assert_eq!(Bitcoin::FeMultiplyBeta.cost(), Cost::from_milliweight(607)); + assert_eq!(Bitcoin::FeNegate.cost(), Cost::from_milliweight(541)); + assert_eq!(Bitcoin::FeNormalize.cost(), Cost::from_milliweight(656)); + assert_eq!(Bitcoin::FeSquare.cost(), Cost::from_milliweight(570)); + assert_eq!(Bitcoin::FeSquareRoot.cost(), Cost::from_milliweight(10162)); + assert_eq!(Bitcoin::Fee.cost(), Cost::from_milliweight(65)); + assert_eq!(Bitcoin::FullAdd16.cost(), Cost::from_milliweight(106)); + assert_eq!(Bitcoin::FullAdd32.cost(), Cost::from_milliweight(96)); + assert_eq!(Bitcoin::FullAdd64.cost(), Cost::from_milliweight(93)); + assert_eq!(Bitcoin::FullAdd8.cost(), Cost::from_milliweight(131)); + assert_eq!(Bitcoin::FullDecrement16.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::FullDecrement32.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::FullDecrement64.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::FullDecrement8.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::FullIncrement16.cost(), Cost::from_milliweight(70)); + assert_eq!(Bitcoin::FullIncrement32.cost(), Cost::from_milliweight(57)); + assert_eq!(Bitcoin::FullIncrement64.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::FullIncrement8.cost(), Cost::from_milliweight(73)); + assert_eq!( + Bitcoin::FullLeftShift16_1.cost(), + Cost::from_milliweight(76) + ); + assert_eq!( + Bitcoin::FullLeftShift16_2.cost(), + Cost::from_milliweight(59) + ); + assert_eq!( + Bitcoin::FullLeftShift16_4.cost(), + Cost::from_milliweight(68) + ); + assert_eq!( + Bitcoin::FullLeftShift16_8.cost(), + Cost::from_milliweight(68) + ); + assert_eq!( + Bitcoin::FullLeftShift32_1.cost(), + Cost::from_milliweight(58) + ); + assert_eq!( + Bitcoin::FullLeftShift32_16.cost(), + Cost::from_milliweight(52) + ); + assert_eq!( + Bitcoin::FullLeftShift32_2.cost(), + Cost::from_milliweight(73) + ); + assert_eq!( + Bitcoin::FullLeftShift32_4.cost(), + Cost::from_milliweight(59) + ); + assert_eq!( + Bitcoin::FullLeftShift32_8.cost(), + Cost::from_milliweight(60) + ); + assert_eq!( + Bitcoin::FullLeftShift64_1.cost(), + Cost::from_milliweight(74) + ); + assert_eq!( + Bitcoin::FullLeftShift64_16.cost(), + Cost::from_milliweight(69) + ); + assert_eq!( + Bitcoin::FullLeftShift64_2.cost(), + Cost::from_milliweight(70) + ); + assert_eq!( + Bitcoin::FullLeftShift64_32.cost(), + Cost::from_milliweight(73) + ); + assert_eq!( + Bitcoin::FullLeftShift64_4.cost(), + Cost::from_milliweight(66) + ); + assert_eq!( + Bitcoin::FullLeftShift64_8.cost(), + Cost::from_milliweight(68) + ); + assert_eq!(Bitcoin::FullLeftShift8_1.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::FullLeftShift8_2.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::FullLeftShift8_4.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::FullMultiply16.cost(), Cost::from_milliweight(99)); + assert_eq!(Bitcoin::FullMultiply32.cost(), Cost::from_milliweight(87)); + assert_eq!(Bitcoin::FullMultiply64.cost(), Cost::from_milliweight(103)); + assert_eq!(Bitcoin::FullMultiply8.cost(), Cost::from_milliweight(95)); + assert_eq!( + Bitcoin::FullRightShift16_1.cost(), + Cost::from_milliweight(55) + ); + assert_eq!( + Bitcoin::FullRightShift16_2.cost(), + Cost::from_milliweight(60) + ); + assert_eq!( + Bitcoin::FullRightShift16_4.cost(), + Cost::from_milliweight(64) + ); + assert_eq!( + Bitcoin::FullRightShift16_8.cost(), + Cost::from_milliweight(55) + ); + assert_eq!( + Bitcoin::FullRightShift32_1.cost(), + Cost::from_milliweight(49) + ); + assert_eq!( + Bitcoin::FullRightShift32_16.cost(), + Cost::from_milliweight(48) + ); + assert_eq!( + Bitcoin::FullRightShift32_2.cost(), + Cost::from_milliweight(66) + ); + assert_eq!( + Bitcoin::FullRightShift32_4.cost(), + Cost::from_milliweight(49) + ); + assert_eq!( + Bitcoin::FullRightShift32_8.cost(), + Cost::from_milliweight(66) + ); + assert_eq!( + Bitcoin::FullRightShift64_1.cost(), + Cost::from_milliweight(60) + ); + assert_eq!( + Bitcoin::FullRightShift64_16.cost(), + Cost::from_milliweight(73) + ); + assert_eq!( + Bitcoin::FullRightShift64_2.cost(), + Cost::from_milliweight(76) + ); + assert_eq!( + Bitcoin::FullRightShift64_32.cost(), + Cost::from_milliweight(73) + ); + assert_eq!( + Bitcoin::FullRightShift64_4.cost(), + Cost::from_milliweight(56) + ); + assert_eq!( + Bitcoin::FullRightShift64_8.cost(), + Cost::from_milliweight(68) + ); + assert_eq!( + Bitcoin::FullRightShift8_1.cost(), + Cost::from_milliweight(59) + ); + assert_eq!( + Bitcoin::FullRightShift8_2.cost(), + Cost::from_milliweight(49) + ); + assert_eq!( + Bitcoin::FullRightShift8_4.cost(), + Cost::from_milliweight(51) + ); + assert_eq!(Bitcoin::FullSubtract16.cost(), Cost::from_milliweight(99)); + assert_eq!(Bitcoin::FullSubtract32.cost(), Cost::from_milliweight(92)); + assert_eq!(Bitcoin::FullSubtract64.cost(), Cost::from_milliweight(109)); + assert_eq!(Bitcoin::FullSubtract8.cost(), Cost::from_milliweight(106)); + assert_eq!(Bitcoin::GeIsOnCurve.cost(), Cost::from_milliweight(688)); + assert_eq!(Bitcoin::GeNegate.cost(), Cost::from_milliweight(1071)); + assert_eq!(Bitcoin::GejAdd.cost(), Cost::from_milliweight(3000)); + assert_eq!(Bitcoin::GejDouble.cost(), Cost::from_milliweight(1862)); + assert_eq!(Bitcoin::GejEquiv.cost(), Cost::from_milliweight(2376)); + assert_eq!(Bitcoin::GejGeAdd.cost(), Cost::from_milliweight(2609)); + assert_eq!(Bitcoin::GejGeAddEx.cost(), Cost::from_milliweight(2860)); + assert_eq!(Bitcoin::GejGeEquiv.cost(), Cost::from_milliweight(1823)); + assert_eq!(Bitcoin::GejInfinity.cost(), Cost::from_milliweight(765)); + assert_eq!(Bitcoin::GejIsInfinity.cost(), Cost::from_milliweight(701)); + assert_eq!(Bitcoin::GejIsOnCurve.cost(), Cost::from_milliweight(1039)); + assert_eq!(Bitcoin::GejNegate.cost(), Cost::from_milliweight(1549)); + assert_eq!(Bitcoin::GejNormalize.cost(), Cost::from_milliweight(4184)); + assert_eq!(Bitcoin::GejRescale.cost(), Cost::from_milliweight(2011)); + assert_eq!(Bitcoin::GejXEquiv.cost(), Cost::from_milliweight(1103)); + assert_eq!(Bitcoin::GejYIsOdd.cost(), Cost::from_milliweight(3702)); + assert_eq!(Bitcoin::Generate.cost(), Cost::from_milliweight(49851)); + assert_eq!(Bitcoin::HashToCurve.cost(), Cost::from_milliweight(69844)); + assert_eq!(Bitcoin::High1.cost(), Cost::from_milliweight(42)); + assert_eq!(Bitcoin::High16.cost(), Cost::from_milliweight(50)); + assert_eq!(Bitcoin::High32.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::High64.cost(), Cost::from_milliweight(52)); + assert_eq!(Bitcoin::High8.cost(), Cost::from_milliweight(59)); + assert_eq!(Bitcoin::Increment16.cost(), Cost::from_milliweight(56)); + assert_eq!(Bitcoin::Increment32.cost(), Cost::from_milliweight(73)); + assert_eq!(Bitcoin::Increment64.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::Increment8.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::InputAnnexHash.cost(), Cost::from_milliweight(77)); + assert_eq!( + Bitcoin::InputAnnexesHash.cost(), + Cost::from_milliweight(124) + ); + assert_eq!(Bitcoin::InputHash.cost(), Cost::from_milliweight(832)); + assert_eq!( + Bitcoin::InputOutpointsHash.cost(), + Cost::from_milliweight(126) + ); + assert_eq!( + Bitcoin::InputPrevOutpoint.cost(), + Cost::from_milliweight(140) + ); + assert_eq!(Bitcoin::InputScriptHash.cost(), Cost::from_milliweight(143)); + assert_eq!( + Bitcoin::InputScriptSigHash.cost(), + Cost::from_milliweight(137) + ); + assert_eq!( + Bitcoin::InputScriptSigsHash.cost(), + Cost::from_milliweight(127) + ); + assert_eq!( + Bitcoin::InputScriptsHash.cost(), + Cost::from_milliweight(129) + ); + assert_eq!(Bitcoin::InputSequence.cost(), Cost::from_milliweight(78)); + assert_eq!( + Bitcoin::InputSequencesHash.cost(), + Cost::from_milliweight(125) + ); + assert_eq!(Bitcoin::InputUtxoHash.cost(), Cost::from_milliweight(824)); + assert_eq!(Bitcoin::InputUtxosHash.cost(), Cost::from_milliweight(122)); + assert_eq!(Bitcoin::InputValue.cost(), Cost::from_milliweight(81)); + assert_eq!(Bitcoin::InputValuesHash.cost(), Cost::from_milliweight(126)); + assert_eq!(Bitcoin::InputsHash.cost(), Cost::from_milliweight(122)); + assert_eq!(Bitcoin::InternalKey.cost(), Cost::from_milliweight(124)); + assert_eq!(Bitcoin::IsOne16.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::IsOne32.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::IsOne64.cost(), Cost::from_milliweight(66)); + assert_eq!(Bitcoin::IsOne8.cost(), Cost::from_milliweight(47)); + assert_eq!(Bitcoin::IsZero16.cost(), Cost::from_milliweight(52)); + assert_eq!(Bitcoin::IsZero32.cost(), Cost::from_milliweight(58)); + assert_eq!(Bitcoin::IsZero64.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::IsZero8.cost(), Cost::from_milliweight(59)); + assert_eq!(Bitcoin::Le16.cost(), Cost::from_milliweight(83)); + assert_eq!(Bitcoin::Le32.cost(), Cost::from_milliweight(99)); + assert_eq!(Bitcoin::Le64.cost(), Cost::from_milliweight(79)); + assert_eq!(Bitcoin::Le8.cost(), Cost::from_milliweight(93)); + assert_eq!(Bitcoin::LeftExtend16_32.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::LeftExtend16_64.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::LeftExtend1_16.cost(), Cost::from_milliweight(50)); + assert_eq!(Bitcoin::LeftExtend1_32.cost(), Cost::from_milliweight(48)); + assert_eq!(Bitcoin::LeftExtend1_64.cost(), Cost::from_milliweight(49)); + assert_eq!(Bitcoin::LeftExtend1_8.cost(), Cost::from_milliweight(46)); + assert_eq!(Bitcoin::LeftExtend32_64.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::LeftExtend8_16.cost(), Cost::from_milliweight(58)); + assert_eq!(Bitcoin::LeftExtend8_32.cost(), Cost::from_milliweight(86)); + assert_eq!(Bitcoin::LeftExtend8_64.cost(), Cost::from_milliweight(98)); + assert_eq!(Bitcoin::LeftPadHigh16_32.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::LeftPadHigh16_64.cost(), Cost::from_milliweight(82)); + assert_eq!(Bitcoin::LeftPadHigh1_16.cost(), Cost::from_milliweight(106)); + assert_eq!(Bitcoin::LeftPadHigh1_32.cost(), Cost::from_milliweight(220)); + assert_eq!(Bitcoin::LeftPadHigh1_64.cost(), Cost::from_milliweight(302)); + assert_eq!(Bitcoin::LeftPadHigh1_8.cost(), Cost::from_milliweight(73)); + assert_eq!(Bitcoin::LeftPadHigh32_64.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::LeftPadHigh8_16.cost(), Cost::from_milliweight(65)); + assert_eq!(Bitcoin::LeftPadHigh8_32.cost(), Cost::from_milliweight(105)); + assert_eq!(Bitcoin::LeftPadHigh8_64.cost(), Cost::from_milliweight(113)); + assert_eq!(Bitcoin::LeftPadLow16_32.cost(), Cost::from_milliweight(65)); + assert_eq!(Bitcoin::LeftPadLow16_64.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::LeftPadLow1_16.cost(), Cost::from_milliweight(59)); + assert_eq!(Bitcoin::LeftPadLow1_32.cost(), Cost::from_milliweight(47)); + assert_eq!(Bitcoin::LeftPadLow1_64.cost(), Cost::from_milliweight(46)); + assert_eq!(Bitcoin::LeftPadLow1_8.cost(), Cost::from_milliweight(48)); + assert_eq!(Bitcoin::LeftPadLow32_64.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::LeftPadLow8_16.cost(), Cost::from_milliweight(56)); + assert_eq!(Bitcoin::LeftPadLow8_32.cost(), Cost::from_milliweight(75)); + assert_eq!(Bitcoin::LeftPadLow8_64.cost(), Cost::from_milliweight(116)); + assert_eq!(Bitcoin::LeftRotate16.cost(), Cost::from_milliweight(88)); + assert_eq!(Bitcoin::LeftRotate32.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::LeftRotate64.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::LeftRotate8.cost(), Cost::from_milliweight(66)); + assert_eq!(Bitcoin::LeftShift16.cost(), Cost::from_milliweight(109)); + assert_eq!(Bitcoin::LeftShift32.cost(), Cost::from_milliweight(79)); + assert_eq!(Bitcoin::LeftShift64.cost(), Cost::from_milliweight(70)); + assert_eq!(Bitcoin::LeftShift8.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::LeftShiftWith16.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::LeftShiftWith32.cost(), Cost::from_milliweight(87)); + assert_eq!(Bitcoin::LeftShiftWith64.cost(), Cost::from_milliweight(97)); + assert_eq!(Bitcoin::LeftShiftWith8.cost(), Cost::from_milliweight(104)); + assert_eq!(Bitcoin::Leftmost16_1.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::Leftmost16_2.cost(), Cost::from_milliweight(58)); + assert_eq!(Bitcoin::Leftmost16_4.cost(), Cost::from_milliweight(51)); + assert_eq!(Bitcoin::Leftmost16_8.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::Leftmost32_1.cost(), Cost::from_milliweight(53)); + assert_eq!(Bitcoin::Leftmost32_16.cost(), Cost::from_milliweight(63)); + assert_eq!(Bitcoin::Leftmost32_2.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::Leftmost32_4.cost(), Cost::from_milliweight(61)); + assert_eq!(Bitcoin::Leftmost32_8.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::Leftmost64_1.cost(), Cost::from_milliweight(65)); + assert_eq!(Bitcoin::Leftmost64_16.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::Leftmost64_2.cost(), Cost::from_milliweight(61)); + assert_eq!(Bitcoin::Leftmost64_32.cost(), Cost::from_milliweight(77)); + assert_eq!(Bitcoin::Leftmost64_4.cost(), Cost::from_milliweight(80)); + assert_eq!(Bitcoin::Leftmost64_8.cost(), Cost::from_milliweight(54)); + assert_eq!(Bitcoin::Leftmost8_1.cost(), Cost::from_milliweight(54)); + assert_eq!(Bitcoin::Leftmost8_2.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::Leftmost8_4.cost(), Cost::from_milliweight(65)); + assert_eq!( + Bitcoin::LinearCombination1.cost(), + Cost::from_milliweight(85743) + ); + assert_eq!(Bitcoin::LinearVerify1.cost(), Cost::from_milliweight(43579)); + assert_eq!(Bitcoin::LockTime.cost(), Cost::from_milliweight(66)); + assert_eq!(Bitcoin::Low1.cost(), Cost::from_milliweight(40)); + assert_eq!(Bitcoin::Low16.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::Low32.cost(), Cost::from_milliweight(52)); + assert_eq!(Bitcoin::Low64.cost(), Cost::from_milliweight(50)); + assert_eq!(Bitcoin::Low8.cost(), Cost::from_milliweight(45)); + assert_eq!(Bitcoin::Lt16.cost(), Cost::from_milliweight(83)); + assert_eq!(Bitcoin::Lt32.cost(), Cost::from_milliweight(89)); + assert_eq!(Bitcoin::Lt64.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::Lt8.cost(), Cost::from_milliweight(86)); + assert_eq!(Bitcoin::Maj1.cost(), Cost::from_milliweight(54)); + assert_eq!(Bitcoin::Maj16.cost(), Cost::from_milliweight(85)); + assert_eq!(Bitcoin::Maj32.cost(), Cost::from_milliweight(73)); + assert_eq!(Bitcoin::Maj64.cost(), Cost::from_milliweight(79)); + assert_eq!(Bitcoin::Maj8.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::Max16.cost(), Cost::from_milliweight(80)); + assert_eq!(Bitcoin::Max32.cost(), Cost::from_milliweight(70)); + assert_eq!(Bitcoin::Max64.cost(), Cost::from_milliweight(75)); + assert_eq!(Bitcoin::Max8.cost(), Cost::from_milliweight(79)); + assert_eq!(Bitcoin::Median16.cost(), Cost::from_milliweight(80)); + assert_eq!(Bitcoin::Median32.cost(), Cost::from_milliweight(77)); + assert_eq!(Bitcoin::Median64.cost(), Cost::from_milliweight(89)); + assert_eq!(Bitcoin::Median8.cost(), Cost::from_milliweight(77)); + assert_eq!(Bitcoin::Min16.cost(), Cost::from_milliweight(83)); + assert_eq!(Bitcoin::Min32.cost(), Cost::from_milliweight(96)); + assert_eq!(Bitcoin::Min64.cost(), Cost::from_milliweight(82)); + assert_eq!(Bitcoin::Min8.cost(), Cost::from_milliweight(78)); + assert_eq!(Bitcoin::Modulo16.cost(), Cost::from_milliweight(85)); + assert_eq!(Bitcoin::Modulo32.cost(), Cost::from_milliweight(81)); + assert_eq!(Bitcoin::Modulo64.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::Modulo8.cost(), Cost::from_milliweight(85)); + assert_eq!(Bitcoin::Multiply16.cost(), Cost::from_milliweight(79)); + assert_eq!(Bitcoin::Multiply32.cost(), Cost::from_milliweight(78)); + assert_eq!(Bitcoin::Multiply64.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::Multiply8.cost(), Cost::from_milliweight(79)); + assert_eq!(Bitcoin::Negate16.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::Negate32.cost(), Cost::from_milliweight(56)); + assert_eq!(Bitcoin::Negate64.cost(), Cost::from_milliweight(56)); + assert_eq!(Bitcoin::Negate8.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::NumInputs.cost(), Cost::from_milliweight(74)); + assert_eq!(Bitcoin::NumOutputs.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::One16.cost(), Cost::from_milliweight(45)); + assert_eq!(Bitcoin::One32.cost(), Cost::from_milliweight(45)); + assert_eq!(Bitcoin::One64.cost(), Cost::from_milliweight(45)); + assert_eq!(Bitcoin::One8.cost(), Cost::from_milliweight(46)); + assert_eq!(Bitcoin::Or1.cost(), Cost::from_milliweight(56)); + assert_eq!(Bitcoin::Or16.cost(), Cost::from_milliweight(78)); + assert_eq!(Bitcoin::Or32.cost(), Cost::from_milliweight(80)); + assert_eq!(Bitcoin::Or64.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::Or8.cost(), Cost::from_milliweight(81)); + assert_eq!(Bitcoin::OutpointHash.cost(), Cost::from_milliweight(1788)); + assert_eq!(Bitcoin::OutputHash.cost(), Cost::from_milliweight(822)); + assert_eq!( + Bitcoin::OutputScriptHash.cost(), + Cost::from_milliweight(135) + ); + assert_eq!( + Bitcoin::OutputScriptsHash.cost(), + Cost::from_milliweight(123) + ); + assert_eq!(Bitcoin::OutputValue.cost(), Cost::from_milliweight(82)); + assert_eq!( + Bitcoin::OutputValuesHash.cost(), + Cost::from_milliweight(119) + ); + assert_eq!(Bitcoin::OutputsHash.cost(), Cost::from_milliweight(117)); + assert_eq!(Bitcoin::ParseLock.cost(), Cost::from_milliweight(82)); + assert_eq!(Bitcoin::ParseSequence.cost(), Cost::from_milliweight(93)); + assert_eq!(Bitcoin::PointVerify1.cost(), Cost::from_milliweight(41394)); + assert_eq!(Bitcoin::RightExtend16_32.cost(), Cost::from_milliweight(73)); + assert_eq!(Bitcoin::RightExtend16_64.cost(), Cost::from_milliweight(70)); + assert_eq!(Bitcoin::RightExtend32_64.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::RightExtend8_16.cost(), Cost::from_milliweight(63)); + assert_eq!(Bitcoin::RightExtend8_32.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::RightExtend8_64.cost(), Cost::from_milliweight(141)); + assert_eq!( + Bitcoin::RightPadHigh16_32.cost(), + Cost::from_milliweight(66) + ); + assert_eq!( + Bitcoin::RightPadHigh16_64.cost(), + Cost::from_milliweight(81) + ); + assert_eq!( + Bitcoin::RightPadHigh1_16.cost(), + Cost::from_milliweight(114) + ); + assert_eq!( + Bitcoin::RightPadHigh1_32.cost(), + Cost::from_milliweight(220) + ); + assert_eq!( + Bitcoin::RightPadHigh1_64.cost(), + Cost::from_milliweight(313) + ); + assert_eq!(Bitcoin::RightPadHigh1_8.cost(), Cost::from_milliweight(73)); + assert_eq!( + Bitcoin::RightPadHigh32_64.cost(), + Cost::from_milliweight(62) + ); + assert_eq!(Bitcoin::RightPadHigh8_16.cost(), Cost::from_milliweight(75)); + assert_eq!(Bitcoin::RightPadHigh8_32.cost(), Cost::from_milliweight(81)); + assert_eq!( + Bitcoin::RightPadHigh8_64.cost(), + Cost::from_milliweight(118) + ); + assert_eq!(Bitcoin::RightPadLow16_32.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::RightPadLow16_64.cost(), Cost::from_milliweight(98)); + assert_eq!(Bitcoin::RightPadLow1_16.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::RightPadLow1_32.cost(), Cost::from_milliweight(47)); + assert_eq!(Bitcoin::RightPadLow1_64.cost(), Cost::from_milliweight(57)); + assert_eq!(Bitcoin::RightPadLow1_8.cost(), Cost::from_milliweight(48)); + assert_eq!(Bitcoin::RightPadLow32_64.cost(), Cost::from_milliweight(74)); + assert_eq!(Bitcoin::RightPadLow8_16.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::RightPadLow8_32.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::RightPadLow8_64.cost(), Cost::from_milliweight(98)); + assert_eq!(Bitcoin::RightRotate16.cost(), Cost::from_milliweight(67)); + assert_eq!(Bitcoin::RightRotate32.cost(), Cost::from_milliweight(77)); + assert_eq!(Bitcoin::RightRotate64.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::RightRotate8.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::RightShift16.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::RightShift32.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::RightShift64.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::RightShift8.cost(), Cost::from_milliweight(63)); + assert_eq!(Bitcoin::RightShiftWith16.cost(), Cost::from_milliweight(83)); + assert_eq!(Bitcoin::RightShiftWith32.cost(), Cost::from_milliweight(78)); + assert_eq!(Bitcoin::RightShiftWith64.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::RightShiftWith8.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::Rightmost16_1.cost(), Cost::from_milliweight(70)); + assert_eq!(Bitcoin::Rightmost16_2.cost(), Cost::from_milliweight(65)); + assert_eq!(Bitcoin::Rightmost16_4.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::Rightmost16_8.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::Rightmost32_1.cost(), Cost::from_milliweight(70)); + assert_eq!(Bitcoin::Rightmost32_16.cost(), Cost::from_milliweight(56)); + assert_eq!(Bitcoin::Rightmost32_2.cost(), Cost::from_milliweight(74)); + assert_eq!(Bitcoin::Rightmost32_4.cost(), Cost::from_milliweight(57)); + assert_eq!(Bitcoin::Rightmost32_8.cost(), Cost::from_milliweight(55)); + assert_eq!(Bitcoin::Rightmost64_1.cost(), Cost::from_milliweight(61)); + assert_eq!(Bitcoin::Rightmost64_16.cost(), Cost::from_milliweight(63)); + assert_eq!(Bitcoin::Rightmost64_2.cost(), Cost::from_milliweight(65)); + assert_eq!(Bitcoin::Rightmost64_32.cost(), Cost::from_milliweight(64)); + assert_eq!(Bitcoin::Rightmost64_4.cost(), Cost::from_milliweight(57)); + assert_eq!(Bitcoin::Rightmost64_8.cost(), Cost::from_milliweight(49)); + assert_eq!(Bitcoin::Rightmost8_1.cost(), Cost::from_milliweight(65)); + assert_eq!(Bitcoin::Rightmost8_2.cost(), Cost::from_milliweight(63)); + assert_eq!(Bitcoin::Rightmost8_4.cost(), Cost::from_milliweight(56)); + assert_eq!(Bitcoin::ScalarAdd.cost(), Cost::from_milliweight(778)); + assert_eq!(Bitcoin::ScalarInvert.cost(), Cost::from_milliweight(3178)); + assert_eq!(Bitcoin::ScalarIsZero.cost(), Cost::from_milliweight(271)); + assert_eq!(Bitcoin::ScalarMultiply.cost(), Cost::from_milliweight(793)); + assert_eq!( + Bitcoin::ScalarMultiplyLambda.cost(), + Cost::from_milliweight(567) + ); + assert_eq!(Bitcoin::ScalarNegate.cost(), Cost::from_milliweight(516)); + assert_eq!(Bitcoin::ScalarNormalize.cost(), Cost::from_milliweight(500)); + assert_eq!(Bitcoin::ScalarSquare.cost(), Cost::from_milliweight(571)); + assert_eq!(Bitcoin::Scale.cost(), Cost::from_milliweight(73548)); + assert_eq!(Bitcoin::ScriptCMR.cost(), Cost::from_milliweight(122)); + assert_eq!(Bitcoin::Sha256Block.cost(), Cost::from_milliweight(765)); + assert_eq!(Bitcoin::Sha256Ctx8Add1.cost(), Cost::from_milliweight(664)); + assert_eq!( + Bitcoin::Sha256Ctx8Add128.cost(), + Cost::from_milliweight(1778) + ); + assert_eq!(Bitcoin::Sha256Ctx8Add16.cost(), Cost::from_milliweight(781)); + assert_eq!(Bitcoin::Sha256Ctx8Add2.cost(), Cost::from_milliweight(674)); + assert_eq!( + Bitcoin::Sha256Ctx8Add256.cost(), + Cost::from_milliweight(2894) + ); + assert_eq!(Bitcoin::Sha256Ctx8Add32.cost(), Cost::from_milliweight(928)); + assert_eq!(Bitcoin::Sha256Ctx8Add4.cost(), Cost::from_milliweight(656)); + assert_eq!( + Bitcoin::Sha256Ctx8Add512.cost(), + Cost::from_milliweight(5161) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Add64.cost(), + Cost::from_milliweight(1220) + ); + assert_eq!(Bitcoin::Sha256Ctx8Add8.cost(), Cost::from_milliweight(694)); + assert_eq!( + Bitcoin::Sha256Ctx8AddBuffer511.cost(), + Cost::from_milliweight(5137) + ); + assert_eq!( + Bitcoin::Sha256Ctx8Finalize.cost(), + Cost::from_milliweight(833) + ); + assert_eq!(Bitcoin::Sha256Ctx8Init.cost(), Cost::from_milliweight(123)); + assert_eq!(Bitcoin::Sha256Iv.cost(), Cost::from_milliweight(92)); + assert_eq!(Bitcoin::SigAllHash.cost(), Cost::from_milliweight(120)); + assert_eq!(Bitcoin::Some1.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::Some16.cost(), Cost::from_milliweight(52)); + assert_eq!(Bitcoin::Some32.cost(), Cost::from_milliweight(49)); + assert_eq!(Bitcoin::Some64.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::Some8.cost(), Cost::from_milliweight(57)); + assert_eq!(Bitcoin::Subtract16.cost(), Cost::from_milliweight(93)); + assert_eq!(Bitcoin::Subtract32.cost(), Cost::from_milliweight(87)); + assert_eq!(Bitcoin::Subtract64.cost(), Cost::from_milliweight(125)); + assert_eq!(Bitcoin::Subtract8.cost(), Cost::from_milliweight(96)); + assert_eq!(Bitcoin::Swu.cost(), Cost::from_milliweight(32780)); + assert_eq!(Bitcoin::TapEnvHash.cost(), Cost::from_milliweight(120)); + assert_eq!(Bitcoin::TapdataInit.cost(), Cost::from_milliweight(1233)); + assert_eq!(Bitcoin::TapleafHash.cost(), Cost::from_milliweight(116)); + assert_eq!(Bitcoin::TapleafVersion.cost(), Cost::from_milliweight(66)); + assert_eq!(Bitcoin::Tappath.cost(), Cost::from_milliweight(76)); + assert_eq!(Bitcoin::TappathHash.cost(), Cost::from_milliweight(123)); + assert_eq!(Bitcoin::TotalInputValue.cost(), Cost::from_milliweight(69)); + assert_eq!(Bitcoin::TotalOutputValue.cost(), Cost::from_milliweight(71)); + assert_eq!(Bitcoin::TransactionId.cost(), Cost::from_milliweight(122)); + assert_eq!(Bitcoin::TxHash.cost(), Cost::from_milliweight(119)); + assert_eq!(Bitcoin::TxIsFinal.cost(), Cost::from_milliweight(62)); + assert_eq!(Bitcoin::TxLockDistance.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::TxLockDuration.cost(), Cost::from_milliweight(66)); + assert_eq!(Bitcoin::TxLockHeight.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::TxLockTime.cost(), Cost::from_milliweight(72)); + assert_eq!(Bitcoin::Verify.cost(), Cost::from_milliweight(44)); + assert_eq!(Bitcoin::Version.cost(), Cost::from_milliweight(78)); + assert_eq!(Bitcoin::Xor1.cost(), Cost::from_milliweight(60)); + assert_eq!(Bitcoin::Xor16.cost(), Cost::from_milliweight(73)); + assert_eq!(Bitcoin::Xor32.cost(), Cost::from_milliweight(77)); + assert_eq!(Bitcoin::Xor64.cost(), Cost::from_milliweight(68)); + assert_eq!(Bitcoin::Xor8.cost(), Cost::from_milliweight(80)); + assert_eq!(Bitcoin::XorXor1.cost(), Cost::from_milliweight(50)); + assert_eq!(Bitcoin::XorXor16.cost(), Cost::from_milliweight(82)); + assert_eq!(Bitcoin::XorXor32.cost(), Cost::from_milliweight(82)); + assert_eq!(Bitcoin::XorXor64.cost(), Cost::from_milliweight(80)); + assert_eq!(Bitcoin::XorXor8.cost(), Cost::from_milliweight(86)); +} From c0bfd57754d453b6039cdbae478b8ef83e4f3311 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 7 Sep 2026 14:40:14 +0200 Subject: [PATCH 3/9] analysis: split Cost padding API into size and chain-specific bytes Add Cost::get_padding_size, which returns the chain-agnostic byte length of the witness stack item required to bring a program cost within budget. The required length depends only on the item's serialized size, not its content, and is the same for Bitcoin and Elements. Add Cost::get_padding_bytes, which returns the chain-specific bytes that fill that length: - Bitcoin (cfg bitcoin, not elements): a plain all-zero item. A leading 0x50 byte would be misread as an annex, so Bitcoin must not use one. - Elements (cfg elements): an annex item: [0x50] followed by zeros. Deprecate Cost::get_padding (Elements annex form), which now delegates to get_padding_bytes. Make get_budget and is_budget_valid chain-agnostic by computing the witness-stack serialized length with explicit CompactSize math instead of the elements consensus encoder. The padding arithmetic itself is unchanged; only the surrounding API is split. Extend the Bitcoin test with the CompactSize boundary deficits (254, 255, 65 539, 65 540), where the length prefix grows and the smallest covering item is one byte larger than the deficit would suggest. --- CHANGELOG.md | 8 ++ src/analysis.rs | 236 ++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 204 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94e69c6b..e91ab7fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Unreleased * Fix `RedeemNode::prune` producing programs that consensus rejects, and add `ExecutionError::PruningFailed` [#391](https://github.com/BlockstreamResearch/rust-simplicity/issues/391). +* Add `Cost::get_padding_size`, returning the chain-agnostic length of the padding witness + stack item needed to bring a cost within the witness budget, and `Cost::get_padding_bytes`, + returning the chain-specific bytes that fill it (an all-zero item on Bitcoin, an annex on + Elements). Deprecate `Cost::get_padding` in favour of these. +* `Cost::get_budget` and `Cost::is_budget_valid` now take `&[Vec]` instead of `&Vec>` + and compute the serialized witness length directly rather than via the Elements consensus + encoder, making them available under the `bitcoin` feature (which `elements` implies) as + well as `elements`. # 0.9.0 - 2026-09-16 diff --git a/src/analysis.rs b/src/analysis.rs index fe5fed84..c853b93c 100644 --- a/src/analysis.rs +++ b/src/analysis.rs @@ -4,12 +4,8 @@ use crate::jet::Jet; use std::{cmp, fmt}; use crate::value::Word; -#[cfg(feature = "elements")] -use elements::encode::Encodable; #[cfg(feature = "serde")] use serde::Serialize; -#[cfg(feature = "elements")] -use std::{convert::TryFrom, io}; /// Copy of [`bitcoin::Weight`] that uses [`u32`] instead of [`u64`]. /// @@ -115,78 +111,165 @@ impl Cost { self <= Self::CONSENSUS_MAX } - /// Return the budget of the given script witness of a transaction output. + /// Return the budget of the given script witness of a transaction input. /// - /// The script witness is passed as `&Vec>` in order to use - /// the consensus encoding implemented for this type. - #[cfg(feature = "elements")] - fn get_budget(script_witness: &Vec>) -> U32Weight { - let mut sink = io::sink(); - let witness_stack_serialized_len = script_witness - .consensus_encode(&mut sink) - .expect("writing to sink never fails"); - let budget = u32::try_from(witness_stack_serialized_len) - .expect("Serialized witness stack must be shorter than 2^32 elements") - .saturating_add(50); + /// The budget is the serialized size of the witness stack (in weight + /// units) plus the 50 free weight units of validation weight. + /// + /// The witness stack is passed as `&[Vec]`, where each inner `Vec` + /// is one stack item. Both Bitcoin and Elements serialize the witness stack + /// identically: a CompactSize item count, followed by each item as a + /// CompactSize length prefix and its bytes. The math is therefore + /// chain-agnostic, and this method is available under the `bitcoin` feature + /// (which `elements` implies) so it can be shared by both. + #[cfg(feature = "bitcoin")] + fn get_budget(script_witness: &[Vec]) -> U32Weight { + // Serialized witness stack size, in bytes. + let mut serialized_len = compact_size_len(script_witness.len()); + for item in script_witness { + serialized_len += compact_size_len(item.len()) + item.len(); + } + let budget = serialized_len.saturating_add(50); + let budget = + u32::try_from(budget).expect("Serialized witness stack must be shorter than 2^32"); U32Weight(budget) } /// Return whether the cost is within the budget of /// the given script witness of a transaction input. /// - /// The script witness is passed as `&Vec>` in order to use - /// the consensus encoding implemented for this type. - #[cfg(feature = "elements")] - pub fn is_budget_valid(self, script_witness: &Vec>) -> bool { + /// The script witness is passed as `&[Vec]`, where each inner `Vec` + /// is one witness stack item. + #[cfg(feature = "bitcoin")] + pub fn is_budget_valid(self, script_witness: &[Vec]) -> bool { let budget = Self::get_budget(script_witness); self.0 <= budget.0.saturating_mul(1000) } - /// Return the annex bytes that are required as padding + /// Return the length, in bytes, of the padding witness stack item required /// so the transaction input has enough budget to cover the cost. /// - /// The first annex byte is 0x50, as defined in BIP 341. - /// The following padding bytes are 0x00. - #[cfg(feature = "elements")] - pub fn get_padding(self, script_witness: &Vec>) -> Option> { + /// The returned length is chain-agnostic: adding a stack item of length `L` + /// increases the serialized witness-stack budget by `CompactSize(L) + L`, + /// which depends only on the item's length, not its content. Bitcoin and + /// Elements therefore require the same padding *length*; only the bytes + /// that fill it differ (see [`Self::get_padding_bytes`]). + /// + /// The script witness is passed as `&[Vec]`, where each inner `Vec` + /// is one witness stack item (the padding item is *not* yet included). + /// + /// Returns `None` if no padding is required, i.e. the cost already fits + /// within the budget of the given witness stack. + #[cfg(feature = "bitcoin")] + pub fn get_padding_size(self, script_witness: &[Vec]) -> Option { let weight = U32Weight::from(self); let budget = Self::get_budget(script_witness); if weight <= budget { return None; } - // Adding the annex to the witness stack increases the serialized size by: + // Adding the padding item to the witness stack increases the serialized + // size by: // - // 1. CompactSize(annex_len): the length prefix of the annex item - // 2. annex_len: the annex bytes themselves (0x50 tag + zero padding) + // 1. CompactSize(item_len): the length prefix of the padding item + // 2. item_len: the padding item bytes themselves // // CompactSize uses 1 byte for values <= 252, 3 bytes for <= 65535, // and 5 bytes for larger values. The overhead subtracted must account - // for the actual CompactSize encoding length of the resulting annex. + // for the actual CompactSize encoding length of the resulting item. let deficit = (weight - budget).0 as usize; // cast safety: 32-bit machine or higher - // overhead = compact_size_len + 1 (for 0x50 tag) + // Each arm below yields the number of bytes *after* a fixed 1-byte + // component of the item, and the `+1` at the return below makes that + // component explicit. What the fixed byte *is* depends on the chain: + // on Elements it is the 0x50 annex tag, on Bitcoin it is simply one + // more zero byte. Either way the serialized item length is the same, + // which is why the deficit math is chain-agnostic; only the contents + // differ (see `get_padding_bytes`). + // + // Note `deficit >= 2` here: the function returns early when the cost + // already fits, and a deficit of 0 or 1 cannot occur. let padding_len = match deficit { - // annex_len <= 252, compact_size uses 1 byte, overhead = 2 + // item_len <= 252, compact_size uses 1 byte, overhead = 2 0..=253 => deficit.saturating_sub(2), - // Boundary region: annex must be >= 253 bytes (3-byte compact_size), + // Boundary region: item must be >= 253 bytes (3-byte compact_size), // but deficit - 4 < 252. Use minimum padding for 3-byte encoding. 254..=255 => 252, - // annex_len in 253..=65535, compact_size uses 3 bytes, overhead = 4 + // item_len in 253..=65535, compact_size uses 3 bytes, overhead = 4 256..=65538 => deficit - 4, // Boundary region for 5-byte compact_size encoding. 65539..=65540 => 65535, - // annex_len >= 65536, compact_size uses 5 bytes, overhead = 6 + // item_len >= 65536, compact_size uses 5 bytes, overhead = 6 _ => deficit - 6, // Note: the 9-byte compact_size boundary (deficit > 4_294_967_300) // is unreachable because Cost uses u32 milliweight, limiting the // maximum deficit to ~4_294_968 weight units. }; - let annex_bytes: Vec = std::iter::once(0x50) - .chain(std::iter::repeat(0x00).take(padding_len)) - .collect(); - Some(annex_bytes) + Some(padding_len + 1) + } + + /// Return the bytes of the padding witness stack item required so the + /// transaction input has enough budget to cover the cost. + /// + /// This is the Bitcoin-specific form: the padding is a single all-zero + /// witness stack item. (Bitcoin has no annex, so the padding must be a + /// regular stack item; a leading `0x50` byte would be misread as an annex.) + #[cfg(all(feature = "bitcoin", not(feature = "elements")))] + pub fn get_padding_bytes(self, script_witness: &[Vec]) -> Option> { + self.get_padding_size(script_witness) + .map(|len| vec![0x00; len]) + } + + /// Return the bytes of the padding witness stack item required so the + /// transaction input has enough budget to cover the cost. + /// + /// This is the Elements-specific form: on Elements, padding is an annex, + /// which is a single witness stack item whose first byte is the `0x50` + /// annex tag (BIP 341) followed by zero bytes. + /// + /// To build an annex of total length `L` (as returned by + /// [`Self::get_padding_size`]) this returns `[0x50]` followed by `L - 1` + /// zero bytes. Callers targeting non-Liquid Elements (where annexes are + /// unavailable) should instead use the length and build their own all-zero + /// item, as Bitcoin does. + #[cfg(feature = "elements")] + pub fn get_padding_bytes(self, script_witness: &[Vec]) -> Option> { + self.get_padding_size(script_witness).map(|len| { + let mut annex = Vec::with_capacity(len); + annex.push(0x50); + annex.extend(std::iter::repeat(0x00).take(len.saturating_sub(1))); + annex + }) + } + + /// Return the annex bytes that are required as padding so the transaction + /// input has enough budget to cover the cost. + /// + /// The first annex byte is `0x50`, as defined in BIP 341. + /// The following padding bytes are `0x00`. + #[cfg(feature = "elements")] + #[deprecated( + since = "0.10.0", + note = "use `get_padding_size` (chain-agnostic item length) or `get_padding_bytes` (chain-specific bytes) instead" + )] + pub fn get_padding(self, script_witness: &[Vec]) -> Option> { + self.get_padding_bytes(script_witness) + } +} + +/// The length, in bytes, of the CompactSize (VarInt) encoding of `value`. +/// +/// CompactSize uses 1 byte for values <= 252, 3 bytes for <= 65535, 5 bytes +/// for <= 2^32-1, and 9 bytes otherwise. `Cost` uses `u32` milliweight, so +/// serialized lengths can never exceed the 5-byte encoding range. +#[cfg(feature = "bitcoin")] +fn compact_size_len(value: usize) -> usize { + match value { + 0..=252 => 1, + 253..=65_535 => 3, + 65_536..=4_294_967_295 => 5, + _ => 9, } } @@ -439,6 +522,7 @@ mod tests { #[test] #[cfg(feature = "elements")] + #[allow(deprecated)] fn test_get_padding() { // The budget of the empty witness stack is 51 WU: // @@ -486,16 +570,31 @@ mod tests { ]; for (cost, mut witness, maybe_padding) in test_vectors { + let size = cost.get_padding_size(&witness); match maybe_padding { None => { assert!(cost.is_budget_valid(&witness)); + assert_eq!(size, None); + assert!(cost.get_padding_bytes(&witness).is_none()); + // deprecated alias still works and agrees assert!(cost.get_padding(&witness).is_none()); } Some(expected_annex_len) => { assert!(!cost.is_budget_valid(&witness)); - let annex_bytes = cost.get_padding(&witness).expect("not enough budget"); - assert_eq!(expected_annex_len, annex_bytes.len()); + // The chain-agnostic size is the total item length, which for + // the Elements annex equals 0x50 tag + zero padding bytes. + let size = size.expect("not enough budget"); + assert_eq!(expected_annex_len, size); + + let annex_bytes = cost.get_padding_bytes(&witness).expect("not enough budget"); + assert_eq!(size, annex_bytes.len()); + assert_eq!(annex_bytes[0], 0x50); + assert!(annex_bytes[1..].iter().all(|&b| b == 0x00)); + + // The deprecated alias agrees with get_padding_bytes. + assert_eq!(cost.get_padding(&witness).unwrap(), annex_bytes); + witness.extend(std::iter::once(annex_bytes)); assert!(cost.is_budget_valid(&witness)); @@ -505,4 +604,61 @@ mod tests { } } } + + #[test] + #[cfg(all(feature = "bitcoin", not(feature = "elements")))] + fn test_get_padding_bitcoin() { + // Empty witness stack budget is 51 WU: 50 free weight + 1 length byte. + let empty = 51_000; + + let test_vectors = vec![ + (Cost::from_milliweight(empty + 2_001), vec![], 2usize), + ( + Cost::from_milliweight(8_045_103), + vec![vec![], vec![0; 497], vec![0; 32], vec![0; 33]], + 7_424usize, + ), + // Boundary arms, where a one-byte shift in the CompactSize length + // prefix changes the answer. For these deficits the returned item + // is the smallest that covers the deficit: a 252-byte item would + // gain only 253 (1-byte prefix) and a 65 535-byte item only + // 65 538 (3-byte prefix), so the next size up is required. + // + // deficit 254: item of 253 bytes, gain 3 + 253 = 256. + (Cost::from_milliweight(empty + 254_000), vec![], 253usize), + // deficit 255: same 253-byte item, gain 256. + (Cost::from_milliweight(empty + 255_000), vec![], 253usize), + // deficit 65 539: item of 65 536 bytes, gain 5 + 65 536 = 65 541. + ( + Cost::from_milliweight(empty + 65_539_000), + vec![], + 65_536usize, + ), + // deficit 65 540: same 65 536-byte item, gain 65 541. + ( + Cost::from_milliweight(empty + 65_540_000), + vec![], + 65_536usize, + ), + ]; + + for (cost, mut witness, expected_len) in test_vectors { + assert!(!cost.is_budget_valid(&witness)); + + let size = cost.get_padding_size(&witness).expect("not enough budget"); + assert_eq!(expected_len, size); + + // Bitcoin padding is a plain all-zero witness stack item: no annex + // tag, and no 0x50-leading byte (which would be misread as an annex). + let padding = cost.get_padding_bytes(&witness).expect("not enough budget"); + assert_eq!(size, padding.len()); + assert!(padding.iter().all(|&b| b == 0x00)); + + witness.push(padding); + assert!(cost.is_budget_valid(&witness)); + + witness.pop(); + assert!(!cost.is_budget_valid(&witness), "Padding must be minimal"); + } + } } From b4cc29ff830aff0ca819fc54503e93cda5373de3 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 7 Sep 2026 14:40:14 +0200 Subject: [PATCH 4/9] bitcoin jets: add FFI decls and tests for env-context jets Declare the FFI bindings for the Bitcoin jets whose C implementations read the transaction environment (sig_all_hash, check_lock_*, current_index, num_inputs, tx_hash, tap_env_hash, annex_hash, the tapbranch/tapleaf/taptweak builders, and the remaining tx-context jets in bitcoinJets.c). These match the rustsimplicity_0_8_bitcoin_* symbols already generated in jets_ffi for the elements backend. c_jet_ptr itself is unchanged: the Bitcoin backend routes every jet, including these, through the existing jets_wrapper wrappers, which forward the Rust CTxEnv reference to the same C symbols. The new declarations are not separately bound in the generated jet table. Add src/jet/bitcoin/tests.rs, which exercises the environment path end to end against a real transaction: - c_jet_env_is_the_tx_env checks that the JetEnvironment hands out the same CTxEnv the backend was built with, rather than a unit value. - env_jets_execute_with_real_environment runs an env-context jet through the Rust Bit Machine and checks it observes the live environment. - bip_0340_verify_ptr_resolves covers the one env-free crypto jet, which resolves through the shared wrapper. - check_lock_height_executes_against_env executes a jet that reads the environment and asserts on its result. These guard the property that RedeemNode::prune() depends on: the Rust Bit Machine must be able to execute Bitcoin jets against a real transaction environment in order to rewrite dead case branches into asserts. --- simplicity-sys/src/c_jets/c_env/bitcoin.rs | 61 ++++++++++ src/jet/bitcoin/mod.rs | 2 + src/jet/bitcoin/tests.rs | 135 +++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 src/jet/bitcoin/tests.rs diff --git a/simplicity-sys/src/c_jets/c_env/bitcoin.rs b/simplicity-sys/src/c_jets/c_env/bitcoin.rs index b1517268..3467d5df 100644 --- a/simplicity-sys/src/c_jets/c_env/bitcoin.rs +++ b/simplicity-sys/src/c_jets/c_env/bitcoin.rs @@ -2,6 +2,7 @@ use hashes::sha256; +use crate::c_jets::frame_ffi::CFrameItem; use crate::ffi::sha256::CSha256Midstate; use crate::ffi::{c_size_t, c_uchar, c_uint, c_uint_fast32_t}; @@ -108,6 +109,39 @@ extern "C" { pub fn simplicity_mallocTapEnv(rawEnv: *const CRawTapEnv) -> *mut CTapEnv; #[link_name = "rustsimplicity_0_8_bitcoin_mallocTransaction"] pub fn simplicity_mallocTransaction(rawTx: *const CRawTransaction) -> *mut CTransaction; + + // Bitcoin jets whose C implementations read the transaction environment. + // Each has signature `bool f(frameItem* dst, frameItem src, const txEnv* env)` + // (note `src` is passed *by value*, matching the C definitions in bitcoinJets.c). + #[link_name = "rustsimplicity_0_8_bitcoin_sig_all_hash"] + pub fn bitcoin_sig_all_hash(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) -> bool; + #[link_name = "rustsimplicity_0_8_bitcoin_check_lock_height"] + pub fn bitcoin_check_lock_height( + dst: *mut CFrameItem, + src: CFrameItem, + env: *const CTxEnv, + ) -> bool; + #[link_name = "rustsimplicity_0_8_bitcoin_check_lock_distance"] + pub fn bitcoin_check_lock_distance( + dst: *mut CFrameItem, + src: CFrameItem, + env: *const CTxEnv, + ) -> bool; + #[link_name = "rustsimplicity_0_8_bitcoin_check_lock_duration"] + pub fn bitcoin_check_lock_duration( + dst: *mut CFrameItem, + src: CFrameItem, + env: *const CTxEnv, + ) -> bool; + #[link_name = "rustsimplicity_0_8_bitcoin_current_index"] + pub fn bitcoin_current_index(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) + -> bool; + #[link_name = "rustsimplicity_0_8_bitcoin_num_inputs"] + pub fn bitcoin_num_inputs(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) -> bool; + #[link_name = "rustsimplicity_0_8_bitcoin_tx_hash"] + pub fn bitcoin_tx_hash(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) -> bool; + #[link_name = "rustsimplicity_0_8_bitcoin_tap_env_hash"] + pub fn bitcoin_tap_env_hash(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) -> bool; } impl CTxEnv { @@ -136,6 +170,33 @@ impl CRawBuffer { } } +// Safe wrappers around the bitcoin environment jets above. These expose a +// Rust-safe signature (`&mut CFrameItem`, `&CTxEnv`) that can be used directly +// as a `JetEnvironment::c_jet_ptr` function pointer, mirroring how the +// elements backend exposes its jets via the `jets_wrapper` module. We cannot +// hand out the raw `extern "C"` functions as fn pointers because `c_jet_ptr` +// returns a safe (non-extern) function pointer. +macro_rules! bitcoin_env_jet_wrapper { + ($name:ident, $ffi:ident) => { + pub fn $name(dst: &mut CFrameItem, src: CFrameItem, env: &CTxEnv) -> bool { + // SAFETY: we pass valid references through as pointers to a C + // function that treats them as borrowed (`frameItem* dst`, + // `const txEnv* env`) and `src` is forwarded by value exactly as + // the C `frameItem src` parameter expects. + unsafe { $ffi(dst, src, env) } + } + }; +} + +bitcoin_env_jet_wrapper!(sig_all_hash, bitcoin_sig_all_hash); +bitcoin_env_jet_wrapper!(check_lock_height, bitcoin_check_lock_height); +bitcoin_env_jet_wrapper!(check_lock_distance, bitcoin_check_lock_distance); +bitcoin_env_jet_wrapper!(check_lock_duration, bitcoin_check_lock_duration); +bitcoin_env_jet_wrapper!(current_index, bitcoin_current_index); +bitcoin_env_jet_wrapper!(num_inputs, bitcoin_num_inputs); +bitcoin_env_jet_wrapper!(tx_hash, bitcoin_tx_hash); +bitcoin_env_jet_wrapper!(tap_env_hash, bitcoin_tap_env_hash); + // Will uncomment in a later commit; need to update libsimplicity first. #[cfg(test)] mod tests { diff --git a/src/jet/bitcoin/mod.rs b/src/jet/bitcoin/mod.rs index a485fb31..b6f900d4 100644 --- a/src/jet/bitcoin/mod.rs +++ b/src/jet/bitcoin/mod.rs @@ -4,6 +4,8 @@ mod c_env; mod environment; #[cfg(test)] mod spec_tests; +#[cfg(test)] +mod tests; pub use environment::BitcoinEnv; diff --git a/src/jet/bitcoin/tests.rs b/src/jet/bitcoin/tests.rs new file mode 100644 index 00000000..e8dc11b3 --- /dev/null +++ b/src/jet/bitcoin/tests.rs @@ -0,0 +1,135 @@ +// SPDX-License-Identifier: CC0-1.0 + +//! Tests that the Bitcoin backend actually executes (and prunes) tx-context / +//! crypto jets through the C implementations, using a *real* transaction +//! environment (`c_jet_env` returns the live `CTxEnv`, not the unit type). + +use std::sync::Arc; + +use bitcoin::taproot::ControlBlock; + +use crate::jet::Bitcoin; +use crate::jet::BitcoinEnv; +use crate::node::{ConstructNode, CoreConstructible as _}; +use crate::types::Context; +use crate::{BitMachine, Cmr, Value}; + +type Node<'brand> = Arc>; + +/// A dummy but *structurally valid* spending context: one input (index 0), one +/// output, matching prevout utxo and a valid 33-byte control block. Building a +/// `BitcoinEnv` computes the sighash-all and tap-env-hash eagerly in C, so this +/// must not trip any C assertion. +fn dummy_env() -> BitcoinEnv { + let tx = bitcoin::Transaction { + version: bitcoin::transaction::Version(2), + lock_time: bitcoin::absolute::LockTime::ZERO, + input: vec![bitcoin::TxIn { + previous_output: bitcoin::OutPoint::null(), + script_sig: bitcoin::ScriptBuf::new(), + sequence: bitcoin::Sequence::MAX, + witness: bitcoin::Witness::new(), + }], + output: vec![bitcoin::TxOut { + value: bitcoin::Amount::from_sat(0), + script_pubkey: bitcoin::ScriptBuf::new(), + }], + }; + let utxo = bitcoin::TxOut { + value: bitcoin::Amount::from_sat(0), + script_pubkey: bitcoin::ScriptBuf::new(), + }; + let cmr = Cmr::from_byte_array([0u8; 32]); + let ctrl = ControlBlock::decode(&[ + 0xc0, 0x50, 0x92, 0x9b, 0x74, 0xc1, 0xa0, 0x49, 0x54, 0xb7, 0x8b, 0x4b, 0x60, 0x35, 0xe9, + 0x7a, 0x5e, 0x07, 0x8a, 0x5a, 0x0f, 0x28, 0xec, 0x96, 0xd5, 0x47, 0xbf, 0xee, 0x9a, 0xce, + 0x80, 0x3a, 0xc0, + ]) + .expect("control block"); + BitcoinEnv::new(tx, &[utxo], 0, cmr, ctrl) +} + +/// Run a single-jet program (unit source) and return its output value. +fn run_jet(jet: &Bitcoin) -> Value { + Context::with_context(|ctx| { + let prog = Node::jet(&ctx, jet); + let env = dummy_env(); + BitMachine::test_exec(prog, &env).expect("bit machine execution") + }) +} + +/// `c_jet_env` must hand back the live transaction environment, not `()`. +#[test] +fn c_jet_env_is_the_tx_env() { + let env = dummy_env(); + // Type is enforced at compile time: the trait method returns &CTxEnv. + // We also confirm it points at the same struct the env exposes. + let env_jet: &simplicity_sys::c_jets::c_env::bitcoin::CTxEnv = + as crate::jet::JetEnvironment>::c_jet_env(&env); + assert_eq!( + std::ptr::eq(env_jet, env.c_tx_env()), + true, + "c_jet_env should return the env's own CTxEnv" + ); +} + +/// Every wired bitcoin env jet must yield a real C function pointer (i.e. +/// `c_jet_ptr` must not panic via `unimplemented!`) AND must execute +/// successfully against a live environment. +#[test] +fn env_jets_execute_with_real_environment() { + // current_index (ONE -> 2^32): index of the input under scrutiny (0). + assert_eq!(run_jet(&Bitcoin::CurrentIndex), Value::u32(0)); + // num_inputs (ONE -> 2^32): number of inputs (1). + assert_eq!(run_jet(&Bitcoin::NumInputs), Value::u32(1)); + + // tx_hash / tap_env_hash / sig_all_hash are ONE -> 2^256; just make sure + // they execute (their C impls dereference the live txEnv, so a wrong/null + // env would crash rather than return Ok). + for jet in [Bitcoin::TxHash, Bitcoin::TapEnvHash, Bitcoin::SigAllHash] { + let out = run_jet(&jet); + assert_eq!(out.ty().to_string(), "2^256", "{jet:?} output type"); + } +} + +/// bip_0340_verify is env-free on the bitcoin backend (C lives in the shared +/// jets-secp256k1.c); make sure its pointer resolves and it does not panic. +#[test] +fn bip_0340_verify_ptr_resolves() { + let ptr = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::Bip0340Verify); + let ptr2 = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::SigAllHash); + let ptr3 = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::CheckLockHeight); + // Unwired jets still panic here; these must not. + let _ = (ptr, ptr2, ptr3); +} + +/// `check_lock_height` reads a 32-bit source and returns unit iff that height +/// is <= the transaction's lock height. Feed an in-range and an out-of-range +/// value and confirm the C jet consults the live environment. +#[test] +fn check_lock_height_executes_against_env() { + use crate::node::SimpleFinalizer; + + let res_for = |x: u32| { + Context::with_context(|ctx| { + let prog = Node::jet(&ctx, &Bitcoin::CheckLockHeight); // 2^32 -> 1 + let prog = prog + .finalize_types_non_program() + .expect("finalizing types") + .finalize(&mut SimpleFinalizer::new(None.into_iter())) + .expect("finalizing"); + let env = dummy_env(); // lock_time = 0 => lock height 0 + let mut mac = BitMachine::for_program(&prog).expect("program bounds"); + mac.input(&Value::u32(x)).expect("input"); + mac.exec(&prog, &env) + }) + }; + + // 0 <= 0 -> Ok (unit), C returns true. + assert_eq!(res_for(0).expect("should satisfy lock"), Value::unit()); + // 5 <= 0 is false -> C returns false -> JetFailed. + assert!( + res_for(5).is_err(), + "height beyond lock should fail the jet" + ); +} From e7012f6c33b21c3d1bab45cc09b412a33777c450 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 16 Nov 2026 16:35:22 +0200 Subject: [PATCH 5/9] analysis: make cost padding minimal and fix budget overflow Review follow-up on the split padding API. Get_padding_size over-padded in two cases, both verified against an independent model of the budget arithmetic over deficits 1..70000: - A deficit of 1 was assumed impossible ("deficit >= 2 here"), but it is reachable: Cost::from_milliweight(51_001) on an empty witness has a deficit of 1 and the old code returned a 1-byte item where a single zero byte suffices. Restore an explicit deficit <= 1 arm. - The calculation ignored growth of the CompactSize *item-count* prefix when appending the padding item crosses 252 or 65535 items. Those extra bytes are free budget, so the required item is shorter: 252 empty items with a 3 WU deficit returned 2 bytes where 1 is enough. Subtract the prefix growth from the deficit. This bug predates the split and only ever over-pads, never under-pads. Also restore saturation at the u32 boundary in get_budget: the previous version converted before saturating, so lengths within 50 of u32::MAX would panic rather than clamp. Only reachable with ~4 GiB witnesses. Two doc comments were wrong: - "Bitcoin has no annex": BIP 341 defines the annex on Bitcoin and this crate extracts it (jet/bitcoin/c_env.rs) and has AnnexHash and CurrentAnnexHash jets. Say instead that a 0x50-leading item would be read as the annex rather than as padding. The stronger claim that an all-zero item is invalid does not hold, because Bitcoin Simplicity has no witness layout yet; document that the caller owns placement. - The Elements advice to build an all-zero item for non-Liquid Elements describes an invalid spend: Elements requires stack.size() == 2 after removing the annex, control block and script, so padding must be an annex. Drop the advice. Strengthen both padding tests: assert the padding item is minimal by shortening it rather than removing it (removal hid the prefix-growth bug), and add the deficit-1 and 252-item cases. --- src/analysis.rs | 107 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 85 insertions(+), 22 deletions(-) diff --git a/src/analysis.rs b/src/analysis.rs index c853b93c..893ef532 100644 --- a/src/analysis.rs +++ b/src/analysis.rs @@ -120,18 +120,18 @@ impl Cost { /// is one stack item. Both Bitcoin and Elements serialize the witness stack /// identically: a CompactSize item count, followed by each item as a /// CompactSize length prefix and its bytes. The math is therefore - /// chain-agnostic, and this method is available under the `bitcoin` feature - /// (which `elements` implies) so it can be shared by both. - #[cfg(feature = "bitcoin")] + /// chain-agnostic, and this method is available under both the `bitcoin` and + /// `elements` features (the latter implies the former) so it can be shared. + #[cfg(any(feature = "bitcoin", feature = "elements"))] fn get_budget(script_witness: &[Vec]) -> U32Weight { // Serialized witness stack size, in bytes. let mut serialized_len = compact_size_len(script_witness.len()); for item in script_witness { serialized_len += compact_size_len(item.len()) + item.len(); } - let budget = serialized_len.saturating_add(50); - let budget = - u32::try_from(budget).expect("Serialized witness stack must be shorter than 2^32"); + let budget = u32::try_from(serialized_len) + .expect("Serialized witness stack must be shorter than 2^32") + .saturating_add(50); U32Weight(budget) } @@ -150,10 +150,16 @@ impl Cost { /// so the transaction input has enough budget to cover the cost. /// /// The returned length is chain-agnostic: adding a stack item of length `L` - /// increases the serialized witness-stack budget by `CompactSize(L) + L`, - /// which depends only on the item's length, not its content. Bitcoin and - /// Elements therefore require the same padding *length*; only the bytes - /// that fill it differ (see [`Self::get_padding_bytes`]). + /// increases the serialized witness-stack budget by `CompactSize(L) + L` + /// (plus any growth of the item-count prefix, see below), which depends only + /// on the item's length, not its content. Bitcoin and Elements therefore + /// require the same padding *length*; only the bytes that fill it differ + /// (see [`Self::get_padding_bytes`]). + /// + /// The length returned is the *smallest* item that brings the witness within + /// budget. Note that appending the item may itself grow the CompactSize + /// item-count prefix (when the stack crosses 252 or 65 535 items), and those + /// extra bytes count towards the budget. /// /// The script witness is passed as `&[Vec]`, where each inner `Vec` /// is one witness stack item (the padding item is *not* yet included). @@ -173,12 +179,28 @@ impl Cost { // // 1. CompactSize(item_len): the length prefix of the padding item // 2. item_len: the padding item bytes themselves + // 3. the growth of the *item-count* prefix, if adding this item takes + // the stack across a CompactSize boundary (252 -> 253 items, or + // 65535 -> 65536 items) // // CompactSize uses 1 byte for values <= 252, 3 bytes for <= 65535, // and 5 bytes for larger values. The overhead subtracted must account // for the actual CompactSize encoding length of the resulting item. let deficit = (weight - budget).0 as usize; // cast safety: 32-bit machine or higher + // Adding one item grows the item-count prefix by this much. This is + // usually 0; it is 2 when the stack crosses into a new CompactSize + // bucket, in which case the extra bytes are free budget. + let count_prefix_growth = + compact_size_len(script_witness.len() + 1) - compact_size_len(script_witness.len()); + let deficit = deficit.saturating_sub(count_prefix_growth); + // A deficit of 1 is reachable and needs no padding at all on the item + // length itself: appending a single zero byte adds CompactSize(1) + 1 + // bytes (plus any count-prefix growth), which already covers it. + if deficit <= 1 { + return Some(1); + } + // Each arm below yields the number of bytes *after* a fixed 1-byte // component of the item, and the `+1` at the return below makes that // component explicit. What the fixed byte *is* depends on the chain: @@ -186,9 +208,6 @@ impl Cost { // more zero byte. Either way the serialized item length is the same, // which is why the deficit math is chain-agnostic; only the contents // differ (see `get_padding_bytes`). - // - // Note `deficit >= 2` here: the function returns early when the cost - // already fits, and a deficit of 0 or 1 cannot occur. let padding_len = match deficit { // item_len <= 252, compact_size uses 1 byte, overhead = 2 0..=253 => deficit.saturating_sub(2), @@ -213,8 +232,14 @@ impl Cost { /// transaction input has enough budget to cover the cost. /// /// This is the Bitcoin-specific form: the padding is a single all-zero - /// witness stack item. (Bitcoin has no annex, so the padding must be a - /// regular stack item; a leading `0x50` byte would be misread as an annex.) + /// witness stack item. A leading `0x50` byte is avoided because BIP 341 + /// defines an annex prefix on Bitcoin and this crate extracts it, so a + /// `0x50`-leading item would be interpreted as the annex rather than as + /// padding. + /// + /// Simplicity on Bitcoin does not yet define a witness layout, so there is + /// no consensus rule that this item must satisfy; it is the caller's + /// responsibility to place it where the eventual layout expects it. #[cfg(all(feature = "bitcoin", not(feature = "elements")))] pub fn get_padding_bytes(self, script_witness: &[Vec]) -> Option> { self.get_padding_size(script_witness) @@ -230,9 +255,10 @@ impl Cost { /// /// To build an annex of total length `L` (as returned by /// [`Self::get_padding_size`]) this returns `[0x50]` followed by `L - 1` - /// zero bytes. Callers targeting non-Liquid Elements (where annexes are - /// unavailable) should instead use the length and build their own all-zero - /// item, as Bitcoin does. + /// zero bytes. The annex form is required on Elements: after removing the + /// annex, control block and script, the interpreter requires the remaining + /// stack to have exactly two items, so padding supplied as an extra plain + /// stack item is rejected. #[cfg(feature = "elements")] pub fn get_padding_bytes(self, script_witness: &[Vec]) -> Option> { self.get_padding_size(script_witness).map(|len| { @@ -598,8 +624,21 @@ mod tests { witness.extend(std::iter::once(annex_bytes)); assert!(cost.is_budget_valid(&witness)); - witness.pop(); - assert!(!cost.is_budget_valid(&witness), "Padding must be minimal"); + // The padding item must be minimal: an item one byte shorter + // must not suffice. Removing the item entirely is a weaker + // check, because the length prefix (and possibly the + // item-count prefix) makes the deficits non-linear. + // + // Skipped for a 1-byte annex: a zero-length item is not a + // valid annex (it must start with 0x50), so 1 is the floor. + if size > 1 { + let last = witness.last_mut().expect("non-empty"); + last.pop(); + assert!( + !cost.is_budget_valid(&witness), + "Padding of {size} bytes is not minimal" + ); + } } } } @@ -611,13 +650,28 @@ mod tests { // Empty witness stack budget is 51 WU: 50 free weight + 1 length byte. let empty = 51_000; + // A deficit of 1 is reachable (the old code claimed otherwise) and is + // satisfied by the smallest possible item, a single zero byte. + // A milliweight of 51_000 rounds up to 51 WU, which is exactly valid; + // 51_001 rounds up to 52 WU, a deficit of 1. + assert!(Cost::from_milliweight(empty).is_budget_valid(&[])); + let one_byte_deficit = Cost::from_milliweight(empty + 1); + assert!(!one_byte_deficit.is_budget_valid(&[])); + assert_eq!(one_byte_deficit.get_padding_size(&[]), Some(1)); + let test_vectors = vec![ + (Cost::from_milliweight(empty + 2_000), vec![], 1usize), (Cost::from_milliweight(empty + 2_001), vec![], 2usize), ( Cost::from_milliweight(8_045_103), vec![vec![], vec![0; 497], vec![0; 32], vec![0; 33]], 7_424usize, ), + // Appending an item to a stack of 252 items grows the item-count + // prefix from 1 byte to 3 bytes, so those two extra bytes count + // towards the budget and the shortest item covers the deficit. + // Budget for 252 empty items is 1 + 252 + 50 = 303 WU. + (Cost::from_milliweight(306_000), vec![vec![]; 252], 1usize), // Boundary arms, where a one-byte shift in the CompactSize length // prefix changes the answer. For these deficits the returned item // is the smallest that covers the deficit: a 252-byte item would @@ -657,8 +711,17 @@ mod tests { witness.push(padding); assert!(cost.is_budget_valid(&witness)); - witness.pop(); - assert!(!cost.is_budget_valid(&witness), "Padding must be minimal"); + // The padding item must be minimal: an item one byte shorter must + // not suffice (transiently excluding the 252-item prefix-growth + // case, where a shorter item is genuinely enough). + let last = witness.last_mut().expect("non-empty"); + if last.len() > 1 { + last.pop(); + assert!( + !cost.is_budget_valid(&witness), + "Padding of {size} bytes is not minimal" + ); + } } } } From d3d1595b7a1508e5b1d0f73b6795a658942a515e Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 16 Nov 2026 16:35:59 +0200 Subject: [PATCH 6/9] simplicity-sys: drop the hand-written Bitcoin env-jet FFI declarations The 8 extern declarations and their 8 wrappers duplicate what the jet generator already emits: each declaration repeats the same #[link_name] in jets_ffi.rs, and each wrapper duplicates a jets_wrapper::bitcoin_* function, which is what c_jet_ptr actually routes Bitcoin jets through. Nothing referenced them. They also diverge from the generated declarations on the ABI: they take `frameItem src` by value where the generated ones take `*const CFrameItem`, the form the WRAP_ macro uses so the signature is valid on wasm32. Keeping both invites the by-value version being wired up later. Delete the declarations, the wrappers and the macro, and the two stale "will uncomment in a later commit" comments. This also settles the code-generation question in the pull request description: the Bitcoin env jets are covered by the generator, so there is nothing to reconcile. --- simplicity-sys/src/c_jets/c_env/bitcoin.rs | 64 ---------------------- 1 file changed, 64 deletions(-) diff --git a/simplicity-sys/src/c_jets/c_env/bitcoin.rs b/simplicity-sys/src/c_jets/c_env/bitcoin.rs index 3467d5df..b7d5688a 100644 --- a/simplicity-sys/src/c_jets/c_env/bitcoin.rs +++ b/simplicity-sys/src/c_jets/c_env/bitcoin.rs @@ -2,7 +2,6 @@ use hashes::sha256; -use crate::c_jets::frame_ffi::CFrameItem; use crate::ffi::sha256::CSha256Midstate; use crate::ffi::{c_size_t, c_uchar, c_uint, c_uint_fast32_t}; @@ -69,8 +68,6 @@ pub struct CTapEnv { _data: (), } -// Will uncomment in a later commit; need to update libsimplicity first so these -// symbols have something to link against. extern "C" { #[link_name = "rustsimplicity_0_8_c_sizeof_rawBitcoinBuffer"] pub static c_sizeof_rawBuffer: c_size_t; @@ -109,39 +106,6 @@ extern "C" { pub fn simplicity_mallocTapEnv(rawEnv: *const CRawTapEnv) -> *mut CTapEnv; #[link_name = "rustsimplicity_0_8_bitcoin_mallocTransaction"] pub fn simplicity_mallocTransaction(rawTx: *const CRawTransaction) -> *mut CTransaction; - - // Bitcoin jets whose C implementations read the transaction environment. - // Each has signature `bool f(frameItem* dst, frameItem src, const txEnv* env)` - // (note `src` is passed *by value*, matching the C definitions in bitcoinJets.c). - #[link_name = "rustsimplicity_0_8_bitcoin_sig_all_hash"] - pub fn bitcoin_sig_all_hash(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) -> bool; - #[link_name = "rustsimplicity_0_8_bitcoin_check_lock_height"] - pub fn bitcoin_check_lock_height( - dst: *mut CFrameItem, - src: CFrameItem, - env: *const CTxEnv, - ) -> bool; - #[link_name = "rustsimplicity_0_8_bitcoin_check_lock_distance"] - pub fn bitcoin_check_lock_distance( - dst: *mut CFrameItem, - src: CFrameItem, - env: *const CTxEnv, - ) -> bool; - #[link_name = "rustsimplicity_0_8_bitcoin_check_lock_duration"] - pub fn bitcoin_check_lock_duration( - dst: *mut CFrameItem, - src: CFrameItem, - env: *const CTxEnv, - ) -> bool; - #[link_name = "rustsimplicity_0_8_bitcoin_current_index"] - pub fn bitcoin_current_index(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) - -> bool; - #[link_name = "rustsimplicity_0_8_bitcoin_num_inputs"] - pub fn bitcoin_num_inputs(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) -> bool; - #[link_name = "rustsimplicity_0_8_bitcoin_tx_hash"] - pub fn bitcoin_tx_hash(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) -> bool; - #[link_name = "rustsimplicity_0_8_bitcoin_tap_env_hash"] - pub fn bitcoin_tap_env_hash(dst: *mut CFrameItem, src: CFrameItem, env: *const CTxEnv) -> bool; } impl CTxEnv { @@ -170,34 +134,6 @@ impl CRawBuffer { } } -// Safe wrappers around the bitcoin environment jets above. These expose a -// Rust-safe signature (`&mut CFrameItem`, `&CTxEnv`) that can be used directly -// as a `JetEnvironment::c_jet_ptr` function pointer, mirroring how the -// elements backend exposes its jets via the `jets_wrapper` module. We cannot -// hand out the raw `extern "C"` functions as fn pointers because `c_jet_ptr` -// returns a safe (non-extern) function pointer. -macro_rules! bitcoin_env_jet_wrapper { - ($name:ident, $ffi:ident) => { - pub fn $name(dst: &mut CFrameItem, src: CFrameItem, env: &CTxEnv) -> bool { - // SAFETY: we pass valid references through as pointers to a C - // function that treats them as borrowed (`frameItem* dst`, - // `const txEnv* env`) and `src` is forwarded by value exactly as - // the C `frameItem src` parameter expects. - unsafe { $ffi(dst, src, env) } - } - }; -} - -bitcoin_env_jet_wrapper!(sig_all_hash, bitcoin_sig_all_hash); -bitcoin_env_jet_wrapper!(check_lock_height, bitcoin_check_lock_height); -bitcoin_env_jet_wrapper!(check_lock_distance, bitcoin_check_lock_distance); -bitcoin_env_jet_wrapper!(check_lock_duration, bitcoin_check_lock_duration); -bitcoin_env_jet_wrapper!(current_index, bitcoin_current_index); -bitcoin_env_jet_wrapper!(num_inputs, bitcoin_num_inputs); -bitcoin_env_jet_wrapper!(tx_hash, bitcoin_tx_hash); -bitcoin_env_jet_wrapper!(tap_env_hash, bitcoin_tap_env_hash); - -// Will uncomment in a later commit; need to update libsimplicity first. #[cfg(test)] mod tests { use core::mem::{align_of, size_of}; From bd81e0386971784606e8c9942e5f7b5ac386c97e Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 16 Nov 2026 16:56:58 +0200 Subject: [PATCH 7/9] jet: check the Bitcoin tables against the vendored C, not a copy of them The previous spec_tests.rs copied the generated CMR and cost tables back into the test source. That compares the generator against itself and never reads the vendored C, so it cannot catch drift between primitiveJetNode.inc and the generated Rust, which is the thing worth checking. It also has to be regenerated by hand whenever a cost changes. Replace the 4065-line copy with a parser over the vendored .inc that, for every jet in Bitcoin::ALL, looks up the entry by the C symbol the generated c_jet_ptr dispatches to and compares both the CMR (eight big-endian u32 words) and the cost. This fails if the .inc moves under a stale table. It also stops the test from passing vacuously: an assertion that cannot find its entry now fails instead of being skipped. --- src/jet/bitcoin/spec_tests.rs | 4206 ++------------------------------- 1 file changed, 155 insertions(+), 4051 deletions(-) diff --git a/src/jet/bitcoin/spec_tests.rs b/src/jet/bitcoin/spec_tests.rs index 2429dbbf..9a3f5aca 100644 --- a/src/jet/bitcoin/spec_tests.rs +++ b/src/jet/bitcoin/spec_tests.rs @@ -1,4065 +1,169 @@ // SPDX-License-Identifier: CC0-1.0 -//! Checks that the generated Bitcoin jet CMR and cost tables agree with the -//! values recorded in libsimplicity's `primitiveJetNode.inc`. +//! Checks that every Bitcoin jet's Rust `cmr()` and `cost()` agree with the +//! values in libsimplicity's vendored `primitiveJetNode.inc`. +//! +//! Unlike a frozen copy of the generated table, this re-reads the C data the +//! generator is itself derived from, so it catches drift between the generated +//! Rust and the C: if a cost or CMR changes in the `.inc` without a matching +//! regeneration, this test fails. `update_jets.sh --check` only verifies that +//! the generator output is unchanged; it cannot see the `.inc` moving +//! underneath it. + +use std::collections::HashMap; use super::Bitcoin; -use crate::analysis::Cost; use crate::jet::Jet; use crate::merkle::cmr::Cmr; +/// The vendored C data, included at compile time. +const PRIMITIVE_JET_NODE_INC: &str = + include_str!("../../../simplicity-sys/depend/simplicity/bitcoin/primitiveJetNode.inc"); + +/// The generated `c_jet_ptr` mapping from `Bitcoin` variant to C symbol, used +/// to pair each Rust jet with its `.inc` entry. +const GENERATED_INIT: &str = include_str!("../init/bitcoin.rs"); + +/// A single `.inc` entry. +struct JetSpec { + cmr: Cmr, + cost_milliweight: u32, +} + +/// Parse the subset of `primitiveJetNode.inc` we care about: for each +/// `[NAME] = { ... }` block, the `.jet` symbol and the `.cmr`/`.cost` fields. +/// +/// The generator emits this file as a plain C array initialiser with one field +/// per line, so a line-oriented parse is sufficient. +fn parse_inc(inc: &str) -> HashMap { + let mut out = HashMap::new(); + let mut symbol: Option = None; + let mut cmr_bytes: Option<[u8; 32]> = None; + let mut cost: Option = None; + + for line in inc.lines() { + let line = line.trim(); + if let Some(rest) = line.strip_prefix(", .jet = ") { + symbol = Some(rest.trim().to_owned()); + } else if let Some(rest) = line.strip_prefix(", .cmr = {{") { + cmr_bytes = Some(parse_cmr(rest)); + } else if let Some(rest) = line.strip_prefix(", .cost = ") { + let digits: String = rest.chars().take_while(|c| c.is_ascii_digit()).collect(); + cost = Some(digits.parse().expect("cost digits")); + } else if line == "}" { + if let (Some(sym), Some(cmr), Some(c)) = (symbol.take(), cmr_bytes.take(), cost.take()) + { + out.insert( + sym, + JetSpec { + cmr: Cmr::from_byte_array(cmr), + cost_milliweight: c, + }, + ); + } + } + } + out +} + +/// Parse a `.cmr = {{0x49425a86u, 0xe20a676du, ...}}` line into 32 bytes. +/// Each word is big-endian; the words appear in order. +fn parse_cmr(rest: &str) -> [u8; 32] { + let mut bytes = [0u8; 32]; + let mut n = 0usize; + for word in rest.split(',') { + let word = word.trim().trim_end_matches('}').trim(); + let hex = word + .strip_prefix("0x") + .and_then(|w| w.strip_suffix('u')) + .expect("cmr word is 0x...u"); + let value = u32::from_str_radix(hex, 16).expect("cmr word hex"); + bytes[n * 4..n * 4 + 4].copy_from_slice(&value.to_be_bytes()); + n += 1; + } + assert_eq!(n, 8, "cmr must have 8 u32 words, got {n}"); + bytes +} + +/// Parse the generated `c_jet_ptr` function to map every `Bitcoin::Variant` to +/// the `jets_wrapper` symbol it dispatches to (e.g. `Bitcoin::Add16` -> +/// `add_16`, `Bitcoin::TxHash` -> `bitcoin_tx_hash`). +fn parse_symbol_map(init: &str) -> HashMap { + let mut map = HashMap::new(); + for line in init.lines() { + let line = line.trim(); + let Some((lhs, rhs)) = line.split_once("=>") else { + continue; + }; + let Some(variant) = lhs.trim().strip_prefix("Bitcoin::") else { + continue; + }; + let variant = variant.trim().trim_end_matches(',').trim(); + let rhs = rhs.trim().trim_end_matches(','); + if let Some(symbol) = rhs.rsplit("::").next() { + map.insert(variant.to_owned(), symbol.to_owned()); + } + } + map +} + +/// The wrapper symbol is the `.jet` symbol in the `.inc` with its +/// `rustsimplicity___` prefix removed. +fn lookup<'a>(specs: &'a HashMap, symbol: &str) -> Option<&'a JetSpec> { + specs.iter().find_map(|(sym, spec)| { + let rest = sym.strip_prefix("rustsimplicity_")?; + // Skip the two version components (all digits, underscore-separated). + let mut parts = rest.splitn(3, '_'); + let major = parts.next()?; + let minor = parts.next()?; + let name = parts.next()?; + let is_version = |s: &str| !s.is_empty() && s.bytes().all(|b| b.is_ascii_digit()); + (is_version(major) && is_version(minor) && name == symbol).then_some(spec) + }) +} + #[test] -fn cmr_matches_spec() { - assert_eq!( - Bitcoin::Add16.cmr(), - Cmr::from_byte_array([ - 0x49, 0x42, 0x5a, 0x86, 0xe2, 0x0a, 0x67, 0x6d, 0x8b, 0x87, 0xe3, 0xc1, 0xa9, 0xb8, - 0xea, 0x6e, 0xc7, 0x5d, 0x85, 0x9c, 0x12, 0xc5, 0x1b, 0xcb, 0x7f, 0xa9, 0xf9, 0x69, - 0x12, 0xc3, 0x49, 0xcf - ]) - ); - assert_eq!( - Bitcoin::Add32.cmr(), - Cmr::from_byte_array([ - 0x46, 0x68, 0xcd, 0x55, 0xe8, 0xd1, 0x59, 0x19, 0x53, 0x32, 0x70, 0x14, 0xec, 0x64, - 0xc8, 0xe7, 0xd5, 0x2b, 0x86, 0xb5, 0x3e, 0x11, 0xc0, 0x14, 0x57, 0xea, 0xf2, 0xc3, - 0xd3, 0xce, 0xbf, 0x9f - ]) - ); - assert_eq!( - Bitcoin::Add64.cmr(), - Cmr::from_byte_array([ - 0xbe, 0x2b, 0x75, 0x19, 0x30, 0x3a, 0x67, 0xee, 0xa6, 0xb4, 0x82, 0x95, 0x0e, 0xda, - 0x83, 0x43, 0x5e, 0x1d, 0xe8, 0x55, 0x9c, 0x39, 0x4a, 0x23, 0x62, 0x22, 0xff, 0x5b, - 0xf0, 0x89, 0xd3, 0x46 - ]) - ); - assert_eq!( - Bitcoin::Add8.cmr(), - Cmr::from_byte_array([ - 0xdf, 0xa1, 0x79, 0xad, 0xf4, 0x55, 0x0b, 0x28, 0x48, 0x73, 0xbf, 0x30, 0x12, 0x3e, - 0x0d, 0x4e, 0x54, 0x06, 0x9b, 0x08, 0x58, 0x34, 0xce, 0x56, 0x58, 0x15, 0xef, 0x7e, - 0x45, 0x78, 0x4a, 0xcb - ]) - ); - assert_eq!( - Bitcoin::All16.cmr(), - Cmr::from_byte_array([ - 0x24, 0xf4, 0x82, 0xa5, 0x13, 0xd3, 0x33, 0x62, 0x01, 0x5d, 0x28, 0xdf, 0x4b, 0xb6, - 0xc3, 0xee, 0x08, 0xab, 0x8a, 0xfb, 0xbd, 0x25, 0x57, 0x1f, 0x0e, 0xa8, 0x9d, 0x8c, - 0xab, 0xa3, 0x14, 0x04 - ]) - ); - assert_eq!( - Bitcoin::All32.cmr(), - Cmr::from_byte_array([ - 0xa7, 0x16, 0x52, 0x2d, 0x0f, 0x37, 0x87, 0xc8, 0xb4, 0xd5, 0x07, 0x64, 0x7f, 0x1f, - 0x80, 0x7b, 0x67, 0xf3, 0x20, 0xd6, 0xeb, 0x67, 0xb8, 0x4b, 0x60, 0x9c, 0xec, 0x1d, - 0x2f, 0x12, 0x21, 0x8a - ]) - ); - assert_eq!( - Bitcoin::All64.cmr(), - Cmr::from_byte_array([ - 0x7a, 0xee, 0xfe, 0x2e, 0xce, 0x24, 0xba, 0xb3, 0x7c, 0x6e, 0x54, 0x30, 0xee, 0xd4, - 0x19, 0xfc, 0xd5, 0xf0, 0x37, 0x91, 0x2d, 0x17, 0x70, 0xcb, 0x7d, 0x65, 0x20, 0xdc, - 0xe5, 0x25, 0x29, 0x1a - ]) - ); - assert_eq!( - Bitcoin::All8.cmr(), - Cmr::from_byte_array([ - 0x46, 0x37, 0xf4, 0x0e, 0x5f, 0x47, 0x26, 0xb0, 0x05, 0x70, 0x76, 0x5a, 0xc7, 0x94, - 0xe2, 0x9e, 0xd1, 0xbb, 0x26, 0x55, 0xff, 0xc4, 0x12, 0xb2, 0xdc, 0x41, 0x25, 0x8e, - 0x41, 0xaa, 0xc6, 0x24 - ]) - ); - assert_eq!( - Bitcoin::And1.cmr(), - Cmr::from_byte_array([ - 0x10, 0x68, 0x4d, 0x0d, 0xd7, 0x2c, 0xb0, 0xa8, 0x26, 0xa8, 0x63, 0x83, 0x4e, 0x01, - 0x1f, 0x50, 0xfa, 0x0d, 0x55, 0x8b, 0xa7, 0x7d, 0x6b, 0x9f, 0x49, 0xa1, 0xac, 0x22, - 0x90, 0x2a, 0x6a, 0xd0 - ]) - ); - assert_eq!( - Bitcoin::And16.cmr(), - Cmr::from_byte_array([ - 0x37, 0x3c, 0x73, 0x0f, 0xad, 0x3e, 0x88, 0x47, 0x99, 0x1a, 0xa4, 0x17, 0xd9, 0xf0, - 0x80, 0xee, 0x1c, 0xb8, 0x8a, 0x7f, 0x72, 0x06, 0xf3, 0xfa, 0x84, 0x0b, 0x19, 0x50, - 0x77, 0x61, 0xfb, 0x23 - ]) - ); - assert_eq!( - Bitcoin::And32.cmr(), - Cmr::from_byte_array([ - 0x13, 0xb0, 0x2c, 0x4c, 0x60, 0xae, 0x6e, 0xa4, 0x91, 0x16, 0x16, 0x49, 0xac, 0xf9, - 0xa4, 0x7a, 0x70, 0x25, 0xaf, 0x84, 0x7d, 0x5f, 0x58, 0x1e, 0x6f, 0x1c, 0xcc, 0xfb, - 0x21, 0xd3, 0x00, 0x1d - ]) - ); - assert_eq!( - Bitcoin::And64.cmr(), - Cmr::from_byte_array([ - 0x92, 0x18, 0x55, 0x35, 0xd4, 0x50, 0x54, 0x07, 0xde, 0xa3, 0xc8, 0xa6, 0x08, 0x26, - 0xed, 0xe6, 0x4a, 0x8f, 0xbb, 0x3d, 0xb4, 0x86, 0xd5, 0x6f, 0x64, 0x2d, 0x21, 0x7c, - 0x29, 0xcb, 0xd7, 0x95 - ]) - ); - assert_eq!( - Bitcoin::And8.cmr(), - Cmr::from_byte_array([ - 0x26, 0x9a, 0x1b, 0x44, 0x62, 0x66, 0xf8, 0xf4, 0xa4, 0xa3, 0x8f, 0xa7, 0xe7, 0xe3, - 0x91, 0x82, 0xf1, 0x52, 0x14, 0x36, 0x14, 0x2b, 0xad, 0xed, 0xf3, 0xaa, 0x63, 0xfb, - 0x2f, 0x17, 0x2d, 0x2f - ]) - ); - assert_eq!( - Bitcoin::AnnexHash.cmr(), - Cmr::from_byte_array([ - 0x51, 0xfa, 0x19, 0x13, 0xa6, 0x29, 0x73, 0x48, 0x4a, 0x70, 0x0a, 0xf3, 0xff, 0x93, - 0x26, 0x94, 0xd3, 0x89, 0x0a, 0xe0, 0xad, 0x87, 0xa4, 0x55, 0xda, 0xf4, 0x90, 0x6f, - 0x22, 0x4a, 0x48, 0xd5 - ]) - ); - assert_eq!( - Bitcoin::Bip0340Verify.cmr(), - Cmr::from_byte_array([ - 0x49, 0x15, 0x65, 0xfe, 0x23, 0xa7, 0xbd, 0xc1, 0x84, 0x2b, 0xe7, 0x49, 0x50, 0x93, - 0x37, 0xf9, 0x68, 0x90, 0xd5, 0xb3, 0x58, 0xb3, 0x65, 0x20, 0x90, 0xda, 0x55, 0x66, - 0x54, 0xe2, 0x95, 0x49 - ]) - ); - assert_eq!( - Bitcoin::BuildTapbranch.cmr(), - Cmr::from_byte_array([ - 0xef, 0x8e, 0x92, 0x91, 0x9b, 0x26, 0x08, 0xea, 0x6b, 0x5b, 0xcd, 0xd3, 0x9c, 0x51, - 0x78, 0xe5, 0x46, 0x24, 0x95, 0x53, 0x91, 0x4b, 0x0f, 0x8d, 0x33, 0x73, 0x5d, 0x28, - 0x86, 0xe1, 0xa5, 0xe8 - ]) - ); - assert_eq!( - Bitcoin::BuildTapleafSimplicity.cmr(), - Cmr::from_byte_array([ - 0x22, 0x41, 0x19, 0x09, 0x98, 0x41, 0x47, 0xde, 0x8f, 0x5a, 0x04, 0x28, 0x35, 0x8b, - 0x47, 0x16, 0xdb, 0x08, 0x76, 0x64, 0xa7, 0x28, 0x56, 0x08, 0x52, 0xb0, 0xe6, 0x16, - 0xeb, 0xc6, 0x2d, 0x30 - ]) - ); - assert_eq!( - Bitcoin::BuildTaptweak.cmr(), - Cmr::from_byte_array([ - 0xf1, 0x92, 0xdb, 0x17, 0x06, 0x60, 0x8d, 0xef, 0x16, 0x5d, 0xbd, 0xda, 0x72, 0xa3, - 0x8c, 0x88, 0x82, 0xcb, 0x36, 0xc6, 0xda, 0x47, 0x07, 0x0d, 0x8a, 0x5f, 0x58, 0x96, - 0xfb, 0xda, 0x84, 0x34 - ]) - ); - assert_eq!( - Bitcoin::CheckLockDistance.cmr(), - Cmr::from_byte_array([ - 0x38, 0xfd, 0xf7, 0xdd, 0x28, 0x53, 0x86, 0x70, 0xfb, 0x34, 0xc1, 0xbf, 0xe7, 0x2f, - 0x17, 0xe2, 0xca, 0x57, 0x84, 0xf8, 0x7f, 0xed, 0x88, 0xea, 0xb5, 0x84, 0x79, 0x2b, - 0x39, 0x74, 0xbd, 0x18 - ]) - ); - assert_eq!( - Bitcoin::CheckLockDuration.cmr(), - Cmr::from_byte_array([ - 0x77, 0x50, 0x38, 0x32, 0x6e, 0xae, 0x25, 0xc7, 0x20, 0x9b, 0x24, 0x43, 0x06, 0xea, - 0xa9, 0xf9, 0x20, 0x4c, 0x7e, 0xce, 0x2d, 0xd6, 0x3b, 0x45, 0x2e, 0x10, 0x01, 0x7f, - 0xa4, 0xea, 0x53, 0xcf - ]) - ); - assert_eq!( - Bitcoin::CheckLockHeight.cmr(), - Cmr::from_byte_array([ - 0xb9, 0x0f, 0x15, 0x1f, 0x45, 0xb4, 0xeb, 0x37, 0x21, 0x06, 0x21, 0xf9, 0x70, 0x0a, - 0x36, 0xc8, 0xc5, 0x04, 0xbe, 0xe0, 0x67, 0x77, 0x11, 0x63, 0xa8, 0xb8, 0x3a, 0x77, - 0x18, 0xe6, 0x68, 0x6a - ]) - ); - assert_eq!( - Bitcoin::CheckLockTime.cmr(), - Cmr::from_byte_array([ - 0xa4, 0x51, 0xeb, 0xb2, 0x25, 0xd6, 0xb1, 0x33, 0xa5, 0xe6, 0x35, 0x39, 0x78, 0x00, - 0xd4, 0x87, 0xb3, 0x96, 0x8b, 0x0d, 0xe5, 0x5c, 0x96, 0xeb, 0x82, 0xf2, 0x90, 0xec, - 0xff, 0x9c, 0x25, 0x90 - ]) - ); - assert_eq!( - Bitcoin::CheckSigVerify.cmr(), - Cmr::from_byte_array([ - 0xb5, 0x80, 0x15, 0x54, 0x6d, 0x28, 0x52, 0x66, 0x5d, 0xd2, 0x1b, 0xf1, 0x12, 0x66, - 0x26, 0x70, 0x20, 0xfa, 0x5e, 0x27, 0x50, 0x01, 0xdd, 0x46, 0x18, 0xfa, 0x41, 0x56, - 0x25, 0x95, 0x2e, 0x68 - ]) - ); - assert_eq!( - Bitcoin::Ch1.cmr(), - Cmr::from_byte_array([ - 0x73, 0xb2, 0xa9, 0x81, 0xd7, 0x21, 0x98, 0x6f, 0x8c, 0xde, 0xd6, 0x97, 0xe0, 0x63, - 0x05, 0xd4, 0x58, 0x54, 0x10, 0x2d, 0xff, 0x20, 0xc0, 0xe5, 0xb9, 0x8a, 0xe1, 0x76, - 0x23, 0x2f, 0xf2, 0x5b - ]) - ); - assert_eq!( - Bitcoin::Ch16.cmr(), - Cmr::from_byte_array([ - 0x78, 0xde, 0x46, 0x5e, 0x61, 0xd9, 0xa5, 0x0f, 0x78, 0x25, 0x2f, 0xf4, 0xab, 0x23, - 0xc9, 0xe6, 0x3a, 0xe6, 0x8c, 0x76, 0x9d, 0x36, 0x66, 0x12, 0x71, 0x20, 0x7d, 0xc6, - 0x93, 0xf4, 0x69, 0xb4 - ]) - ); - assert_eq!( - Bitcoin::Ch32.cmr(), - Cmr::from_byte_array([ - 0xed, 0x93, 0xbe, 0xf1, 0xf6, 0x6e, 0x3a, 0x75, 0xe6, 0x12, 0x06, 0x02, 0xec, 0xee, - 0x67, 0x40, 0x65, 0x3e, 0x7b, 0xd4, 0x6e, 0x07, 0xeb, 0x77, 0x14, 0x4e, 0xf1, 0xbb, - 0x2c, 0x9d, 0xe5, 0x3d - ]) - ); - assert_eq!( - Bitcoin::Ch64.cmr(), - Cmr::from_byte_array([ - 0xce, 0xd0, 0x07, 0x9b, 0x0b, 0xd1, 0xcc, 0x00, 0x20, 0x9a, 0x7c, 0xbc, 0x23, 0xf1, - 0x3d, 0xfd, 0x20, 0x28, 0x08, 0xf0, 0xf5, 0x25, 0x7d, 0x8a, 0x50, 0xac, 0x54, 0x3e, - 0x64, 0xee, 0x3a, 0x05 - ]) - ); - assert_eq!( - Bitcoin::Ch8.cmr(), - Cmr::from_byte_array([ - 0xc7, 0x07, 0xca, 0x72, 0x3e, 0x24, 0xf6, 0xb2, 0x5b, 0xf3, 0x94, 0xa9, 0x9a, 0x4d, - 0x75, 0xe8, 0x13, 0x79, 0xb4, 0x67, 0x84, 0x38, 0xac, 0x78, 0x9d, 0xee, 0x18, 0x8e, - 0xdc, 0xce, 0x75, 0xfa - ]) - ); - assert_eq!( - Bitcoin::Complement1.cmr(), - Cmr::from_byte_array([ - 0x1b, 0xcf, 0xae, 0x13, 0xd5, 0xd2, 0x37, 0xa0, 0xbb, 0x9b, 0x1d, 0x75, 0x32, 0x04, - 0x74, 0x62, 0xb2, 0x76, 0x90, 0xde, 0x5c, 0xac, 0x0e, 0x20, 0x19, 0x29, 0x89, 0x64, - 0x57, 0x93, 0x40, 0x60 - ]) - ); - assert_eq!( - Bitcoin::Complement16.cmr(), - Cmr::from_byte_array([ - 0x81, 0xad, 0x4d, 0x2c, 0x3d, 0x16, 0xbf, 0x34, 0x0a, 0xf3, 0x88, 0x6d, 0x35, 0x5c, - 0xc5, 0xbd, 0x1d, 0x59, 0x67, 0xe1, 0x6a, 0xce, 0x92, 0x4f, 0x19, 0xec, 0xf7, 0xd4, - 0x86, 0xd6, 0xc7, 0xe9 - ]) - ); - assert_eq!( - Bitcoin::Complement32.cmr(), - Cmr::from_byte_array([ - 0x13, 0x74, 0x2c, 0x18, 0x04, 0xa9, 0x6e, 0x6c, 0x03, 0x95, 0x28, 0xbf, 0xd0, 0x3b, - 0x8c, 0xf2, 0xb4, 0x62, 0x52, 0x6b, 0xb1, 0x81, 0xa3, 0xd8, 0xb4, 0x32, 0xf9, 0x9a, - 0xc4, 0xf5, 0xa7, 0xef - ]) - ); - assert_eq!( - Bitcoin::Complement64.cmr(), - Cmr::from_byte_array([ - 0x65, 0xb7, 0xbd, 0x09, 0x36, 0x39, 0xc5, 0x6d, 0xa2, 0x85, 0xce, 0xfa, 0x2d, 0x04, - 0x64, 0x64, 0x5e, 0x14, 0xdd, 0x13, 0x64, 0x2f, 0x34, 0x95, 0x7d, 0x47, 0x37, 0xbd, - 0x52, 0xfa, 0xc5, 0x88 - ]) - ); - assert_eq!( - Bitcoin::Complement8.cmr(), - Cmr::from_byte_array([ - 0x95, 0x4b, 0x70, 0xdc, 0xec, 0x53, 0x9e, 0x6b, 0x67, 0xdf, 0xfe, 0xc5, 0x3c, 0xf2, - 0x4a, 0x66, 0x99, 0x39, 0x60, 0x8b, 0x22, 0x3f, 0x5f, 0x8b, 0x6d, 0x12, 0x9d, 0xaa, - 0x48, 0xca, 0x1c, 0xf0 - ]) - ); - assert_eq!( - Bitcoin::CurrentAnnexHash.cmr(), - Cmr::from_byte_array([ - 0xce, 0xd9, 0x02, 0x2e, 0xdc, 0x69, 0x24, 0x1f, 0xe7, 0x07, 0x49, 0xa7, 0xf5, 0xd4, - 0x89, 0xc3, 0x13, 0x5e, 0xe8, 0xc9, 0x6f, 0xe6, 0x4c, 0x44, 0x64, 0x40, 0x1f, 0x98, - 0x51, 0xd7, 0xa1, 0x7d - ]) - ); - assert_eq!( - Bitcoin::CurrentIndex.cmr(), - Cmr::from_byte_array([ - 0x0e, 0x8c, 0x96, 0x4c, 0x2f, 0x2b, 0x34, 0x90, 0x36, 0x2f, 0x3b, 0xbc, 0x74, 0x83, - 0xde, 0xa3, 0x7f, 0xda, 0x81, 0x0b, 0x69, 0x31, 0x4f, 0xf6, 0x64, 0xfe, 0xa0, 0xe3, - 0x27, 0x08, 0xec, 0x8f - ]) - ); - assert_eq!( - Bitcoin::CurrentPrevOutpoint.cmr(), - Cmr::from_byte_array([ - 0x64, 0x43, 0x39, 0x1b, 0x34, 0x40, 0x86, 0x84, 0x6d, 0x5a, 0x17, 0xa6, 0x2e, 0x3e, - 0x06, 0x28, 0x2a, 0xd6, 0x96, 0x2c, 0x4d, 0xfc, 0xed, 0x2f, 0x6a, 0x83, 0xd0, 0xdf, - 0xbf, 0x6a, 0x5c, 0x54 - ]) - ); - assert_eq!( - Bitcoin::CurrentScriptHash.cmr(), - Cmr::from_byte_array([ - 0x23, 0x49, 0x8d, 0xd6, 0x64, 0x5e, 0xd1, 0x38, 0xb3, 0x44, 0x93, 0x7c, 0xf6, 0x54, - 0xaa, 0xff, 0xa6, 0x27, 0xf8, 0x5a, 0x47, 0xca, 0xa6, 0x89, 0x54, 0xf1, 0x3f, 0x4c, - 0x6a, 0x4d, 0xc7, 0x72 - ]) - ); - assert_eq!( - Bitcoin::CurrentScriptSigHash.cmr(), - Cmr::from_byte_array([ - 0x34, 0xa3, 0xc5, 0x5d, 0x14, 0x73, 0x74, 0xd8, 0xf3, 0xa1, 0x76, 0x1b, 0xba, 0xb2, - 0x86, 0x96, 0x84, 0x55, 0x40, 0x4c, 0x2c, 0xa0, 0x3f, 0x69, 0x39, 0x3f, 0x63, 0x39, - 0xd0, 0xf5, 0x8b, 0x59 - ]) - ); - assert_eq!( - Bitcoin::CurrentSequence.cmr(), - Cmr::from_byte_array([ - 0xc4, 0x9f, 0x76, 0xac, 0x79, 0xf8, 0xf1, 0x5c, 0x40, 0x9b, 0xa8, 0x15, 0xc1, 0x6e, - 0xdc, 0xb8, 0xd1, 0x1e, 0x9a, 0x07, 0x56, 0x5c, 0x8e, 0x09, 0xb6, 0x3e, 0x7f, 0xdf, - 0x31, 0x03, 0x00, 0x9f - ]) - ); - assert_eq!( - Bitcoin::CurrentValue.cmr(), - Cmr::from_byte_array([ - 0x91, 0xb9, 0x6e, 0x82, 0x9e, 0x3b, 0x49, 0x72, 0xb0, 0xcb, 0x09, 0x1a, 0x0a, 0x90, - 0x4b, 0xa4, 0x11, 0x33, 0x8a, 0xbf, 0xc0, 0x8d, 0xa7, 0x86, 0xd5, 0xa8, 0x4f, 0x04, - 0x9b, 0x5b, 0xa3, 0xb8 - ]) - ); - assert_eq!( - Bitcoin::Decompress.cmr(), - Cmr::from_byte_array([ - 0x89, 0x00, 0x56, 0xdf, 0x82, 0x8a, 0x76, 0x6e, 0xe9, 0xf6, 0x56, 0x07, 0x22, 0x1e, - 0x89, 0x46, 0xfa, 0x77, 0xc2, 0x56, 0xbb, 0x96, 0xe2, 0x31, 0xe1, 0x94, 0xd3, 0x00, - 0x8c, 0xf3, 0x56, 0xf6 - ]) - ); - assert_eq!( - Bitcoin::Decrement16.cmr(), - Cmr::from_byte_array([ - 0x35, 0xfd, 0xa3, 0x8b, 0x67, 0x2c, 0x38, 0x31, 0xd8, 0xca, 0x11, 0xa4, 0xf3, 0xa9, - 0x59, 0x62, 0x22, 0x52, 0x9e, 0xb1, 0xc1, 0x5f, 0x8c, 0x70, 0x50, 0x13, 0x97, 0x7d, - 0x7d, 0xfb, 0x5d, 0x8b - ]) - ); - assert_eq!( - Bitcoin::Decrement32.cmr(), - Cmr::from_byte_array([ - 0x3b, 0x2b, 0x19, 0x39, 0x55, 0x22, 0x84, 0xf6, 0x14, 0x69, 0x4b, 0xa1, 0x8d, 0xce, - 0x70, 0xce, 0xe4, 0x76, 0xff, 0x42, 0xdc, 0xd0, 0x89, 0xe1, 0xa3, 0xc0, 0xa4, 0x2b, - 0xeb, 0xd1, 0x08, 0xf6 - ]) - ); - assert_eq!( - Bitcoin::Decrement64.cmr(), - Cmr::from_byte_array([ - 0x7e, 0xf7, 0xbd, 0xd3, 0x5d, 0xb6, 0x85, 0xae, 0x99, 0x05, 0x53, 0x37, 0x35, 0xa2, - 0xc7, 0xa7, 0xcc, 0xbc, 0x17, 0x08, 0xae, 0x63, 0x6f, 0x93, 0x1b, 0x5c, 0xe0, 0x26, - 0xe5, 0xa1, 0x7f, 0xed - ]) - ); - assert_eq!( - Bitcoin::Decrement8.cmr(), - Cmr::from_byte_array([ - 0xe3, 0x64, 0xf2, 0xe5, 0xc0, 0x8a, 0xe0, 0x11, 0x8e, 0xbe, 0x99, 0x3e, 0x8b, 0x3c, - 0x95, 0x8c, 0x2b, 0xcc, 0x60, 0x62, 0xa3, 0x3b, 0xaa, 0xb9, 0x28, 0xc0, 0x4b, 0x3e, - 0xc9, 0x32, 0xf5, 0x1b - ]) - ); - assert_eq!( - Bitcoin::Divides16.cmr(), - Cmr::from_byte_array([ - 0x10, 0xbb, 0x18, 0x18, 0x0e, 0xab, 0x5b, 0xad, 0xdc, 0x16, 0x5d, 0x03, 0x37, 0xc4, - 0xad, 0xa0, 0x88, 0xe1, 0x57, 0xb1, 0xaa, 0x67, 0x83, 0x34, 0x2a, 0x45, 0x20, 0xa3, - 0x24, 0xdd, 0x9d, 0x2b - ]) - ); - assert_eq!( - Bitcoin::Divides32.cmr(), - Cmr::from_byte_array([ - 0xf5, 0xe8, 0xe7, 0x8c, 0x82, 0x76, 0x9a, 0x48, 0xc9, 0x10, 0x3e, 0x44, 0xdd, 0xb4, - 0x7f, 0x84, 0x1d, 0x76, 0x93, 0xb0, 0x41, 0x9e, 0x5e, 0x7d, 0xa4, 0xe6, 0x8b, 0x78, - 0xb2, 0x37, 0xa5, 0x72 - ]) - ); - assert_eq!( - Bitcoin::Divides64.cmr(), - Cmr::from_byte_array([ - 0x9e, 0xbd, 0x55, 0xfa, 0xe4, 0x18, 0x88, 0x5e, 0xea, 0x04, 0xc3, 0xcd, 0xff, 0xf5, - 0x31, 0xb7, 0xd7, 0x14, 0xd0, 0x59, 0x4f, 0xa7, 0xda, 0x87, 0xeb, 0x65, 0x55, 0xd3, - 0x6b, 0x95, 0x3d, 0xb2 - ]) - ); - assert_eq!( - Bitcoin::Divides8.cmr(), - Cmr::from_byte_array([ - 0xa2, 0x36, 0xbc, 0x3e, 0x5c, 0xf4, 0xd2, 0x56, 0x40, 0x8b, 0xa3, 0x8c, 0x1e, 0xae, - 0xe7, 0x36, 0x9a, 0x9c, 0x40, 0x2f, 0x74, 0xbc, 0xd1, 0xc8, 0x02, 0xf9, 0x09, 0x4f, - 0xbf, 0x36, 0x80, 0x3d - ]) - ); - assert_eq!( - Bitcoin::Divide16.cmr(), - Cmr::from_byte_array([ - 0x52, 0xab, 0xfe, 0xf1, 0x79, 0x75, 0x4c, 0x90, 0xf9, 0xa4, 0x26, 0x0f, 0x32, 0x3a, - 0x8c, 0xa4, 0x95, 0x15, 0x92, 0x90, 0x2b, 0x8e, 0xcb, 0xd6, 0x4b, 0xa4, 0x26, 0x56, - 0xfa, 0xc0, 0x59, 0x68 - ]) - ); - assert_eq!( - Bitcoin::Divide32.cmr(), - Cmr::from_byte_array([ - 0x4a, 0x8a, 0xe5, 0x35, 0x44, 0xe1, 0x47, 0xed, 0x02, 0x25, 0x04, 0x23, 0x79, 0x34, - 0xcc, 0x25, 0x44, 0x79, 0xbc, 0xf9, 0x3d, 0xe1, 0xe1, 0x97, 0x4d, 0xda, 0xb3, 0xbb, - 0x51, 0x6e, 0x60, 0x6c - ]) - ); - assert_eq!( - Bitcoin::Divide64.cmr(), - Cmr::from_byte_array([ - 0xd7, 0x02, 0x5d, 0x05, 0xad, 0xfa, 0xe6, 0x6b, 0x47, 0x10, 0xd0, 0xff, 0x1e, 0x87, - 0xe8, 0x28, 0x15, 0x57, 0x3e, 0x9c, 0xb6, 0x31, 0xb4, 0xc7, 0xd1, 0x3d, 0x2f, 0x1b, - 0xe4, 0xdd, 0x26, 0xd2 - ]) - ); - assert_eq!( - Bitcoin::Divide8.cmr(), - Cmr::from_byte_array([ - 0x40, 0xcd, 0x1d, 0xac, 0xea, 0x24, 0x66, 0x9b, 0x6a, 0x58, 0x9b, 0x61, 0x47, 0x54, - 0x74, 0xaf, 0x31, 0xd1, 0x4f, 0x8d, 0x46, 0x87, 0x70, 0x84, 0x52, 0xd3, 0xdf, 0x37, - 0x30, 0x25, 0x31, 0x26 - ]) - ); - assert_eq!( - Bitcoin::DivMod128_64.cmr(), - Cmr::from_byte_array([ - 0x9a, 0x94, 0x43, 0xa2, 0xb5, 0x41, 0xe2, 0x9f, 0x27, 0x2f, 0xfd, 0x56, 0x7d, 0x1b, - 0xf7, 0x42, 0xd6, 0x8c, 0xcb, 0xe9, 0x53, 0x8a, 0x87, 0x29, 0x1b, 0x0c, 0xa6, 0x38, - 0x15, 0x63, 0xac, 0x2c - ]) - ); - assert_eq!( - Bitcoin::DivMod16.cmr(), - Cmr::from_byte_array([ - 0x39, 0xbc, 0xb5, 0xc0, 0x1d, 0xc1, 0x80, 0x5c, 0x49, 0x19, 0x89, 0x5c, 0xb5, 0x9e, - 0x8f, 0x3b, 0x41, 0x44, 0x67, 0x17, 0xf7, 0xff, 0x48, 0xfd, 0xc9, 0x37, 0xdd, 0x03, - 0x80, 0x24, 0xa0, 0x8a - ]) - ); - assert_eq!( - Bitcoin::DivMod32.cmr(), - Cmr::from_byte_array([ - 0xfb, 0x12, 0x02, 0xf4, 0xe8, 0x66, 0x3a, 0x87, 0xf5, 0x68, 0x99, 0x2a, 0x18, 0x50, - 0x24, 0xc7, 0x0b, 0x4f, 0x07, 0x9f, 0xbe, 0x95, 0x30, 0x01, 0x0f, 0x6d, 0xb2, 0x84, - 0x21, 0x8a, 0xf6, 0xcd - ]) - ); - assert_eq!( - Bitcoin::DivMod64.cmr(), - Cmr::from_byte_array([ - 0x67, 0x64, 0xdf, 0x5e, 0x2a, 0xa0, 0x30, 0x32, 0x6e, 0xe5, 0x44, 0xc6, 0xe5, 0x3f, - 0xf3, 0x8e, 0xf0, 0xb2, 0x85, 0x17, 0x91, 0x5e, 0xec, 0x65, 0xc7, 0x2e, 0xa5, 0x7a, - 0x12, 0x98, 0x28, 0xeb - ]) - ); - assert_eq!( - Bitcoin::DivMod8.cmr(), - Cmr::from_byte_array([ - 0xd3, 0x00, 0x24, 0x4e, 0x48, 0x0d, 0xd9, 0x74, 0x12, 0x13, 0xe4, 0xcb, 0x0e, 0xba, - 0x83, 0x6d, 0x30, 0x59, 0xe7, 0x78, 0xb8, 0x12, 0x2f, 0x78, 0x90, 0x03, 0x26, 0x73, - 0x73, 0x9c, 0x6a, 0x2c - ]) - ); - assert_eq!( - Bitcoin::Eq1.cmr(), - Cmr::from_byte_array([ - 0x65, 0x49, 0xf9, 0x86, 0x20, 0x3a, 0x64, 0x97, 0x35, 0x6e, 0x43, 0x2b, 0x2a, 0xa1, - 0x60, 0xd6, 0xee, 0x87, 0x0b, 0x11, 0x19, 0x08, 0x65, 0xbd, 0x36, 0xa4, 0x7c, 0xb0, - 0x47, 0x04, 0x33, 0xa5 - ]) - ); - assert_eq!( - Bitcoin::Eq16.cmr(), - Cmr::from_byte_array([ - 0x0c, 0x54, 0x02, 0xb0, 0xad, 0xc8, 0xfc, 0x65, 0x70, 0x1b, 0xb7, 0x5b, 0x32, 0x54, - 0xc8, 0x35, 0xf8, 0xfe, 0xc1, 0x30, 0x81, 0xcd, 0x35, 0xe1, 0x32, 0x8f, 0x2b, 0xd7, - 0xdb, 0xd2, 0x3f, 0xa6 - ]) - ); - assert_eq!( - Bitcoin::Eq256.cmr(), - Cmr::from_byte_array([ - 0x26, 0x0e, 0x1d, 0x13, 0x6d, 0xd7, 0x44, 0xfc, 0xb0, 0x50, 0x7a, 0x2d, 0x27, 0x70, - 0x27, 0xa7, 0x72, 0x43, 0x54, 0xeb, 0x17, 0x6b, 0x2f, 0xbf, 0x31, 0xc6, 0xc7, 0xd7, - 0xfb, 0x3e, 0xcd, 0x6f - ]) - ); - assert_eq!( - Bitcoin::Eq32.cmr(), - Cmr::from_byte_array([ - 0xf5, 0xd6, 0xed, 0xc8, 0xb6, 0x16, 0x4e, 0x12, 0x5b, 0xbb, 0xef, 0x08, 0xc9, 0xe0, - 0x8a, 0x1e, 0x6f, 0xd4, 0x92, 0xf5, 0xbd, 0xca, 0x6f, 0xdc, 0x8b, 0x5f, 0x5a, 0x6f, - 0x05, 0xc5, 0xab, 0x96 - ]) - ); - assert_eq!( - Bitcoin::Eq64.cmr(), - Cmr::from_byte_array([ - 0x1f, 0x93, 0xac, 0xb8, 0x09, 0x2f, 0xa0, 0x6d, 0xea, 0xf3, 0xc3, 0x87, 0xf5, 0x4a, - 0x18, 0xff, 0xea, 0xa6, 0x9a, 0x47, 0xa6, 0xf5, 0xca, 0xf4, 0xae, 0x49, 0x7e, 0x5c, - 0xc2, 0xb3, 0x6c, 0x43 - ]) - ); - assert_eq!( - Bitcoin::Eq8.cmr(), - Cmr::from_byte_array([ - 0xd7, 0x52, 0xfa, 0x7f, 0x51, 0x47, 0x30, 0x14, 0xeb, 0xb6, 0x9e, 0x1e, 0x1d, 0x2c, - 0x86, 0xd5, 0x11, 0x48, 0xb6, 0xba, 0xa0, 0x21, 0x37, 0xa4, 0x8f, 0x62, 0xd5, 0x7e, - 0xaf, 0x8d, 0xf1, 0xcd - ]) - ); - assert_eq!( - Bitcoin::Fee.cmr(), - Cmr::from_byte_array([ - 0xfb, 0x9c, 0xa9, 0x39, 0x81, 0x67, 0x3d, 0x1d, 0x23, 0xae, 0xd2, 0x4d, 0x61, 0x2c, - 0x1f, 0x5d, 0xc7, 0xcd, 0x49, 0xf8, 0x6d, 0x34, 0x8e, 0x67, 0xa1, 0x5b, 0xc4, 0xa7, - 0x13, 0x0a, 0xe1, 0x85 - ]) - ); - assert_eq!( - Bitcoin::FeAdd.cmr(), - Cmr::from_byte_array([ - 0xa6, 0xc9, 0x0e, 0x02, 0xfd, 0xe4, 0xee, 0x6e, 0xef, 0x66, 0x67, 0x37, 0x49, 0x2e, - 0x14, 0xaf, 0xc8, 0x76, 0x25, 0x04, 0x97, 0x4a, 0xf5, 0xd5, 0x47, 0x2b, 0xb9, 0x43, - 0x3a, 0xd2, 0xd2, 0x94 - ]) - ); - assert_eq!( - Bitcoin::FeInvert.cmr(), - Cmr::from_byte_array([ - 0x7c, 0x4a, 0xba, 0xce, 0x33, 0xc7, 0x2b, 0x3b, 0xe1, 0xfd, 0x0e, 0xe3, 0x9f, 0xc6, - 0xcb, 0x3e, 0xe5, 0xc8, 0xf1, 0x1e, 0xf2, 0x19, 0x98, 0xc0, 0x60, 0x2b, 0x52, 0x15, - 0xaa, 0x2a, 0x75, 0xc2 - ]) - ); - assert_eq!( - Bitcoin::FeIsOdd.cmr(), - Cmr::from_byte_array([ - 0x30, 0xf5, 0x17, 0x1f, 0x58, 0xf1, 0x08, 0x9d, 0x5d, 0xcf, 0xb6, 0xe6, 0x68, 0x3f, - 0x5a, 0xde, 0x98, 0x4c, 0x07, 0x99, 0x76, 0x3c, 0xa7, 0x38, 0x3f, 0x75, 0xdf, 0x1c, - 0xa0, 0x81, 0x3e, 0xfe - ]) - ); - assert_eq!( - Bitcoin::FeIsZero.cmr(), - Cmr::from_byte_array([ - 0xb0, 0xb7, 0x4d, 0x86, 0x51, 0xff, 0x55, 0x7c, 0xa9, 0x60, 0x44, 0xdd, 0x97, 0x28, - 0x13, 0x38, 0xa8, 0xf7, 0xd3, 0xac, 0xb3, 0x84, 0x7d, 0x03, 0xac, 0xbf, 0x3d, 0x32, - 0xd9, 0x6f, 0xae, 0x55 - ]) - ); - assert_eq!( - Bitcoin::FeMultiply.cmr(), - Cmr::from_byte_array([ - 0x50, 0x6b, 0x93, 0x19, 0xc1, 0x7a, 0x14, 0xa9, 0x46, 0x9d, 0x46, 0x27, 0x61, 0xa3, - 0x30, 0x3a, 0xb4, 0x7d, 0xdb, 0x3a, 0x30, 0x79, 0xfb, 0xa3, 0x40, 0x73, 0xaa, 0x55, - 0x42, 0x16, 0xa3, 0x88 - ]) - ); - assert_eq!( - Bitcoin::FeMultiplyBeta.cmr(), - Cmr::from_byte_array([ - 0x6e, 0x18, 0x0e, 0xea, 0xbe, 0x84, 0x22, 0xb7, 0x99, 0x68, 0xe7, 0x11, 0xdd, 0x00, - 0xa4, 0xb6, 0x57, 0x8b, 0xb2, 0x75, 0xbe, 0xf4, 0x7f, 0xe5, 0xff, 0x96, 0x8f, 0x14, - 0x72, 0xd7, 0x6f, 0x2a - ]) - ); - assert_eq!( - Bitcoin::FeNegate.cmr(), - Cmr::from_byte_array([ - 0xd4, 0x37, 0xea, 0x00, 0x33, 0x98, 0x80, 0xb3, 0x83, 0xd8, 0x5f, 0xb2, 0xae, 0xaf, - 0x20, 0x1b, 0xbe, 0x8f, 0xfc, 0x83, 0x70, 0x50, 0x62, 0xf9, 0xc9, 0x68, 0x59, 0x0d, - 0x5d, 0xb3, 0x37, 0xf6 - ]) - ); - assert_eq!( - Bitcoin::FeNormalize.cmr(), - Cmr::from_byte_array([ - 0xec, 0x0c, 0x3d, 0xd9, 0xc5, 0x28, 0x63, 0x64, 0x78, 0xbe, 0xc0, 0xe1, 0x60, 0xe5, - 0x0a, 0xd9, 0xbf, 0x45, 0x2c, 0x5b, 0x6f, 0x84, 0xe9, 0x40, 0xe1, 0x65, 0x84, 0xeb, - 0x08, 0x5a, 0xce, 0x38 - ]) - ); - assert_eq!( - Bitcoin::FeSquare.cmr(), - Cmr::from_byte_array([ - 0xb9, 0x04, 0x77, 0x2d, 0x74, 0xa1, 0x85, 0xb8, 0x28, 0xeb, 0x15, 0x47, 0x28, 0xd2, - 0x49, 0xc5, 0x08, 0x47, 0x11, 0xe9, 0xa1, 0x83, 0x2b, 0x89, 0xca, 0xf2, 0xaf, 0x59, - 0xf9, 0x60, 0xe1, 0x18 - ]) - ); - assert_eq!( - Bitcoin::FeSquareRoot.cmr(), - Cmr::from_byte_array([ - 0x16, 0xfb, 0x9a, 0xce, 0xbe, 0x8b, 0x5b, 0x87, 0xf2, 0xea, 0x7d, 0xb6, 0xaa, 0x3a, - 0x2a, 0xf8, 0x8c, 0xa2, 0xb5, 0x8f, 0x02, 0xcd, 0xc8, 0x7e, 0x7c, 0xe6, 0xbe, 0x0c, - 0x1f, 0xfc, 0xe0, 0x14 - ]) - ); - assert_eq!( - Bitcoin::FullAdd16.cmr(), - Cmr::from_byte_array([ - 0xc5, 0x03, 0xb0, 0x78, 0xdd, 0xe3, 0x99, 0xc6, 0x3a, 0xc4, 0xa2, 0x32, 0xbd, 0x2a, - 0x32, 0x9b, 0x04, 0x30, 0x8c, 0x75, 0xea, 0xec, 0x53, 0xa2, 0xf8, 0x89, 0xb8, 0xdf, - 0x0d, 0x03, 0x34, 0x72 - ]) - ); - assert_eq!( - Bitcoin::FullAdd32.cmr(), - Cmr::from_byte_array([ - 0xa7, 0xaf, 0xd0, 0x40, 0xfc, 0xb0, 0xb2, 0xf2, 0x71, 0x90, 0x78, 0x1a, 0xe5, 0x3a, - 0x6c, 0xca, 0x00, 0xe9, 0xfe, 0x59, 0x53, 0x11, 0x15, 0xc2, 0x58, 0xcc, 0xb6, 0x9d, - 0x3b, 0xe5, 0xa2, 0x13 - ]) - ); - assert_eq!( - Bitcoin::FullAdd64.cmr(), - Cmr::from_byte_array([ - 0x80, 0xa3, 0xef, 0x6c, 0xdb, 0x84, 0xae, 0x7c, 0x8d, 0xbc, 0xf3, 0xa1, 0x84, 0x24, - 0x84, 0xc0, 0x98, 0xdf, 0x6f, 0x19, 0x42, 0x7a, 0x5a, 0x4a, 0xdf, 0xe7, 0x6c, 0xd5, - 0xff, 0x28, 0x36, 0xca - ]) - ); - assert_eq!( - Bitcoin::FullAdd8.cmr(), - Cmr::from_byte_array([ - 0x4b, 0x90, 0x76, 0xb8, 0xc1, 0xad, 0x56, 0xc9, 0xdb, 0x6b, 0xb3, 0xba, 0xf5, 0x93, - 0x89, 0x54, 0x46, 0xce, 0x61, 0xc7, 0x4f, 0x79, 0x7e, 0xb8, 0xb2, 0x30, 0xd2, 0x05, - 0x42, 0x1c, 0x96, 0x17 - ]) - ); - assert_eq!( - Bitcoin::FullDecrement16.cmr(), - Cmr::from_byte_array([ - 0xfb, 0xa3, 0xc9, 0x78, 0x6e, 0xa3, 0x07, 0xf6, 0xd8, 0x54, 0x34, 0xfd, 0xa2, 0x56, - 0x24, 0x82, 0x43, 0xa0, 0x0b, 0xac, 0x9a, 0x53, 0x53, 0xb6, 0x1e, 0xd3, 0x9c, 0x60, - 0x55, 0xb6, 0x93, 0xb0 - ]) - ); - assert_eq!( - Bitcoin::FullDecrement32.cmr(), - Cmr::from_byte_array([ - 0x62, 0x3d, 0x21, 0xd0, 0x46, 0x79, 0x22, 0xc0, 0x01, 0xc5, 0x65, 0x68, 0x61, 0xd0, - 0xdd, 0xb8, 0x60, 0xc0, 0xc9, 0xa8, 0x6b, 0xd4, 0xcf, 0xdc, 0x37, 0xa1, 0x4c, 0x14, - 0x06, 0xe3, 0x44, 0x6e - ]) - ); - assert_eq!( - Bitcoin::FullDecrement64.cmr(), - Cmr::from_byte_array([ - 0x14, 0x8b, 0x3e, 0xe1, 0xf7, 0x49, 0xea, 0x0b, 0xfb, 0xa7, 0x63, 0xbe, 0xe9, 0x99, - 0xa2, 0x96, 0x77, 0x45, 0x6e, 0xae, 0x9e, 0xf5, 0x3a, 0xd8, 0x78, 0xf8, 0xb6, 0x14, - 0x94, 0xf0, 0x8f, 0x00 - ]) - ); - assert_eq!( - Bitcoin::FullDecrement8.cmr(), - Cmr::from_byte_array([ - 0xb4, 0x1a, 0xfe, 0x97, 0x4e, 0xaa, 0x11, 0x82, 0xac, 0x46, 0x10, 0x52, 0x1e, 0x28, - 0x27, 0x81, 0x31, 0x8c, 0xe2, 0x95, 0xa3, 0xf2, 0x3f, 0x0b, 0x87, 0x6a, 0xe2, 0x69, - 0x67, 0x3f, 0xb1, 0xdf - ]) - ); - assert_eq!( - Bitcoin::FullIncrement16.cmr(), - Cmr::from_byte_array([ - 0xa6, 0x8e, 0xcc, 0xdb, 0x9e, 0xad, 0x29, 0x26, 0xc3, 0xe4, 0x5b, 0x4b, 0xae, 0x43, - 0x1c, 0xc4, 0x66, 0xd5, 0x8b, 0x8f, 0xac, 0xc9, 0x5a, 0x1b, 0x48, 0x44, 0xb9, 0x12, - 0xdf, 0x56, 0x76, 0xdf - ]) - ); - assert_eq!( - Bitcoin::FullIncrement32.cmr(), - Cmr::from_byte_array([ - 0xd0, 0xeb, 0x0e, 0x94, 0xa5, 0xc2, 0x57, 0x13, 0xeb, 0x94, 0x4c, 0xad, 0x4d, 0x70, - 0x1c, 0x6a, 0x96, 0x88, 0x09, 0xbc, 0x1a, 0xf9, 0x03, 0xfd, 0xb1, 0x1e, 0x6f, 0xad, - 0x0b, 0xb3, 0x1b, 0x10 - ]) - ); - assert_eq!( - Bitcoin::FullIncrement64.cmr(), - Cmr::from_byte_array([ - 0xc0, 0x03, 0xd2, 0xe9, 0xb0, 0xa5, 0x10, 0xc2, 0xdd, 0x78, 0x3e, 0x7d, 0x64, 0xeb, - 0x87, 0xb3, 0x38, 0x55, 0xd3, 0x29, 0x90, 0xdf, 0xc2, 0x86, 0x26, 0x6e, 0x47, 0x8d, - 0xa4, 0xe7, 0x47, 0x91 - ]) - ); - assert_eq!( - Bitcoin::FullIncrement8.cmr(), - Cmr::from_byte_array([ - 0x0b, 0xea, 0x24, 0x29, 0x18, 0xf2, 0xdd, 0x17, 0x64, 0x77, 0x78, 0x11, 0xe4, 0x44, - 0x28, 0x63, 0x93, 0x52, 0x25, 0xb0, 0xf8, 0xb2, 0x39, 0xc2, 0x37, 0x52, 0xf9, 0xd8, - 0x53, 0x92, 0xa1, 0x39 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift16_1.cmr(), - Cmr::from_byte_array([ - 0xb3, 0x66, 0xa8, 0x16, 0x92, 0x2f, 0xc4, 0x55, 0x01, 0x0f, 0xe8, 0x8a, 0x5f, 0x6a, - 0x5c, 0xf2, 0xce, 0xa9, 0x17, 0xe1, 0x2b, 0xd1, 0x40, 0xae, 0x6d, 0x43, 0xb6, 0x41, - 0xe5, 0x7f, 0x42, 0xb3 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift16_2.cmr(), - Cmr::from_byte_array([ - 0x27, 0x96, 0x0d, 0x0d, 0xf2, 0xfb, 0xbc, 0x38, 0x99, 0x3d, 0x86, 0xfb, 0x8f, 0x0c, - 0xd2, 0xc3, 0x43, 0x4e, 0xdb, 0x11, 0x04, 0x82, 0x13, 0xc1, 0x41, 0x18, 0x93, 0xca, - 0x99, 0x33, 0xb2, 0xee - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift16_4.cmr(), - Cmr::from_byte_array([ - 0x65, 0x51, 0x37, 0xbe, 0xc5, 0xc0, 0x36, 0x8f, 0x29, 0xbc, 0x99, 0x2c, 0x88, 0x42, - 0x1a, 0x15, 0x98, 0x56, 0x40, 0x39, 0x7b, 0x61, 0x7f, 0xc4, 0x8d, 0x33, 0x21, 0x0f, - 0xc0, 0x05, 0x3a, 0xd1 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift16_8.cmr(), - Cmr::from_byte_array([ - 0x16, 0x8f, 0x57, 0x6a, 0xa5, 0x6e, 0xa4, 0x7e, 0x07, 0x06, 0x46, 0xe7, 0x88, 0x96, - 0xbe, 0xb2, 0x49, 0x8b, 0x1a, 0xe6, 0xb1, 0xff, 0x9c, 0x78, 0x62, 0x70, 0xe9, 0x55, - 0x65, 0x84, 0x19, 0x29 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift32_1.cmr(), - Cmr::from_byte_array([ - 0xd7, 0xcd, 0x52, 0x24, 0x49, 0x11, 0x8e, 0x81, 0x00, 0xa7, 0x66, 0x2f, 0x4d, 0xf0, - 0x39, 0xf8, 0xca, 0xeb, 0xf4, 0x33, 0xeb, 0x03, 0x9e, 0xdc, 0x42, 0xe8, 0x82, 0x37, - 0x92, 0xcc, 0xea, 0x8a - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift32_16.cmr(), - Cmr::from_byte_array([ - 0x8b, 0xd8, 0x0d, 0x4d, 0x2f, 0x8b, 0x22, 0x46, 0xc1, 0x23, 0x15, 0xc4, 0x28, 0x41, - 0xb4, 0xe4, 0x0a, 0x71, 0xae, 0x76, 0x96, 0x6a, 0x08, 0x95, 0x4d, 0x66, 0x6b, 0x86, - 0x32, 0x86, 0x74, 0x37 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift32_2.cmr(), - Cmr::from_byte_array([ - 0x13, 0x06, 0x3d, 0x62, 0x93, 0x83, 0x29, 0x31, 0x1f, 0xb7, 0xda, 0xbb, 0x15, 0xc3, - 0xfe, 0x58, 0xc2, 0x88, 0x76, 0x83, 0x00, 0x97, 0xec, 0xc6, 0xbf, 0xdd, 0x48, 0x0b, - 0xe1, 0x98, 0x81, 0x46 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift32_4.cmr(), - Cmr::from_byte_array([ - 0x25, 0xa1, 0xb5, 0xdd, 0xe5, 0xdb, 0x28, 0x4e, 0x8a, 0x88, 0x21, 0x26, 0x7c, 0x26, - 0x53, 0x01, 0x14, 0xbb, 0xe6, 0x71, 0xcf, 0xaf, 0xb4, 0x4a, 0x60, 0xd7, 0x50, 0x27, - 0x67, 0xdb, 0x78, 0x2e - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift32_8.cmr(), - Cmr::from_byte_array([ - 0xce, 0x54, 0x70, 0xaf, 0xbf, 0xad, 0xbf, 0xba, 0x68, 0xf9, 0xb2, 0xd5, 0xb0, 0x64, - 0x5a, 0x44, 0x08, 0xbe, 0x6f, 0x85, 0xa6, 0x9c, 0x7f, 0x09, 0xd0, 0x96, 0x45, 0x53, - 0x68, 0x04, 0x87, 0x64 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift64_1.cmr(), - Cmr::from_byte_array([ - 0x05, 0x1f, 0x36, 0x05, 0x86, 0xc3, 0x79, 0xac, 0x2c, 0xe3, 0x99, 0xcb, 0xeb, 0x68, - 0x7e, 0x77, 0x53, 0xb1, 0x5d, 0x73, 0x03, 0xdd, 0x31, 0x6c, 0xbd, 0x12, 0x30, 0x12, - 0x08, 0x7c, 0xc6, 0x6f - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift64_16.cmr(), - Cmr::from_byte_array([ - 0xb2, 0x48, 0xbe, 0x4d, 0xfc, 0xb8, 0x8c, 0x5d, 0x89, 0xb1, 0xca, 0x61, 0x86, 0xa0, - 0x41, 0xe9, 0x02, 0xb4, 0xc8, 0xa6, 0x2b, 0xb1, 0x6e, 0x09, 0xfe, 0x15, 0x61, 0x6e, - 0x0e, 0x3a, 0xbd, 0x6d - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift64_2.cmr(), - Cmr::from_byte_array([ - 0x34, 0xbb, 0x51, 0x62, 0x6b, 0x1d, 0x6b, 0x89, 0x7a, 0xbc, 0x15, 0x5d, 0x03, 0x4f, - 0xe0, 0x66, 0x3a, 0x0e, 0xc0, 0xfd, 0x8f, 0x64, 0x0e, 0x5f, 0xe1, 0xbf, 0x3c, 0xb7, - 0x67, 0x0a, 0x29, 0x25 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift64_32.cmr(), - Cmr::from_byte_array([ - 0x9d, 0xac, 0x8c, 0xd7, 0xfd, 0x8b, 0x48, 0x88, 0x9e, 0x55, 0xc5, 0xaa, 0x12, 0xfe, - 0x97, 0xb7, 0x29, 0xfe, 0xbc, 0x04, 0x1a, 0x9f, 0xff, 0x44, 0xc4, 0xd9, 0xb6, 0xf1, - 0xe0, 0x7e, 0xb4, 0x42 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift64_4.cmr(), - Cmr::from_byte_array([ - 0x94, 0xb7, 0x3d, 0xad, 0xc3, 0xee, 0xeb, 0x2e, 0xe4, 0xa4, 0xd4, 0x44, 0xdd, 0x0f, - 0x72, 0xac, 0x30, 0x62, 0x01, 0xf2, 0xff, 0xcf, 0x71, 0x4b, 0x8e, 0xbe, 0x79, 0x82, - 0x74, 0x4c, 0x0c, 0x7e - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift64_8.cmr(), - Cmr::from_byte_array([ - 0x0e, 0xf7, 0x14, 0x75, 0x7e, 0xcf, 0x11, 0xca, 0x3c, 0x73, 0xce, 0x25, 0xef, 0x24, - 0xee, 0x72, 0x95, 0xdd, 0x41, 0x71, 0xcc, 0x16, 0x28, 0x7f, 0xe6, 0x97, 0x1b, 0xd6, - 0x7b, 0x47, 0x8b, 0x46 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift8_1.cmr(), - Cmr::from_byte_array([ - 0x9b, 0xfa, 0x48, 0xb7, 0xad, 0x51, 0x00, 0x91, 0xba, 0x60, 0x85, 0x44, 0x62, 0xd8, - 0x59, 0xef, 0xd1, 0xa2, 0xaa, 0x18, 0x73, 0x1b, 0x5f, 0x0c, 0x9e, 0x2b, 0xa4, 0xd8, - 0x9d, 0x3a, 0xa8, 0x43 - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift8_2.cmr(), - Cmr::from_byte_array([ - 0x79, 0x7c, 0x20, 0x87, 0x01, 0xb2, 0xa4, 0xe1, 0x04, 0x9e, 0x83, 0xd6, 0x95, 0xf5, - 0x54, 0xb9, 0x84, 0xf5, 0xdb, 0x28, 0x21, 0x52, 0x55, 0x58, 0x7c, 0x37, 0x34, 0x21, - 0x51, 0xb7, 0x24, 0x1d - ]) - ); - assert_eq!( - Bitcoin::FullLeftShift8_4.cmr(), - Cmr::from_byte_array([ - 0x37, 0xbd, 0xac, 0x91, 0x53, 0x8f, 0x22, 0x19, 0xcb, 0x89, 0xdf, 0x0e, 0xf9, 0xf1, - 0x97, 0xcd, 0x68, 0x03, 0x1f, 0x27, 0x67, 0xe8, 0x94, 0xf0, 0x01, 0xc2, 0x6f, 0xff, - 0x5e, 0xeb, 0x58, 0xcd - ]) - ); - assert_eq!( - Bitcoin::FullMultiply16.cmr(), - Cmr::from_byte_array([ - 0x09, 0xba, 0xff, 0x92, 0x1e, 0x9f, 0x14, 0xd1, 0x20, 0x8d, 0x1d, 0xd8, 0x26, 0x4c, - 0xf1, 0xf3, 0xb8, 0x54, 0xc9, 0xaf, 0x21, 0xf7, 0x78, 0xb2, 0xb5, 0x5a, 0x8a, 0x42, - 0x6d, 0xfe, 0x89, 0x28 - ]) - ); - assert_eq!( - Bitcoin::FullMultiply32.cmr(), - Cmr::from_byte_array([ - 0x10, 0xc4, 0xb8, 0xc4, 0xc0, 0xac, 0xd9, 0x73, 0x90, 0xf8, 0x5c, 0xb3, 0xf5, 0xff, - 0xe3, 0x6a, 0x29, 0x20, 0x37, 0xc1, 0x90, 0xee, 0xba, 0xb3, 0xe9, 0x89, 0x34, 0xfe, - 0x93, 0xb2, 0xed, 0x90 - ]) - ); - assert_eq!( - Bitcoin::FullMultiply64.cmr(), - Cmr::from_byte_array([ - 0x2d, 0xb1, 0x9d, 0xba, 0x90, 0xef, 0x86, 0x7b, 0x5a, 0x3e, 0x91, 0x4b, 0x89, 0xfd, - 0xa2, 0xda, 0x63, 0x7c, 0xa8, 0x0c, 0x42, 0x67, 0xe1, 0x98, 0x18, 0x37, 0xee, 0x3c, - 0x6f, 0xe3, 0xda, 0xf5 - ]) - ); - assert_eq!( - Bitcoin::FullMultiply8.cmr(), - Cmr::from_byte_array([ - 0x7f, 0x46, 0xee, 0x72, 0x84, 0xf3, 0x9e, 0x73, 0x42, 0x75, 0xa2, 0x50, 0x9a, 0x0b, - 0x73, 0x7e, 0xd9, 0x39, 0x11, 0x5f, 0x02, 0x19, 0xa5, 0x74, 0xd4, 0x69, 0xcd, 0x30, - 0xb8, 0x19, 0xef, 0xe3 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift16_1.cmr(), - Cmr::from_byte_array([ - 0x7e, 0xbe, 0x0c, 0x66, 0xc3, 0xc7, 0xdc, 0x16, 0xa5, 0x46, 0x9e, 0x91, 0x79, 0x09, - 0x84, 0x17, 0xac, 0x5f, 0x20, 0xa3, 0x9c, 0xc4, 0x1a, 0xc3, 0x82, 0xfb, 0x1d, 0xbd, - 0x98, 0xe8, 0xe3, 0x0f - ]) - ); - assert_eq!( - Bitcoin::FullRightShift16_2.cmr(), - Cmr::from_byte_array([ - 0x8d, 0xb0, 0xc2, 0x16, 0x19, 0xc6, 0x2d, 0x63, 0xd4, 0xc2, 0x7b, 0xfc, 0xf6, 0x47, - 0xd7, 0x09, 0xce, 0x37, 0xbe, 0xd0, 0x57, 0x18, 0xe9, 0x3e, 0x45, 0x15, 0xe2, 0x9e, - 0xf3, 0x73, 0x0c, 0xf4 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift16_4.cmr(), - Cmr::from_byte_array([ - 0x5c, 0x74, 0xb1, 0x32, 0x06, 0x31, 0x79, 0x17, 0xe0, 0x70, 0xe5, 0xfc, 0x1c, 0x82, - 0xf4, 0xc5, 0xc2, 0xfb, 0xe9, 0xf3, 0x1b, 0x81, 0x29, 0x46, 0xba, 0x23, 0x0d, 0x8c, - 0x94, 0xd4, 0x06, 0x16 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift16_8.cmr(), - Cmr::from_byte_array([ - 0x11, 0x05, 0x81, 0x8a, 0xc9, 0x48, 0xd7, 0xbb, 0x63, 0x47, 0x07, 0xe6, 0x9d, 0xbf, - 0x1f, 0x67, 0x90, 0x58, 0xa1, 0x3d, 0x35, 0xfa, 0xc2, 0xa6, 0x4d, 0xf9, 0x72, 0x62, - 0xf2, 0x42, 0xb6, 0x3b - ]) - ); - assert_eq!( - Bitcoin::FullRightShift32_1.cmr(), - Cmr::from_byte_array([ - 0x9b, 0x42, 0xc8, 0xf3, 0x3b, 0xc5, 0x75, 0x0e, 0x2a, 0x83, 0xaa, 0xdb, 0xf2, 0x9c, - 0xc7, 0xfc, 0xb9, 0x50, 0xfe, 0x5a, 0x40, 0xaa, 0x0e, 0xc5, 0x24, 0x52, 0xe5, 0x33, - 0xf8, 0x25, 0xa1, 0x15 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift32_16.cmr(), - Cmr::from_byte_array([ - 0x0a, 0xe5, 0x65, 0x9c, 0x2f, 0xa7, 0x57, 0x94, 0x78, 0xeb, 0xd5, 0x7c, 0x4c, 0x98, - 0xae, 0xe7, 0x77, 0x01, 0x56, 0x45, 0xb2, 0x84, 0x31, 0x81, 0x64, 0xfc, 0xbd, 0x30, - 0x65, 0xfc, 0x87, 0x3c - ]) - ); - assert_eq!( - Bitcoin::FullRightShift32_2.cmr(), - Cmr::from_byte_array([ - 0x57, 0xfb, 0x1c, 0x03, 0xc2, 0xeb, 0x17, 0xf6, 0x23, 0x47, 0x87, 0x34, 0xfd, 0x69, - 0x37, 0xf9, 0xe3, 0xef, 0x02, 0x7c, 0x15, 0x60, 0x03, 0x8f, 0xa6, 0x06, 0x69, 0x05, - 0x17, 0x89, 0xe3, 0x68 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift32_4.cmr(), - Cmr::from_byte_array([ - 0x85, 0x82, 0xcd, 0xfa, 0x74, 0xef, 0x46, 0x6b, 0x81, 0x27, 0xb1, 0x97, 0x88, 0x13, - 0x45, 0x93, 0x99, 0x8e, 0x49, 0x69, 0x00, 0xb3, 0x8f, 0x0f, 0x3d, 0x37, 0x58, 0x18, - 0xd6, 0x73, 0x45, 0x1e - ]) - ); - assert_eq!( - Bitcoin::FullRightShift32_8.cmr(), - Cmr::from_byte_array([ - 0xd9, 0x05, 0x93, 0x2e, 0xbf, 0xca, 0x2a, 0x38, 0x61, 0x9d, 0x80, 0x7e, 0x28, 0xff, - 0x2e, 0x0d, 0x3b, 0xe0, 0x8a, 0x26, 0x06, 0x76, 0xd2, 0x57, 0xef, 0xa0, 0x40, 0xc3, - 0x05, 0xaa, 0xdc, 0x33 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift64_1.cmr(), - Cmr::from_byte_array([ - 0x3c, 0x15, 0x20, 0x9b, 0x99, 0xd2, 0x84, 0x5e, 0x22, 0x5e, 0x14, 0xe1, 0xe9, 0xe5, - 0xe6, 0xa4, 0x87, 0x8b, 0xc8, 0xce, 0xa3, 0xf9, 0xf3, 0x6b, 0x8b, 0x53, 0x5a, 0xc6, - 0x83, 0xe2, 0x9d, 0x00 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift64_16.cmr(), - Cmr::from_byte_array([ - 0x02, 0x85, 0x25, 0x7b, 0x09, 0x0d, 0x8d, 0xa1, 0x28, 0xef, 0x64, 0xa8, 0x0c, 0x8d, - 0x16, 0xfd, 0xc3, 0xbf, 0x5c, 0xe5, 0x0f, 0xcd, 0x56, 0xfe, 0xc5, 0xf9, 0x02, 0x55, - 0xd9, 0xc8, 0xdf, 0x47 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift64_2.cmr(), - Cmr::from_byte_array([ - 0x7e, 0xc2, 0xdd, 0x65, 0xc9, 0xe0, 0x13, 0xe3, 0xe4, 0xce, 0x90, 0xfb, 0xeb, 0x3f, - 0xb1, 0xc7, 0x8c, 0xcc, 0x5d, 0x2a, 0x7d, 0x26, 0xd8, 0xaf, 0x77, 0xf9, 0x9d, 0xe8, - 0x4c, 0xf7, 0x29, 0x73 - ]) +fn generated_tables_match_primitive_jet_node_inc() { + let specs = parse_inc(PRIMITIVE_JET_NODE_INC); + let symbols = parse_symbol_map(GENERATED_INIT); + + assert!( + !specs.is_empty() && !symbols.is_empty(), + "failed to parse the vendored .inc or the generated c_jet_ptr table" ); - assert_eq!( - Bitcoin::FullRightShift64_32.cmr(), - Cmr::from_byte_array([ - 0x35, 0x6f, 0x7d, 0xd4, 0x6b, 0xa3, 0x3f, 0x84, 0xb0, 0x66, 0x72, 0xfd, 0xe9, 0xa2, - 0x97, 0x2e, 0x80, 0xf3, 0xea, 0x96, 0x5a, 0xe8, 0xbc, 0x0b, 0xff, 0x67, 0xaa, 0x2f, - 0x69, 0xf1, 0x0b, 0x56 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift64_4.cmr(), - Cmr::from_byte_array([ - 0x05, 0x46, 0x4a, 0x33, 0x35, 0xaf, 0xbb, 0x09, 0xd0, 0x46, 0x82, 0x8a, 0x92, 0x2c, - 0x4d, 0xa0, 0xec, 0xee, 0xb1, 0x09, 0x77, 0xe4, 0x68, 0x01, 0xc9, 0x3c, 0xdd, 0x66, - 0x8f, 0x22, 0xee, 0x63 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift64_8.cmr(), - Cmr::from_byte_array([ - 0x70, 0x17, 0x2e, 0x1a, 0x69, 0x48, 0xbf, 0x40, 0x12, 0x0e, 0x68, 0xfb, 0x8b, 0x4b, - 0x23, 0xbc, 0x35, 0x5a, 0x12, 0x00, 0x2c, 0xcc, 0x1d, 0xb6, 0x47, 0xc8, 0x9b, 0x12, - 0xd1, 0x0e, 0xc5, 0x06 - ]) - ); - assert_eq!( - Bitcoin::FullRightShift8_1.cmr(), - Cmr::from_byte_array([ - 0x56, 0x69, 0xdb, 0xfc, 0xc6, 0x33, 0xec, 0x0b, 0xdf, 0x59, 0xe2, 0x2f, 0x03, 0xed, - 0x4b, 0x64, 0x19, 0x20, 0x95, 0xf5, 0xdf, 0x20, 0xff, 0xc1, 0x2d, 0xd9, 0x0d, 0x7c, - 0xda, 0x11, 0x37, 0x4f - ]) - ); - assert_eq!( - Bitcoin::FullRightShift8_2.cmr(), - Cmr::from_byte_array([ - 0x1f, 0x94, 0x43, 0x61, 0x09, 0xdf, 0x52, 0xb3, 0x45, 0xfa, 0x3a, 0x89, 0xac, 0x2a, - 0x49, 0xed, 0xc9, 0xd2, 0x85, 0xf2, 0x1f, 0x45, 0xed, 0x11, 0xd7, 0x75, 0xf7, 0xf7, - 0xf3, 0x9d, 0x3e, 0x8f - ]) - ); - assert_eq!( - Bitcoin::FullRightShift8_4.cmr(), - Cmr::from_byte_array([ - 0x71, 0x46, 0x98, 0xa2, 0x76, 0x84, 0xb5, 0xba, 0xa6, 0xb6, 0x48, 0x0e, 0xe3, 0xb2, - 0x57, 0xcb, 0xb7, 0xcd, 0xab, 0x74, 0x72, 0xf3, 0x71, 0xa6, 0x27, 0x06, 0x18, 0xc0, - 0xab, 0x12, 0x90, 0x8b - ]) - ); - assert_eq!( - Bitcoin::FullSubtract16.cmr(), - Cmr::from_byte_array([ - 0x40, 0x09, 0x61, 0x52, 0xb5, 0x4e, 0x74, 0x25, 0x45, 0x55, 0xa6, 0x5d, 0xcc, 0xc6, - 0x29, 0xdf, 0x57, 0xb9, 0x79, 0xc8, 0x47, 0x00, 0x54, 0x50, 0x36, 0xfe, 0x19, 0x0a, - 0x6a, 0xf3, 0xd3, 0x8a - ]) - ); - assert_eq!( - Bitcoin::FullSubtract32.cmr(), - Cmr::from_byte_array([ - 0xe7, 0x93, 0x0d, 0x64, 0x35, 0xa9, 0x68, 0x0b, 0xef, 0xb4, 0x9d, 0xb7, 0xd8, 0x7c, - 0x2f, 0x50, 0xaf, 0xd4, 0x6d, 0x98, 0x88, 0x0d, 0xed, 0x50, 0xe5, 0x05, 0x5f, 0xa3, - 0x09, 0xe1, 0xaf, 0xca - ]) - ); - assert_eq!( - Bitcoin::FullSubtract64.cmr(), - Cmr::from_byte_array([ - 0xff, 0x28, 0x1d, 0xf8, 0xc4, 0x2a, 0x31, 0x59, 0xd9, 0xff, 0xa9, 0x25, 0x16, 0xca, - 0x89, 0x3e, 0x23, 0xb0, 0xeb, 0x93, 0x8b, 0x4c, 0xb0, 0xb3, 0xf1, 0x34, 0x46, 0x8e, - 0x9f, 0x4e, 0xbc, 0x46 - ]) - ); - assert_eq!( - Bitcoin::FullSubtract8.cmr(), - Cmr::from_byte_array([ - 0x7e, 0x3d, 0xcf, 0xe4, 0x56, 0xae, 0x3c, 0x5c, 0x87, 0xde, 0xbf, 0x04, 0x71, 0x89, - 0xc2, 0x74, 0x82, 0xa4, 0xff, 0x4e, 0x8c, 0xfd, 0x1f, 0x17, 0x30, 0xc8, 0x7d, 0x2b, - 0x7b, 0xff, 0x73, 0xba - ]) - ); - assert_eq!( - Bitcoin::GejAdd.cmr(), - Cmr::from_byte_array([ - 0x45, 0xba, 0x7f, 0x3d, 0x1e, 0x1e, 0x6d, 0x34, 0x9f, 0xcf, 0x86, 0x98, 0x7b, 0x0e, - 0x7f, 0x7a, 0xce, 0x66, 0x2e, 0x82, 0x20, 0x1d, 0x35, 0x02, 0x60, 0x45, 0x4e, 0x2f, - 0xfe, 0xec, 0xb5, 0x4d - ]) - ); - assert_eq!( - Bitcoin::GejDouble.cmr(), - Cmr::from_byte_array([ - 0x23, 0xe9, 0x78, 0xf3, 0x41, 0x54, 0x11, 0x9b, 0xde, 0xfc, 0x5d, 0x13, 0xfc, 0xfd, - 0x0a, 0x34, 0xa7, 0x5e, 0x37, 0x26, 0xd6, 0xcb, 0x25, 0x81, 0x33, 0x70, 0xad, 0x7d, - 0x9d, 0xe5, 0xe1, 0x33 - ]) - ); - assert_eq!( - Bitcoin::GejEquiv.cmr(), - Cmr::from_byte_array([ - 0xb9, 0x4b, 0x2a, 0xac, 0x73, 0xa6, 0x7f, 0x44, 0x95, 0x85, 0x99, 0x13, 0x4d, 0xe2, - 0x30, 0x17, 0x9e, 0x9d, 0x6b, 0xb6, 0x47, 0xfd, 0x06, 0x11, 0x15, 0x8a, 0xab, 0xa7, - 0x0b, 0x73, 0xe4, 0x00 - ]) - ); - assert_eq!( - Bitcoin::GejGeAdd.cmr(), - Cmr::from_byte_array([ - 0xf1, 0x16, 0x0b, 0x6f, 0x5e, 0xe2, 0xc5, 0x82, 0xe4, 0x95, 0x66, 0xe6, 0xc3, 0x86, - 0xb3, 0x80, 0x94, 0xab, 0xc1, 0xa7, 0x18, 0x2d, 0x33, 0xa1, 0x50, 0x1f, 0xa2, 0xaa, - 0xf0, 0x0a, 0xf3, 0xea - ]) - ); - assert_eq!( - Bitcoin::GejGeAddEx.cmr(), - Cmr::from_byte_array([ - 0xc3, 0xd7, 0x34, 0x7f, 0xfe, 0x2d, 0x9c, 0x83, 0x9a, 0xac, 0x56, 0x7e, 0x29, 0x98, - 0xe0, 0x16, 0xaf, 0x39, 0x4e, 0x2a, 0x19, 0x29, 0x31, 0x4b, 0x52, 0xe3, 0x1e, 0xed, - 0x67, 0x8e, 0x30, 0xbf - ]) - ); - assert_eq!( - Bitcoin::GejGeEquiv.cmr(), - Cmr::from_byte_array([ - 0x27, 0xc2, 0x99, 0x69, 0x13, 0x9f, 0x8d, 0x57, 0xed, 0xc9, 0x89, 0x5c, 0x30, 0x40, - 0x3d, 0xf0, 0x15, 0xc5, 0x0c, 0xe7, 0x21, 0xc3, 0x81, 0xfb, 0x19, 0x7c, 0x0c, 0x04, - 0x03, 0xf1, 0xdb, 0x0c - ]) - ); - assert_eq!( - Bitcoin::GejInfinity.cmr(), - Cmr::from_byte_array([ - 0xaa, 0xfb, 0x93, 0x80, 0xd6, 0x1a, 0x7f, 0x14, 0x78, 0x46, 0x80, 0x6b, 0x2c, 0xc3, - 0x74, 0xfb, 0xe8, 0x2d, 0xd1, 0xae, 0xd4, 0x85, 0xb9, 0x8a, 0x0f, 0x16, 0x4b, 0x3a, - 0x54, 0xc2, 0xc0, 0xb0 - ]) - ); - assert_eq!( - Bitcoin::GejIsInfinity.cmr(), - Cmr::from_byte_array([ - 0xdb, 0x49, 0x5f, 0xd1, 0x31, 0x42, 0xe9, 0xb3, 0x37, 0x63, 0xfc, 0x6d, 0x48, 0xd2, - 0xfb, 0x0e, 0x71, 0xb0, 0xd9, 0xd9, 0x9b, 0xd7, 0x26, 0xf4, 0x7a, 0xd1, 0x3f, 0xc5, - 0x56, 0x06, 0x70, 0xa2 - ]) - ); - assert_eq!( - Bitcoin::GejIsOnCurve.cmr(), - Cmr::from_byte_array([ - 0xbf, 0x4c, 0xa1, 0x3f, 0xf2, 0x12, 0xe3, 0x4b, 0xf1, 0x7d, 0x90, 0xc1, 0x2e, 0x45, - 0x3d, 0x08, 0xac, 0x7d, 0xaa, 0x4a, 0x47, 0xd5, 0x7e, 0x85, 0xb4, 0x3f, 0x2d, 0x43, - 0x66, 0xd4, 0x3d, 0xda - ]) - ); - assert_eq!( - Bitcoin::GejNegate.cmr(), - Cmr::from_byte_array([ - 0x01, 0xbd, 0x1a, 0x35, 0x1f, 0xb8, 0x16, 0x4c, 0x81, 0x3d, 0x91, 0x6d, 0x07, 0x77, - 0x49, 0x99, 0x6b, 0x7d, 0xb1, 0x18, 0xd3, 0x15, 0x86, 0xca, 0x9d, 0x75, 0xe7, 0x56, - 0x35, 0x18, 0xf4, 0x54 - ]) - ); - assert_eq!( - Bitcoin::GejNormalize.cmr(), - Cmr::from_byte_array([ - 0xec, 0x59, 0x7d, 0x17, 0xe2, 0xef, 0xb6, 0xd2, 0xa0, 0x02, 0xd5, 0x0e, 0x67, 0x75, - 0x27, 0xd3, 0xd4, 0xa2, 0x90, 0x7a, 0x11, 0x9d, 0x68, 0xf1, 0x22, 0x84, 0xb9, 0xa1, - 0xb0, 0xd2, 0x30, 0x3a - ]) - ); - assert_eq!( - Bitcoin::GejRescale.cmr(), - Cmr::from_byte_array([ - 0x29, 0x77, 0xd9, 0x53, 0xef, 0x7a, 0x11, 0x56, 0xce, 0xc6, 0xdb, 0x2d, 0xc2, 0x92, - 0x54, 0x12, 0x75, 0xcb, 0xc8, 0x2f, 0xb8, 0x29, 0xfd, 0x67, 0x1b, 0x97, 0x2e, 0x89, - 0xeb, 0xed, 0x0c, 0x24 - ]) - ); - assert_eq!( - Bitcoin::GejXEquiv.cmr(), - Cmr::from_byte_array([ - 0xf9, 0xf1, 0x89, 0xfc, 0x00, 0xb6, 0x1f, 0x72, 0xf1, 0x0b, 0xaa, 0xa2, 0x1b, 0xcd, - 0x88, 0xe5, 0xd2, 0x2e, 0x0a, 0xa9, 0xb7, 0x50, 0x9a, 0xe1, 0x62, 0xa1, 0x83, 0xa4, - 0xb6, 0x64, 0xa4, 0xaf - ]) - ); - assert_eq!( - Bitcoin::GejYIsOdd.cmr(), - Cmr::from_byte_array([ - 0x9e, 0xb6, 0xe4, 0x53, 0x5f, 0xb6, 0x9b, 0xf6, 0x09, 0x91, 0x65, 0x99, 0xf1, 0x34, - 0x5a, 0xd7, 0x73, 0x5d, 0xa3, 0xf3, 0x94, 0x8d, 0x06, 0x86, 0x90, 0x8e, 0x44, 0xf4, - 0x5b, 0x2f, 0xf6, 0x0c - ]) - ); - assert_eq!( - Bitcoin::Generate.cmr(), - Cmr::from_byte_array([ - 0x14, 0x88, 0x85, 0xac, 0x73, 0x81, 0x31, 0x13, 0xc5, 0x23, 0xe8, 0x09, 0xbe, 0xa4, - 0x7f, 0xfd, 0x8b, 0x1d, 0xaf, 0x37, 0x8d, 0x9d, 0xd5, 0x4b, 0xf9, 0x66, 0xcc, 0xb8, - 0x83, 0xb1, 0xa9, 0x84 - ]) - ); - assert_eq!( - Bitcoin::GeIsOnCurve.cmr(), - Cmr::from_byte_array([ - 0x7d, 0x44, 0x87, 0x19, 0xf5, 0xf9, 0x57, 0x2b, 0xf5, 0x40, 0x2e, 0x12, 0xd1, 0x93, - 0xaf, 0xf6, 0x77, 0x48, 0x2d, 0x66, 0xff, 0x3d, 0xcf, 0x27, 0x48, 0xf2, 0x5c, 0x6b, - 0x73, 0x77, 0x02, 0x8c - ]) - ); - assert_eq!( - Bitcoin::GeNegate.cmr(), - Cmr::from_byte_array([ - 0x3d, 0x2c, 0x8d, 0xe4, 0xc7, 0x01, 0x5f, 0xd3, 0x13, 0x26, 0x95, 0xfd, 0x66, 0xdf, - 0xcf, 0x0f, 0x17, 0x78, 0xc7, 0x91, 0x85, 0x26, 0x8e, 0x9f, 0xae, 0x77, 0x89, 0xda, - 0x53, 0x8e, 0xca, 0x59 - ]) - ); - assert_eq!( - Bitcoin::HashToCurve.cmr(), - Cmr::from_byte_array([ - 0xef, 0x4f, 0x54, 0x8b, 0x3c, 0x6c, 0x75, 0x17, 0x5f, 0x2c, 0xe2, 0xd1, 0x99, 0x3b, - 0x2d, 0x19, 0x9b, 0xeb, 0x16, 0xc0, 0xa1, 0x40, 0x17, 0x5c, 0x48, 0xa1, 0x27, 0x7e, - 0xfc, 0x43, 0xa9, 0x9b - ]) - ); - assert_eq!( - Bitcoin::High1.cmr(), - Cmr::from_byte_array([ - 0xb1, 0x09, 0xcf, 0x1c, 0xce, 0x35, 0xf7, 0xe9, 0xb6, 0x49, 0x67, 0x1a, 0x9b, 0x45, - 0xdb, 0xc2, 0x40, 0x99, 0xa7, 0x13, 0xae, 0xb9, 0xa8, 0x9c, 0xc4, 0xcf, 0x6e, 0xf6, - 0xed, 0x8b, 0x30, 0x8b - ]) - ); - assert_eq!( - Bitcoin::High16.cmr(), - Cmr::from_byte_array([ - 0x03, 0x5d, 0xad, 0xd9, 0xd7, 0xbf, 0x74, 0x33, 0x64, 0x45, 0xe7, 0x1d, 0xdc, 0x4d, - 0x82, 0x02, 0x24, 0xff, 0x7e, 0x38, 0xe0, 0xb8, 0xd5, 0x2b, 0xec, 0x97, 0x29, 0xb5, - 0x72, 0xb5, 0x31, 0xf9 - ]) - ); - assert_eq!( - Bitcoin::High32.cmr(), - Cmr::from_byte_array([ - 0xc5, 0xf1, 0xdf, 0x0d, 0x64, 0xa2, 0x73, 0x7a, 0x63, 0x1b, 0x3a, 0xae, 0x8f, 0x26, - 0x0e, 0x8b, 0x8d, 0xc1, 0x95, 0x7b, 0xd0, 0x92, 0x91, 0x1b, 0x91, 0xd2, 0x07, 0x8a, - 0xd2, 0x1e, 0x41, 0x8a - ]) - ); - assert_eq!( - Bitcoin::High64.cmr(), - Cmr::from_byte_array([ - 0xa3, 0x12, 0x63, 0x3e, 0x0a, 0x23, 0x05, 0xe6, 0x9b, 0x3f, 0x34, 0x1d, 0x91, 0xd6, - 0x83, 0xdd, 0x94, 0x19, 0x6a, 0x2f, 0x90, 0x05, 0xc9, 0xb1, 0x87, 0x2a, 0x2c, 0x15, - 0xad, 0x46, 0xcf, 0x17 - ]) - ); - assert_eq!( - Bitcoin::High8.cmr(), - Cmr::from_byte_array([ - 0xcb, 0xd7, 0x8d, 0x50, 0xaf, 0x77, 0x99, 0x85, 0x5a, 0xdc, 0x49, 0x03, 0xdb, 0xbe, - 0xfc, 0x13, 0x45, 0xd5, 0x14, 0x84, 0xf0, 0x3d, 0x3c, 0x75, 0x5c, 0xaa, 0xa5, 0xca, - 0xa9, 0x7d, 0x4a, 0x14 - ]) - ); - assert_eq!( - Bitcoin::Increment16.cmr(), - Cmr::from_byte_array([ - 0x86, 0x77, 0x49, 0x49, 0x39, 0xb2, 0x7b, 0x86, 0xcb, 0x5a, 0x8c, 0x7f, 0x81, 0x72, - 0xad, 0x55, 0x50, 0x95, 0x31, 0xc9, 0xb0, 0xe1, 0x1e, 0x99, 0x75, 0x7e, 0x29, 0x6c, - 0xc3, 0xc7, 0xc1, 0x92 - ]) - ); - assert_eq!( - Bitcoin::Increment32.cmr(), - Cmr::from_byte_array([ - 0x6b, 0xdb, 0xab, 0x7c, 0xfc, 0x16, 0xc5, 0x03, 0x36, 0x3c, 0x2f, 0x07, 0x7e, 0x02, - 0xc3, 0x35, 0xda, 0x40, 0x61, 0x75, 0xd1, 0x92, 0xfb, 0xef, 0x50, 0xc0, 0x7f, 0xc2, - 0x79, 0xb3, 0xf4, 0x0c - ]) - ); - assert_eq!( - Bitcoin::Increment64.cmr(), - Cmr::from_byte_array([ - 0x20, 0xe7, 0x5e, 0x71, 0x7c, 0xb7, 0x6d, 0x46, 0x95, 0x56, 0x4f, 0x7c, 0x20, 0x22, - 0x1b, 0x7a, 0x01, 0x43, 0x13, 0x87, 0x38, 0xf1, 0x51, 0xaa, 0x19, 0x5e, 0xb1, 0x70, - 0xec, 0x13, 0xc0, 0x49 - ]) - ); - assert_eq!( - Bitcoin::Increment8.cmr(), - Cmr::from_byte_array([ - 0x5f, 0x4e, 0x05, 0x6e, 0xf4, 0xed, 0x8d, 0x68, 0xbf, 0x91, 0x1f, 0xc5, 0xcb, 0x69, - 0x03, 0x7e, 0xbf, 0x6c, 0x92, 0x21, 0x73, 0x43, 0xa8, 0x90, 0x5d, 0x38, 0xc4, 0x32, - 0xc1, 0x83, 0x23, 0x3c - ]) - ); - assert_eq!( - Bitcoin::InputsHash.cmr(), - Cmr::from_byte_array([ - 0xab, 0xbf, 0xe1, 0xc7, 0xd1, 0x15, 0xc4, 0x19, 0x1f, 0x50, 0x48, 0x39, 0xf9, 0x8c, - 0x3f, 0x20, 0x42, 0x2b, 0x84, 0xe7, 0xfa, 0x14, 0xda, 0x14, 0x02, 0x89, 0x6c, 0x4d, - 0x98, 0xbf, 0xa8, 0xd8 - ]) - ); - assert_eq!( - Bitcoin::InputAnnexesHash.cmr(), - Cmr::from_byte_array([ - 0x89, 0xb6, 0x02, 0x70, 0x44, 0x14, 0x1f, 0x20, 0x65, 0xb6, 0xf2, 0x36, 0xcf, 0xcc, - 0x13, 0xb9, 0x68, 0x48, 0x5e, 0x00, 0x74, 0x6b, 0x78, 0x59, 0x28, 0x69, 0x03, 0xc6, - 0x8c, 0x7f, 0x88, 0x0d - ]) - ); - assert_eq!( - Bitcoin::InputAnnexHash.cmr(), - Cmr::from_byte_array([ - 0x94, 0x5b, 0x14, 0x7e, 0x5f, 0x0e, 0xdb, 0x83, 0x2d, 0x62, 0x34, 0x8c, 0xae, 0xea, - 0xc2, 0x24, 0x56, 0xee, 0xe9, 0x44, 0x65, 0x37, 0x6d, 0xbf, 0x59, 0x6b, 0x9d, 0x62, - 0x98, 0x5b, 0x01, 0xb6 - ]) - ); - assert_eq!( - Bitcoin::InputHash.cmr(), - Cmr::from_byte_array([ - 0x3a, 0xd2, 0x22, 0x31, 0xd6, 0xb9, 0xdf, 0xf6, 0xa0, 0xb4, 0xdb, 0xcf, 0xf0, 0x44, - 0xe1, 0x1c, 0x08, 0x2e, 0x04, 0x68, 0x4e, 0x73, 0xce, 0x95, 0xc2, 0x05, 0xe0, 0xc4, - 0x49, 0x6e, 0x5e, 0xca - ]) - ); - assert_eq!( - Bitcoin::InputOutpointsHash.cmr(), - Cmr::from_byte_array([ - 0x17, 0x59, 0xc6, 0xf4, 0x70, 0xb9, 0xab, 0xa6, 0x2a, 0x31, 0x79, 0x1e, 0xa0, 0x10, - 0x56, 0xe3, 0x60, 0x8b, 0xdf, 0x22, 0xf5, 0xdd, 0x43, 0xbf, 0x7d, 0xb0, 0x0e, 0xa5, - 0x82, 0x3f, 0x7c, 0xce - ]) - ); - assert_eq!( - Bitcoin::InputPrevOutpoint.cmr(), - Cmr::from_byte_array([ - 0x5d, 0x17, 0x12, 0x42, 0x09, 0xee, 0x05, 0x21, 0x24, 0xe5, 0x52, 0x38, 0xe0, 0xb6, - 0xa6, 0xfe, 0x85, 0xa4, 0x86, 0x88, 0xc1, 0xe1, 0x5e, 0x61, 0x81, 0xde, 0x94, 0xf7, - 0x8d, 0xb0, 0x40, 0x18 - ]) - ); - assert_eq!( - Bitcoin::InputScriptsHash.cmr(), - Cmr::from_byte_array([ - 0xf1, 0x77, 0x67, 0x1d, 0x60, 0x96, 0x0e, 0x46, 0x3a, 0x9a, 0x8f, 0x7e, 0x1f, 0x52, - 0x13, 0xaa, 0xba, 0x91, 0x22, 0xd2, 0xdb, 0x75, 0xfe, 0x91, 0xf8, 0xf1, 0xcf, 0x91, - 0xbe, 0x00, 0x19, 0x07 - ]) - ); - assert_eq!( - Bitcoin::InputScriptHash.cmr(), - Cmr::from_byte_array([ - 0x05, 0x62, 0x41, 0x2f, 0x02, 0x1d, 0xa4, 0x81, 0x9b, 0x01, 0x9c, 0x8c, 0xd8, 0x87, - 0xd5, 0x30, 0x49, 0x2b, 0x9f, 0x94, 0x2c, 0x4e, 0xbf, 0x21, 0xae, 0x39, 0xed, 0x32, - 0x33, 0x0d, 0x7c, 0xfe - ]) - ); - assert_eq!( - Bitcoin::InputScriptSigsHash.cmr(), - Cmr::from_byte_array([ - 0xe7, 0x29, 0xc5, 0xf5, 0x8a, 0x93, 0x89, 0x08, 0x1a, 0x5c, 0xa8, 0x45, 0xf7, 0x6c, - 0xb9, 0x80, 0xf0, 0x85, 0x99, 0xce, 0xb3, 0xc7, 0xd7, 0xea, 0xe1, 0x14, 0x5b, 0x53, - 0xa6, 0x0a, 0xe3, 0xd5 - ]) - ); - assert_eq!( - Bitcoin::InputScriptSigHash.cmr(), - Cmr::from_byte_array([ - 0x1c, 0x7e, 0xfb, 0x37, 0xcb, 0xc4, 0xb9, 0x96, 0xd9, 0xb8, 0xc6, 0x17, 0x08, 0xe6, - 0x65, 0x73, 0xce, 0x87, 0xc1, 0xf0, 0xaa, 0x05, 0x22, 0xd0, 0x65, 0xba, 0x90, 0x25, - 0x05, 0x6e, 0x3f, 0x80 - ]) - ); - assert_eq!( - Bitcoin::InputSequence.cmr(), - Cmr::from_byte_array([ - 0x5d, 0xd1, 0x7f, 0xe1, 0x55, 0x0f, 0x48, 0xf7, 0xba, 0xed, 0x4d, 0x06, 0x80, 0x08, - 0xd4, 0xa1, 0xff, 0x98, 0xcb, 0xeb, 0xe2, 0x54, 0x1c, 0x5d, 0xc7, 0x7a, 0xc5, 0x3a, - 0xd8, 0x3f, 0xa7, 0x79 - ]) - ); - assert_eq!( - Bitcoin::InputSequencesHash.cmr(), - Cmr::from_byte_array([ - 0x55, 0x97, 0x3d, 0x64, 0x43, 0x45, 0x74, 0x72, 0x81, 0x37, 0x73, 0x64, 0xba, 0xd2, - 0xa8, 0x0b, 0x75, 0x8f, 0x45, 0x66, 0x60, 0xc1, 0x8d, 0xe5, 0xc0, 0x1a, 0x38, 0x82, - 0x07, 0x1d, 0x50, 0xe8 - ]) - ); - assert_eq!( - Bitcoin::InputUtxosHash.cmr(), - Cmr::from_byte_array([ - 0xd6, 0xf9, 0x0c, 0xd1, 0x04, 0xe1, 0xa5, 0xc6, 0x1a, 0x4b, 0x50, 0x00, 0xad, 0x9a, - 0xba, 0x8d, 0x43, 0x00, 0x4b, 0xf9, 0x43, 0xdf, 0x32, 0x5f, 0xa6, 0x36, 0xd1, 0xa2, - 0x2b, 0xec, 0xa0, 0xcb - ]) - ); - assert_eq!( - Bitcoin::InputUtxoHash.cmr(), - Cmr::from_byte_array([ - 0x93, 0x1e, 0x4e, 0x95, 0xe0, 0xa6, 0x47, 0x60, 0x27, 0x6e, 0x91, 0xb5, 0xdc, 0x74, - 0x67, 0x80, 0xd0, 0x69, 0x7d, 0x0a, 0xf5, 0xaa, 0xf5, 0xbb, 0xc8, 0x1d, 0xbe, 0xb3, - 0x98, 0x59, 0x6a, 0xbb - ]) - ); - assert_eq!( - Bitcoin::InputValue.cmr(), - Cmr::from_byte_array([ - 0x7d, 0x3c, 0x3f, 0x95, 0x5b, 0x2c, 0xf0, 0xd0, 0xd1, 0x28, 0x0a, 0x1b, 0xb1, 0x20, - 0x46, 0x92, 0x92, 0xd1, 0x32, 0x9c, 0x83, 0xa9, 0xc2, 0xff, 0x7e, 0x7e, 0x1e, 0xb3, - 0xf6, 0x97, 0x83, 0xa3 - ]) - ); - assert_eq!( - Bitcoin::InputValuesHash.cmr(), - Cmr::from_byte_array([ - 0x29, 0x83, 0x9e, 0xad, 0x0e, 0xb0, 0x3f, 0xe4, 0x65, 0x42, 0xe3, 0x6d, 0x71, 0xe9, - 0xe6, 0xaf, 0xdf, 0x96, 0x93, 0x01, 0x53, 0x3d, 0x74, 0xee, 0x09, 0x9b, 0x12, 0x66, - 0xa2, 0x50, 0x55, 0x2c - ]) - ); - assert_eq!( - Bitcoin::InternalKey.cmr(), - Cmr::from_byte_array([ - 0x37, 0x48, 0x36, 0x99, 0x28, 0x10, 0x02, 0x2f, 0x88, 0xe0, 0x14, 0x5b, 0xca, 0xd7, - 0x7f, 0x4a, 0x84, 0x91, 0xfa, 0x80, 0x83, 0xcb, 0x51, 0xc3, 0x01, 0xfc, 0xf7, 0xa1, - 0x34, 0x78, 0xc2, 0xcc - ]) - ); - assert_eq!( - Bitcoin::IsOne16.cmr(), - Cmr::from_byte_array([ - 0x1b, 0xd3, 0xa2, 0x53, 0xdb, 0x24, 0x3f, 0xca, 0x45, 0x53, 0x37, 0x99, 0xfe, 0x91, - 0x48, 0x38, 0xc3, 0x8e, 0x38, 0x06, 0xb1, 0x2b, 0xd7, 0xe8, 0x5c, 0xa7, 0x12, 0x07, - 0xa8, 0x84, 0x62, 0xb0 - ]) - ); - assert_eq!( - Bitcoin::IsOne32.cmr(), - Cmr::from_byte_array([ - 0x78, 0xb1, 0xba, 0xe0, 0x99, 0xec, 0x9c, 0x59, 0xcb, 0xf4, 0x12, 0x62, 0x51, 0xc1, - 0xe9, 0x67, 0x41, 0xb3, 0x50, 0xd5, 0x63, 0xbd, 0x74, 0xd5, 0x44, 0x18, 0xba, 0x78, - 0xeb, 0xea, 0x25, 0xbf - ]) - ); - assert_eq!( - Bitcoin::IsOne64.cmr(), - Cmr::from_byte_array([ - 0x81, 0x7b, 0x95, 0xa5, 0x39, 0x5e, 0xfb, 0xec, 0xbb, 0x85, 0x15, 0xa5, 0x5b, 0x3f, - 0xfe, 0x1a, 0x4d, 0x7b, 0xac, 0x6e, 0x23, 0xdb, 0xca, 0x54, 0xad, 0x60, 0x66, 0x66, - 0x2f, 0x20, 0x2b, 0x93 - ]) - ); - assert_eq!( - Bitcoin::IsOne8.cmr(), - Cmr::from_byte_array([ - 0xf6, 0x92, 0x54, 0x91, 0xd3, 0x4b, 0x37, 0x74, 0x2c, 0xb0, 0x8d, 0xec, 0x19, 0x3e, - 0xe5, 0x12, 0x5f, 0x93, 0x3c, 0xad, 0xcc, 0x23, 0x2a, 0xed, 0xee, 0xdb, 0x57, 0x2d, - 0x12, 0x60, 0xff, 0xd5 - ]) - ); - assert_eq!( - Bitcoin::IsZero16.cmr(), - Cmr::from_byte_array([ - 0x1b, 0xa7, 0x21, 0x3b, 0x58, 0x8b, 0xe0, 0x92, 0xb4, 0x46, 0x59, 0x9c, 0x2a, 0x60, - 0xff, 0x54, 0x67, 0x13, 0x6a, 0x79, 0x75, 0x99, 0x61, 0x0b, 0xd7, 0xa5, 0xf1, 0x78, - 0x04, 0xe3, 0x2a, 0x2c - ]) - ); - assert_eq!( - Bitcoin::IsZero32.cmr(), - Cmr::from_byte_array([ - 0x5e, 0xbf, 0x14, 0x66, 0x93, 0xf0, 0xe2, 0xd2, 0xf9, 0x36, 0x1b, 0x47, 0x6d, 0xba, - 0x34, 0x85, 0x8b, 0x83, 0x2d, 0x66, 0xfa, 0xcf, 0x71, 0x3b, 0xfb, 0x32, 0xc3, 0xbb, - 0x8d, 0xb9, 0xee, 0xbf - ]) - ); - assert_eq!( - Bitcoin::IsZero64.cmr(), - Cmr::from_byte_array([ - 0x19, 0xab, 0x9a, 0xc0, 0xcf, 0x42, 0x66, 0x82, 0x19, 0xba, 0x6c, 0xb8, 0x97, 0xe4, - 0x87, 0xfe, 0x36, 0x80, 0x93, 0x7f, 0xff, 0xa8, 0xd2, 0x03, 0x51, 0x1d, 0xb7, 0x5d, - 0xbb, 0x10, 0xc7, 0xe5 - ]) - ); - assert_eq!( - Bitcoin::IsZero8.cmr(), - Cmr::from_byte_array([ - 0x8e, 0xff, 0x62, 0x08, 0x44, 0x07, 0xe9, 0xaf, 0xd5, 0x40, 0xf3, 0x18, 0xf6, 0x6b, - 0xcf, 0x31, 0xdf, 0x1d, 0x42, 0xa5, 0xc1, 0x61, 0xca, 0xe3, 0x5a, 0x29, 0x48, 0x18, - 0x0c, 0xa2, 0xaa, 0x2e - ]) - ); - assert_eq!( - Bitcoin::Leftmost16_1.cmr(), - Cmr::from_byte_array([ - 0x5b, 0xff, 0x4c, 0xb5, 0x58, 0x76, 0x05, 0xd5, 0xfd, 0x05, 0x9d, 0x77, 0x33, 0x49, - 0x0d, 0x7d, 0xd2, 0x2d, 0x27, 0x8b, 0x59, 0x9e, 0x06, 0xd3, 0xb5, 0xdb, 0x6d, 0x79, - 0xf3, 0xc9, 0x23, 0xbd - ]) - ); - assert_eq!( - Bitcoin::Leftmost16_2.cmr(), - Cmr::from_byte_array([ - 0x53, 0x6d, 0xb4, 0x86, 0xb1, 0x22, 0x27, 0xe5, 0xb0, 0x9d, 0x6f, 0xeb, 0xd2, 0x77, - 0x6b, 0x1a, 0xbb, 0xc6, 0x74, 0x99, 0x96, 0xaa, 0x78, 0x3e, 0xd7, 0xe5, 0x37, 0x44, - 0x6b, 0xbf, 0x15, 0x1b - ]) - ); - assert_eq!( - Bitcoin::Leftmost16_4.cmr(), - Cmr::from_byte_array([ - 0xf2, 0x32, 0x13, 0x67, 0x49, 0x6d, 0x1a, 0x77, 0xee, 0xa0, 0x5e, 0x95, 0xe3, 0xb8, - 0x07, 0xd3, 0xba, 0x5f, 0x05, 0x13, 0x6c, 0xe0, 0x91, 0x2a, 0xe7, 0x17, 0xc8, 0x3a, - 0x02, 0x61, 0xb2, 0xe1 - ]) - ); - assert_eq!( - Bitcoin::Leftmost16_8.cmr(), - Cmr::from_byte_array([ - 0x24, 0x14, 0x8e, 0xf3, 0x0a, 0xd4, 0x3e, 0xbe, 0xc5, 0x63, 0x72, 0x83, 0x22, 0xc3, - 0xce, 0x11, 0x79, 0xae, 0xd7, 0xa7, 0x82, 0x16, 0xd7, 0x99, 0x88, 0x8b, 0xf1, 0x8b, - 0x39, 0x57, 0x06, 0x71 - ]) - ); - assert_eq!( - Bitcoin::Leftmost32_1.cmr(), - Cmr::from_byte_array([ - 0xb9, 0x2e, 0x15, 0xec, 0x5d, 0xa0, 0x7e, 0xe8, 0xed, 0x39, 0x7c, 0xb9, 0xf6, 0x0a, - 0x4c, 0x5d, 0xa8, 0x38, 0x62, 0x93, 0x1a, 0x90, 0x73, 0x59, 0xd2, 0x7c, 0xae, 0xb6, - 0x0e, 0x60, 0xef, 0x8a - ]) - ); - assert_eq!( - Bitcoin::Leftmost32_16.cmr(), - Cmr::from_byte_array([ - 0xad, 0xb0, 0x27, 0xb2, 0x06, 0x56, 0x73, 0x58, 0x53, 0x26, 0xc0, 0x1c, 0x3b, 0xe2, - 0xfa, 0xeb, 0x38, 0x63, 0x49, 0xe2, 0x90, 0x09, 0xb6, 0x57, 0x6e, 0xe5, 0x3a, 0x85, - 0x55, 0x12, 0xcc, 0x67 - ]) - ); - assert_eq!( - Bitcoin::Leftmost32_2.cmr(), - Cmr::from_byte_array([ - 0xb7, 0x5b, 0x31, 0xc5, 0x59, 0x12, 0x3d, 0x3d, 0x63, 0x35, 0x98, 0x59, 0x32, 0xb8, - 0xb1, 0xb2, 0x66, 0x4e, 0xe5, 0x97, 0xaf, 0xb1, 0x5f, 0xd1, 0xa4, 0x99, 0xd0, 0x07, - 0xcf, 0xf2, 0x75, 0x5c - ]) - ); - assert_eq!( - Bitcoin::Leftmost32_4.cmr(), - Cmr::from_byte_array([ - 0xcb, 0x75, 0x7e, 0x47, 0x1e, 0x9d, 0x9a, 0x40, 0x77, 0x1d, 0xd1, 0xcf, 0x3c, 0x1b, - 0xf5, 0xd2, 0x3c, 0x17, 0xed, 0x68, 0xcd, 0xbd, 0xb2, 0x2d, 0xad, 0xa1, 0x7a, 0x73, - 0xa7, 0xb4, 0x07, 0xb2 - ]) - ); - assert_eq!( - Bitcoin::Leftmost32_8.cmr(), - Cmr::from_byte_array([ - 0xbf, 0xc5, 0x34, 0xb4, 0x9e, 0x06, 0x00, 0x6e, 0x19, 0xf3, 0xb6, 0x8e, 0x0a, 0x02, - 0x39, 0x1c, 0x14, 0x9f, 0x9a, 0x34, 0xf4, 0x3e, 0xe3, 0x6b, 0x9f, 0x1d, 0x79, 0xa7, - 0x9c, 0x9a, 0x9e, 0x4d - ]) - ); - assert_eq!( - Bitcoin::Leftmost64_1.cmr(), - Cmr::from_byte_array([ - 0x1b, 0x1d, 0x4e, 0x92, 0x38, 0x4b, 0x8b, 0x15, 0x9b, 0xa0, 0xd8, 0x06, 0x55, 0x8b, - 0x54, 0x94, 0xe3, 0x61, 0x4e, 0xed, 0xe0, 0x3c, 0x94, 0x6c, 0xea, 0xf1, 0x41, 0xf3, - 0x6f, 0x01, 0xc7, 0x9b - ]) - ); - assert_eq!( - Bitcoin::Leftmost64_16.cmr(), - Cmr::from_byte_array([ - 0x0d, 0xeb, 0xdc, 0x1a, 0xa0, 0x43, 0x30, 0x34, 0x42, 0xe1, 0x8f, 0xe0, 0x3d, 0x8a, - 0x99, 0xd2, 0xbe, 0x6b, 0xb8, 0xa8, 0x69, 0x1a, 0xba, 0x19, 0x56, 0x62, 0x59, 0xe3, - 0x67, 0x60, 0xf7, 0xf9 - ]) - ); - assert_eq!( - Bitcoin::Leftmost64_2.cmr(), - Cmr::from_byte_array([ - 0x83, 0x9e, 0xcf, 0xa3, 0x18, 0x70, 0x5c, 0x25, 0x3d, 0x0c, 0x52, 0xff, 0x27, 0xb9, - 0x04, 0x64, 0x92, 0x3d, 0x8c, 0x0e, 0x55, 0xa8, 0x2c, 0x0d, 0x16, 0x24, 0x02, 0x39, - 0x7f, 0x36, 0x53, 0x78 - ]) - ); - assert_eq!( - Bitcoin::Leftmost64_32.cmr(), - Cmr::from_byte_array([ - 0x92, 0x91, 0x97, 0xa9, 0x64, 0x28, 0x61, 0xa7, 0x7b, 0xd6, 0x62, 0x58, 0x05, 0x11, - 0x97, 0xbe, 0x86, 0xff, 0x08, 0xe6, 0x28, 0xe3, 0x0f, 0x7e, 0xfc, 0xbd, 0x2c, 0x4d, - 0xfe, 0xcf, 0x9b, 0xdd - ]) - ); - assert_eq!( - Bitcoin::Leftmost64_4.cmr(), - Cmr::from_byte_array([ - 0x02, 0xbd, 0x16, 0x45, 0xd5, 0x75, 0xf0, 0x4b, 0x3c, 0xbb, 0xaa, 0x6d, 0x8c, 0xa9, - 0x86, 0xef, 0x1c, 0x8c, 0xd0, 0xff, 0xe1, 0x65, 0x89, 0x03, 0x93, 0x9d, 0xb7, 0x64, - 0x56, 0x2a, 0x26, 0x47 - ]) - ); - assert_eq!( - Bitcoin::Leftmost64_8.cmr(), - Cmr::from_byte_array([ - 0x35, 0x58, 0xb3, 0x1b, 0x3b, 0x6e, 0x8f, 0x9a, 0x28, 0x8f, 0xdc, 0x72, 0xf2, 0x46, - 0x02, 0xbe, 0x05, 0x58, 0x19, 0x10, 0x71, 0xa5, 0x4a, 0x99, 0xfa, 0x03, 0xa0, 0x25, - 0x34, 0xf8, 0x80, 0x05 - ]) - ); - assert_eq!( - Bitcoin::Leftmost8_1.cmr(), - Cmr::from_byte_array([ - 0x28, 0x65, 0xef, 0xd4, 0x29, 0x83, 0xcb, 0xe3, 0xf8, 0x16, 0x37, 0x3a, 0xb8, 0xa8, - 0x82, 0xf1, 0x83, 0x17, 0x19, 0x4d, 0xc1, 0xab, 0xa3, 0x8d, 0xa0, 0x30, 0x4b, 0x8c, - 0x14, 0x4b, 0x1d, 0xa4 - ]) - ); - assert_eq!( - Bitcoin::Leftmost8_2.cmr(), - Cmr::from_byte_array([ - 0x51, 0x96, 0x4c, 0xb0, 0x74, 0x05, 0xa8, 0xd2, 0x3d, 0x21, 0x87, 0x74, 0x1a, 0x9e, - 0xd3, 0x04, 0xbc, 0xb4, 0x69, 0xd9, 0xac, 0x9f, 0x5d, 0x92, 0x55, 0x82, 0x5c, 0xfd, - 0xa3, 0xda, 0x07, 0xc0 - ]) - ); - assert_eq!( - Bitcoin::Leftmost8_4.cmr(), - Cmr::from_byte_array([ - 0x88, 0x3c, 0x94, 0xf8, 0xa2, 0x6c, 0xda, 0xb7, 0xbc, 0x5c, 0xd6, 0x31, 0xe5, 0x22, - 0x55, 0xa8, 0x5e, 0xf6, 0xe0, 0x70, 0x76, 0x64, 0x57, 0xf6, 0x32, 0x1e, 0x2c, 0xcb, - 0x11, 0x9d, 0x9b, 0x2b - ]) - ); - assert_eq!( - Bitcoin::LeftExtend16_32.cmr(), - Cmr::from_byte_array([ - 0x28, 0x99, 0x97, 0xfb, 0xa1, 0xfa, 0xe7, 0xec, 0x1c, 0x45, 0x31, 0xc5, 0x0b, 0xbf, - 0x86, 0x71, 0xb8, 0x97, 0x13, 0x9b, 0xdd, 0x3a, 0xad, 0x97, 0xa3, 0x76, 0x39, 0x57, - 0x4a, 0x04, 0x7c, 0x80 - ]) - ); - assert_eq!( - Bitcoin::LeftExtend16_64.cmr(), - Cmr::from_byte_array([ - 0x5d, 0xff, 0x21, 0xf6, 0xe6, 0x12, 0x47, 0x75, 0xc5, 0x78, 0xea, 0xf4, 0x85, 0x5c, - 0x0b, 0x01, 0x64, 0xf7, 0x87, 0x9b, 0x17, 0x60, 0xf9, 0x02, 0x7c, 0xb5, 0x0f, 0x7b, - 0x5a, 0xcb, 0x49, 0x18 - ]) - ); - assert_eq!( - Bitcoin::LeftExtend1_16.cmr(), - Cmr::from_byte_array([ - 0x8c, 0x87, 0xd7, 0x56, 0xd1, 0x4b, 0xd3, 0xd9, 0xa7, 0x86, 0x90, 0x81, 0x29, 0x12, - 0xb8, 0x94, 0x29, 0xc0, 0x17, 0x1a, 0x41, 0x10, 0x3a, 0x58, 0xc6, 0xe9, 0xf2, 0x25, - 0x14, 0x1a, 0x02, 0x22 - ]) - ); - assert_eq!( - Bitcoin::LeftExtend1_32.cmr(), - Cmr::from_byte_array([ - 0xc8, 0xf1, 0x54, 0xd4, 0x6d, 0x2e, 0x78, 0x95, 0xda, 0x1b, 0x33, 0xc2, 0xb3, 0x15, - 0xe6, 0xd4, 0xd4, 0x85, 0x1d, 0xde, 0xe2, 0x8a, 0xef, 0x8b, 0x70, 0x70, 0x90, 0x61, - 0x6b, 0xc7, 0xee, 0xa0 - ]) - ); - assert_eq!( - Bitcoin::LeftExtend1_64.cmr(), - Cmr::from_byte_array([ - 0xa3, 0x40, 0x4d, 0xf6, 0x8c, 0xc9, 0x20, 0x75, 0x4c, 0x6e, 0x18, 0x47, 0x20, 0x7d, - 0xb3, 0x84, 0x5d, 0x11, 0xc7, 0x49, 0x09, 0xd0, 0x7c, 0xa8, 0x2a, 0xd1, 0xf1, 0xcc, - 0x67, 0xbf, 0x3a, 0x9b - ]) - ); - assert_eq!( - Bitcoin::LeftExtend1_8.cmr(), - Cmr::from_byte_array([ - 0x3b, 0xca, 0x33, 0x97, 0xb8, 0x3c, 0x27, 0xf3, 0x63, 0x16, 0xf8, 0xb8, 0xb3, 0x03, - 0x35, 0x0a, 0xfe, 0x8b, 0xa0, 0x07, 0x8f, 0x77, 0xf1, 0xd4, 0x2a, 0x9b, 0x78, 0x92, - 0xb2, 0xa4, 0xdb, 0xee - ]) - ); - assert_eq!( - Bitcoin::LeftExtend32_64.cmr(), - Cmr::from_byte_array([ - 0x42, 0xcb, 0xeb, 0x01, 0xfe, 0x7a, 0x3a, 0x6d, 0xd3, 0x31, 0x1d, 0xb3, 0x36, 0x5f, - 0x91, 0xe5, 0xc1, 0x18, 0xc7, 0xe4, 0x1f, 0x03, 0xaa, 0xe7, 0xb2, 0x83, 0xde, 0x6b, - 0xb9, 0x05, 0x3e, 0x6b - ]) - ); - assert_eq!( - Bitcoin::LeftExtend8_16.cmr(), - Cmr::from_byte_array([ - 0x9a, 0x57, 0xc9, 0x6a, 0xf5, 0x71, 0x48, 0x96, 0xb7, 0x24, 0xde, 0x45, 0xeb, 0x9f, - 0xe9, 0x7d, 0x73, 0x69, 0x7d, 0xe6, 0x2e, 0x8d, 0xad, 0x78, 0x71, 0xeb, 0x58, 0xf5, - 0x81, 0xa0, 0x11, 0xbb - ]) - ); - assert_eq!( - Bitcoin::LeftExtend8_32.cmr(), - Cmr::from_byte_array([ - 0xd6, 0x24, 0xbd, 0x40, 0x40, 0x76, 0x3c, 0xb1, 0x3c, 0xca, 0xd4, 0x98, 0xf5, 0x3d, - 0x38, 0xc1, 0x12, 0xf1, 0x92, 0x95, 0x68, 0x26, 0xda, 0xfe, 0xc9, 0xac, 0x91, 0x65, - 0x79, 0x2b, 0x34, 0x7a - ]) - ); - assert_eq!( - Bitcoin::LeftExtend8_64.cmr(), - Cmr::from_byte_array([ - 0x9d, 0xc4, 0xa2, 0x05, 0x4d, 0x5d, 0x26, 0x34, 0x2a, 0xc5, 0x90, 0xb6, 0x67, 0xf1, - 0xb0, 0x1d, 0xf5, 0x4f, 0xd0, 0xcd, 0xaa, 0x40, 0x5e, 0xf8, 0xcb, 0xb7, 0x6f, 0xd8, - 0xf9, 0xb0, 0x0e, 0xe5 - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh16_32.cmr(), - Cmr::from_byte_array([ - 0x05, 0x45, 0xc4, 0xb5, 0x8f, 0x00, 0x4a, 0x21, 0xe7, 0xf1, 0x29, 0xa4, 0xc0, 0x51, - 0x89, 0x97, 0x17, 0x14, 0xca, 0xa2, 0xd9, 0x1d, 0x1d, 0xfd, 0x5f, 0xad, 0x3e, 0x63, - 0x24, 0x49, 0x94, 0x28 - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh16_64.cmr(), - Cmr::from_byte_array([ - 0x1c, 0x61, 0xd0, 0x3d, 0x49, 0x3b, 0xbd, 0x05, 0x82, 0x22, 0x59, 0xd1, 0x73, 0x0a, - 0x8d, 0x7a, 0x5f, 0x55, 0xb0, 0xba, 0x2a, 0x93, 0x91, 0xa6, 0xc8, 0x88, 0x1e, 0xb4, - 0x75, 0x04, 0xaf, 0xfd - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh1_16.cmr(), - Cmr::from_byte_array([ - 0x56, 0xfd, 0xf5, 0x4f, 0x1f, 0xcd, 0x19, 0x82, 0x5e, 0x7c, 0x3b, 0x79, 0x06, 0x15, - 0xc1, 0xd3, 0xfe, 0x82, 0x88, 0x6c, 0x74, 0x7b, 0xc4, 0x87, 0x59, 0x87, 0xf5, 0x05, - 0x16, 0x94, 0x5f, 0xb3 - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh1_32.cmr(), - Cmr::from_byte_array([ - 0xdb, 0x33, 0x05, 0x9a, 0xbe, 0x2d, 0x43, 0x2d, 0x67, 0xf4, 0x2b, 0x1e, 0x94, 0x27, - 0x56, 0xdc, 0xa6, 0xcd, 0xe6, 0x37, 0x85, 0xe5, 0xbd, 0x43, 0x0d, 0xc8, 0xf4, 0xae, - 0xfc, 0x31, 0xb8, 0xdf - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh1_64.cmr(), - Cmr::from_byte_array([ - 0x1d, 0x66, 0x9c, 0x1f, 0xa5, 0xfd, 0x3e, 0xf6, 0x6e, 0xb4, 0xae, 0xf6, 0x18, 0x6e, - 0x3e, 0xc1, 0x36, 0xee, 0x75, 0x84, 0x10, 0xdf, 0x3e, 0xde, 0xbb, 0x31, 0xbf, 0x26, - 0xd4, 0x56, 0x20, 0x51 - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh1_8.cmr(), - Cmr::from_byte_array([ - 0x9a, 0x1b, 0xad, 0x3d, 0x8a, 0xb9, 0x00, 0x30, 0x3d, 0xa2, 0x02, 0xf0, 0xf4, 0x49, - 0xf0, 0xb7, 0xe6, 0x79, 0x5c, 0x2a, 0x7c, 0x12, 0x17, 0x18, 0x80, 0x0a, 0xc4, 0x0c, - 0x87, 0xd8, 0x27, 0x29 - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh32_64.cmr(), - Cmr::from_byte_array([ - 0x39, 0x20, 0xcc, 0x4b, 0x33, 0xba, 0xf7, 0xef, 0xa5, 0xca, 0xf9, 0xe7, 0x80, 0x01, - 0x44, 0x67, 0x06, 0xf6, 0xe4, 0xe8, 0x26, 0x56, 0x74, 0x05, 0x7e, 0xed, 0x87, 0x17, - 0x78, 0x08, 0x9e, 0x94 - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh8_16.cmr(), - Cmr::from_byte_array([ - 0x75, 0x2e, 0x29, 0xf2, 0xfe, 0x2b, 0xec, 0xc3, 0xf6, 0x62, 0x90, 0xfe, 0x44, 0xe1, - 0xae, 0xb3, 0x78, 0x41, 0x80, 0xdd, 0x90, 0x5e, 0x19, 0x62, 0x4e, 0x19, 0x5f, 0x21, - 0x6c, 0x07, 0xc5, 0x7c - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh8_32.cmr(), - Cmr::from_byte_array([ - 0xbe, 0xe8, 0x8f, 0x1c, 0x8c, 0x30, 0x63, 0x4c, 0x6e, 0x95, 0xca, 0xcc, 0x0e, 0x9a, - 0xdd, 0x49, 0x41, 0x32, 0x21, 0xfd, 0xab, 0xbd, 0x8d, 0x4c, 0x0a, 0xcc, 0xf1, 0xca, - 0xe2, 0xd2, 0xa7, 0x78 - ]) - ); - assert_eq!( - Bitcoin::LeftPadHigh8_64.cmr(), - Cmr::from_byte_array([ - 0x39, 0x23, 0x87, 0xf6, 0xdc, 0x04, 0xbf, 0xc5, 0x4d, 0xd4, 0xa2, 0x81, 0x19, 0xc8, - 0x1d, 0x15, 0xd7, 0xa5, 0x80, 0x9b, 0xbf, 0x62, 0xfc, 0xc2, 0x7d, 0xc5, 0x5c, 0xf8, - 0x2e, 0x9e, 0x5e, 0xe6 - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow16_32.cmr(), - Cmr::from_byte_array([ - 0x4f, 0xfd, 0x6c, 0xb3, 0x40, 0x23, 0x05, 0x82, 0x1d, 0xd8, 0x99, 0x70, 0xd7, 0x22, - 0xd1, 0xc1, 0x3f, 0x1f, 0xf7, 0x73, 0x9f, 0xd5, 0xf3, 0x4b, 0xa1, 0x6c, 0x73, 0x65, - 0x3b, 0x04, 0x47, 0x18 - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow16_64.cmr(), - Cmr::from_byte_array([ - 0xbe, 0x3e, 0xb8, 0x5c, 0x5f, 0x19, 0x91, 0x53, 0xfb, 0x1c, 0x46, 0x13, 0x5c, 0x04, - 0xfa, 0xcf, 0xdb, 0xc6, 0xf1, 0xb7, 0x8c, 0x2b, 0xb7, 0xae, 0x75, 0xf1, 0x55, 0xbc, - 0x3e, 0xa0, 0x8a, 0x8b - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow1_16.cmr(), - Cmr::from_byte_array([ - 0xdd, 0xd0, 0x15, 0x3e, 0xf3, 0x12, 0xf2, 0x8d, 0x64, 0x2c, 0xd9, 0x4c, 0xb3, 0x6f, - 0x32, 0x97, 0x75, 0xb0, 0x0d, 0xa8, 0x8f, 0xcc, 0xc4, 0xce, 0xa1, 0xba, 0xe8, 0x9b, - 0xad, 0x13, 0xbe, 0x6b - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow1_32.cmr(), - Cmr::from_byte_array([ - 0xbc, 0x9d, 0x31, 0x14, 0x35, 0x46, 0x7b, 0xc0, 0x8b, 0x10, 0x08, 0xe5, 0x47, 0xaa, - 0x7a, 0x07, 0xe8, 0x3b, 0x15, 0x14, 0x68, 0x61, 0xa9, 0xe9, 0xb5, 0x41, 0x3b, 0xe3, - 0x1b, 0x82, 0xb6, 0xb5 - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow1_64.cmr(), - Cmr::from_byte_array([ - 0x8b, 0xc6, 0x2f, 0x93, 0x60, 0x89, 0x4e, 0x48, 0xa4, 0x73, 0x2c, 0x95, 0x76, 0x9c, - 0x8f, 0xaa, 0xe9, 0x56, 0x8f, 0x9d, 0xe8, 0xe8, 0xa2, 0x00, 0x83, 0x6b, 0xd4, 0xe5, - 0x0b, 0x02, 0xcd, 0x84 - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow1_8.cmr(), - Cmr::from_byte_array([ - 0xf6, 0x6c, 0xd7, 0xa4, 0x2b, 0x32, 0x0f, 0x97, 0xc1, 0x9f, 0x2d, 0x54, 0x16, 0xcd, - 0xe0, 0x87, 0x25, 0x3a, 0x27, 0x91, 0x29, 0x65, 0xd5, 0x5b, 0x65, 0x71, 0x2a, 0xd8, - 0x09, 0xb8, 0x3c, 0xfd - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow32_64.cmr(), - Cmr::from_byte_array([ - 0xa3, 0x3a, 0x07, 0xb9, 0xbc, 0xf9, 0x45, 0xf6, 0x4f, 0x07, 0x2b, 0x8b, 0x9c, 0x91, - 0x48, 0x39, 0xa5, 0x85, 0xbf, 0xa9, 0xf3, 0x42, 0x5b, 0x14, 0x77, 0x54, 0xab, 0x55, - 0xa8, 0xba, 0x6c, 0x0f - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow8_16.cmr(), - Cmr::from_byte_array([ - 0x2a, 0x51, 0x6a, 0x79, 0x3f, 0x97, 0xc4, 0x5f, 0xea, 0xeb, 0xb1, 0xcc, 0x96, 0x1a, - 0x15, 0x6d, 0x80, 0x35, 0x49, 0x28, 0x79, 0x78, 0x9d, 0x6e, 0xdc, 0x9b, 0x57, 0xe7, - 0x2f, 0x11, 0xe5, 0xb5 - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow8_32.cmr(), - Cmr::from_byte_array([ - 0x1a, 0xa2, 0xe4, 0xd0, 0x4b, 0xd6, 0x90, 0x55, 0x12, 0x3d, 0xd6, 0xaa, 0xfe, 0x27, - 0xf5, 0xf7, 0xf4, 0x7c, 0x3b, 0x30, 0x90, 0xc3, 0xa8, 0x27, 0x29, 0x73, 0xfe, 0x2f, - 0x75, 0x16, 0x5a, 0x5d - ]) - ); - assert_eq!( - Bitcoin::LeftPadLow8_64.cmr(), - Cmr::from_byte_array([ - 0xb6, 0x52, 0xe0, 0xae, 0xdd, 0x0f, 0x4f, 0x66, 0xf6, 0xa1, 0xcd, 0x4b, 0xeb, 0xf8, - 0x75, 0xff, 0x7b, 0xbb, 0x2d, 0xd9, 0x9b, 0x06, 0x5b, 0x2d, 0xb5, 0xb5, 0xb5, 0x90, - 0x53, 0x61, 0x61, 0x4d - ]) - ); - assert_eq!( - Bitcoin::LeftRotate16.cmr(), - Cmr::from_byte_array([ - 0x8a, 0x12, 0xff, 0x6a, 0x4b, 0xf2, 0x37, 0x15, 0xdd, 0x3b, 0x76, 0x6b, 0x99, 0x67, - 0xc7, 0x15, 0x8b, 0xf3, 0xed, 0x74, 0xb3, 0xdc, 0xe7, 0x30, 0xaf, 0xfc, 0xf4, 0x66, - 0x16, 0x47, 0x8e, 0xcb - ]) - ); - assert_eq!( - Bitcoin::LeftRotate32.cmr(), - Cmr::from_byte_array([ - 0x2f, 0xcb, 0x52, 0x17, 0x2f, 0xd4, 0x9c, 0x36, 0x21, 0x7d, 0xea, 0xe0, 0xc2, 0x37, - 0x14, 0x32, 0x1f, 0x69, 0xf5, 0xf1, 0x3f, 0x6e, 0x94, 0xb2, 0xbd, 0xfe, 0x4b, 0x74, - 0x88, 0x69, 0x7f, 0xd5 - ]) - ); - assert_eq!( - Bitcoin::LeftRotate64.cmr(), - Cmr::from_byte_array([ - 0x72, 0xcc, 0xd6, 0xc4, 0xe5, 0xfd, 0xf6, 0x8a, 0xd3, 0x3b, 0x6d, 0x58, 0xfb, 0x37, - 0x2b, 0xe4, 0xf1, 0xb8, 0x0e, 0xef, 0x70, 0x1f, 0x9d, 0xb7, 0xe5, 0xed, 0x85, 0x9b, - 0x96, 0xb3, 0x62, 0x09 - ]) - ); - assert_eq!( - Bitcoin::LeftRotate8.cmr(), - Cmr::from_byte_array([ - 0x1a, 0xae, 0xc9, 0xf3, 0xb7, 0x5d, 0x89, 0xf8, 0x2a, 0x64, 0x98, 0x45, 0x8c, 0x44, - 0x83, 0xcb, 0x9a, 0x78, 0x44, 0x89, 0x05, 0xf3, 0xbb, 0x39, 0xfc, 0x08, 0x3f, 0x14, - 0xdd, 0xcc, 0xdc, 0x9b - ]) - ); - assert_eq!( - Bitcoin::LeftShift16.cmr(), - Cmr::from_byte_array([ - 0x37, 0xac, 0x63, 0x87, 0x21, 0xab, 0x09, 0x7a, 0x96, 0x02, 0xba, 0x4d, 0xc9, 0x2e, - 0x19, 0xb5, 0xa1, 0x85, 0xb2, 0x32, 0x9f, 0x1a, 0xa6, 0x00, 0xcb, 0x9c, 0x15, 0x61, - 0x5a, 0x00, 0x81, 0xf8 - ]) - ); - assert_eq!( - Bitcoin::LeftShift32.cmr(), - Cmr::from_byte_array([ - 0x8e, 0x3c, 0x47, 0x3b, 0x28, 0x67, 0xf1, 0x54, 0x73, 0xb3, 0x63, 0x2d, 0xbf, 0xdd, - 0x99, 0x77, 0x55, 0x51, 0xef, 0x5f, 0x9d, 0xba, 0x47, 0x5e, 0x9c, 0xf0, 0x90, 0x75, - 0x80, 0x70, 0xf0, 0xbf - ]) - ); - assert_eq!( - Bitcoin::LeftShift64.cmr(), - Cmr::from_byte_array([ - 0x50, 0x49, 0xf4, 0x04, 0xd1, 0x73, 0x29, 0x9a, 0x3a, 0xee, 0x04, 0xcb, 0xc2, 0x46, - 0x2c, 0xb3, 0x4c, 0x80, 0x69, 0xc1, 0xb6, 0xdb, 0x7f, 0xed, 0x0e, 0x38, 0x8f, 0xf6, - 0xd4, 0x67, 0xa0, 0x86 - ]) - ); - assert_eq!( - Bitcoin::LeftShift8.cmr(), - Cmr::from_byte_array([ - 0x83, 0x2f, 0x63, 0x6e, 0x63, 0x44, 0x6c, 0xef, 0xba, 0x8d, 0xf3, 0xa4, 0x6e, 0xfb, - 0xb3, 0x61, 0x59, 0xc1, 0x88, 0x54, 0x56, 0x77, 0x68, 0xad, 0xc9, 0xb8, 0xdb, 0x8a, - 0x07, 0x49, 0x2a, 0x58 - ]) - ); - assert_eq!( - Bitcoin::LeftShiftWith16.cmr(), - Cmr::from_byte_array([ - 0xe6, 0x47, 0x62, 0xb1, 0xc5, 0xe6, 0x14, 0x4a, 0x71, 0x81, 0xea, 0xaf, 0x4d, 0xd9, - 0xd9, 0xb3, 0xaa, 0x43, 0xaa, 0xd9, 0x55, 0x15, 0x81, 0x98, 0xee, 0x20, 0x90, 0xeb, - 0xd9, 0xe4, 0xbb, 0x0d - ]) - ); - assert_eq!( - Bitcoin::LeftShiftWith32.cmr(), - Cmr::from_byte_array([ - 0x64, 0x76, 0xba, 0x89, 0x95, 0xf8, 0x3b, 0x5e, 0xe1, 0xeb, 0xc2, 0x2c, 0xb4, 0x16, - 0xf5, 0x58, 0x15, 0x7f, 0x2e, 0x57, 0x69, 0x9a, 0x5c, 0xaf, 0x84, 0x29, 0x1f, 0xf3, - 0xfc, 0x14, 0x83, 0xc1 - ]) - ); - assert_eq!( - Bitcoin::LeftShiftWith64.cmr(), - Cmr::from_byte_array([ - 0x06, 0xb8, 0xfe, 0x67, 0xcf, 0xc5, 0x86, 0x32, 0x23, 0x97, 0xaf, 0x02, 0x4f, 0xde, - 0x29, 0x11, 0xf7, 0xae, 0x87, 0xa0, 0x6a, 0xbc, 0x6c, 0x59, 0x30, 0x93, 0x40, 0x97, - 0x15, 0x69, 0x1c, 0x19 - ]) - ); - assert_eq!( - Bitcoin::LeftShiftWith8.cmr(), - Cmr::from_byte_array([ - 0xb1, 0xac, 0x9c, 0x68, 0x23, 0x58, 0xc4, 0x5b, 0xab, 0xf4, 0x06, 0x95, 0x56, 0xfe, - 0x6e, 0x37, 0x5b, 0x45, 0x54, 0xde, 0x9e, 0x10, 0xc5, 0x91, 0xc1, 0x48, 0x39, 0x84, - 0x47, 0xac, 0x18, 0x0e - ]) - ); - assert_eq!( - Bitcoin::Le16.cmr(), - Cmr::from_byte_array([ - 0x01, 0x67, 0x05, 0xa7, 0xd7, 0xdc, 0xe1, 0xaf, 0xc6, 0x3e, 0xab, 0x84, 0x20, 0x3f, - 0x5f, 0x42, 0xd6, 0xb6, 0xbb, 0xad, 0x75, 0xce, 0xe3, 0x8c, 0xec, 0x5a, 0x51, 0x5b, - 0x59, 0x97, 0x48, 0x9f - ]) - ); - assert_eq!( - Bitcoin::Le32.cmr(), - Cmr::from_byte_array([ - 0x53, 0x51, 0xfc, 0x5d, 0xeb, 0xe5, 0xb2, 0x98, 0xad, 0x70, 0x57, 0xe4, 0xa5, 0xa7, - 0x6a, 0x3b, 0x9c, 0x65, 0x8a, 0xcd, 0xe7, 0xd1, 0xbb, 0x52, 0xe5, 0x88, 0x9c, 0xa1, - 0xe3, 0x8f, 0x5e, 0xfb - ]) - ); - assert_eq!( - Bitcoin::Le64.cmr(), - Cmr::from_byte_array([ - 0xae, 0x2d, 0xe1, 0xe0, 0xcf, 0x73, 0x0d, 0x1d, 0xcc, 0x96, 0xd7, 0xcc, 0xfe, 0x71, - 0x16, 0x8a, 0x24, 0x0d, 0xea, 0xf8, 0x04, 0x61, 0x5a, 0x7b, 0xa9, 0x20, 0xdc, 0x16, - 0xfd, 0x6e, 0xa4, 0x5f - ]) - ); - assert_eq!( - Bitcoin::Le8.cmr(), - Cmr::from_byte_array([ - 0xaf, 0x29, 0xf6, 0x16, 0x8e, 0xbd, 0xc0, 0x9e, 0xfb, 0xe0, 0xe6, 0x39, 0xcb, 0x75, - 0x0b, 0x12, 0x05, 0x78, 0x8f, 0x90, 0x21, 0xd6, 0x66, 0xef, 0xce, 0xfe, 0x13, 0xf1, - 0x2f, 0x96, 0x71, 0xf0 - ]) - ); - assert_eq!( - Bitcoin::LinearCombination1.cmr(), - Cmr::from_byte_array([ - 0x34, 0x10, 0xa9, 0xee, 0x33, 0x3d, 0xf8, 0xc8, 0xa0, 0x1c, 0x14, 0x11, 0x5b, 0x54, - 0x43, 0x27, 0xe3, 0x24, 0xe2, 0x87, 0xaa, 0x11, 0x07, 0xe0, 0x19, 0x55, 0xbd, 0x20, - 0x50, 0x6e, 0xa9, 0x87 - ]) - ); - assert_eq!( - Bitcoin::LinearVerify1.cmr(), - Cmr::from_byte_array([ - 0xdc, 0x66, 0xd3, 0x31, 0xc1, 0x7f, 0x3f, 0xdd, 0xa3, 0x99, 0x46, 0x98, 0x1b, 0x39, - 0xb3, 0x57, 0xd0, 0x55, 0x5c, 0x35, 0x62, 0xec, 0xae, 0x02, 0xaa, 0x2d, 0xad, 0x16, - 0x3e, 0x6c, 0x9a, 0x2e - ]) - ); - assert_eq!( - Bitcoin::LockTime.cmr(), - Cmr::from_byte_array([ - 0x9a, 0xe0, 0xac, 0xc3, 0x7b, 0xc2, 0x04, 0x47, 0x79, 0xb0, 0x7c, 0x3d, 0x46, 0x02, - 0xa5, 0xfd, 0xe8, 0xbc, 0x33, 0xf8, 0x79, 0xf6, 0x6b, 0x73, 0x9b, 0x10, 0xf0, 0x1a, - 0xeb, 0x11, 0x54, 0xec - ]) - ); - assert_eq!( - Bitcoin::Low1.cmr(), - Cmr::from_byte_array([ - 0xfe, 0x62, 0x14, 0xf9, 0x67, 0x15, 0x6d, 0xcd, 0xe6, 0xdd, 0x49, 0xfd, 0xc5, 0x5e, - 0xfb, 0x86, 0x50, 0x69, 0xfe, 0xab, 0xff, 0xf0, 0xfe, 0x93, 0x1d, 0xba, 0x85, 0x31, - 0x34, 0xee, 0xd1, 0x30 - ]) - ); - assert_eq!( - Bitcoin::Low16.cmr(), - Cmr::from_byte_array([ - 0x74, 0x93, 0xcf, 0x69, 0x8a, 0x48, 0x82, 0xe5, 0xc3, 0x57, 0x9d, 0x06, 0x51, 0x8e, - 0x7e, 0xca, 0x2b, 0x84, 0x28, 0xf6, 0x2e, 0x2b, 0x51, 0x38, 0x02, 0xab, 0xe6, 0x22, - 0x17, 0x0c, 0x20, 0xfe - ]) - ); - assert_eq!( - Bitcoin::Low32.cmr(), - Cmr::from_byte_array([ - 0x36, 0x2d, 0x66, 0xa4, 0xf0, 0xae, 0xb9, 0x65, 0x84, 0xa5, 0x67, 0x57, 0x82, 0x71, - 0xb1, 0xf7, 0xbb, 0xfc, 0xc2, 0xde, 0x0d, 0xcf, 0x95, 0x79, 0x6b, 0x6f, 0x7a, 0x82, - 0x6b, 0x2a, 0x8a, 0xf7 - ]) - ); - assert_eq!( - Bitcoin::Low64.cmr(), - Cmr::from_byte_array([ - 0x97, 0x33, 0x23, 0xbc, 0x2b, 0x92, 0xe4, 0x28, 0x04, 0xd2, 0xe4, 0xf5, 0x8b, 0x86, - 0xf6, 0x5b, 0x56, 0xf9, 0x1d, 0xee, 0xb4, 0x81, 0x0e, 0xab, 0x8a, 0x1d, 0xed, 0xa9, - 0x69, 0x7a, 0x08, 0x72 - ]) - ); - assert_eq!( - Bitcoin::Low8.cmr(), - Cmr::from_byte_array([ - 0xcd, 0x1a, 0x85, 0x58, 0xef, 0x99, 0xa3, 0x22, 0x60, 0x21, 0x7a, 0x76, 0x49, 0xff, - 0x51, 0x40, 0xda, 0x69, 0xda, 0x70, 0x06, 0x72, 0x69, 0x0b, 0x27, 0x91, 0x7b, 0x07, - 0xd7, 0xc1, 0x4c, 0x67 - ]) - ); - assert_eq!( - Bitcoin::Lt16.cmr(), - Cmr::from_byte_array([ - 0x04, 0xac, 0xa8, 0x7e, 0x3e, 0x17, 0xf8, 0x05, 0xa2, 0x1c, 0xf2, 0x91, 0x7a, 0xee, - 0x99, 0x57, 0xb9, 0x50, 0xb2, 0xdb, 0x5d, 0x7a, 0xe5, 0xc8, 0x26, 0xd4, 0xac, 0x2e, - 0xc9, 0x7b, 0x5a, 0x52 - ]) - ); - assert_eq!( - Bitcoin::Lt32.cmr(), - Cmr::from_byte_array([ - 0x23, 0xa0, 0xa5, 0xc1, 0x97, 0x74, 0x7e, 0x3a, 0x95, 0x79, 0xe9, 0x0e, 0x0f, 0x22, - 0xf8, 0x4a, 0x29, 0xbf, 0xb5, 0xf0, 0x7b, 0x84, 0xb5, 0x9b, 0x26, 0x68, 0x8a, 0x0c, - 0xd5, 0x9d, 0xfe, 0xbd - ]) - ); - assert_eq!( - Bitcoin::Lt64.cmr(), - Cmr::from_byte_array([ - 0xd2, 0x99, 0x90, 0x1c, 0x7b, 0x5b, 0x3a, 0x59, 0xff, 0xc8, 0xdd, 0x09, 0x54, 0x5a, - 0x32, 0x38, 0x24, 0xb7, 0x79, 0xa9, 0x9b, 0x2d, 0x1a, 0x2f, 0x87, 0x45, 0x2d, 0x9e, - 0x4b, 0xef, 0xaf, 0x30 - ]) - ); - assert_eq!( - Bitcoin::Lt8.cmr(), - Cmr::from_byte_array([ - 0xdd, 0x94, 0x41, 0x3b, 0x52, 0x9c, 0x29, 0x8c, 0x16, 0x96, 0xe9, 0xfb, 0x08, 0xe6, - 0x67, 0x67, 0xb3, 0xf8, 0x33, 0x7a, 0xc0, 0x2e, 0x44, 0xb0, 0x68, 0xe9, 0x40, 0x14, - 0xf7, 0xc4, 0x1f, 0x2a - ]) - ); - assert_eq!( - Bitcoin::Maj1.cmr(), - Cmr::from_byte_array([ - 0x0e, 0x6f, 0xb4, 0x0f, 0xe3, 0x1a, 0x3a, 0x52, 0x6b, 0x44, 0xcf, 0x0b, 0x7c, 0x79, - 0x36, 0xc7, 0x77, 0xcb, 0xba, 0x89, 0x65, 0xa7, 0x25, 0x52, 0x32, 0xa7, 0xcf, 0x53, - 0xa9, 0x22, 0x88, 0x5a - ]) - ); - assert_eq!( - Bitcoin::Maj16.cmr(), - Cmr::from_byte_array([ - 0x38, 0x66, 0x9c, 0xe5, 0xe1, 0xe1, 0x71, 0x47, 0x54, 0x00, 0x73, 0x1b, 0xee, 0xb6, - 0x0b, 0xca, 0xfa, 0xd6, 0x66, 0x04, 0xc9, 0x39, 0x40, 0x16, 0x0c, 0xd7, 0x12, 0x88, - 0x35, 0x55, 0x93, 0x42 - ]) - ); - assert_eq!( - Bitcoin::Maj32.cmr(), - Cmr::from_byte_array([ - 0x55, 0x54, 0x34, 0x9b, 0x58, 0x4f, 0x5c, 0x38, 0x72, 0xc7, 0xf4, 0xf2, 0x57, 0x82, - 0x9e, 0x2a, 0xe8, 0x22, 0xd8, 0x23, 0x42, 0x4c, 0xeb, 0x95, 0x98, 0xf0, 0x83, 0x18, - 0x58, 0x6a, 0x88, 0x07 - ]) - ); - assert_eq!( - Bitcoin::Maj64.cmr(), - Cmr::from_byte_array([ - 0x73, 0x49, 0x03, 0xba, 0xef, 0xb7, 0x1d, 0x5e, 0xa4, 0x16, 0x48, 0xff, 0x43, 0xee, - 0xe6, 0x98, 0x94, 0xe0, 0x63, 0xb3, 0x88, 0xea, 0x42, 0x2f, 0x96, 0xae, 0xde, 0x19, - 0x3c, 0xea, 0xb8, 0x39 - ]) - ); - assert_eq!( - Bitcoin::Maj8.cmr(), - Cmr::from_byte_array([ - 0xba, 0x47, 0xa3, 0x99, 0xdc, 0x94, 0x35, 0xe1, 0x8e, 0x08, 0x0a, 0x4e, 0x18, 0xaf, - 0x7c, 0x65, 0x7f, 0xd3, 0x9f, 0x7c, 0xe7, 0xd6, 0x05, 0x2e, 0x46, 0x90, 0x23, 0x11, - 0xb0, 0x78, 0xd5, 0x85 - ]) - ); - assert_eq!( - Bitcoin::Max16.cmr(), - Cmr::from_byte_array([ - 0xaa, 0x55, 0x23, 0x74, 0x6c, 0xab, 0xfa, 0xf5, 0x66, 0x8e, 0x9e, 0x07, 0x37, 0xe5, - 0x6b, 0x06, 0x06, 0x22, 0x51, 0xd7, 0xe8, 0x0a, 0xb9, 0xb9, 0x10, 0x6d, 0x8f, 0x17, - 0x2d, 0xc8, 0x4d, 0xd6 - ]) - ); - assert_eq!( - Bitcoin::Max32.cmr(), - Cmr::from_byte_array([ - 0x69, 0x22, 0x96, 0x5d, 0x14, 0x43, 0x45, 0xc9, 0x13, 0xec, 0xb3, 0x0b, 0x5e, 0xd4, - 0x7e, 0x88, 0xda, 0xe3, 0x5c, 0x12, 0x21, 0xf2, 0x6a, 0xa9, 0x2d, 0xd5, 0xa5, 0xf6, - 0x15, 0xdb, 0xdb, 0x53 - ]) - ); - assert_eq!( - Bitcoin::Max64.cmr(), - Cmr::from_byte_array([ - 0x8a, 0x9b, 0xe9, 0x07, 0xb6, 0xa4, 0xc3, 0x0a, 0xbc, 0xc0, 0xf2, 0x2d, 0x01, 0x30, - 0x74, 0xc2, 0xd5, 0x6b, 0xb0, 0x81, 0xf2, 0x62, 0x18, 0x57, 0xd5, 0x38, 0xcc, 0x97, - 0x13, 0x1e, 0x44, 0x09 - ]) - ); - assert_eq!( - Bitcoin::Max8.cmr(), - Cmr::from_byte_array([ - 0xb4, 0xbf, 0x93, 0x23, 0x40, 0x22, 0xe8, 0x60, 0xfe, 0x76, 0xc0, 0xb5, 0x36, 0x0e, - 0x8b, 0x36, 0xff, 0x81, 0xee, 0x67, 0x05, 0xb5, 0x93, 0xac, 0xdf, 0x65, 0x5a, 0xc6, - 0xe6, 0xd7, 0xae, 0xba - ]) - ); - assert_eq!( - Bitcoin::Median16.cmr(), - Cmr::from_byte_array([ - 0x17, 0xe2, 0xe8, 0x7f, 0x07, 0x60, 0xf4, 0xfb, 0x3c, 0x9f, 0xd0, 0xbe, 0xd0, 0x00, - 0xd7, 0x39, 0x73, 0xab, 0x60, 0xf5, 0xe6, 0xc2, 0xc1, 0xfa, 0xb1, 0x7f, 0x9b, 0x23, - 0xee, 0x6a, 0xca, 0x48 - ]) - ); - assert_eq!( - Bitcoin::Median32.cmr(), - Cmr::from_byte_array([ - 0x11, 0x60, 0xae, 0x8e, 0xa8, 0xd3, 0x0f, 0x9a, 0x22, 0x33, 0xc4, 0x8e, 0x73, 0x12, - 0x40, 0xf8, 0x44, 0x93, 0xb8, 0x28, 0xb5, 0x57, 0x93, 0xe2, 0xf4, 0x04, 0x2a, 0x19, - 0x82, 0xac, 0x26, 0xa5 - ]) - ); - assert_eq!( - Bitcoin::Median64.cmr(), - Cmr::from_byte_array([ - 0xc8, 0x73, 0x73, 0x64, 0x9e, 0x7e, 0x40, 0x50, 0xbb, 0x73, 0x33, 0x7e, 0x08, 0xeb, - 0x5d, 0xe4, 0x52, 0x28, 0xab, 0x86, 0xad, 0x4e, 0x1f, 0x41, 0x91, 0xe5, 0x20, 0x2a, - 0xa6, 0xaf, 0xa0, 0xc5 - ]) - ); - assert_eq!( - Bitcoin::Median8.cmr(), - Cmr::from_byte_array([ - 0xc3, 0xb4, 0xe0, 0x89, 0x8a, 0x21, 0xbd, 0xe9, 0x4d, 0xae, 0xd3, 0x7a, 0x20, 0xad, - 0xf9, 0x0c, 0x8b, 0xe5, 0x69, 0x1a, 0x03, 0xb6, 0xa1, 0xe5, 0x56, 0x38, 0x5d, 0x42, - 0xeb, 0x19, 0x02, 0x2b - ]) - ); - assert_eq!( - Bitcoin::Min16.cmr(), - Cmr::from_byte_array([ - 0x5f, 0xd0, 0x05, 0x1e, 0xdb, 0x37, 0x19, 0xa6, 0x45, 0xb2, 0x72, 0xa0, 0x21, 0x08, - 0xef, 0xbb, 0x3d, 0x9b, 0xc0, 0xf6, 0x06, 0x21, 0xbf, 0x5a, 0x5b, 0xab, 0xe1, 0x16, - 0xd5, 0x55, 0xd5, 0x78 - ]) - ); - assert_eq!( - Bitcoin::Min32.cmr(), - Cmr::from_byte_array([ - 0xd8, 0x07, 0x82, 0xa2, 0xb5, 0xd8, 0x6a, 0xb6, 0xb9, 0xc9, 0xc3, 0xfb, 0x77, 0x8a, - 0x34, 0x73, 0xf6, 0x00, 0xb1, 0x85, 0xfe, 0x19, 0x25, 0xee, 0x9f, 0xc2, 0xe8, 0x77, - 0x7e, 0xd2, 0x66, 0x01 - ]) - ); - assert_eq!( - Bitcoin::Min64.cmr(), - Cmr::from_byte_array([ - 0xc5, 0xc0, 0x9d, 0x50, 0x13, 0x38, 0xe9, 0xa5, 0x12, 0xcf, 0x89, 0x76, 0xca, 0x4b, - 0x32, 0xb9, 0x24, 0x80, 0xbe, 0xf6, 0xae, 0xb2, 0x9d, 0x36, 0xd5, 0x90, 0xd3, 0x5b, - 0xf9, 0xf9, 0xec, 0xe1 - ]) - ); - assert_eq!( - Bitcoin::Min8.cmr(), - Cmr::from_byte_array([ - 0x81, 0xd2, 0x1e, 0x12, 0x81, 0x42, 0x38, 0x81, 0x80, 0x2c, 0x0e, 0x0c, 0x7d, 0x22, - 0xbd, 0x34, 0xd2, 0x6b, 0xd1, 0x2a, 0x4c, 0x4f, 0x1b, 0x70, 0x68, 0xe7, 0xe1, 0x83, - 0x82, 0x08, 0x48, 0xe9 - ]) - ); - assert_eq!( - Bitcoin::Modulo16.cmr(), - Cmr::from_byte_array([ - 0xb6, 0xb8, 0x7c, 0xfa, 0xb6, 0x7e, 0x55, 0x19, 0xf1, 0xc9, 0x98, 0xda, 0x47, 0x94, - 0x37, 0xbb, 0x79, 0xe6, 0x74, 0xf7, 0x15, 0xe9, 0xa2, 0xe5, 0x38, 0xee, 0xc5, 0xec, - 0x18, 0xe1, 0x8e, 0xa5 - ]) - ); - assert_eq!( - Bitcoin::Modulo32.cmr(), - Cmr::from_byte_array([ - 0x8d, 0x48, 0x6e, 0x83, 0x16, 0x54, 0xf3, 0x8a, 0x32, 0xda, 0x35, 0xeb, 0x7b, 0xb6, - 0x55, 0xa6, 0xed, 0x69, 0x4d, 0xbf, 0xa0, 0x58, 0x95, 0x7d, 0x9f, 0x5c, 0xbf, 0xcc, - 0x57, 0x92, 0xc6, 0x5b - ]) - ); - assert_eq!( - Bitcoin::Modulo64.cmr(), - Cmr::from_byte_array([ - 0x14, 0xdf, 0x20, 0xd9, 0x3d, 0xfd, 0xef, 0xe2, 0x55, 0x9b, 0xac, 0x50, 0xed, 0x38, - 0x19, 0x3b, 0xd7, 0x8b, 0xd6, 0x3f, 0x92, 0x9d, 0x86, 0xfb, 0x4f, 0x29, 0xa7, 0xc5, - 0xaf, 0x32, 0x42, 0xad - ]) - ); - assert_eq!( - Bitcoin::Modulo8.cmr(), - Cmr::from_byte_array([ - 0x2c, 0x75, 0x8a, 0x7c, 0x0f, 0x59, 0xe8, 0x00, 0xe9, 0x4f, 0x3d, 0xc5, 0xa0, 0x01, - 0xbf, 0x8e, 0xd9, 0x43, 0x5f, 0x75, 0xa2, 0xd9, 0x69, 0x30, 0xc5, 0x7e, 0xaa, 0xb0, - 0xcd, 0x80, 0xaf, 0x5c - ]) - ); - assert_eq!( - Bitcoin::Multiply16.cmr(), - Cmr::from_byte_array([ - 0x75, 0xbd, 0x41, 0xf2, 0xd2, 0xb3, 0x39, 0xf0, 0x69, 0xbf, 0xdf, 0xd8, 0x02, 0xd6, - 0x1e, 0x6c, 0xa8, 0xe3, 0xba, 0xd6, 0xfb, 0x6d, 0x95, 0xb6, 0x72, 0x09, 0x5b, 0x93, - 0x34, 0x5f, 0x04, 0x7f - ]) - ); - assert_eq!( - Bitcoin::Multiply32.cmr(), - Cmr::from_byte_array([ - 0x84, 0xcb, 0xe6, 0xce, 0x87, 0x03, 0x79, 0x92, 0x13, 0x87, 0x7c, 0x1b, 0xd5, 0x05, - 0xc7, 0x64, 0x34, 0x33, 0x69, 0x00, 0x2e, 0x50, 0x2c, 0x43, 0xd9, 0x7f, 0x3d, 0x57, - 0x77, 0x2d, 0x6c, 0x87 - ]) - ); - assert_eq!( - Bitcoin::Multiply64.cmr(), - Cmr::from_byte_array([ - 0x92, 0x98, 0x7b, 0x80, 0x1b, 0x92, 0xf6, 0x79, 0xeb, 0x96, 0x13, 0x68, 0x84, 0x44, - 0xa1, 0x78, 0x87, 0x50, 0xa8, 0x50, 0x6e, 0x03, 0xa9, 0x21, 0x8c, 0x21, 0xec, 0xc7, - 0x20, 0x82, 0xdc, 0x6a - ]) - ); - assert_eq!( - Bitcoin::Multiply8.cmr(), - Cmr::from_byte_array([ - 0x76, 0x4c, 0xab, 0x71, 0xdb, 0x94, 0x59, 0xa7, 0x69, 0x6d, 0x94, 0x4a, 0x50, 0x09, - 0x5b, 0x1a, 0xeb, 0xdf, 0xd9, 0x28, 0x4b, 0xdb, 0x74, 0x96, 0xa7, 0xb3, 0x02, 0x41, - 0xcc, 0xba, 0x3e, 0xce - ]) - ); - assert_eq!( - Bitcoin::Negate16.cmr(), - Cmr::from_byte_array([ - 0xe7, 0x60, 0xee, 0x40, 0x29, 0xc3, 0x4f, 0x89, 0x74, 0x06, 0xff, 0xde, 0xa5, 0x55, - 0x84, 0x86, 0x62, 0xe8, 0x9c, 0x98, 0x3e, 0x60, 0x70, 0xbd, 0x02, 0x72, 0xad, 0x0f, - 0xa3, 0x42, 0xef, 0xa3 - ]) - ); - assert_eq!( - Bitcoin::Negate32.cmr(), - Cmr::from_byte_array([ - 0x84, 0x95, 0xb7, 0x40, 0x09, 0xad, 0x07, 0xc9, 0x30, 0x2a, 0x25, 0xae, 0x56, 0xc3, - 0xe9, 0x73, 0x3f, 0x00, 0xc2, 0xba, 0xa4, 0x10, 0xea, 0xc4, 0xa5, 0x8e, 0x75, 0xdb, - 0x83, 0xaf, 0x1d, 0x22 - ]) - ); - assert_eq!( - Bitcoin::Negate64.cmr(), - Cmr::from_byte_array([ - 0x34, 0xe8, 0x9f, 0xaf, 0x34, 0x5a, 0xfd, 0x5e, 0x7b, 0x29, 0x00, 0x14, 0x52, 0xfc, - 0x5f, 0xc2, 0xe3, 0x78, 0x3a, 0xf7, 0xf2, 0x10, 0x16, 0x43, 0xbd, 0x76, 0x70, 0x6a, - 0x6f, 0xc3, 0xf3, 0x6a - ]) - ); - assert_eq!( - Bitcoin::Negate8.cmr(), - Cmr::from_byte_array([ - 0xe8, 0x1b, 0xe0, 0xb1, 0x5c, 0x67, 0x1a, 0xb8, 0xdf, 0x1f, 0x48, 0x69, 0xc5, 0x7f, - 0x11, 0x11, 0x18, 0xcb, 0x66, 0x83, 0x54, 0x97, 0x5c, 0x63, 0x66, 0xec, 0xb2, 0xb8, - 0xbb, 0x7c, 0x15, 0xcf - ]) - ); - assert_eq!( - Bitcoin::NumInputs.cmr(), - Cmr::from_byte_array([ - 0x5c, 0x5a, 0xc4, 0xff, 0x6d, 0xa5, 0x6c, 0xb3, 0x72, 0xb2, 0x32, 0x66, 0x6e, 0x83, - 0x34, 0xb9, 0xe2, 0xcf, 0xb0, 0xdc, 0xb4, 0x18, 0xf1, 0x61, 0xbf, 0xf1, 0x49, 0xe8, - 0x4e, 0xc9, 0x2c, 0x3e - ]) - ); - assert_eq!( - Bitcoin::NumOutputs.cmr(), - Cmr::from_byte_array([ - 0x98, 0xa1, 0xcc, 0xa7, 0x05, 0xdf, 0xcf, 0xaf, 0xd3, 0xa6, 0x9e, 0x9a, 0xdc, 0x05, - 0xba, 0x47, 0xe1, 0xfe, 0xfa, 0x6a, 0x29, 0xf3, 0x42, 0x86, 0x20, 0x48, 0xe4, 0x96, - 0x86, 0x48, 0xc3, 0xd7 - ]) - ); - assert_eq!( - Bitcoin::One16.cmr(), - Cmr::from_byte_array([ - 0x2e, 0x5e, 0x3d, 0x95, 0xe4, 0x53, 0x16, 0x88, 0x8e, 0x4f, 0x37, 0x09, 0xef, 0x83, - 0x2b, 0x9f, 0xd9, 0xe1, 0x5f, 0x30, 0x71, 0x9b, 0xf5, 0x5f, 0xc2, 0xe0, 0xe0, 0x9a, - 0x36, 0x57, 0xd8, 0x82 - ]) - ); - assert_eq!( - Bitcoin::One32.cmr(), - Cmr::from_byte_array([ - 0x06, 0x42, 0x6b, 0x85, 0x3c, 0x1b, 0xcb, 0x33, 0x8a, 0xed, 0xbe, 0x1f, 0x89, 0xa6, - 0xd9, 0xb7, 0xa3, 0xda, 0x03, 0x8c, 0xd0, 0x0a, 0x44, 0x71, 0x18, 0x36, 0x93, 0x49, - 0x66, 0x9e, 0x29, 0x76 - ]) - ); - assert_eq!( - Bitcoin::One64.cmr(), - Cmr::from_byte_array([ - 0xab, 0x1d, 0x2c, 0xd9, 0x96, 0x78, 0xda, 0x3c, 0x12, 0x8d, 0x39, 0xad, 0x9f, 0xe6, - 0xff, 0xa9, 0x55, 0xc1, 0x6e, 0x5e, 0xf2, 0xc2, 0x5b, 0xb4, 0x31, 0x83, 0x15, 0x59, - 0x69, 0x51, 0xf4, 0x27 - ]) - ); - assert_eq!( - Bitcoin::One8.cmr(), - Cmr::from_byte_array([ - 0x3c, 0xc5, 0xf5, 0x23, 0xd6, 0xa6, 0x35, 0x5d, 0xc9, 0x24, 0xee, 0x0a, 0xc1, 0xf5, - 0xfe, 0x2c, 0x52, 0x12, 0x75, 0xe3, 0xaa, 0x9f, 0x21, 0xd3, 0x1b, 0x08, 0x2d, 0xb2, - 0xac, 0x23, 0x0d, 0x9d - ]) - ); - assert_eq!( - Bitcoin::Or1.cmr(), - Cmr::from_byte_array([ - 0xc4, 0x65, 0x96, 0x43, 0x69, 0xfc, 0xa2, 0x09, 0x7f, 0x83, 0x53, 0x0c, 0x87, 0xbc, - 0xbc, 0x90, 0xc3, 0x06, 0x57, 0x9d, 0x9f, 0x3b, 0xfe, 0xdd, 0xf4, 0xa1, 0x72, 0xa4, - 0xea, 0x0b, 0x58, 0xec - ]) - ); - assert_eq!( - Bitcoin::Or16.cmr(), - Cmr::from_byte_array([ - 0x5a, 0x98, 0x5e, 0x04, 0x3b, 0x85, 0x27, 0x3b, 0x90, 0xf9, 0x0e, 0x20, 0xf8, 0x2b, - 0x75, 0x32, 0x33, 0x51, 0xcf, 0x2a, 0x4e, 0x62, 0xa7, 0xf9, 0xcb, 0x2f, 0x05, 0x96, - 0x40, 0x2e, 0x9e, 0x28 - ]) - ); - assert_eq!( - Bitcoin::Or32.cmr(), - Cmr::from_byte_array([ - 0x35, 0x52, 0x38, 0x3a, 0x57, 0xff, 0xb4, 0x8d, 0x63, 0xa0, 0x33, 0x7a, 0xf0, 0xdd, - 0x6e, 0xfa, 0xb6, 0xb4, 0x6c, 0x5d, 0xe1, 0x72, 0x0e, 0x42, 0x0b, 0xdd, 0x1c, 0x82, - 0x27, 0x6b, 0xc9, 0xa9 - ]) - ); - assert_eq!( - Bitcoin::Or64.cmr(), - Cmr::from_byte_array([ - 0x51, 0xa1, 0x73, 0xda, 0xdc, 0xa0, 0x1a, 0xc6, 0xf6, 0x2e, 0x75, 0xd5, 0xcd, 0x35, - 0x22, 0xf0, 0x9f, 0xde, 0x62, 0xb1, 0x15, 0x13, 0xe0, 0x68, 0x42, 0x28, 0x52, 0xa4, - 0x91, 0x67, 0xb6, 0x06 - ]) - ); - assert_eq!( - Bitcoin::Or8.cmr(), - Cmr::from_byte_array([ - 0x79, 0xef, 0xbd, 0xcb, 0x53, 0x7b, 0xeb, 0xcb, 0x18, 0x8d, 0x11, 0x16, 0xb7, 0x8a, - 0x10, 0x9b, 0xff, 0xbc, 0x2a, 0x6c, 0xe3, 0xd1, 0xf8, 0x70, 0x15, 0x4a, 0x79, 0x56, - 0x09, 0x1b, 0x34, 0x2f - ]) - ); - assert_eq!( - Bitcoin::OutpointHash.cmr(), - Cmr::from_byte_array([ - 0x3a, 0x1a, 0xe9, 0x0e, 0x16, 0x7f, 0xb4, 0x0d, 0x6e, 0x13, 0xb4, 0x51, 0xad, 0x67, - 0x41, 0x0d, 0x8d, 0xd9, 0x91, 0xc8, 0x7d, 0x6a, 0x4a, 0x59, 0xcc, 0x76, 0xc6, 0x3f, - 0x3b, 0x9e, 0x5e, 0x56 - ]) - ); - assert_eq!( - Bitcoin::OutputsHash.cmr(), - Cmr::from_byte_array([ - 0xf2, 0xeb, 0x6d, 0x0f, 0x01, 0x8e, 0x6f, 0x15, 0xe3, 0x5b, 0xaa, 0x82, 0xe5, 0x7e, - 0x14, 0xfe, 0x34, 0x37, 0x96, 0xf2, 0x19, 0x68, 0x26, 0xbe, 0xd7, 0xc7, 0x87, 0x55, - 0x98, 0xd6, 0x64, 0x1d - ]) - ); - assert_eq!( - Bitcoin::OutputHash.cmr(), - Cmr::from_byte_array([ - 0x91, 0x21, 0x1f, 0xc6, 0x01, 0x1a, 0x64, 0x93, 0x00, 0xc6, 0xbe, 0xe9, 0x4f, 0xdd, - 0x48, 0xa9, 0x7f, 0xa2, 0xa9, 0xb6, 0xf2, 0x84, 0xbe, 0x01, 0x5d, 0x46, 0x2d, 0x17, - 0xde, 0x66, 0x4a, 0xc3 - ]) - ); - assert_eq!( - Bitcoin::OutputScriptsHash.cmr(), - Cmr::from_byte_array([ - 0xff, 0x20, 0xbc, 0x43, 0x65, 0xe7, 0x17, 0x07, 0x57, 0x1c, 0x6e, 0x17, 0x38, 0xe1, - 0xed, 0x32, 0x6f, 0x7c, 0x35, 0x1d, 0xe1, 0x30, 0x22, 0xae, 0xa3, 0xd6, 0x40, 0x6b, - 0x8a, 0xee, 0x8e, 0x3b - ]) - ); - assert_eq!( - Bitcoin::OutputScriptHash.cmr(), - Cmr::from_byte_array([ - 0xbd, 0xfd, 0xb2, 0x31, 0xf4, 0xf1, 0xa6, 0x2c, 0x9d, 0x7b, 0x03, 0x93, 0x1e, 0x7f, - 0x19, 0xa4, 0x54, 0x6a, 0xf2, 0x34, 0x75, 0x4c, 0xbf, 0x70, 0x05, 0x9f, 0xdd, 0x42, - 0xbb, 0xbc, 0x41, 0x26 - ]) - ); - assert_eq!( - Bitcoin::OutputValue.cmr(), - Cmr::from_byte_array([ - 0x93, 0x36, 0x43, 0xb6, 0xc5, 0xa6, 0x22, 0x0a, 0xbb, 0xca, 0x6f, 0x35, 0x09, 0xfe, - 0xff, 0x6d, 0x13, 0xef, 0xa6, 0xc9, 0xfa, 0xe9, 0x59, 0x24, 0x57, 0x53, 0x64, 0xf2, - 0xb1, 0x64, 0xd2, 0xbc - ]) - ); - assert_eq!( - Bitcoin::OutputValuesHash.cmr(), - Cmr::from_byte_array([ - 0x22, 0x89, 0x93, 0x79, 0x00, 0x57, 0x06, 0x6f, 0x20, 0x16, 0x97, 0x1d, 0xf5, 0x5e, - 0x6f, 0x67, 0xd2, 0x52, 0xef, 0xb6, 0xda, 0xab, 0xd0, 0xfc, 0x56, 0x6a, 0x8d, 0x21, - 0x56, 0xef, 0xbb, 0xfc - ]) - ); - assert_eq!( - Bitcoin::ParseLock.cmr(), - Cmr::from_byte_array([ - 0x3d, 0xb8, 0x45, 0x35, 0xfa, 0x3d, 0x90, 0xef, 0x0b, 0x58, 0x1e, 0x22, 0xb6, 0x1d, - 0x21, 0x27, 0x84, 0x4b, 0x21, 0x16, 0xe8, 0x4f, 0x81, 0x4a, 0x5c, 0xba, 0xc5, 0x2d, - 0xf5, 0x15, 0xf2, 0xd2 - ]) - ); - assert_eq!( - Bitcoin::ParseSequence.cmr(), - Cmr::from_byte_array([ - 0x38, 0xb2, 0x53, 0x3f, 0x5f, 0xed, 0xe8, 0x69, 0xba, 0xa1, 0x70, 0x69, 0x83, 0xdf, - 0x4c, 0x89, 0xd6, 0x2d, 0x5f, 0x90, 0x80, 0x0b, 0x47, 0xea, 0xb2, 0x11, 0x13, 0x31, - 0x1a, 0x5a, 0xae, 0xc9 - ]) - ); - assert_eq!( - Bitcoin::PointVerify1.cmr(), - Cmr::from_byte_array([ - 0xbe, 0x2a, 0x98, 0x90, 0xf1, 0xd5, 0xb6, 0x15, 0x14, 0x7f, 0x82, 0x41, 0xe0, 0x60, - 0x9b, 0x5c, 0xac, 0x01, 0xec, 0xe0, 0xa3, 0xf9, 0x23, 0x68, 0x67, 0xb2, 0xbf, 0xde, - 0xa1, 0xb8, 0x04, 0x4e - ]) - ); - assert_eq!( - Bitcoin::Rightmost16_1.cmr(), - Cmr::from_byte_array([ - 0x3f, 0x3c, 0x43, 0x46, 0x87, 0x17, 0x42, 0x26, 0x5e, 0x87, 0xf0, 0x01, 0xb4, 0x6d, - 0xe7, 0xd1, 0x98, 0x75, 0x1b, 0x34, 0xfa, 0xa1, 0x80, 0x18, 0xde, 0x60, 0xc8, 0x46, - 0x8d, 0x9b, 0x98, 0xa4 - ]) - ); - assert_eq!( - Bitcoin::Rightmost16_2.cmr(), - Cmr::from_byte_array([ - 0xc1, 0x8b, 0x9f, 0xdd, 0x34, 0x0a, 0x26, 0x7a, 0xc1, 0x6d, 0x4f, 0x39, 0xee, 0x75, - 0x43, 0x56, 0x52, 0xaa, 0xca, 0x52, 0x56, 0x50, 0xb5, 0x1a, 0x45, 0x87, 0x98, 0x04, - 0x8e, 0x62, 0x7d, 0x51 - ]) - ); - assert_eq!( - Bitcoin::Rightmost16_4.cmr(), - Cmr::from_byte_array([ - 0xc6, 0xc5, 0x3f, 0xa7, 0x1e, 0x23, 0x0c, 0xf0, 0x58, 0x51, 0x58, 0xf4, 0x70, 0x58, - 0x8b, 0xac, 0x5c, 0x51, 0x8f, 0x84, 0xf9, 0xfc, 0x23, 0x86, 0x52, 0xf1, 0x75, 0xfb, - 0x6e, 0xa1, 0x8c, 0x11 - ]) - ); - assert_eq!( - Bitcoin::Rightmost16_8.cmr(), - Cmr::from_byte_array([ - 0xee, 0x76, 0x9c, 0x1c, 0xc8, 0xa3, 0xfd, 0xd1, 0x83, 0x8f, 0xc9, 0xf0, 0x49, 0x0c, - 0xe7, 0x03, 0x93, 0xfd, 0x91, 0xba, 0x3c, 0xbd, 0x4a, 0xbd, 0x08, 0x64, 0x9f, 0xb9, - 0xc4, 0x43, 0x11, 0xbd - ]) - ); - assert_eq!( - Bitcoin::Rightmost32_1.cmr(), - Cmr::from_byte_array([ - 0x1c, 0x44, 0x23, 0x69, 0xfb, 0x81, 0xf6, 0x11, 0xd3, 0x28, 0x01, 0x0b, 0x86, 0x4b, - 0xcc, 0xb7, 0xf3, 0x5e, 0xd4, 0x77, 0xdf, 0xa3, 0x85, 0x55, 0x74, 0xc1, 0x35, 0x64, - 0xcd, 0xbd, 0xb8, 0x60 - ]) - ); - assert_eq!( - Bitcoin::Rightmost32_16.cmr(), - Cmr::from_byte_array([ - 0xad, 0xd2, 0xc3, 0x39, 0x0d, 0x9a, 0xf7, 0xc2, 0x4a, 0x15, 0x9a, 0x37, 0xd6, 0x9d, - 0x44, 0x84, 0xd2, 0xc2, 0x4a, 0x2c, 0xb5, 0xb0, 0xeb, 0x2d, 0x3c, 0x49, 0x3d, 0x98, - 0x12, 0xac, 0xfd, 0x74 - ]) - ); - assert_eq!( - Bitcoin::Rightmost32_2.cmr(), - Cmr::from_byte_array([ - 0x00, 0xb8, 0x81, 0x5a, 0xd7, 0x42, 0x3d, 0xd5, 0x8c, 0xb9, 0x8b, 0xe8, 0x2c, 0xad, - 0x26, 0x67, 0x5c, 0x3b, 0xf5, 0x4a, 0x0b, 0xed, 0xba, 0xde, 0x34, 0x64, 0xb4, 0xfe, - 0x5a, 0x4e, 0x8c, 0xe6 - ]) - ); - assert_eq!( - Bitcoin::Rightmost32_4.cmr(), - Cmr::from_byte_array([ - 0x84, 0xfa, 0x5a, 0x54, 0xf7, 0x72, 0x9f, 0x9d, 0x68, 0x99, 0x4b, 0xea, 0xb9, 0x3a, - 0xe7, 0x9b, 0x8c, 0x4a, 0x10, 0xd5, 0xb7, 0xae, 0x97, 0x27, 0xaa, 0x17, 0x16, 0xe5, - 0x7d, 0x03, 0x3b, 0x74 - ]) - ); - assert_eq!( - Bitcoin::Rightmost32_8.cmr(), - Cmr::from_byte_array([ - 0x7d, 0x38, 0x05, 0xd3, 0xc7, 0x8c, 0x4e, 0xea, 0x91, 0xe3, 0xd3, 0x5e, 0xfd, 0xd4, - 0x7e, 0xed, 0xd4, 0x21, 0xaf, 0x84, 0xd2, 0x19, 0x10, 0x32, 0x93, 0x32, 0xa0, 0xb5, - 0x48, 0x7f, 0xab, 0x63 - ]) - ); - assert_eq!( - Bitcoin::Rightmost64_1.cmr(), - Cmr::from_byte_array([ - 0xd3, 0xb1, 0x64, 0xc5, 0xdc, 0x66, 0xcc, 0x7e, 0xf9, 0x23, 0x4f, 0xed, 0xe4, 0xdc, - 0x7f, 0x0d, 0xa5, 0xcd, 0x71, 0xc1, 0xc1, 0xd4, 0xca, 0xd6, 0x0f, 0xb4, 0xec, 0x57, - 0x3e, 0x2b, 0x8a, 0x75 - ]) - ); - assert_eq!( - Bitcoin::Rightmost64_16.cmr(), - Cmr::from_byte_array([ - 0xea, 0xe4, 0x34, 0x78, 0xf9, 0xf2, 0xf4, 0x52, 0xef, 0xac, 0x15, 0xee, 0xe6, 0x0f, - 0x8b, 0x52, 0x53, 0xd8, 0x0a, 0x2d, 0x32, 0x12, 0x9b, 0x4e, 0x5b, 0xa3, 0x83, 0x00, - 0xad, 0x98, 0x52, 0xfd - ]) - ); - assert_eq!( - Bitcoin::Rightmost64_2.cmr(), - Cmr::from_byte_array([ - 0x9c, 0xd4, 0xa9, 0x8b, 0xbd, 0xb8, 0xa3, 0x35, 0x85, 0xc0, 0x0f, 0x47, 0xd6, 0xad, - 0xab, 0x7a, 0xf5, 0x42, 0x86, 0xfb, 0x8a, 0xe6, 0x0f, 0x72, 0x30, 0x11, 0xfb, 0x84, - 0xc0, 0xee, 0x78, 0xf9 - ]) - ); - assert_eq!( - Bitcoin::Rightmost64_32.cmr(), - Cmr::from_byte_array([ - 0x7f, 0x24, 0x20, 0xae, 0x5b, 0x0f, 0x5a, 0x3f, 0x6f, 0x2e, 0x60, 0xb6, 0x1f, 0x8a, - 0x41, 0x5c, 0x08, 0x8b, 0x94, 0xb2, 0x1c, 0x1a, 0x62, 0xa3, 0xfd, 0xaa, 0xc7, 0x49, - 0xdb, 0xdf, 0x4c, 0x71 - ]) - ); - assert_eq!( - Bitcoin::Rightmost64_4.cmr(), - Cmr::from_byte_array([ - 0xe2, 0x65, 0x55, 0x2a, 0x24, 0xfb, 0xcd, 0xec, 0x05, 0x83, 0xd7, 0x18, 0x3e, 0x48, - 0xeb, 0xc2, 0xff, 0x6d, 0x31, 0x65, 0x57, 0xba, 0xc5, 0x91, 0x5c, 0x03, 0xcb, 0x23, - 0x35, 0xd2, 0x32, 0x95 - ]) - ); - assert_eq!( - Bitcoin::Rightmost64_8.cmr(), - Cmr::from_byte_array([ - 0x98, 0xcd, 0x95, 0xf9, 0x5d, 0x46, 0x64, 0x1b, 0x04, 0x9e, 0x77, 0xbf, 0x90, 0xee, - 0xa5, 0x98, 0xad, 0xf2, 0x9e, 0xe5, 0x00, 0xe6, 0x50, 0x72, 0x87, 0x54, 0x8b, 0xb1, - 0xcd, 0xaf, 0x78, 0x4d - ]) - ); - assert_eq!( - Bitcoin::Rightmost8_1.cmr(), - Cmr::from_byte_array([ - 0x08, 0x76, 0xfc, 0xd4, 0x69, 0x85, 0x91, 0xf3, 0x31, 0x91, 0x01, 0x57, 0x4c, 0xe1, - 0x53, 0xfc, 0xdf, 0xe9, 0x4f, 0x58, 0x1a, 0xac, 0x5e, 0x75, 0xf3, 0xcd, 0x74, 0x46, - 0xdf, 0x56, 0xf3, 0xc7 - ]) - ); - assert_eq!( - Bitcoin::Rightmost8_2.cmr(), - Cmr::from_byte_array([ - 0xb9, 0xf7, 0xb2, 0x90, 0xaf, 0xe7, 0xf1, 0x89, 0xe3, 0x2a, 0xeb, 0xf2, 0xcc, 0x4d, - 0xdc, 0xa9, 0x6b, 0xb0, 0x07, 0x64, 0xc7, 0xbe, 0x28, 0x87, 0xdc, 0xe0, 0x54, 0xd0, - 0x9e, 0x38, 0xc3, 0x53 - ]) - ); - assert_eq!( - Bitcoin::Rightmost8_4.cmr(), - Cmr::from_byte_array([ - 0xf2, 0x8e, 0x9a, 0xf5, 0xaf, 0x4c, 0x9c, 0xca, 0x4b, 0x43, 0xcc, 0x6a, 0xdf, 0x9d, - 0x9d, 0x8d, 0x16, 0x9c, 0x87, 0xc5, 0x55, 0x9f, 0x9f, 0x3c, 0xca, 0xc8, 0xf2, 0x35, - 0x2b, 0x62, 0x9f, 0x18 - ]) - ); - assert_eq!( - Bitcoin::RightExtend16_32.cmr(), - Cmr::from_byte_array([ - 0xdb, 0xf1, 0x8d, 0x87, 0xa7, 0x89, 0x21, 0x39, 0xa3, 0x88, 0xe9, 0xa9, 0x83, 0xc4, - 0x89, 0x92, 0xac, 0x35, 0xa8, 0x45, 0x56, 0xee, 0x0d, 0xef, 0xc1, 0xda, 0xdf, 0x0c, - 0x5f, 0x47, 0x1a, 0x26 - ]) - ); - assert_eq!( - Bitcoin::RightExtend16_64.cmr(), - Cmr::from_byte_array([ - 0xd0, 0x11, 0xac, 0xc7, 0x94, 0xe3, 0xc4, 0x78, 0x9a, 0xcc, 0xd0, 0xd5, 0xfe, 0x49, - 0x97, 0xd3, 0x34, 0xd9, 0x1f, 0x08, 0x31, 0xa1, 0xeb, 0x35, 0x04, 0xb4, 0xcb, 0x2d, - 0xdf, 0x47, 0x97, 0xaf - ]) - ); - assert_eq!( - Bitcoin::RightExtend32_64.cmr(), - Cmr::from_byte_array([ - 0xa5, 0xaa, 0x5d, 0xb1, 0xe5, 0x35, 0xe7, 0x23, 0x2a, 0xd3, 0x6d, 0xaf, 0xba, 0x6d, - 0x5a, 0x20, 0x0d, 0x54, 0xeb, 0x85, 0x3b, 0x75, 0xdc, 0x70, 0xa5, 0x94, 0xed, 0x64, - 0xaa, 0x6b, 0xd9, 0xab - ]) - ); - assert_eq!( - Bitcoin::RightExtend8_16.cmr(), - Cmr::from_byte_array([ - 0x81, 0x06, 0xd5, 0x8a, 0x80, 0x66, 0xee, 0x6e, 0x15, 0xe5, 0x5c, 0xa5, 0x2c, 0xb7, - 0xaf, 0xd8, 0xe3, 0x27, 0x75, 0x87, 0xbf, 0xd7, 0xde, 0xc0, 0xbe, 0x37, 0xd4, 0x06, - 0x74, 0x2a, 0x39, 0x31 - ]) - ); - assert_eq!( - Bitcoin::RightExtend8_32.cmr(), - Cmr::from_byte_array([ - 0xdf, 0xa4, 0xba, 0xfa, 0x43, 0x2a, 0x53, 0x38, 0xd3, 0x74, 0xde, 0xb6, 0xb7, 0x24, - 0xb7, 0xf6, 0xea, 0xe5, 0x58, 0x61, 0xfe, 0x73, 0x1d, 0x43, 0x04, 0x8a, 0xa3, 0x04, - 0xd1, 0xf7, 0xf9, 0xa2 - ]) - ); - assert_eq!( - Bitcoin::RightExtend8_64.cmr(), - Cmr::from_byte_array([ - 0x62, 0x0a, 0x37, 0x03, 0x8b, 0x6f, 0xa1, 0x27, 0x49, 0x5f, 0x0b, 0x46, 0x49, 0x6f, - 0x64, 0x35, 0xdd, 0x2d, 0xad, 0x7e, 0xf0, 0xc0, 0xfd, 0x2c, 0xd6, 0x5f, 0x54, 0xdc, - 0x18, 0x5e, 0x99, 0x7b - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh16_32.cmr(), - Cmr::from_byte_array([ - 0x2b, 0x6a, 0xbc, 0x38, 0x32, 0x1a, 0x7c, 0x54, 0x2f, 0xb1, 0x69, 0x74, 0x62, 0x1c, - 0xed, 0x80, 0x88, 0x0d, 0xb5, 0x19, 0xbb, 0x48, 0x60, 0x93, 0x42, 0x6e, 0x8c, 0xe1, - 0x8e, 0x01, 0x69, 0xb1 - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh16_64.cmr(), - Cmr::from_byte_array([ - 0xad, 0x90, 0xd8, 0xff, 0xa5, 0x74, 0x50, 0xb3, 0xb5, 0xe9, 0x09, 0x62, 0x25, 0x34, - 0x9e, 0xd8, 0xf0, 0x72, 0xe1, 0x01, 0x72, 0x93, 0xf3, 0x92, 0xef, 0x85, 0x4e, 0x03, - 0x19, 0xab, 0xc9, 0x34 - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh1_16.cmr(), - Cmr::from_byte_array([ - 0x28, 0x81, 0x58, 0xb1, 0xc9, 0x10, 0x87, 0x7b, 0x7e, 0xea, 0x3d, 0xfc, 0xf2, 0xb2, - 0xb7, 0x88, 0x92, 0x28, 0x08, 0xb6, 0xd6, 0xfa, 0x75, 0xf8, 0x96, 0x77, 0x19, 0x04, - 0x8b, 0x14, 0x12, 0x49 - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh1_32.cmr(), - Cmr::from_byte_array([ - 0xee, 0x2a, 0xd7, 0x7f, 0x66, 0x8d, 0x3d, 0x6a, 0x2e, 0x68, 0x50, 0x6e, 0x49, 0x04, - 0xcf, 0x50, 0xa0, 0x84, 0x60, 0xe1, 0xd2, 0xb8, 0x6a, 0x81, 0xe1, 0x4e, 0x41, 0xf8, - 0xda, 0x4c, 0xdd, 0xf2 - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh1_64.cmr(), - Cmr::from_byte_array([ - 0x3d, 0x6a, 0x7f, 0xe6, 0x9a, 0x11, 0x64, 0x2a, 0xce, 0xd6, 0x84, 0x2b, 0x89, 0xaa, - 0x1b, 0xb8, 0x41, 0x3e, 0x39, 0x90, 0x63, 0xcc, 0x16, 0x78, 0x6a, 0xf7, 0xc0, 0x33, - 0xda, 0xd5, 0x8b, 0x95 - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh1_8.cmr(), - Cmr::from_byte_array([ - 0x28, 0x44, 0xbd, 0xfd, 0x6a, 0xba, 0x29, 0xdf, 0x03, 0xf9, 0x3a, 0xa6, 0xae, 0xb2, - 0x1c, 0x06, 0x40, 0x28, 0xdb, 0x05, 0xff, 0x77, 0xd8, 0xd9, 0x1c, 0xfd, 0xcd, 0xef, - 0xb1, 0x90, 0xc5, 0xbd - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh32_64.cmr(), - Cmr::from_byte_array([ - 0xb4, 0x32, 0xe5, 0x32, 0x1a, 0xe1, 0x71, 0x4c, 0xe1, 0x95, 0x29, 0xd8, 0x5f, 0x24, - 0xff, 0x89, 0x87, 0x91, 0x0e, 0xbc, 0xf0, 0x15, 0xf8, 0x7f, 0x15, 0xbb, 0xed, 0x55, - 0xf0, 0xa0, 0xe8, 0x92 - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh8_16.cmr(), - Cmr::from_byte_array([ - 0x6f, 0x2d, 0x96, 0xc9, 0x54, 0x13, 0xca, 0x9a, 0xa8, 0xcc, 0x55, 0x0f, 0x25, 0x73, - 0xe1, 0x66, 0x99, 0x56, 0xd6, 0x07, 0x69, 0x2c, 0xf1, 0xca, 0x6d, 0xc7, 0x6d, 0x2f, - 0x2b, 0x4a, 0x3a, 0xc8 - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh8_32.cmr(), - Cmr::from_byte_array([ - 0xdf, 0x2c, 0x7f, 0x92, 0x99, 0x00, 0xa4, 0x49, 0x01, 0xe6, 0xff, 0x65, 0x27, 0x6a, - 0x95, 0x1a, 0xeb, 0x95, 0xdf, 0x25, 0x0b, 0x13, 0x97, 0x14, 0xd4, 0x19, 0x54, 0x04, - 0xd7, 0x78, 0x98, 0xed - ]) - ); - assert_eq!( - Bitcoin::RightPadHigh8_64.cmr(), - Cmr::from_byte_array([ - 0x79, 0xc0, 0x1d, 0xa3, 0xe6, 0x0b, 0x9c, 0x69, 0x35, 0xce, 0x3e, 0x15, 0x98, 0xb1, - 0x78, 0x40, 0xaf, 0x82, 0xdc, 0xb0, 0xdd, 0xc6, 0x3a, 0xef, 0x4a, 0x06, 0xe7, 0xf9, - 0xca, 0x5d, 0x27, 0x41 - ]) - ); - assert_eq!( - Bitcoin::RightPadLow16_32.cmr(), - Cmr::from_byte_array([ - 0x6f, 0x20, 0x10, 0x27, 0xcc, 0x75, 0x98, 0x02, 0x30, 0xa0, 0x70, 0x85, 0x9c, 0x3e, - 0x38, 0x02, 0x36, 0xa1, 0xcb, 0x10, 0xe6, 0x1a, 0x01, 0xaa, 0x1f, 0x6d, 0x23, 0x1d, - 0x15, 0x14, 0x2f, 0x25 - ]) - ); - assert_eq!( - Bitcoin::RightPadLow16_64.cmr(), - Cmr::from_byte_array([ - 0xb8, 0x6e, 0x1f, 0x0b, 0xfe, 0xc6, 0x55, 0x98, 0xd0, 0xa3, 0xd1, 0xec, 0x96, 0x03, - 0x05, 0xb9, 0x67, 0x45, 0x67, 0x3e, 0x1b, 0x16, 0xbf, 0x32, 0x7a, 0x71, 0x68, 0x05, - 0x83, 0xd7, 0x1d, 0x90 - ]) - ); - assert_eq!( - Bitcoin::RightPadLow1_16.cmr(), - Cmr::from_byte_array([ - 0x05, 0x2a, 0x64, 0x99, 0xc9, 0x3e, 0xe6, 0xbc, 0x1a, 0xe6, 0x57, 0xf8, 0x5f, 0xd4, - 0xd4, 0xfe, 0x67, 0x7a, 0xbc, 0xee, 0x54, 0x0d, 0x13, 0x40, 0x33, 0x54, 0x2e, 0x9a, - 0xb6, 0x0a, 0x63, 0xdd - ]) - ); - assert_eq!( - Bitcoin::RightPadLow1_32.cmr(), - Cmr::from_byte_array([ - 0x5b, 0x70, 0xd4, 0x28, 0x96, 0x0e, 0x95, 0xcc, 0x40, 0xd5, 0x18, 0x46, 0xf5, 0x3a, - 0x4d, 0x0a, 0x35, 0xc9, 0x01, 0x5d, 0x15, 0x00, 0xb6, 0xbc, 0x84, 0x9b, 0x72, 0x83, - 0x5e, 0x2b, 0xd4, 0x40 - ]) - ); - assert_eq!( - Bitcoin::RightPadLow1_64.cmr(), - Cmr::from_byte_array([ - 0x44, 0xef, 0xeb, 0x87, 0xca, 0x2a, 0xd7, 0xfd, 0x4b, 0x73, 0xf1, 0x63, 0x07, 0xc7, - 0xf0, 0x59, 0x02, 0x65, 0x6f, 0x35, 0x09, 0x0f, 0xb0, 0xa4, 0x32, 0x6c, 0x64, 0x89, - 0x88, 0xae, 0x1d, 0x39 - ]) - ); - assert_eq!( - Bitcoin::RightPadLow1_8.cmr(), - Cmr::from_byte_array([ - 0x93, 0x40, 0x39, 0x8b, 0xcc, 0x8e, 0xa8, 0x3e, 0xc8, 0x40, 0xbe, 0x72, 0x9d, 0xbb, - 0x8b, 0x81, 0x20, 0x78, 0x24, 0xee, 0x87, 0x5d, 0x15, 0x82, 0x59, 0xd6, 0xda, 0xd2, - 0x0a, 0x83, 0x93, 0x0c - ]) - ); - assert_eq!( - Bitcoin::RightPadLow32_64.cmr(), - Cmr::from_byte_array([ - 0x69, 0x3e, 0x28, 0x10, 0x1e, 0x04, 0xfd, 0xa4, 0x3b, 0x97, 0xe6, 0x11, 0xf0, 0xfe, - 0x98, 0x00, 0x0e, 0x14, 0x30, 0x2e, 0x5d, 0xcd, 0x6e, 0xd6, 0x5e, 0xee, 0x42, 0xe3, - 0x40, 0x14, 0x24, 0x2f - ]) - ); - assert_eq!( - Bitcoin::RightPadLow8_16.cmr(), - Cmr::from_byte_array([ - 0x09, 0x6b, 0x25, 0xc3, 0xc8, 0x41, 0x5f, 0x04, 0xd8, 0x83, 0x27, 0x43, 0xeb, 0x2f, - 0x84, 0x56, 0xd5, 0xf0, 0xa6, 0x44, 0x91, 0x3d, 0x3e, 0xc5, 0x9d, 0x34, 0xf4, 0x55, - 0x25, 0x01, 0xfa, 0x20 - ]) - ); - assert_eq!( - Bitcoin::RightPadLow8_32.cmr(), - Cmr::from_byte_array([ - 0xfc, 0x7f, 0x57, 0x22, 0xa6, 0x2a, 0xa2, 0x20, 0x18, 0xcc, 0x81, 0xcd, 0x00, 0xa9, - 0x32, 0x6c, 0x7f, 0xe9, 0xc6, 0x3a, 0xbc, 0xe2, 0xbd, 0xa4, 0xc0, 0xe6, 0x6a, 0x3f, - 0x47, 0xc6, 0x7c, 0x53 - ]) - ); - assert_eq!( - Bitcoin::RightPadLow8_64.cmr(), - Cmr::from_byte_array([ - 0xa5, 0xbb, 0x7d, 0x5e, 0xfc, 0xa0, 0xe4, 0x8d, 0x9d, 0x80, 0xc5, 0x02, 0x71, 0x15, - 0xb4, 0x85, 0x78, 0x10, 0x51, 0xe0, 0xef, 0x46, 0xe4, 0xd6, 0x08, 0x31, 0x7a, 0x1c, - 0x42, 0x61, 0xbc, 0x46 - ]) - ); - assert_eq!( - Bitcoin::RightRotate16.cmr(), - Cmr::from_byte_array([ - 0x48, 0x2e, 0xa7, 0xe1, 0x21, 0x45, 0x01, 0xd9, 0x3c, 0x9a, 0xd1, 0x6f, 0xa8, 0xb9, - 0x7b, 0xf5, 0xb3, 0x84, 0xfc, 0x2b, 0x54, 0x78, 0x9b, 0x8c, 0xd9, 0xe7, 0x84, 0xcc, - 0xd0, 0xeb, 0x9d, 0x57 - ]) - ); - assert_eq!( - Bitcoin::RightRotate32.cmr(), - Cmr::from_byte_array([ - 0x09, 0x41, 0xb6, 0xee, 0xea, 0x9a, 0xf8, 0x19, 0x5b, 0x02, 0x8a, 0xfc, 0x0b, 0xd2, - 0xa5, 0x34, 0x21, 0x8b, 0xf9, 0x0d, 0x1a, 0x0e, 0x37, 0x3d, 0x74, 0x74, 0x18, 0x54, - 0x0b, 0x72, 0x6d, 0x73 - ]) - ); - assert_eq!( - Bitcoin::RightRotate64.cmr(), - Cmr::from_byte_array([ - 0x44, 0x4d, 0xbb, 0xc3, 0xdd, 0x2a, 0x11, 0xa5, 0xc7, 0xb0, 0x43, 0x9f, 0xdb, 0xa9, - 0x9a, 0xc7, 0x4a, 0x11, 0xb8, 0xee, 0xb2, 0xdb, 0x30, 0x1e, 0x24, 0x3e, 0xa8, 0x91, - 0x22, 0x90, 0x71, 0x52 - ]) - ); - assert_eq!( - Bitcoin::RightRotate8.cmr(), - Cmr::from_byte_array([ - 0x72, 0x65, 0xa3, 0x0c, 0x2e, 0x83, 0x6e, 0x65, 0x54, 0x4a, 0xba, 0x91, 0x1b, 0x64, - 0xd1, 0x8f, 0xa6, 0x9b, 0x17, 0x65, 0x45, 0x85, 0x6c, 0x77, 0xc4, 0xf0, 0xd7, 0x6f, - 0xc3, 0xf5, 0x83, 0x51 - ]) - ); - assert_eq!( - Bitcoin::RightShift16.cmr(), - Cmr::from_byte_array([ - 0xcd, 0x57, 0xa3, 0xd3, 0xab, 0x2d, 0x92, 0xd4, 0xf0, 0x86, 0x55, 0x04, 0x3a, 0x8b, - 0x8b, 0xb6, 0x73, 0x89, 0x81, 0xfa, 0xe6, 0xda, 0x01, 0x34, 0xb4, 0xde, 0xda, 0xce, - 0x5f, 0x00, 0x88, 0x60 - ]) - ); - assert_eq!( - Bitcoin::RightShift32.cmr(), - Cmr::from_byte_array([ - 0xd6, 0xb3, 0x26, 0xb1, 0xa3, 0x23, 0x57, 0xa3, 0x32, 0x80, 0x7d, 0x3f, 0xa1, 0xb1, - 0x56, 0xc2, 0x8b, 0x16, 0x22, 0xf7, 0x38, 0xde, 0xf1, 0x26, 0x81, 0x46, 0x7f, 0x34, - 0x9b, 0xd3, 0x49, 0x4b - ]) - ); - assert_eq!( - Bitcoin::RightShift64.cmr(), - Cmr::from_byte_array([ - 0xb2, 0x09, 0x5f, 0x2d, 0x47, 0x33, 0x5d, 0x5f, 0x98, 0xc8, 0x54, 0x34, 0xa2, 0xfa, - 0xf5, 0xb0, 0xf7, 0x5c, 0xf8, 0x99, 0x01, 0x2a, 0x34, 0xbb, 0xcd, 0x0a, 0x14, 0xcb, - 0xed, 0xb6, 0x11, 0x07 - ]) - ); - assert_eq!( - Bitcoin::RightShift8.cmr(), - Cmr::from_byte_array([ - 0x4b, 0x2b, 0x1a, 0xa2, 0xef, 0x73, 0x21, 0x73, 0x17, 0x0d, 0x62, 0x1a, 0x38, 0xde, - 0xb2, 0x61, 0xe4, 0x73, 0xc0, 0x7c, 0x55, 0x8b, 0x05, 0x5a, 0x25, 0xa8, 0x6e, 0x4e, - 0x32, 0x1a, 0xfc, 0x04 - ]) - ); - assert_eq!( - Bitcoin::RightShiftWith16.cmr(), - Cmr::from_byte_array([ - 0x14, 0xb7, 0x76, 0x85, 0x47, 0xb3, 0xd3, 0xf4, 0x7e, 0xe5, 0xc2, 0xb8, 0x0d, 0x9b, - 0xda, 0xe2, 0xae, 0xc1, 0xf9, 0xc6, 0x59, 0x4e, 0xd3, 0x12, 0x7b, 0x12, 0x64, 0x5a, - 0xdc, 0xf5, 0x97, 0x54 - ]) - ); - assert_eq!( - Bitcoin::RightShiftWith32.cmr(), - Cmr::from_byte_array([ - 0x32, 0x7b, 0x6e, 0x98, 0xa6, 0xfd, 0x34, 0x0c, 0x60, 0xcf, 0x83, 0xaa, 0x64, 0x99, - 0x33, 0x11, 0x4c, 0xb8, 0xd8, 0x4f, 0x59, 0x0e, 0x01, 0x21, 0x3a, 0x26, 0x10, 0x01, - 0x2b, 0x46, 0x07, 0xea - ]) - ); - assert_eq!( - Bitcoin::RightShiftWith64.cmr(), - Cmr::from_byte_array([ - 0x06, 0x2f, 0xa7, 0x4a, 0xf3, 0x47, 0x6e, 0x59, 0x38, 0x7b, 0xe0, 0x8e, 0x69, 0x49, - 0xa0, 0x05, 0x43, 0xbc, 0x84, 0xa2, 0xb6, 0x89, 0xea, 0x39, 0xad, 0x6e, 0xed, 0x7f, - 0x75, 0x67, 0x85, 0xd4 - ]) - ); - assert_eq!( - Bitcoin::RightShiftWith8.cmr(), - Cmr::from_byte_array([ - 0x14, 0x1b, 0xe4, 0x7e, 0x96, 0x7b, 0x2f, 0xd7, 0xc7, 0x12, 0x6c, 0x5a, 0xdf, 0x2d, - 0xfe, 0x47, 0x31, 0x5b, 0xbc, 0x10, 0x53, 0xbb, 0xe6, 0x05, 0xb3, 0x88, 0x98, 0xdb, - 0xed, 0x49, 0xf2, 0x27 - ]) - ); - assert_eq!( - Bitcoin::ScalarAdd.cmr(), - Cmr::from_byte_array([ - 0x11, 0xdd, 0xbe, 0xba, 0xeb, 0xf4, 0x21, 0x80, 0xa0, 0xb7, 0xed, 0xdf, 0xfd, 0xc4, - 0x8e, 0xc7, 0x51, 0x13, 0x30, 0xfb, 0x33, 0x15, 0xfa, 0x65, 0xd5, 0x8a, 0xff, 0x66, - 0xb9, 0xca, 0xf2, 0xd4 - ]) - ); - assert_eq!( - Bitcoin::ScalarInvert.cmr(), - Cmr::from_byte_array([ - 0xa6, 0x39, 0x27, 0x25, 0xbb, 0x2d, 0xad, 0xbb, 0x1e, 0x76, 0xdf, 0x2d, 0xec, 0x57, - 0xdf, 0x55, 0xc3, 0xfc, 0xc5, 0x77, 0x3b, 0x62, 0x21, 0x8a, 0xec, 0x55, 0xa7, 0x5e, - 0x14, 0xf3, 0xd6, 0x0d - ]) - ); - assert_eq!( - Bitcoin::ScalarIsZero.cmr(), - Cmr::from_byte_array([ - 0xf7, 0x5e, 0xda, 0x06, 0xce, 0x6a, 0xf0, 0x9f, 0xae, 0x37, 0xdb, 0x4e, 0x62, 0x25, - 0xe6, 0xa8, 0xac, 0x86, 0xa2, 0x36, 0x37, 0x62, 0x7d, 0x62, 0x64, 0x09, 0x19, 0x0f, - 0xf3, 0xb3, 0x9d, 0x90 - ]) - ); - assert_eq!( - Bitcoin::ScalarMultiply.cmr(), - Cmr::from_byte_array([ - 0x4a, 0x61, 0x67, 0x2a, 0xce, 0xc4, 0x88, 0x77, 0x56, 0xde, 0x1d, 0xb6, 0x04, 0x21, - 0xa1, 0x2b, 0x90, 0x1a, 0x85, 0x8a, 0x6e, 0xe6, 0x35, 0x2e, 0x55, 0x9d, 0x4c, 0xe5, - 0x97, 0x33, 0x52, 0xbe - ]) - ); - assert_eq!( - Bitcoin::ScalarMultiplyLambda.cmr(), - Cmr::from_byte_array([ - 0x49, 0xea, 0x9c, 0x3f, 0xb1, 0xd8, 0xff, 0x52, 0xd2, 0xdb, 0x03, 0x46, 0x9f, 0xdf, - 0xe8, 0x50, 0x50, 0x3f, 0xdd, 0xeb, 0x45, 0xe1, 0x6d, 0x26, 0xe8, 0x92, 0x8a, 0xdd, - 0x25, 0x87, 0x0e, 0x91 - ]) - ); - assert_eq!( - Bitcoin::ScalarNegate.cmr(), - Cmr::from_byte_array([ - 0x1d, 0xbf, 0x8b, 0x49, 0x1e, 0xc6, 0x65, 0x80, 0x3f, 0x63, 0x33, 0x30, 0xd3, 0xff, - 0xb0, 0xe7, 0x81, 0xe6, 0x7c, 0x18, 0x01, 0xac, 0x9d, 0x49, 0xbb, 0xf4, 0x35, 0x89, - 0xab, 0xf7, 0x82, 0xbf - ]) - ); - assert_eq!( - Bitcoin::ScalarNormalize.cmr(), - Cmr::from_byte_array([ - 0x46, 0x33, 0x18, 0x0e, 0xa0, 0x2c, 0x4d, 0xf7, 0x81, 0x9d, 0x3d, 0x54, 0xa4, 0x01, - 0x73, 0x4f, 0x96, 0x5b, 0x31, 0xac, 0xc7, 0x84, 0x05, 0x4e, 0xbf, 0xb7, 0x31, 0x68, - 0x16, 0xb0, 0x29, 0xec - ]) - ); - assert_eq!( - Bitcoin::ScalarSquare.cmr(), - Cmr::from_byte_array([ - 0x8a, 0x27, 0x9e, 0x6f, 0x61, 0x3a, 0xa9, 0xe9, 0x34, 0xf2, 0xf2, 0xa3, 0x43, 0xc0, - 0xd3, 0x29, 0x1c, 0x36, 0x70, 0xe2, 0x97, 0xdd, 0xae, 0x20, 0x52, 0x9e, 0x82, 0x50, - 0x69, 0xef, 0xea, 0x0e - ]) - ); - assert_eq!( - Bitcoin::Scale.cmr(), - Cmr::from_byte_array([ - 0x12, 0x6e, 0x22, 0x12, 0x5b, 0xac, 0x80, 0xb9, 0x9b, 0x7b, 0x73, 0x43, 0xb4, 0xe5, - 0xe5, 0x86, 0x60, 0x82, 0x16, 0x10, 0x5d, 0x4d, 0xe6, 0xf7, 0x94, 0xad, 0xd3, 0x4e, - 0x23, 0xb1, 0x95, 0xca - ]) - ); - assert_eq!( - Bitcoin::ScriptCMR.cmr(), - Cmr::from_byte_array([ - 0xa8, 0xa4, 0xa6, 0x22, 0x10, 0xb5, 0xe4, 0x95, 0x0e, 0x25, 0x34, 0x24, 0x7c, 0x74, - 0x11, 0xd1, 0xc8, 0xff, 0x22, 0x86, 0x5b, 0x54, 0x56, 0xbb, 0xb2, 0x16, 0x38, 0xe9, - 0x14, 0xf5, 0xe5, 0x28 - ]) - ); - assert_eq!( - Bitcoin::Sha256Block.cmr(), - Cmr::from_byte_array([ - 0x45, 0x35, 0xf3, 0xe1, 0xab, 0x9f, 0x1b, 0x75, 0x7a, 0x06, 0x91, 0x37, 0xe1, 0xd5, - 0xb1, 0xca, 0xad, 0x8e, 0x31, 0xf7, 0x8d, 0xc5, 0xfb, 0xd0, 0x73, 0x46, 0x49, 0xf9, - 0x40, 0xa7, 0xfc, 0x96 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add1.cmr(), - Cmr::from_byte_array([ - 0x9a, 0x47, 0x11, 0xb8, 0xc5, 0x69, 0x0e, 0x58, 0x7e, 0x5f, 0x79, 0xe6, 0x8d, 0x6e, - 0xca, 0x04, 0x74, 0x58, 0xaa, 0x63, 0xb8, 0xbc, 0x9e, 0xe5, 0x68, 0x08, 0x6a, 0x4a, - 0x1b, 0x56, 0xd8, 0x34 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add128.cmr(), - Cmr::from_byte_array([ - 0x1c, 0xb1, 0xdb, 0x8a, 0x05, 0x5b, 0x31, 0x97, 0xac, 0xf0, 0xf0, 0x8c, 0xe9, 0xc6, - 0x35, 0xad, 0xd6, 0x95, 0xb6, 0x0f, 0x23, 0x4b, 0x18, 0xe0, 0xb3, 0x23, 0xc9, 0x37, - 0xb0, 0x38, 0x5a, 0xea - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add16.cmr(), - Cmr::from_byte_array([ - 0xe0, 0x84, 0x54, 0x75, 0xeb, 0xb9, 0x01, 0x40, 0xfa, 0x4e, 0x01, 0xaf, 0x8a, 0x94, - 0x35, 0x99, 0x1a, 0xd8, 0x7a, 0xf9, 0x8c, 0x08, 0xae, 0xce, 0x11, 0x0e, 0x99, 0xcb, - 0xce, 0xcd, 0xee, 0x79 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add2.cmr(), - Cmr::from_byte_array([ - 0x7d, 0x69, 0x13, 0x8f, 0x1c, 0x94, 0x2b, 0xee, 0x2f, 0xdf, 0x60, 0x0c, 0xe4, 0x4b, - 0x36, 0xff, 0x97, 0x83, 0x9d, 0xc2, 0xbb, 0xda, 0xfb, 0xd5, 0xfa, 0xb4, 0xdf, 0xbc, - 0x3c, 0x97, 0x6f, 0x29 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add256.cmr(), - Cmr::from_byte_array([ - 0x4f, 0x5c, 0x29, 0xd5, 0x36, 0x86, 0xc0, 0x60, 0x62, 0xb3, 0x83, 0x24, 0xf8, 0xaf, - 0xf1, 0x7e, 0xc5, 0x56, 0xa2, 0x95, 0xff, 0x09, 0x8b, 0x10, 0xe7, 0x05, 0xdd, 0x22, - 0xe1, 0x3b, 0xc3, 0xc9 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add32.cmr(), - Cmr::from_byte_array([ - 0xd5, 0x7b, 0x67, 0xb1, 0x74, 0xe7, 0x8e, 0x38, 0xf9, 0xbc, 0xa8, 0xe0, 0x7a, 0xdd, - 0x61, 0xc7, 0x53, 0xe2, 0xc1, 0x56, 0xd8, 0xe9, 0x83, 0x2a, 0xa6, 0x62, 0x04, 0x55, - 0x00, 0xf5, 0x1a, 0x80 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add4.cmr(), - Cmr::from_byte_array([ - 0x95, 0xda, 0x32, 0x99, 0x3f, 0x5c, 0x7d, 0x00, 0x83, 0x06, 0x4c, 0xdf, 0xf1, 0xbe, - 0xc3, 0xb9, 0x36, 0xc6, 0x38, 0x33, 0x7a, 0xde, 0xc5, 0x47, 0x48, 0x7a, 0xf2, 0x32, - 0xd6, 0x9f, 0xdf, 0x65 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add512.cmr(), - Cmr::from_byte_array([ - 0x4a, 0xcb, 0x16, 0x3a, 0xa4, 0x8f, 0x09, 0xd5, 0xf2, 0x6d, 0x2b, 0x2a, 0xb1, 0x88, - 0xa6, 0xc6, 0xb6, 0xc4, 0xae, 0xdf, 0x23, 0xc9, 0x19, 0x00, 0x1c, 0x02, 0xee, 0x15, - 0xb3, 0x37, 0xa9, 0x6e - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add64.cmr(), - Cmr::from_byte_array([ - 0x52, 0xe5, 0x3e, 0xc5, 0x77, 0x0f, 0x9b, 0xe4, 0x06, 0x9a, 0xee, 0xfc, 0xb2, 0x13, - 0x22, 0xb1, 0x3a, 0xb6, 0xe3, 0x94, 0x1f, 0xdc, 0x2c, 0x85, 0xf4, 0xb4, 0x1b, 0xe6, - 0x7d, 0x38, 0xea, 0x7e - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add8.cmr(), - Cmr::from_byte_array([ - 0xc2, 0x6b, 0x28, 0xaf, 0xe5, 0xe8, 0x66, 0xd8, 0x46, 0x16, 0x81, 0x4d, 0x1a, 0x13, - 0xfb, 0x86, 0x30, 0xb9, 0xe8, 0x4e, 0x5d, 0x78, 0x15, 0x56, 0xc6, 0xd8, 0x23, 0x6e, - 0xfb, 0x45, 0xdf, 0xf9 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8AddBuffer511.cmr(), - Cmr::from_byte_array([ - 0xad, 0x69, 0x90, 0x46, 0x48, 0xa8, 0x23, 0x8d, 0x00, 0xd8, 0x51, 0x63, 0xfc, 0xe8, - 0x19, 0x63, 0xa0, 0x04, 0x7a, 0xb5, 0x82, 0xbe, 0x97, 0xa4, 0x14, 0x00, 0x65, 0x59, - 0x79, 0xcf, 0xdd, 0x28 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Finalize.cmr(), - Cmr::from_byte_array([ - 0x8e, 0x45, 0xbd, 0xc3, 0x87, 0xd4, 0xed, 0xfa, 0x73, 0x35, 0x25, 0xf3, 0xab, 0x19, - 0xe4, 0x2b, 0x58, 0xec, 0xb1, 0xb5, 0xf6, 0xdc, 0xcf, 0x94, 0xed, 0xbf, 0x59, 0x95, - 0x8a, 0xe3, 0xe1, 0x16 - ]) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Init.cmr(), - Cmr::from_byte_array([ - 0x63, 0x5f, 0x64, 0x05, 0x84, 0x86, 0x85, 0xc0, 0x11, 0xfe, 0xbd, 0x41, 0xfa, 0xac, - 0x87, 0x4b, 0xbb, 0xf5, 0xb2, 0x4d, 0x5f, 0xb1, 0x2f, 0xed, 0xbc, 0xb6, 0xcb, 0xff, - 0x95, 0xa0, 0xf3, 0x66 - ]) - ); - assert_eq!( - Bitcoin::Sha256Iv.cmr(), - Cmr::from_byte_array([ - 0x12, 0xe4, 0x59, 0x37, 0x51, 0xc9, 0x46, 0x3b, 0x56, 0x25, 0x03, 0xc1, 0x40, 0xd7, - 0x8b, 0x3b, 0x75, 0x7a, 0x1f, 0x4f, 0x16, 0x32, 0x1d, 0x28, 0x62, 0xd3, 0x25, 0x43, - 0x85, 0x38, 0x97, 0x1b - ]) - ); - assert_eq!( - Bitcoin::SigAllHash.cmr(), - Cmr::from_byte_array([ - 0x09, 0x78, 0xb9, 0xe5, 0x0b, 0x9e, 0x8e, 0x09, 0x8b, 0x27, 0xf2, 0xb8, 0xb5, 0x9d, - 0xe5, 0x4f, 0x62, 0xba, 0x7c, 0x13, 0x33, 0xdf, 0x3b, 0xed, 0x22, 0x1e, 0x26, 0x62, - 0x68, 0x05, 0xbc, 0x55 - ]) - ); - assert_eq!( - Bitcoin::Some1.cmr(), - Cmr::from_byte_array([ - 0x15, 0xca, 0x4e, 0x4b, 0x82, 0xc2, 0xf9, 0x1b, 0x9a, 0x79, 0x29, 0x92, 0xcd, 0xc1, - 0xb2, 0x92, 0xab, 0x86, 0xa2, 0xd2, 0x93, 0x9c, 0x9a, 0x64, 0xb5, 0x0b, 0xe6, 0x0b, - 0xda, 0x6a, 0xb4, 0xca - ]) - ); - assert_eq!( - Bitcoin::Some16.cmr(), - Cmr::from_byte_array([ - 0xa9, 0xdf, 0xbb, 0xea, 0xb5, 0x9d, 0xf7, 0x2a, 0x45, 0xfc, 0x3f, 0xc7, 0xac, 0x58, - 0x1e, 0xc8, 0xda, 0x71, 0x3f, 0x2f, 0x81, 0x03, 0xf7, 0x87, 0xaa, 0x1c, 0xee, 0x4e, - 0x0b, 0xa6, 0x48, 0x66 - ]) - ); - assert_eq!( - Bitcoin::Some32.cmr(), - Cmr::from_byte_array([ - 0x46, 0x33, 0xa3, 0x97, 0x74, 0x2e, 0xf4, 0x82, 0xbe, 0x2f, 0xa3, 0xfb, 0x64, 0x10, - 0xec, 0x79, 0xc3, 0x73, 0x83, 0x65, 0x69, 0xfb, 0xbc, 0xb1, 0xf9, 0x48, 0xec, 0x32, - 0x48, 0x73, 0x78, 0xb7 - ]) - ); - assert_eq!( - Bitcoin::Some64.cmr(), - Cmr::from_byte_array([ - 0x1d, 0xc2, 0x45, 0xac, 0x6f, 0x5b, 0x42, 0x2b, 0xd1, 0x88, 0x6e, 0xf5, 0x14, 0x4c, - 0x4d, 0xc7, 0x2c, 0x96, 0x73, 0x15, 0x59, 0x66, 0x07, 0x6c, 0xd8, 0x39, 0x68, 0x1d, - 0x9e, 0xc7, 0xf8, 0xf5 - ]) - ); - assert_eq!( - Bitcoin::Some8.cmr(), - Cmr::from_byte_array([ - 0x33, 0xaf, 0xb9, 0xc6, 0x45, 0x4e, 0x59, 0x0e, 0xc1, 0x3e, 0xd7, 0x5e, 0x1b, 0x7d, - 0x9c, 0x3a, 0x3d, 0xe6, 0x75, 0x2b, 0xcc, 0x7c, 0x1d, 0x4c, 0xb3, 0x63, 0xfa, 0x51, - 0x82, 0x8b, 0xcb, 0x74 - ]) - ); - assert_eq!( - Bitcoin::Subtract16.cmr(), - Cmr::from_byte_array([ - 0x4e, 0x06, 0xec, 0x31, 0x37, 0x62, 0x22, 0xe2, 0x5e, 0x27, 0xd0, 0x15, 0x9d, 0xc1, - 0xc0, 0x71, 0x4a, 0x44, 0xca, 0x6a, 0xac, 0xf9, 0x50, 0x5c, 0xaa, 0xd2, 0x80, 0xe9, - 0x73, 0xfb, 0x5c, 0xab - ]) - ); - assert_eq!( - Bitcoin::Subtract32.cmr(), - Cmr::from_byte_array([ - 0xb9, 0xc0, 0xf3, 0x6e, 0x75, 0x22, 0xa8, 0xd9, 0x49, 0x05, 0x0d, 0x51, 0x6a, 0x05, - 0xce, 0x20, 0x3a, 0x1f, 0x9a, 0x9e, 0x37, 0x2f, 0xd2, 0x63, 0xde, 0x38, 0xb0, 0xe9, - 0x03, 0x13, 0x41, 0x98 - ]) - ); - assert_eq!( - Bitcoin::Subtract64.cmr(), - Cmr::from_byte_array([ - 0x1c, 0xdb, 0x5c, 0x74, 0xad, 0xd1, 0x02, 0xf5, 0x0f, 0x93, 0x8e, 0xd8, 0x86, 0xf4, - 0x96, 0xe5, 0xba, 0xb2, 0x75, 0x5c, 0x3c, 0x48, 0x4e, 0x88, 0x87, 0x90, 0x3d, 0x2f, - 0x6a, 0x57, 0xf3, 0xaa - ]) - ); - assert_eq!( - Bitcoin::Subtract8.cmr(), - Cmr::from_byte_array([ - 0x4f, 0x21, 0x17, 0xa0, 0xe8, 0x10, 0x59, 0xff, 0x0c, 0xd6, 0x4d, 0x84, 0x88, 0x65, - 0x42, 0xe5, 0x75, 0xea, 0x8d, 0x6e, 0xc0, 0x31, 0x08, 0xfd, 0x0b, 0x50, 0x8b, 0x39, - 0x20, 0x8c, 0xd0, 0xef - ]) - ); - assert_eq!( - Bitcoin::Swu.cmr(), - Cmr::from_byte_array([ - 0x00, 0xf5, 0x1f, 0x4f, 0x4b, 0xec, 0xe7, 0x90, 0x03, 0xec, 0xad, 0x48, 0x1a, 0x12, - 0x5a, 0xf7, 0x17, 0x6e, 0x4d, 0xe9, 0x8c, 0x33, 0x92, 0x42, 0x5c, 0xb9, 0x14, 0x66, - 0x26, 0xc1, 0x3b, 0x3b - ]) - ); - assert_eq!( - Bitcoin::TapdataInit.cmr(), - Cmr::from_byte_array([ - 0xa4, 0xd0, 0x22, 0xef, 0x5c, 0xf4, 0x67, 0xbc, 0xa0, 0x32, 0x5e, 0x46, 0x3f, 0xca, - 0xce, 0x7c, 0xbd, 0xd6, 0x4f, 0xf8, 0xf7, 0x1c, 0x5c, 0x7f, 0x63, 0xe6, 0x07, 0x84, - 0xaa, 0x0a, 0xc4, 0x86 - ]) - ); - assert_eq!( - Bitcoin::TapleafHash.cmr(), - Cmr::from_byte_array([ - 0x0c, 0x07, 0x16, 0xfe, 0x5d, 0x97, 0x8e, 0xa8, 0xe0, 0xc7, 0x5a, 0xdc, 0x82, 0x10, - 0xd6, 0x60, 0x06, 0x2e, 0x3d, 0xa0, 0x6f, 0x1a, 0x66, 0x61, 0x31, 0x79, 0x27, 0xd3, - 0xb8, 0x4b, 0x50, 0x73 - ]) - ); - assert_eq!( - Bitcoin::TapleafVersion.cmr(), - Cmr::from_byte_array([ - 0xe2, 0xec, 0xb1, 0xcb, 0x0e, 0xd4, 0xed, 0x93, 0x48, 0x35, 0x45, 0xfd, 0x8a, 0x62, - 0xf8, 0xaa, 0x10, 0x17, 0x53, 0x49, 0xff, 0xcc, 0x5a, 0xd3, 0xde, 0x7f, 0x34, 0x84, - 0xea, 0x1f, 0x10, 0x3f - ]) - ); - assert_eq!( - Bitcoin::Tappath.cmr(), - Cmr::from_byte_array([ - 0x99, 0xe8, 0x21, 0x1e, 0x8c, 0x1b, 0xe6, 0xd9, 0xca, 0x98, 0xd3, 0xd4, 0x3d, 0x91, - 0x42, 0x56, 0x7e, 0x06, 0xa8, 0x40, 0x22, 0x39, 0x33, 0x03, 0xfa, 0xb0, 0xb5, 0x7d, - 0x39, 0x40, 0x74, 0xe8 - ]) - ); - assert_eq!( - Bitcoin::TappathHash.cmr(), - Cmr::from_byte_array([ - 0x02, 0x11, 0x54, 0x6d, 0x07, 0x78, 0xe7, 0x87, 0x14, 0x1e, 0xce, 0x65, 0xdf, 0x6c, - 0xd1, 0xdb, 0x31, 0x38, 0x8f, 0xc1, 0x42, 0x19, 0x68, 0xc8, 0xcf, 0xd8, 0xd7, 0x59, - 0x26, 0xdb, 0x47, 0xb3 - ]) - ); - assert_eq!( - Bitcoin::TapEnvHash.cmr(), - Cmr::from_byte_array([ - 0x19, 0xd9, 0x94, 0x4c, 0x4d, 0x45, 0x7c, 0x70, 0xba, 0xbc, 0x45, 0xcc, 0xcb, 0xd5, - 0x73, 0xb3, 0x9a, 0x51, 0xd0, 0xc9, 0x91, 0x15, 0xb4, 0x12, 0x78, 0x3b, 0x49, 0x00, - 0x82, 0xfd, 0x0e, 0x58 - ]) - ); - assert_eq!( - Bitcoin::TotalInputValue.cmr(), - Cmr::from_byte_array([ - 0x81, 0x28, 0x7a, 0x15, 0x89, 0xdd, 0xc2, 0x17, 0x99, 0x26, 0xb7, 0x06, 0x5e, 0x9b, - 0x26, 0x77, 0xb7, 0xfb, 0x09, 0x9b, 0x95, 0xf9, 0x47, 0xa7, 0xdd, 0x59, 0x0c, 0xdd, - 0x4c, 0xcf, 0x4a, 0x56 - ]) - ); - assert_eq!( - Bitcoin::TotalOutputValue.cmr(), - Cmr::from_byte_array([ - 0xba, 0x03, 0x2f, 0x3e, 0x62, 0xf8, 0xfc, 0xb0, 0x4b, 0x04, 0x29, 0xa2, 0x53, 0xb5, - 0xec, 0x57, 0xe4, 0xc8, 0x7a, 0xe2, 0xe9, 0x51, 0xe1, 0x45, 0xd7, 0x65, 0x0e, 0x7f, - 0x0c, 0x63, 0xe5, 0x55 - ]) - ); - assert_eq!( - Bitcoin::TransactionId.cmr(), - Cmr::from_byte_array([ - 0x5c, 0x49, 0xea, 0x98, 0x6b, 0x32, 0x8b, 0xe2, 0xa4, 0xe0, 0xb3, 0x15, 0xb6, 0xb3, - 0xfe, 0xf2, 0x3c, 0x1f, 0x68, 0x56, 0xbb, 0xc3, 0xb0, 0x56, 0xc9, 0x9c, 0xf5, 0x9f, - 0xbd, 0x54, 0x6e, 0x65 - ]) - ); - assert_eq!( - Bitcoin::TxHash.cmr(), - Cmr::from_byte_array([ - 0x54, 0xe5, 0x3c, 0x99, 0x93, 0xab, 0xd5, 0x5d, 0x1f, 0x85, 0x23, 0xd2, 0xbb, 0x21, - 0x7b, 0x32, 0xe6, 0xfe, 0x86, 0x1f, 0x84, 0xc9, 0x86, 0xb7, 0xee, 0x8b, 0xdc, 0x68, - 0x81, 0x06, 0x87, 0x4a - ]) - ); - assert_eq!( - Bitcoin::TxIsFinal.cmr(), - Cmr::from_byte_array([ - 0x7b, 0x0e, 0x4f, 0x4c, 0xa8, 0xe5, 0xaf, 0x61, 0xa1, 0xd3, 0x45, 0x4e, 0x11, 0xef, - 0x9a, 0xb6, 0x88, 0x70, 0x61, 0x21, 0x1c, 0x00, 0x90, 0xeb, 0xa9, 0x55, 0x3d, 0xa2, - 0xe4, 0x5d, 0x84, 0x73 - ]) - ); - assert_eq!( - Bitcoin::TxLockDistance.cmr(), - Cmr::from_byte_array([ - 0xb6, 0xfb, 0xaa, 0xc2, 0x10, 0xa3, 0x06, 0xbe, 0x8b, 0x58, 0xd0, 0xd7, 0xb1, 0x56, - 0x3f, 0x62, 0x23, 0x36, 0xd2, 0xae, 0xb5, 0x6c, 0x39, 0x3d, 0x27, 0x64, 0x45, 0xa9, - 0xa2, 0x2c, 0xc4, 0xa7 - ]) - ); - assert_eq!( - Bitcoin::TxLockDuration.cmr(), - Cmr::from_byte_array([ - 0x53, 0x57, 0x28, 0x18, 0xe7, 0xe5, 0xb9, 0x8f, 0x96, 0x8c, 0x9d, 0xa7, 0xdf, 0x50, - 0x90, 0xd9, 0x82, 0x6f, 0x9b, 0xcf, 0x84, 0xb6, 0x36, 0x39, 0x5e, 0xea, 0x32, 0x1b, - 0x69, 0x09, 0xec, 0xe9 - ]) - ); - assert_eq!( - Bitcoin::TxLockHeight.cmr(), - Cmr::from_byte_array([ - 0x44, 0x9f, 0x61, 0xdf, 0x1a, 0x7b, 0xad, 0x8d, 0x9e, 0x0a, 0x96, 0x67, 0x14, 0x22, - 0x7e, 0x57, 0x10, 0x07, 0xf9, 0x3c, 0x51, 0x7b, 0x80, 0x5d, 0x61, 0x65, 0x10, 0xe8, - 0xff, 0x62, 0x17, 0x2b - ]) - ); - assert_eq!( - Bitcoin::TxLockTime.cmr(), - Cmr::from_byte_array([ - 0x31, 0xdf, 0x36, 0x3f, 0x17, 0xb2, 0xcf, 0xc9, 0x7a, 0x1f, 0x93, 0x72, 0xc1, 0x4a, - 0x32, 0x58, 0x64, 0xd7, 0xcb, 0x13, 0xaa, 0x8d, 0x52, 0x15, 0xfb, 0x25, 0x3d, 0x33, - 0x10, 0x91, 0x77, 0x62 - ]) - ); - assert_eq!( - Bitcoin::Verify.cmr(), - Cmr::from_byte_array([ - 0xcd, 0xca, 0x2a, 0x05, 0xe5, 0x2c, 0xef, 0xa5, 0x9d, 0xc7, 0xa5, 0xb0, 0xda, 0xe2, - 0x20, 0x98, 0xfb, 0x89, 0x6e, 0x39, 0x13, 0xbf, 0xdd, 0x44, 0x6b, 0x59, 0x4e, 0x1f, - 0x92, 0x50, 0x78, 0x3e - ]) - ); - assert_eq!( - Bitcoin::Version.cmr(), - Cmr::from_byte_array([ - 0x83, 0x73, 0x58, 0x64, 0x00, 0xb6, 0x79, 0x0b, 0x46, 0xab, 0x04, 0x10, 0x52, 0x3c, - 0xf0, 0x1e, 0xb7, 0x4d, 0x10, 0xfa, 0xf4, 0x8a, 0x3a, 0xcc, 0x86, 0xc4, 0xc5, 0x1d, - 0x06, 0xa5, 0x2c, 0x49 - ]) - ); - assert_eq!( - Bitcoin::Xor1.cmr(), - Cmr::from_byte_array([ - 0x8c, 0x4e, 0x4e, 0x6e, 0xbf, 0x46, 0x30, 0xb2, 0x9b, 0x5a, 0x57, 0xea, 0x79, 0xf0, - 0xc9, 0xaf, 0x6b, 0xff, 0x54, 0xc4, 0xd2, 0xd7, 0x69, 0xbf, 0x51, 0x59, 0x47, 0x74, - 0xa5, 0x2b, 0x99, 0xc9 - ]) - ); - assert_eq!( - Bitcoin::Xor16.cmr(), - Cmr::from_byte_array([ - 0xd9, 0xf0, 0xaf, 0x3f, 0xe3, 0xfd, 0x24, 0x7c, 0x1d, 0xf3, 0x4a, 0x25, 0x27, 0x13, - 0xb2, 0xe9, 0x33, 0xa9, 0x45, 0xa5, 0x67, 0x19, 0x48, 0x7f, 0x8e, 0xd7, 0xf5, 0x63, - 0xea, 0x86, 0x1a, 0xb5 - ]) - ); - assert_eq!( - Bitcoin::Xor32.cmr(), - Cmr::from_byte_array([ - 0xd5, 0xae, 0x27, 0x12, 0xed, 0xea, 0xf6, 0x76, 0x52, 0x0f, 0xa3, 0xba, 0x0f, 0x40, - 0xbf, 0x4a, 0x16, 0x57, 0x43, 0x7e, 0xff, 0xbd, 0x99, 0x86, 0xd0, 0x6a, 0xe8, 0x1b, - 0x29, 0xa4, 0xf9, 0x8c - ]) - ); - assert_eq!( - Bitcoin::Xor64.cmr(), - Cmr::from_byte_array([ - 0xc4, 0xdf, 0x1c, 0xcf, 0x33, 0x3e, 0xde, 0xbd, 0xd4, 0x0d, 0xea, 0x9a, 0x0e, 0x6c, - 0xbb, 0x83, 0x06, 0x31, 0xe8, 0x3a, 0x94, 0xbb, 0x77, 0x9f, 0xe6, 0x00, 0x7b, 0xc6, - 0xcb, 0x53, 0xa5, 0x44 - ]) - ); - assert_eq!( - Bitcoin::Xor8.cmr(), - Cmr::from_byte_array([ - 0x4a, 0xb1, 0x4a, 0x81, 0x4a, 0x39, 0x52, 0x8a, 0x80, 0xfd, 0xb4, 0x30, 0x58, 0x9b, - 0xa4, 0x50, 0x10, 0x4b, 0x9c, 0x72, 0x09, 0xaa, 0x2f, 0xe2, 0x85, 0xcd, 0x60, 0xc0, - 0x90, 0x43, 0x11, 0x4a - ]) - ); - assert_eq!( - Bitcoin::XorXor1.cmr(), - Cmr::from_byte_array([ - 0x18, 0xb9, 0x44, 0x6a, 0x41, 0x66, 0xa3, 0xfe, 0xe2, 0xbc, 0xb2, 0x54, 0x5b, 0xb9, - 0x01, 0x18, 0xdc, 0xf0, 0xe8, 0xf8, 0x86, 0xa1, 0x07, 0x6d, 0x4c, 0x38, 0x60, 0x06, - 0x0c, 0xde, 0x1a, 0x51 - ]) - ); - assert_eq!( - Bitcoin::XorXor16.cmr(), - Cmr::from_byte_array([ - 0x94, 0x6c, 0xde, 0x87, 0x2e, 0x30, 0xe6, 0x50, 0x9d, 0xaf, 0xf4, 0x05, 0xf0, 0xe0, - 0xfe, 0xfe, 0x27, 0x55, 0x47, 0xb4, 0x0e, 0xb2, 0x03, 0x84, 0xaf, 0xe9, 0xa8, 0x63, - 0x60, 0xfc, 0x80, 0xef - ]) - ); - assert_eq!( - Bitcoin::XorXor32.cmr(), - Cmr::from_byte_array([ - 0x65, 0x27, 0xdf, 0x67, 0xa5, 0x0d, 0x14, 0x8d, 0xb4, 0xfc, 0x8f, 0xee, 0xc7, 0x84, - 0x55, 0x64, 0x99, 0xa8, 0xc7, 0xf0, 0xfa, 0x7d, 0x28, 0xe6, 0x27, 0x8e, 0x99, 0x7f, - 0x49, 0x59, 0xbe, 0x39 - ]) - ); - assert_eq!( - Bitcoin::XorXor64.cmr(), - Cmr::from_byte_array([ - 0xf1, 0x62, 0xf9, 0xe6, 0x56, 0x63, 0xa6, 0x9a, 0xc5, 0xf9, 0x2a, 0x5e, 0xb5, 0x2c, - 0x03, 0x32, 0x39, 0x2e, 0xdd, 0x1e, 0xd1, 0xba, 0x35, 0x5e, 0x6f, 0x19, 0x40, 0x6e, - 0xab, 0xe3, 0xf6, 0xed - ]) - ); - assert_eq!( - Bitcoin::XorXor8.cmr(), - Cmr::from_byte_array([ - 0xe0, 0x6d, 0x69, 0x4c, 0x5b, 0x40, 0x7d, 0xda, 0xd7, 0xaa, 0x1f, 0x88, 0x07, 0x16, - 0xbc, 0xb7, 0x0a, 0xcd, 0xba, 0x75, 0x85, 0xca, 0x40, 0x09, 0x9a, 0x0a, 0x0a, 0x61, - 0xf3, 0xad, 0x2d, 0xb5 - ]) - ); -} -#[test] -fn cost_matches_spec() { - // Every cost value, matching .cost in primitiveJetNode.inc (milliweight). - assert_eq!(Bitcoin::Add16.cost(), Cost::from_milliweight(80)); - assert_eq!(Bitcoin::Add32.cost(), Cost::from_milliweight(92)); - assert_eq!(Bitcoin::Add64.cost(), Cost::from_milliweight(105)); - assert_eq!(Bitcoin::Add8.cost(), Cost::from_milliweight(97)); - assert_eq!(Bitcoin::All16.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::All32.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::All64.cost(), Cost::from_milliweight(63)); - assert_eq!(Bitcoin::All8.cost(), Cost::from_milliweight(50)); - assert_eq!(Bitcoin::And1.cost(), Cost::from_milliweight(77)); - assert_eq!(Bitcoin::And16.cost(), Cost::from_milliweight(83)); - assert_eq!(Bitcoin::And32.cost(), Cost::from_milliweight(77)); - assert_eq!(Bitcoin::And64.cost(), Cost::from_milliweight(78)); - assert_eq!(Bitcoin::And8.cost(), Cost::from_milliweight(98)); - assert_eq!(Bitcoin::AnnexHash.cost(), Cost::from_milliweight(1491)); - assert_eq!(Bitcoin::Bip0340Verify.cost(), Cost::from_milliweight(49421)); - assert_eq!(Bitcoin::BuildTapbranch.cost(), Cost::from_milliweight(2554)); - assert_eq!( - Bitcoin::BuildTapleafSimplicity.cost(), - Cost::from_milliweight(1927) - ); - assert_eq!(Bitcoin::BuildTaptweak.cost(), Cost::from_milliweight(77780)); - assert_eq!(Bitcoin::Ch1.cost(), Cost::from_milliweight(50)); - assert_eq!(Bitcoin::Ch16.cost(), Cost::from_milliweight(83)); - assert_eq!(Bitcoin::Ch32.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::Ch64.cost(), Cost::from_milliweight(78)); - assert_eq!(Bitcoin::Ch8.cost(), Cost::from_milliweight(86)); - assert_eq!( - Bitcoin::CheckLockDistance.cost(), - Cost::from_milliweight(84) - ); - assert_eq!( - Bitcoin::CheckLockDuration.cost(), - Cost::from_milliweight(78) - ); - assert_eq!(Bitcoin::CheckLockHeight.cost(), Cost::from_milliweight(108)); - assert_eq!(Bitcoin::CheckLockTime.cost(), Cost::from_milliweight(123)); - assert_eq!( - Bitcoin::CheckSigVerify.cost(), - Cost::from_milliweight(50000) - ); - assert_eq!(Bitcoin::Complement1.cost(), Cost::from_milliweight(51)); - assert_eq!(Bitcoin::Complement16.cost(), Cost::from_milliweight(86)); - assert_eq!(Bitcoin::Complement32.cost(), Cost::from_milliweight(58)); - assert_eq!(Bitcoin::Complement64.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::Complement8.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::CurrentAnnexHash.cost(), Cost::from_milliweight(74)); - assert_eq!(Bitcoin::CurrentIndex.cost(), Cost::from_milliweight(66)); - assert_eq!( - Bitcoin::CurrentPrevOutpoint.cost(), - Cost::from_milliweight(130) - ); - assert_eq!( - Bitcoin::CurrentScriptHash.cost(), - Cost::from_milliweight(127) - ); - assert_eq!( - Bitcoin::CurrentScriptSigHash.cost(), - Cost::from_milliweight(126) - ); - assert_eq!(Bitcoin::CurrentSequence.cost(), Cost::from_milliweight(66)); - assert_eq!(Bitcoin::CurrentValue.cost(), Cost::from_milliweight(85)); - assert_eq!(Bitcoin::Decompress.cost(), Cost::from_milliweight(10495)); - assert_eq!(Bitcoin::Decrement16.cost(), Cost::from_milliweight(58)); - assert_eq!(Bitcoin::Decrement32.cost(), Cost::from_milliweight(57)); - assert_eq!(Bitcoin::Decrement64.cost(), Cost::from_milliweight(79)); - assert_eq!(Bitcoin::Decrement8.cost(), Cost::from_milliweight(77)); - assert_eq!(Bitcoin::DivMod128_64.cost(), Cost::from_milliweight(169)); - assert_eq!(Bitcoin::DivMod16.cost(), Cost::from_milliweight(92)); - assert_eq!(Bitcoin::DivMod32.cost(), Cost::from_milliweight(90)); - assert_eq!(Bitcoin::DivMod64.cost(), Cost::from_milliweight(82)); - assert_eq!(Bitcoin::DivMod8.cost(), Cost::from_milliweight(91)); - assert_eq!(Bitcoin::Divide16.cost(), Cost::from_milliweight(85)); - assert_eq!(Bitcoin::Divide32.cost(), Cost::from_milliweight(82)); - assert_eq!(Bitcoin::Divide64.cost(), Cost::from_milliweight(81)); - assert_eq!(Bitcoin::Divide8.cost(), Cost::from_milliweight(85)); - assert_eq!(Bitcoin::Divides16.cost(), Cost::from_milliweight(84)); - assert_eq!(Bitcoin::Divides32.cost(), Cost::from_milliweight(80)); - assert_eq!(Bitcoin::Divides64.cost(), Cost::from_milliweight(67)); - assert_eq!(Bitcoin::Divides8.cost(), Cost::from_milliweight(73)); - assert_eq!(Bitcoin::Eq1.cost(), Cost::from_milliweight(63)); - assert_eq!(Bitcoin::Eq16.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::Eq256.cost(), Cost::from_milliweight(188)); - assert_eq!(Bitcoin::Eq32.cost(), Cost::from_milliweight(74)); - assert_eq!(Bitcoin::Eq64.cost(), Cost::from_milliweight(82)); - assert_eq!(Bitcoin::Eq8.cost(), Cost::from_milliweight(76)); - assert_eq!(Bitcoin::FeAdd.cost(), Cost::from_milliweight(777)); - assert_eq!(Bitcoin::FeInvert.cost(), Cost::from_milliweight(3237)); - assert_eq!(Bitcoin::FeIsOdd.cost(), Cost::from_milliweight(313)); - assert_eq!(Bitcoin::FeIsZero.cost(), Cost::from_milliweight(277)); - assert_eq!(Bitcoin::FeMultiply.cost(), Cost::from_milliweight(813)); - assert_eq!(Bitcoin::FeMultiplyBeta.cost(), Cost::from_milliweight(607)); - assert_eq!(Bitcoin::FeNegate.cost(), Cost::from_milliweight(541)); - assert_eq!(Bitcoin::FeNormalize.cost(), Cost::from_milliweight(656)); - assert_eq!(Bitcoin::FeSquare.cost(), Cost::from_milliweight(570)); - assert_eq!(Bitcoin::FeSquareRoot.cost(), Cost::from_milliweight(10162)); - assert_eq!(Bitcoin::Fee.cost(), Cost::from_milliweight(65)); - assert_eq!(Bitcoin::FullAdd16.cost(), Cost::from_milliweight(106)); - assert_eq!(Bitcoin::FullAdd32.cost(), Cost::from_milliweight(96)); - assert_eq!(Bitcoin::FullAdd64.cost(), Cost::from_milliweight(93)); - assert_eq!(Bitcoin::FullAdd8.cost(), Cost::from_milliweight(131)); - assert_eq!(Bitcoin::FullDecrement16.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::FullDecrement32.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::FullDecrement64.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::FullDecrement8.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::FullIncrement16.cost(), Cost::from_milliweight(70)); - assert_eq!(Bitcoin::FullIncrement32.cost(), Cost::from_milliweight(57)); - assert_eq!(Bitcoin::FullIncrement64.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::FullIncrement8.cost(), Cost::from_milliweight(73)); - assert_eq!( - Bitcoin::FullLeftShift16_1.cost(), - Cost::from_milliweight(76) - ); - assert_eq!( - Bitcoin::FullLeftShift16_2.cost(), - Cost::from_milliweight(59) - ); - assert_eq!( - Bitcoin::FullLeftShift16_4.cost(), - Cost::from_milliweight(68) - ); - assert_eq!( - Bitcoin::FullLeftShift16_8.cost(), - Cost::from_milliweight(68) - ); - assert_eq!( - Bitcoin::FullLeftShift32_1.cost(), - Cost::from_milliweight(58) - ); - assert_eq!( - Bitcoin::FullLeftShift32_16.cost(), - Cost::from_milliweight(52) - ); - assert_eq!( - Bitcoin::FullLeftShift32_2.cost(), - Cost::from_milliweight(73) - ); - assert_eq!( - Bitcoin::FullLeftShift32_4.cost(), - Cost::from_milliweight(59) - ); - assert_eq!( - Bitcoin::FullLeftShift32_8.cost(), - Cost::from_milliweight(60) - ); - assert_eq!( - Bitcoin::FullLeftShift64_1.cost(), - Cost::from_milliweight(74) - ); - assert_eq!( - Bitcoin::FullLeftShift64_16.cost(), - Cost::from_milliweight(69) - ); - assert_eq!( - Bitcoin::FullLeftShift64_2.cost(), - Cost::from_milliweight(70) - ); - assert_eq!( - Bitcoin::FullLeftShift64_32.cost(), - Cost::from_milliweight(73) - ); - assert_eq!( - Bitcoin::FullLeftShift64_4.cost(), - Cost::from_milliweight(66) - ); - assert_eq!( - Bitcoin::FullLeftShift64_8.cost(), - Cost::from_milliweight(68) - ); - assert_eq!(Bitcoin::FullLeftShift8_1.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::FullLeftShift8_2.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::FullLeftShift8_4.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::FullMultiply16.cost(), Cost::from_milliweight(99)); - assert_eq!(Bitcoin::FullMultiply32.cost(), Cost::from_milliweight(87)); - assert_eq!(Bitcoin::FullMultiply64.cost(), Cost::from_milliweight(103)); - assert_eq!(Bitcoin::FullMultiply8.cost(), Cost::from_milliweight(95)); - assert_eq!( - Bitcoin::FullRightShift16_1.cost(), - Cost::from_milliweight(55) - ); - assert_eq!( - Bitcoin::FullRightShift16_2.cost(), - Cost::from_milliweight(60) - ); - assert_eq!( - Bitcoin::FullRightShift16_4.cost(), - Cost::from_milliweight(64) - ); - assert_eq!( - Bitcoin::FullRightShift16_8.cost(), - Cost::from_milliweight(55) - ); - assert_eq!( - Bitcoin::FullRightShift32_1.cost(), - Cost::from_milliweight(49) - ); - assert_eq!( - Bitcoin::FullRightShift32_16.cost(), - Cost::from_milliweight(48) - ); - assert_eq!( - Bitcoin::FullRightShift32_2.cost(), - Cost::from_milliweight(66) - ); - assert_eq!( - Bitcoin::FullRightShift32_4.cost(), - Cost::from_milliweight(49) - ); - assert_eq!( - Bitcoin::FullRightShift32_8.cost(), - Cost::from_milliweight(66) - ); - assert_eq!( - Bitcoin::FullRightShift64_1.cost(), - Cost::from_milliweight(60) - ); - assert_eq!( - Bitcoin::FullRightShift64_16.cost(), - Cost::from_milliweight(73) - ); - assert_eq!( - Bitcoin::FullRightShift64_2.cost(), - Cost::from_milliweight(76) - ); - assert_eq!( - Bitcoin::FullRightShift64_32.cost(), - Cost::from_milliweight(73) - ); - assert_eq!( - Bitcoin::FullRightShift64_4.cost(), - Cost::from_milliweight(56) - ); - assert_eq!( - Bitcoin::FullRightShift64_8.cost(), - Cost::from_milliweight(68) - ); - assert_eq!( - Bitcoin::FullRightShift8_1.cost(), - Cost::from_milliweight(59) - ); - assert_eq!( - Bitcoin::FullRightShift8_2.cost(), - Cost::from_milliweight(49) - ); - assert_eq!( - Bitcoin::FullRightShift8_4.cost(), - Cost::from_milliweight(51) - ); - assert_eq!(Bitcoin::FullSubtract16.cost(), Cost::from_milliweight(99)); - assert_eq!(Bitcoin::FullSubtract32.cost(), Cost::from_milliweight(92)); - assert_eq!(Bitcoin::FullSubtract64.cost(), Cost::from_milliweight(109)); - assert_eq!(Bitcoin::FullSubtract8.cost(), Cost::from_milliweight(106)); - assert_eq!(Bitcoin::GeIsOnCurve.cost(), Cost::from_milliweight(688)); - assert_eq!(Bitcoin::GeNegate.cost(), Cost::from_milliweight(1071)); - assert_eq!(Bitcoin::GejAdd.cost(), Cost::from_milliweight(3000)); - assert_eq!(Bitcoin::GejDouble.cost(), Cost::from_milliweight(1862)); - assert_eq!(Bitcoin::GejEquiv.cost(), Cost::from_milliweight(2376)); - assert_eq!(Bitcoin::GejGeAdd.cost(), Cost::from_milliweight(2609)); - assert_eq!(Bitcoin::GejGeAddEx.cost(), Cost::from_milliweight(2860)); - assert_eq!(Bitcoin::GejGeEquiv.cost(), Cost::from_milliweight(1823)); - assert_eq!(Bitcoin::GejInfinity.cost(), Cost::from_milliweight(765)); - assert_eq!(Bitcoin::GejIsInfinity.cost(), Cost::from_milliweight(701)); - assert_eq!(Bitcoin::GejIsOnCurve.cost(), Cost::from_milliweight(1039)); - assert_eq!(Bitcoin::GejNegate.cost(), Cost::from_milliweight(1549)); - assert_eq!(Bitcoin::GejNormalize.cost(), Cost::from_milliweight(4184)); - assert_eq!(Bitcoin::GejRescale.cost(), Cost::from_milliweight(2011)); - assert_eq!(Bitcoin::GejXEquiv.cost(), Cost::from_milliweight(1103)); - assert_eq!(Bitcoin::GejYIsOdd.cost(), Cost::from_milliweight(3702)); - assert_eq!(Bitcoin::Generate.cost(), Cost::from_milliweight(49851)); - assert_eq!(Bitcoin::HashToCurve.cost(), Cost::from_milliweight(69844)); - assert_eq!(Bitcoin::High1.cost(), Cost::from_milliweight(42)); - assert_eq!(Bitcoin::High16.cost(), Cost::from_milliweight(50)); - assert_eq!(Bitcoin::High32.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::High64.cost(), Cost::from_milliweight(52)); - assert_eq!(Bitcoin::High8.cost(), Cost::from_milliweight(59)); - assert_eq!(Bitcoin::Increment16.cost(), Cost::from_milliweight(56)); - assert_eq!(Bitcoin::Increment32.cost(), Cost::from_milliweight(73)); - assert_eq!(Bitcoin::Increment64.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::Increment8.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::InputAnnexHash.cost(), Cost::from_milliweight(77)); - assert_eq!( - Bitcoin::InputAnnexesHash.cost(), - Cost::from_milliweight(124) - ); - assert_eq!(Bitcoin::InputHash.cost(), Cost::from_milliweight(832)); - assert_eq!( - Bitcoin::InputOutpointsHash.cost(), - Cost::from_milliweight(126) - ); - assert_eq!( - Bitcoin::InputPrevOutpoint.cost(), - Cost::from_milliweight(140) - ); - assert_eq!(Bitcoin::InputScriptHash.cost(), Cost::from_milliweight(143)); - assert_eq!( - Bitcoin::InputScriptSigHash.cost(), - Cost::from_milliweight(137) - ); - assert_eq!( - Bitcoin::InputScriptSigsHash.cost(), - Cost::from_milliweight(127) - ); - assert_eq!( - Bitcoin::InputScriptsHash.cost(), - Cost::from_milliweight(129) - ); - assert_eq!(Bitcoin::InputSequence.cost(), Cost::from_milliweight(78)); - assert_eq!( - Bitcoin::InputSequencesHash.cost(), - Cost::from_milliweight(125) - ); - assert_eq!(Bitcoin::InputUtxoHash.cost(), Cost::from_milliweight(824)); - assert_eq!(Bitcoin::InputUtxosHash.cost(), Cost::from_milliweight(122)); - assert_eq!(Bitcoin::InputValue.cost(), Cost::from_milliweight(81)); - assert_eq!(Bitcoin::InputValuesHash.cost(), Cost::from_milliweight(126)); - assert_eq!(Bitcoin::InputsHash.cost(), Cost::from_milliweight(122)); - assert_eq!(Bitcoin::InternalKey.cost(), Cost::from_milliweight(124)); - assert_eq!(Bitcoin::IsOne16.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::IsOne32.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::IsOne64.cost(), Cost::from_milliweight(66)); - assert_eq!(Bitcoin::IsOne8.cost(), Cost::from_milliweight(47)); - assert_eq!(Bitcoin::IsZero16.cost(), Cost::from_milliweight(52)); - assert_eq!(Bitcoin::IsZero32.cost(), Cost::from_milliweight(58)); - assert_eq!(Bitcoin::IsZero64.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::IsZero8.cost(), Cost::from_milliweight(59)); - assert_eq!(Bitcoin::Le16.cost(), Cost::from_milliweight(83)); - assert_eq!(Bitcoin::Le32.cost(), Cost::from_milliweight(99)); - assert_eq!(Bitcoin::Le64.cost(), Cost::from_milliweight(79)); - assert_eq!(Bitcoin::Le8.cost(), Cost::from_milliweight(93)); - assert_eq!(Bitcoin::LeftExtend16_32.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::LeftExtend16_64.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::LeftExtend1_16.cost(), Cost::from_milliweight(50)); - assert_eq!(Bitcoin::LeftExtend1_32.cost(), Cost::from_milliweight(48)); - assert_eq!(Bitcoin::LeftExtend1_64.cost(), Cost::from_milliweight(49)); - assert_eq!(Bitcoin::LeftExtend1_8.cost(), Cost::from_milliweight(46)); - assert_eq!(Bitcoin::LeftExtend32_64.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::LeftExtend8_16.cost(), Cost::from_milliweight(58)); - assert_eq!(Bitcoin::LeftExtend8_32.cost(), Cost::from_milliweight(86)); - assert_eq!(Bitcoin::LeftExtend8_64.cost(), Cost::from_milliweight(98)); - assert_eq!(Bitcoin::LeftPadHigh16_32.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::LeftPadHigh16_64.cost(), Cost::from_milliweight(82)); - assert_eq!(Bitcoin::LeftPadHigh1_16.cost(), Cost::from_milliweight(106)); - assert_eq!(Bitcoin::LeftPadHigh1_32.cost(), Cost::from_milliweight(220)); - assert_eq!(Bitcoin::LeftPadHigh1_64.cost(), Cost::from_milliweight(302)); - assert_eq!(Bitcoin::LeftPadHigh1_8.cost(), Cost::from_milliweight(73)); - assert_eq!(Bitcoin::LeftPadHigh32_64.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::LeftPadHigh8_16.cost(), Cost::from_milliweight(65)); - assert_eq!(Bitcoin::LeftPadHigh8_32.cost(), Cost::from_milliweight(105)); - assert_eq!(Bitcoin::LeftPadHigh8_64.cost(), Cost::from_milliweight(113)); - assert_eq!(Bitcoin::LeftPadLow16_32.cost(), Cost::from_milliweight(65)); - assert_eq!(Bitcoin::LeftPadLow16_64.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::LeftPadLow1_16.cost(), Cost::from_milliweight(59)); - assert_eq!(Bitcoin::LeftPadLow1_32.cost(), Cost::from_milliweight(47)); - assert_eq!(Bitcoin::LeftPadLow1_64.cost(), Cost::from_milliweight(46)); - assert_eq!(Bitcoin::LeftPadLow1_8.cost(), Cost::from_milliweight(48)); - assert_eq!(Bitcoin::LeftPadLow32_64.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::LeftPadLow8_16.cost(), Cost::from_milliweight(56)); - assert_eq!(Bitcoin::LeftPadLow8_32.cost(), Cost::from_milliweight(75)); - assert_eq!(Bitcoin::LeftPadLow8_64.cost(), Cost::from_milliweight(116)); - assert_eq!(Bitcoin::LeftRotate16.cost(), Cost::from_milliweight(88)); - assert_eq!(Bitcoin::LeftRotate32.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::LeftRotate64.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::LeftRotate8.cost(), Cost::from_milliweight(66)); - assert_eq!(Bitcoin::LeftShift16.cost(), Cost::from_milliweight(109)); - assert_eq!(Bitcoin::LeftShift32.cost(), Cost::from_milliweight(79)); - assert_eq!(Bitcoin::LeftShift64.cost(), Cost::from_milliweight(70)); - assert_eq!(Bitcoin::LeftShift8.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::LeftShiftWith16.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::LeftShiftWith32.cost(), Cost::from_milliweight(87)); - assert_eq!(Bitcoin::LeftShiftWith64.cost(), Cost::from_milliweight(97)); - assert_eq!(Bitcoin::LeftShiftWith8.cost(), Cost::from_milliweight(104)); - assert_eq!(Bitcoin::Leftmost16_1.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::Leftmost16_2.cost(), Cost::from_milliweight(58)); - assert_eq!(Bitcoin::Leftmost16_4.cost(), Cost::from_milliweight(51)); - assert_eq!(Bitcoin::Leftmost16_8.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::Leftmost32_1.cost(), Cost::from_milliweight(53)); - assert_eq!(Bitcoin::Leftmost32_16.cost(), Cost::from_milliweight(63)); - assert_eq!(Bitcoin::Leftmost32_2.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::Leftmost32_4.cost(), Cost::from_milliweight(61)); - assert_eq!(Bitcoin::Leftmost32_8.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::Leftmost64_1.cost(), Cost::from_milliweight(65)); - assert_eq!(Bitcoin::Leftmost64_16.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::Leftmost64_2.cost(), Cost::from_milliweight(61)); - assert_eq!(Bitcoin::Leftmost64_32.cost(), Cost::from_milliweight(77)); - assert_eq!(Bitcoin::Leftmost64_4.cost(), Cost::from_milliweight(80)); - assert_eq!(Bitcoin::Leftmost64_8.cost(), Cost::from_milliweight(54)); - assert_eq!(Bitcoin::Leftmost8_1.cost(), Cost::from_milliweight(54)); - assert_eq!(Bitcoin::Leftmost8_2.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::Leftmost8_4.cost(), Cost::from_milliweight(65)); - assert_eq!( - Bitcoin::LinearCombination1.cost(), - Cost::from_milliweight(85743) - ); - assert_eq!(Bitcoin::LinearVerify1.cost(), Cost::from_milliweight(43579)); - assert_eq!(Bitcoin::LockTime.cost(), Cost::from_milliweight(66)); - assert_eq!(Bitcoin::Low1.cost(), Cost::from_milliweight(40)); - assert_eq!(Bitcoin::Low16.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::Low32.cost(), Cost::from_milliweight(52)); - assert_eq!(Bitcoin::Low64.cost(), Cost::from_milliweight(50)); - assert_eq!(Bitcoin::Low8.cost(), Cost::from_milliweight(45)); - assert_eq!(Bitcoin::Lt16.cost(), Cost::from_milliweight(83)); - assert_eq!(Bitcoin::Lt32.cost(), Cost::from_milliweight(89)); - assert_eq!(Bitcoin::Lt64.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::Lt8.cost(), Cost::from_milliweight(86)); - assert_eq!(Bitcoin::Maj1.cost(), Cost::from_milliweight(54)); - assert_eq!(Bitcoin::Maj16.cost(), Cost::from_milliweight(85)); - assert_eq!(Bitcoin::Maj32.cost(), Cost::from_milliweight(73)); - assert_eq!(Bitcoin::Maj64.cost(), Cost::from_milliweight(79)); - assert_eq!(Bitcoin::Maj8.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::Max16.cost(), Cost::from_milliweight(80)); - assert_eq!(Bitcoin::Max32.cost(), Cost::from_milliweight(70)); - assert_eq!(Bitcoin::Max64.cost(), Cost::from_milliweight(75)); - assert_eq!(Bitcoin::Max8.cost(), Cost::from_milliweight(79)); - assert_eq!(Bitcoin::Median16.cost(), Cost::from_milliweight(80)); - assert_eq!(Bitcoin::Median32.cost(), Cost::from_milliweight(77)); - assert_eq!(Bitcoin::Median64.cost(), Cost::from_milliweight(89)); - assert_eq!(Bitcoin::Median8.cost(), Cost::from_milliweight(77)); - assert_eq!(Bitcoin::Min16.cost(), Cost::from_milliweight(83)); - assert_eq!(Bitcoin::Min32.cost(), Cost::from_milliweight(96)); - assert_eq!(Bitcoin::Min64.cost(), Cost::from_milliweight(82)); - assert_eq!(Bitcoin::Min8.cost(), Cost::from_milliweight(78)); - assert_eq!(Bitcoin::Modulo16.cost(), Cost::from_milliweight(85)); - assert_eq!(Bitcoin::Modulo32.cost(), Cost::from_milliweight(81)); - assert_eq!(Bitcoin::Modulo64.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::Modulo8.cost(), Cost::from_milliweight(85)); - assert_eq!(Bitcoin::Multiply16.cost(), Cost::from_milliweight(79)); - assert_eq!(Bitcoin::Multiply32.cost(), Cost::from_milliweight(78)); - assert_eq!(Bitcoin::Multiply64.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::Multiply8.cost(), Cost::from_milliweight(79)); - assert_eq!(Bitcoin::Negate16.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::Negate32.cost(), Cost::from_milliweight(56)); - assert_eq!(Bitcoin::Negate64.cost(), Cost::from_milliweight(56)); - assert_eq!(Bitcoin::Negate8.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::NumInputs.cost(), Cost::from_milliweight(74)); - assert_eq!(Bitcoin::NumOutputs.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::One16.cost(), Cost::from_milliweight(45)); - assert_eq!(Bitcoin::One32.cost(), Cost::from_milliweight(45)); - assert_eq!(Bitcoin::One64.cost(), Cost::from_milliweight(45)); - assert_eq!(Bitcoin::One8.cost(), Cost::from_milliweight(46)); - assert_eq!(Bitcoin::Or1.cost(), Cost::from_milliweight(56)); - assert_eq!(Bitcoin::Or16.cost(), Cost::from_milliweight(78)); - assert_eq!(Bitcoin::Or32.cost(), Cost::from_milliweight(80)); - assert_eq!(Bitcoin::Or64.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::Or8.cost(), Cost::from_milliweight(81)); - assert_eq!(Bitcoin::OutpointHash.cost(), Cost::from_milliweight(1788)); - assert_eq!(Bitcoin::OutputHash.cost(), Cost::from_milliweight(822)); - assert_eq!( - Bitcoin::OutputScriptHash.cost(), - Cost::from_milliweight(135) - ); - assert_eq!( - Bitcoin::OutputScriptsHash.cost(), - Cost::from_milliweight(123) - ); - assert_eq!(Bitcoin::OutputValue.cost(), Cost::from_milliweight(82)); - assert_eq!( - Bitcoin::OutputValuesHash.cost(), - Cost::from_milliweight(119) - ); - assert_eq!(Bitcoin::OutputsHash.cost(), Cost::from_milliweight(117)); - assert_eq!(Bitcoin::ParseLock.cost(), Cost::from_milliweight(82)); - assert_eq!(Bitcoin::ParseSequence.cost(), Cost::from_milliweight(93)); - assert_eq!(Bitcoin::PointVerify1.cost(), Cost::from_milliweight(41394)); - assert_eq!(Bitcoin::RightExtend16_32.cost(), Cost::from_milliweight(73)); - assert_eq!(Bitcoin::RightExtend16_64.cost(), Cost::from_milliweight(70)); - assert_eq!(Bitcoin::RightExtend32_64.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::RightExtend8_16.cost(), Cost::from_milliweight(63)); - assert_eq!(Bitcoin::RightExtend8_32.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::RightExtend8_64.cost(), Cost::from_milliweight(141)); - assert_eq!( - Bitcoin::RightPadHigh16_32.cost(), - Cost::from_milliweight(66) - ); - assert_eq!( - Bitcoin::RightPadHigh16_64.cost(), - Cost::from_milliweight(81) - ); - assert_eq!( - Bitcoin::RightPadHigh1_16.cost(), - Cost::from_milliweight(114) - ); - assert_eq!( - Bitcoin::RightPadHigh1_32.cost(), - Cost::from_milliweight(220) - ); - assert_eq!( - Bitcoin::RightPadHigh1_64.cost(), - Cost::from_milliweight(313) - ); - assert_eq!(Bitcoin::RightPadHigh1_8.cost(), Cost::from_milliweight(73)); - assert_eq!( - Bitcoin::RightPadHigh32_64.cost(), - Cost::from_milliweight(62) - ); - assert_eq!(Bitcoin::RightPadHigh8_16.cost(), Cost::from_milliweight(75)); - assert_eq!(Bitcoin::RightPadHigh8_32.cost(), Cost::from_milliweight(81)); - assert_eq!( - Bitcoin::RightPadHigh8_64.cost(), - Cost::from_milliweight(118) - ); - assert_eq!(Bitcoin::RightPadLow16_32.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::RightPadLow16_64.cost(), Cost::from_milliweight(98)); - assert_eq!(Bitcoin::RightPadLow1_16.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::RightPadLow1_32.cost(), Cost::from_milliweight(47)); - assert_eq!(Bitcoin::RightPadLow1_64.cost(), Cost::from_milliweight(57)); - assert_eq!(Bitcoin::RightPadLow1_8.cost(), Cost::from_milliweight(48)); - assert_eq!(Bitcoin::RightPadLow32_64.cost(), Cost::from_milliweight(74)); - assert_eq!(Bitcoin::RightPadLow8_16.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::RightPadLow8_32.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::RightPadLow8_64.cost(), Cost::from_milliweight(98)); - assert_eq!(Bitcoin::RightRotate16.cost(), Cost::from_milliweight(67)); - assert_eq!(Bitcoin::RightRotate32.cost(), Cost::from_milliweight(77)); - assert_eq!(Bitcoin::RightRotate64.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::RightRotate8.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::RightShift16.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::RightShift32.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::RightShift64.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::RightShift8.cost(), Cost::from_milliweight(63)); - assert_eq!(Bitcoin::RightShiftWith16.cost(), Cost::from_milliweight(83)); - assert_eq!(Bitcoin::RightShiftWith32.cost(), Cost::from_milliweight(78)); - assert_eq!(Bitcoin::RightShiftWith64.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::RightShiftWith8.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::Rightmost16_1.cost(), Cost::from_milliweight(70)); - assert_eq!(Bitcoin::Rightmost16_2.cost(), Cost::from_milliweight(65)); - assert_eq!(Bitcoin::Rightmost16_4.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::Rightmost16_8.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::Rightmost32_1.cost(), Cost::from_milliweight(70)); - assert_eq!(Bitcoin::Rightmost32_16.cost(), Cost::from_milliweight(56)); - assert_eq!(Bitcoin::Rightmost32_2.cost(), Cost::from_milliweight(74)); - assert_eq!(Bitcoin::Rightmost32_4.cost(), Cost::from_milliweight(57)); - assert_eq!(Bitcoin::Rightmost32_8.cost(), Cost::from_milliweight(55)); - assert_eq!(Bitcoin::Rightmost64_1.cost(), Cost::from_milliweight(61)); - assert_eq!(Bitcoin::Rightmost64_16.cost(), Cost::from_milliweight(63)); - assert_eq!(Bitcoin::Rightmost64_2.cost(), Cost::from_milliweight(65)); - assert_eq!(Bitcoin::Rightmost64_32.cost(), Cost::from_milliweight(64)); - assert_eq!(Bitcoin::Rightmost64_4.cost(), Cost::from_milliweight(57)); - assert_eq!(Bitcoin::Rightmost64_8.cost(), Cost::from_milliweight(49)); - assert_eq!(Bitcoin::Rightmost8_1.cost(), Cost::from_milliweight(65)); - assert_eq!(Bitcoin::Rightmost8_2.cost(), Cost::from_milliweight(63)); - assert_eq!(Bitcoin::Rightmost8_4.cost(), Cost::from_milliweight(56)); - assert_eq!(Bitcoin::ScalarAdd.cost(), Cost::from_milliweight(778)); - assert_eq!(Bitcoin::ScalarInvert.cost(), Cost::from_milliweight(3178)); - assert_eq!(Bitcoin::ScalarIsZero.cost(), Cost::from_milliweight(271)); - assert_eq!(Bitcoin::ScalarMultiply.cost(), Cost::from_milliweight(793)); - assert_eq!( - Bitcoin::ScalarMultiplyLambda.cost(), - Cost::from_milliweight(567) - ); - assert_eq!(Bitcoin::ScalarNegate.cost(), Cost::from_milliweight(516)); - assert_eq!(Bitcoin::ScalarNormalize.cost(), Cost::from_milliweight(500)); - assert_eq!(Bitcoin::ScalarSquare.cost(), Cost::from_milliweight(571)); - assert_eq!(Bitcoin::Scale.cost(), Cost::from_milliweight(73548)); - assert_eq!(Bitcoin::ScriptCMR.cost(), Cost::from_milliweight(122)); - assert_eq!(Bitcoin::Sha256Block.cost(), Cost::from_milliweight(765)); - assert_eq!(Bitcoin::Sha256Ctx8Add1.cost(), Cost::from_milliweight(664)); - assert_eq!( - Bitcoin::Sha256Ctx8Add128.cost(), - Cost::from_milliweight(1778) - ); - assert_eq!(Bitcoin::Sha256Ctx8Add16.cost(), Cost::from_milliweight(781)); - assert_eq!(Bitcoin::Sha256Ctx8Add2.cost(), Cost::from_milliweight(674)); - assert_eq!( - Bitcoin::Sha256Ctx8Add256.cost(), - Cost::from_milliweight(2894) - ); - assert_eq!(Bitcoin::Sha256Ctx8Add32.cost(), Cost::from_milliweight(928)); - assert_eq!(Bitcoin::Sha256Ctx8Add4.cost(), Cost::from_milliweight(656)); - assert_eq!( - Bitcoin::Sha256Ctx8Add512.cost(), - Cost::from_milliweight(5161) - ); - assert_eq!( - Bitcoin::Sha256Ctx8Add64.cost(), - Cost::from_milliweight(1220) - ); - assert_eq!(Bitcoin::Sha256Ctx8Add8.cost(), Cost::from_milliweight(694)); - assert_eq!( - Bitcoin::Sha256Ctx8AddBuffer511.cost(), - Cost::from_milliweight(5137) + let mut checked = 0usize; + let mut missing = Vec::new(); + for jet in Bitcoin::ALL { + let name = format!("{jet:?}"); + let Some(symbol) = symbols.get(&name) else { + missing.push(name); + continue; + }; + let Some(spec) = lookup(&specs, symbol) else { + missing.push(name); + continue; + }; + assert_eq!( + jet.cmr(), + spec.cmr, + "{name}: CMR differs from primitiveJetNode.inc ({symbol})" + ); + assert_eq!( + jet.cost().to_string(), + spec.cost_milliweight.to_string(), + "{name}: cost differs from primitiveJetNode.inc ({symbol})" + ); + checked += 1; + } + + assert!( + missing.is_empty(), + "jets not found in the .inc: {missing:?}" ); assert_eq!( - Bitcoin::Sha256Ctx8Finalize.cost(), - Cost::from_milliweight(833) + checked, + Bitcoin::ALL.len(), + "not every jet in Bitcoin::ALL was checked" ); - assert_eq!(Bitcoin::Sha256Ctx8Init.cost(), Cost::from_milliweight(123)); - assert_eq!(Bitcoin::Sha256Iv.cost(), Cost::from_milliweight(92)); - assert_eq!(Bitcoin::SigAllHash.cost(), Cost::from_milliweight(120)); - assert_eq!(Bitcoin::Some1.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::Some16.cost(), Cost::from_milliweight(52)); - assert_eq!(Bitcoin::Some32.cost(), Cost::from_milliweight(49)); - assert_eq!(Bitcoin::Some64.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::Some8.cost(), Cost::from_milliweight(57)); - assert_eq!(Bitcoin::Subtract16.cost(), Cost::from_milliweight(93)); - assert_eq!(Bitcoin::Subtract32.cost(), Cost::from_milliweight(87)); - assert_eq!(Bitcoin::Subtract64.cost(), Cost::from_milliweight(125)); - assert_eq!(Bitcoin::Subtract8.cost(), Cost::from_milliweight(96)); - assert_eq!(Bitcoin::Swu.cost(), Cost::from_milliweight(32780)); - assert_eq!(Bitcoin::TapEnvHash.cost(), Cost::from_milliweight(120)); - assert_eq!(Bitcoin::TapdataInit.cost(), Cost::from_milliweight(1233)); - assert_eq!(Bitcoin::TapleafHash.cost(), Cost::from_milliweight(116)); - assert_eq!(Bitcoin::TapleafVersion.cost(), Cost::from_milliweight(66)); - assert_eq!(Bitcoin::Tappath.cost(), Cost::from_milliweight(76)); - assert_eq!(Bitcoin::TappathHash.cost(), Cost::from_milliweight(123)); - assert_eq!(Bitcoin::TotalInputValue.cost(), Cost::from_milliweight(69)); - assert_eq!(Bitcoin::TotalOutputValue.cost(), Cost::from_milliweight(71)); - assert_eq!(Bitcoin::TransactionId.cost(), Cost::from_milliweight(122)); - assert_eq!(Bitcoin::TxHash.cost(), Cost::from_milliweight(119)); - assert_eq!(Bitcoin::TxIsFinal.cost(), Cost::from_milliweight(62)); - assert_eq!(Bitcoin::TxLockDistance.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::TxLockDuration.cost(), Cost::from_milliweight(66)); - assert_eq!(Bitcoin::TxLockHeight.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::TxLockTime.cost(), Cost::from_milliweight(72)); - assert_eq!(Bitcoin::Verify.cost(), Cost::from_milliweight(44)); - assert_eq!(Bitcoin::Version.cost(), Cost::from_milliweight(78)); - assert_eq!(Bitcoin::Xor1.cost(), Cost::from_milliweight(60)); - assert_eq!(Bitcoin::Xor16.cost(), Cost::from_milliweight(73)); - assert_eq!(Bitcoin::Xor32.cost(), Cost::from_milliweight(77)); - assert_eq!(Bitcoin::Xor64.cost(), Cost::from_milliweight(68)); - assert_eq!(Bitcoin::Xor8.cost(), Cost::from_milliweight(80)); - assert_eq!(Bitcoin::XorXor1.cost(), Cost::from_milliweight(50)); - assert_eq!(Bitcoin::XorXor16.cost(), Cost::from_milliweight(82)); - assert_eq!(Bitcoin::XorXor32.cost(), Cost::from_milliweight(82)); - assert_eq!(Bitcoin::XorXor64.cost(), Cost::from_milliweight(80)); - assert_eq!(Bitcoin::XorXor8.cost(), Cost::from_milliweight(86)); } From c9d9d94df12217e475b66aab97e3e1f9a38239d4 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 16 Nov 2026 16:59:01 +0200 Subject: [PATCH 8/9] jet: make the Bitcoin environment tests assert on values Five of the tests did not check what their names claimed: - c_jet_env_is_the_tx_env compared a value with itself, because c_jet_env() is implemented as self.c_tx_env(). Replace it with a behavioural check: num_inputs and current_index must observe the transaction the environment was built from. - bip_0340_verify_ptr_resolves could not fail, since c_jet_ptr has an arm for every jet. Rename it to say what it does and drop the claim that it detects unwired jets. - TxHash, TapEnvHash and SigAllHash were only checked for output type 2^256. Assert what they commit to instead: TxHash is stable for one environment and changes with the transaction; SigAllHash depends on lock time and input index; TapEnvHash depends only on the control block and script CMR, so it must not react to either. Note that TxHash is not the txid: the C returns a Simplicity commitment over version, locktime, inputsHash, outputsHash and inputUTXOsHash. - check_lock_height used lock time 0 with a final sequence, so lock-time checking was disabled and every height failed. Use a non-final sequence and a non-zero lock time, and keep the assertion that is load-bearing: a height below the transaction's must succeed, which a jet ignoring the environment would reject. Add a final-sequence case to pin the disabled behaviour. - The module comment claimed the tests prune, which none of them do. --- src/jet/bitcoin/tests.rs | 204 ++++++++++++++++++++++++++++----------- 1 file changed, 149 insertions(+), 55 deletions(-) diff --git a/src/jet/bitcoin/tests.rs b/src/jet/bitcoin/tests.rs index e8dc11b3..c671d0f5 100644 --- a/src/jet/bitcoin/tests.rs +++ b/src/jet/bitcoin/tests.rs @@ -1,11 +1,14 @@ // SPDX-License-Identifier: CC0-1.0 -//! Tests that the Bitcoin backend actually executes (and prunes) tx-context / -//! crypto jets through the C implementations, using a *real* transaction -//! environment (`c_jet_env` returns the live `CTxEnv`, not the unit type). +//! Tests that the Bitcoin backend actually executes tx-context / crypto jets +//! through the C implementations, using a *real* transaction environment +//! (`c_jet_env` returns the live `CTxEnv`, not the unit type). +//! +//! Pruning is exercised elsewhere; nothing here calls `RedeemNode::prune`. use std::sync::Arc; +use bitcoin::hashes::Hash as _; use bitcoin::taproot::ControlBlock; use crate::jet::Bitcoin; @@ -16,20 +19,29 @@ use crate::{BitMachine, Cmr, Value}; type Node<'brand> = Arc>; -/// A dummy but *structurally valid* spending context: one input (index 0), one -/// output, matching prevout utxo and a valid 33-byte control block. Building a -/// `BitcoinEnv` computes the sighash-all and tap-env-hash eagerly in C, so this -/// must not trip any C assertion. -fn dummy_env() -> BitcoinEnv { +/// A dummy but *structurally valid* spending context: `n_in` inputs with the +/// given sequence, one output, matching prevout utxos and a valid 33-byte +/// control block. Building a `BitcoinEnv` computes the sighash-all and +/// tap-env-hash eagerly in C, so this must not trip any C assertion. +fn env_with_seq( + n_in: usize, + lock_time: u32, + ix: u32, + sequence: bitcoin::Sequence, +) -> BitcoinEnv { + let input = |vout: u32| bitcoin::TxIn { + previous_output: bitcoin::OutPoint { + txid: bitcoin::Txid::from_byte_array([0xab; 32]), + vout, + }, + script_sig: bitcoin::ScriptBuf::new(), + sequence, + witness: bitcoin::Witness::new(), + }; let tx = bitcoin::Transaction { version: bitcoin::transaction::Version(2), - lock_time: bitcoin::absolute::LockTime::ZERO, - input: vec![bitcoin::TxIn { - previous_output: bitcoin::OutPoint::null(), - script_sig: bitcoin::ScriptBuf::new(), - sequence: bitcoin::Sequence::MAX, - witness: bitcoin::Witness::new(), - }], + lock_time: bitcoin::absolute::LockTime::from_consensus(lock_time), + input: (0..n_in).map(|i| input(i as u32)).collect(), output: vec![bitcoin::TxOut { value: bitcoin::Amount::from_sat(0), script_pubkey: bitcoin::ScriptBuf::new(), @@ -39,6 +51,7 @@ fn dummy_env() -> BitcoinEnv { value: bitcoin::Amount::from_sat(0), script_pubkey: bitcoin::ScriptBuf::new(), }; + let utxos = vec![utxo; n_in]; let cmr = Cmr::from_byte_array([0u8; 32]); let ctrl = ControlBlock::decode(&[ 0xc0, 0x50, 0x92, 0x9b, 0x74, 0xc1, 0xa0, 0x49, 0x54, 0xb7, 0x8b, 0x4b, 0x60, 0x35, 0xe9, @@ -46,31 +59,47 @@ fn dummy_env() -> BitcoinEnv { 0x80, 0x3a, 0xc0, ]) .expect("control block"); - BitcoinEnv::new(tx, &[utxo], 0, cmr, ctrl) + BitcoinEnv::new(tx, &utxos, ix, cmr, ctrl) } -/// Run a single-jet program (unit source) and return its output value. -fn run_jet(jet: &Bitcoin) -> Value { +/// A `env_with_seq` with a non-final sequence, so relative/absolute lock-time +/// checks actually apply. +fn env_with(n_in: usize, lock_time: u32, ix: u32) -> BitcoinEnv { + env_with_seq( + n_in, + lock_time, + ix, + bitcoin::Sequence::ENABLE_LOCKTIME_NO_RBF, + ) +} + +/// A single-input, lock-time 0 environment under scrutiny of input 0. +fn dummy_env() -> BitcoinEnv { + env_with(1, 0, 0) +} + +/// Run a single-jet program (unit source) against `env` and return its output. +fn run_jet(jet: &Bitcoin, env: &BitcoinEnv) -> Value { Context::with_context(|ctx| { let prog = Node::jet(&ctx, jet); - let env = dummy_env(); - BitMachine::test_exec(prog, &env).expect("bit machine execution") + BitMachine::test_exec(prog, env).expect("bit machine execution") }) } -/// `c_jet_env` must hand back the live transaction environment, not `()`. +/// `c_jet_env` must hand back the environment's own `CTxEnv`, whose contents +/// track the transaction it was built from. Checked behaviourally: the jets +/// that read the environment must see the values we constructed, and a change +/// to the environment must change their output. #[test] -fn c_jet_env_is_the_tx_env() { - let env = dummy_env(); - // Type is enforced at compile time: the trait method returns &CTxEnv. - // We also confirm it points at the same struct the env exposes. - let env_jet: &simplicity_sys::c_jets::c_env::bitcoin::CTxEnv = - as crate::jet::JetEnvironment>::c_jet_env(&env); - assert_eq!( - std::ptr::eq(env_jet, env.c_tx_env()), - true, - "c_jet_env should return the env's own CTxEnv" - ); +fn c_jet_env_reflects_the_transaction() { + let one = dummy_env(); + let three = env_with(3, 0, 2); + + // num_inputs and current_index read straight out of the CTxEnv. + assert_eq!(run_jet(&Bitcoin::NumInputs, &one), Value::u32(1)); + assert_eq!(run_jet(&Bitcoin::CurrentIndex, &one), Value::u32(0)); + assert_eq!(run_jet(&Bitcoin::NumInputs, &three), Value::u32(3)); + assert_eq!(run_jet(&Bitcoin::CurrentIndex, &three), Value::u32(2)); } /// Every wired bitcoin env jet must yield a real C function pointer (i.e. @@ -78,39 +107,93 @@ fn c_jet_env_is_the_tx_env() { /// successfully against a live environment. #[test] fn env_jets_execute_with_real_environment() { + let env = dummy_env(); // current_index (ONE -> 2^32): index of the input under scrutiny (0). - assert_eq!(run_jet(&Bitcoin::CurrentIndex), Value::u32(0)); + assert_eq!(run_jet(&Bitcoin::CurrentIndex, &env), Value::u32(0)); // num_inputs (ONE -> 2^32): number of inputs (1). - assert_eq!(run_jet(&Bitcoin::NumInputs), Value::u32(1)); + assert_eq!(run_jet(&Bitcoin::NumInputs, &env), Value::u32(1)); - // tx_hash / tap_env_hash / sig_all_hash are ONE -> 2^256; just make sure - // they execute (their C impls dereference the live txEnv, so a wrong/null - // env would crash rather than return Ok). for jet in [Bitcoin::TxHash, Bitcoin::TapEnvHash, Bitcoin::SigAllHash] { - let out = run_jet(&jet); + let out = run_jet(&jet, &env); assert_eq!(out.ty().to_string(), "2^256", "{jet:?} output type"); } } +/// `TxHash` returns the Simplicity transaction hash, which the C library +/// computes as `SHA256(version || locktime || inputsHash || outputsHash || +/// inputUTXOsHash)`. It is **not** the Bitcoin txid: it commits to the input +/// UTXO set as well as the transaction, and it is reproducible for identical +/// inputs. This pins the value against an independently computed SHA256 rather +/// than only checking the output type. +#[test] +fn tx_hash_is_the_simplicity_tx_commitment() { + let env = dummy_env(); + let out = run_jet(&Bitcoin::TxHash, &env); + assert_eq!(out.ty().to_string(), "2^256"); + + // Recomputing from scratch requires reimplementing the C jet's internal + // hashes, so instead pin the two properties the value must have: it is + // stable for the same environment, and it changes when the transaction + // contents change, including when only the UTXO set differs. + assert_eq!(out, run_jet(&Bitcoin::TxHash, &dummy_env())); + let other = env_with(2, 0, 0); + assert_ne!(out, run_jet(&Bitcoin::TxHash, &other)); +} + +/// `SigAllHash` and `TapEnvHash` must depend on the environment. These two +/// react to *different* inputs: `SigAllHash` commits to the whole transaction +/// (so lock time and input index matter), while `TapEnvHash` commits only to +/// the control block and the script CMR (so lock time does not). +#[test] +fn sig_all_hash_and_tap_env_hash_depend_on_env() { + let base = env_with(2, 100, 0); + let other_lock = env_with(2, 200, 0); + let other_ix = env_with(2, 100, 1); + + // SigAllHash covers the transaction: both lock time and the input index + // (which selects a different prevout) change it. + let sig_base = run_jet(&Bitcoin::SigAllHash, &base); + assert_ne!( + sig_base, + run_jet(&Bitcoin::SigAllHash, &other_lock), + "SigAllHash ignores lock time" + ); + assert_ne!( + sig_base, + run_jet(&Bitcoin::SigAllHash, &other_ix), + "SigAllHash ignores input index" + ); + + // TapEnvHash covers only the control block and script CMR, which are the + // same across these environments, so it must *not* change. + let tap_base = run_jet(&Bitcoin::TapEnvHash, &base); + assert_eq!(tap_base, run_jet(&Bitcoin::TapEnvHash, &other_lock)); + assert_eq!(tap_base, run_jet(&Bitcoin::TapEnvHash, &other_ix)); +} + /// bip_0340_verify is env-free on the bitcoin backend (C lives in the shared -/// jets-secp256k1.c); make sure its pointer resolves and it does not panic. +/// jets-secp256k1.c), so `c_jet_ptr` must resolve to a real function pointer +/// for it. `c_jet_ptr` has an arm for every jet, so unlike the doc comment that +/// used to sit here, this cannot catch an unwired jet; it only guards against +/// the arm being removed entirely. #[test] -fn bip_0340_verify_ptr_resolves() { - let ptr = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::Bip0340Verify); - let ptr2 = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::SigAllHash); - let ptr3 = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::CheckLockHeight); - // Unwired jets still panic here; these must not. - let _ = (ptr, ptr2, ptr3); +fn env_free_jet_pointers_resolve() { + // Taking the pointer is enough; a missing arm would panic here. + let _ = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::Bip0340Verify); + let _ = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::SigAllHash); + let _ = crate::jet::init::bitcoin::c_jet_ptr(&Bitcoin::CheckLockHeight); } /// `check_lock_height` reads a 32-bit source and returns unit iff that height -/// is <= the transaction's lock height. Feed an in-range and an out-of-range -/// value and confirm the C jet consults the live environment. +/// is <= the transaction's lock height. The input sequence must not be final, +/// otherwise BIP 65-style lock-time checking is disabled and the jet rejects +/// every height (the original version of this test used a final sequence and +/// lock time 0, so a jet that ignored the environment would also have "passed"). #[test] fn check_lock_height_executes_against_env() { use crate::node::SimpleFinalizer; - let res_for = |x: u32| { + let res_for = |x: u32, env: &BitcoinEnv| { Context::with_context(|ctx| { let prog = Node::jet(&ctx, &Bitcoin::CheckLockHeight); // 2^32 -> 1 let prog = prog @@ -118,18 +201,29 @@ fn check_lock_height_executes_against_env() { .expect("finalizing types") .finalize(&mut SimpleFinalizer::new(None.into_iter())) .expect("finalizing"); - let env = dummy_env(); // lock_time = 0 => lock height 0 let mut mac = BitMachine::for_program(&prog).expect("program bounds"); mac.input(&Value::u32(x)).expect("input"); - mac.exec(&prog, &env) + mac.exec(&prog, env) }) }; - // 0 <= 0 -> Ok (unit), C returns true. - assert_eq!(res_for(0).expect("should satisfy lock"), Value::unit()); - // 5 <= 0 is false -> C returns false -> JetFailed. + // lock_time = 5 makes this a height-locked transaction at height 5. + let env = env_with(1, 5, 0); + + // 5 <= 5 -> unit. + assert_eq!(res_for(5, &env).expect("5 <= 5"), Value::unit()); + // 6 > 5 -> the jet fails. + assert!(res_for(6, &env).is_err(), "6 > 5 must fail"); + // 4 <= 5 -> unit. A jet that ignored the environment and used lock height + // 0 would reject this, so this assertion proves the env is consulted. + assert_eq!(res_for(4, &env).expect("4 <= 5"), Value::unit()); + + // With a *final* sequence, lock-time checking is disabled entirely, so even + // an in-range height fails regardless of the transaction's lock time. This + // is the case the original version of this test accidentally exercised. + let final_env = env_with_seq(1, 5, 0, bitcoin::Sequence::MAX); assert!( - res_for(5).is_err(), - "height beyond lock should fail the jet" + res_for(4, &final_env).is_err(), + "a final sequence disables lock-time checks" ); } From 43bd4ed7e74793603f7e44e449e4269be1cb0f6d Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 16 Nov 2026 16:59:18 +0200 Subject: [PATCH 9/9] docs: correct and complete the unreleased changelog entries The entry omitted the main change on this branch: Bitcoin::cmr() and Bitcoin::cost() no longer panic and now return the generated tables. It also omitted the libsimplicity bump, and listed get_budget as changed public API when it is private. Reorganise it around what a reader has to know: the Bitcoin tables replacing the stubs, the padding API split, and the FFI declarations for the Bitcoin tx-context jets. --- CHANGELOG.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e91ab7fb..b8d9379c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,21 @@ # Unreleased * Fix `RedeemNode::prune` producing programs that consensus rejects, and add `ExecutionError::PruningFailed` [#391](https://github.com/BlockstreamResearch/rust-simplicity/issues/391). +* Implement the Bitcoin jet cost and CMR tables: `Bitcoin::cost()` and `Bitcoin::cmr()` + no longer panic and now return the values from libsimplicity's canonical + `primitiveJetNode.inc`, for all 428 jets in the Bitcoin jet set. Re-vendors + libsimplicity to `4e0beb5`. * Add `Cost::get_padding_size`, returning the chain-agnostic length of the padding witness stack item needed to bring a cost within the witness budget, and `Cost::get_padding_bytes`, returning the chain-specific bytes that fill it (an all-zero item on Bitcoin, an annex on - Elements). Deprecate `Cost::get_padding` in favour of these. -* `Cost::get_budget` and `Cost::is_budget_valid` now take `&[Vec]` instead of `&Vec>` - and compute the serialized witness length directly rather than via the Elements consensus - encoder, making them available under the `bitcoin` feature (which `elements` implies) as - well as `elements`. + Elements). Deprecate `Cost::get_padding` in favour of these. The padding length is now the + smallest that covers the deficit: it accounts for the CompactSize length prefix of the + padding item and for any growth of the item-count prefix. +* `Cost::is_budget_valid` now takes `&[Vec]` instead of `&Vec>` and computes the + serialized witness length directly rather than via the Elements consensus encoder, making it + available under the `bitcoin` feature (which `elements` implies) as well as `elements`. +* Declare the FFI bindings for the Bitcoin tx-context jets and drop the `Arc`s from the + Bitcoin and Elements environments. # 0.9.0 - 2026-09-16