eth: make sighash computation streaming/async
What changed, and why it matters
This commit refactors how the BitBox02 hardware wallet computes the Ethereum transaction hash (sighash) when the transaction contains a very large 'data' field. Previously, the entire data field had to be held in memory at once, which could fail if it was too large for a single USB message. The change makes the hashing process 'streaming' or 'asynchronous', so the device can receive and hash the data in smaller chunks. The commit itself is a feature/robustness improvement, not a direct security fix, but it touches the core cryptographic hashing path for Ethereum transactions.
Review the updated `sign.rs` caller to ensure the async boundary and any new producer implementation correctly enforce length consistency between the streamed chunks and the declared `len()` / `first_byte()` values. Verify that the `Counter` length computation and the `Hasher` streaming path cannot diverge (e.g., producer returns fewer or more bytes than `len()`). Run the updated unit tests and consider adding a test for chunked producers to validate streaming correctness.
Security signals we found
Refactoring of core Ethereum sighash computation to async/streaming model
Introduction of `RefCell` around data producer, adding interior mutability
New async trait methods and `block_on` usage in tests
Large data field handling change to avoid single-packet USB limitation
No explicit security relevance, CVE, or attribution in commit message or diff
Evidence from the diff
The commit converts sighash.rs from synchronous to async computation by introducing a DataProducer trait and a SimpleProducer implementation. ParamsLegacy and ParamsEIP1559 now hold the transaction data via RefCell<D> where D: DataProducer instead of a plain byte slice. A new Write::write_producer async method streams chunks into the Keccak256 hasher and into a length counter. compute_legacy and compute_eip1559 are now async fn. Tests are updated to wrap data in SimpleProducer and run with block_on. The companion file sign.rs (not fully shown in the diff) is updated to call these async functions. There is no explicit vendor statement that this is a security fix, and no CVE or researcher attribution is present in the supplied materials.
Changed components
src/rust/bitbox02-rust/src/hww/api/ethereum/sighash.rssrc/rust/bitbox02-rust/src/hww/api/ethereum/sign.rsEthereum transaction signing pathKeccak256/RLP hashing path for legacy and EIP-1559 transactionsInspect captured patch +424 / −334
diff --git a/src/rust/bitbox02-rust/src/hww/api/ethereum/sighash.rs b/src/rust/bitbox02-rust/src/hww/api/ethereum/sighash.rs
index 20c387d..471739b 100644
--- a/src/rust/bitbox02-rust/src/hww/api/ethereum/sighash.rs
+++ b/src/rust/bitbox02-rust/src/hww/api/ethereum/sighash.rs
@@ -5,17 +5,62 @@ use sha3::{Digest, Keccak256};
const RLP_SMALL_TAG: u8 = 0xc0;
const RLP_LARGE_TAG: u8 = 0xf7;
-pub struct ParamsLegacy<'a> {
+use core::cell::RefCell;
+use core::ops::DerefMut;
+
+use alloc::vec::Vec;
+
+/// An async producer/generator of a bytes array. This is used to be able to accumulate the RLP hash
+/// of the `data` field, which can be very large and has to be streamed in chunks in that case.
+pub trait DataProducer {
+ /// Returns the length of the data.
+ fn len(&self) -> usize;
+ /// Returns the first byte of the data.
+ fn first_byte(&self) -> u8;
+ /// Produces a chunk of the data. Returns `Some` if data was available, and `None` when there
+ /// are no more chunks.
+ async fn next(&mut self) -> Option<Vec<u8>>;
+}
+
+/// Produces a byte slice in one shot.
+pub struct SimpleProducer<'a>(&'a [u8], bool);
+
+impl<'a> SimpleProducer<'a> {
+ pub fn new(data: &'a [u8]) -> Self {
+ SimpleProducer(data, false)
+ }
+}
+
+impl<'a> DataProducer for SimpleProducer<'a> {
+ fn len(&self) -> usize {
+ self.0.len()
+ }
+
+ fn first_byte(&self) -> u8 {
+ self.0[0]
+ }
+
+ async fn next(&mut self) -> Option<Vec<u8>> {
+ if !self.1 {
+ self.1 = true;
+ Some(self.0.to_vec())
+ } else {
+ None
+ }
+ }
+}
+
+pub struct ParamsLegacy<'a, D: DataProducer> {
pub nonce: &'a [u8],
pub gas_price: &'a [u8],
pub gas_limit: &'a [u8],
pub recipient: &'a [u8],
pub value: &'a [u8],
- pub data: &'a [u8],
+ pub data: RefCell<D>,
pub chain_id: u64,
}
-pub struct ParamsEIP1559<'a> {
+pub struct ParamsEIP1559<'a, D: DataProducer> {
pub chain_id: u64,
pub nonce: &'a [u8],
pub max_priority_fee_per_gas: &'a [u8],
@@ -23,11 +68,14 @@ pub struct ParamsEIP1559<'a> {
pub gas_limit: &'a [u8],
pub recipient: &'a [u8],
pub value: &'a [u8],
- pub data: &'a [u8],
+ pub data: RefCell<D>,
}
trait Write {
+ // Writes the given data to the writer.
fn write(&mut self, data: &[u8]);
+ // Same as `write`, but it writes all the data produced by the async data producer.
+ async fn write_producer<D: DataProducer, T: DerefMut<Target = D>>(&mut self, producer: T);
}
struct Hasher(Keccak256);
@@ -36,6 +84,12 @@ impl Write for Hasher {
fn write(&mut self, data: &[u8]) {
self.0.update(data);
}
+
+ async fn write_producer<D: DataProducer, T: DerefMut<Target = D>>(&mut self, mut producer: T) {
+ while let Some(data) = producer.next().await {
+ self.0.update(&data);
+ }
+ }
}
struct Counter(u32);
@@ -44,6 +98,10 @@ impl Write for Counter {
fn write(&mut self, data: &[u8]) {
self.0 += data.len() as u32;
}
+
+ async fn write_producer<D: DataProducer, T: DerefMut<Target = D>>(&mut self, producer: T) {
+ self.0 += producer.len() as u32;
+ }
}
fn hash_header<W: Write>(writer: &mut W, small_tag: u8, large_tag: u8, len: u16) {
@@ -68,6 +126,19 @@ fn hash_element<W: Write>(writer: &mut W, bytes: &[u8]) {
writer.write(bytes);
}
+// Async version of `hash_element()` that streams the data to be hashed from the producer.
+async fn hash_producer<W: Write, D: DataProducer, T: DerefMut<Target = D>>(
+ writer: &mut W,
+ producer: T,
+) {
+ // hash header
+ let len = producer.len();
+ if len != 1 || producer.first_byte() > 0x7f {
+ hash_header(writer, 0x80, 0xb7, len as _);
+ }
+ writer.write_producer(producer).await;
+}
+
fn hash_u64<W: Write>(writer: &mut W, value: u64) {
let bigendian = value.to_be_bytes();
let mut stripped: &[u8] = bigendian.as_slice();
@@ -77,13 +148,16 @@ fn hash_u64<W: Write>(writer: &mut W, value: u64) {
hash_element(writer, stripped)
}
-fn hash_params_legacy<W: Write>(writer: &mut W, params: &ParamsLegacy) {
+async fn hash_params_legacy<W: Write, D: DataProducer>(
+ writer: &mut W,
+ params: &ParamsLegacy<'_, D>,
+) {
hash_element(writer, params.nonce);
hash_element(writer, params.gas_price);
hash_element(writer, params.gas_limit);
hash_element(writer, params.recipient);
hash_element(writer, params.value);
- hash_element(writer, params.data);
+ hash_producer(writer, params.data.borrow_mut()).await;
{
// EIP155, encodes <chainID><0><0>
hash_u64(writer, params.chain_id);
@@ -92,7 +166,10 @@ fn hash_params_legacy<W: Write>(writer: &mut W, params: &ParamsLegacy) {
}
}
-fn hash_params_eip1559<W: Write>(writer: &mut W, params: &ParamsEIP1559) {
+async fn hash_params_eip1559<W: Write, D: DataProducer>(
+ writer: &mut W,
+ params: &ParamsEIP1559<'_, D>,
+) {
hash_u64(writer, params.chain_id);
hash_element(writer, params.nonce);
hash_element(writer, params.max_priority_fee_per_gas);
@@ -100,7 +177,7 @@ fn hash_params_eip1559<W: Write>(writer: &mut W, params: &ParamsEIP1559) {
hash_element(writer, params.gas_limit);
hash_element(writer, params.recipient);
hash_element(writer, params.value);
- hash_element(writer, params.data);
+ hash_producer(writer, params.data.borrow_mut()).await;
hash_header(writer, RLP_SMALL_TAG, RLP_LARGE_TAG, 0); // access list not currently supported and hashed as empty list
}
@@ -109,13 +186,13 @@ fn hash_params_eip1559<W: Write>(writer: &mut W, params: &ParamsEIP1559) {
/// not allowed to have leading zeros (unchecked).
///
/// See https://github.com/ethereum/wiki/wiki/RLP
-pub fn compute_legacy(params: &ParamsLegacy) -> Result<[u8; 32], ()> {
+pub async fn compute_legacy<D: DataProducer>(params: &ParamsLegacy<'_, D>) -> Result<[u8; 32], ()> {
// We hash [nonce, gas price, gas limit, recipient, value, data], RLP encoded.
// The list length prefix is (0xc0 + length of the encoding of all elements).
// 1) calculate length
let mut counter = Counter(0);
- hash_params_legacy(&mut counter, params);
+ hash_params_legacy(&mut counter, params).await;
if counter.0 > 0xffff {
// Don't support bigger than this for now.
@@ -125,11 +202,13 @@ pub fn compute_legacy(params: &ParamsLegacy) -> Result<[u8; 32], ()> {
// 2) hash len and encoded tx elements
let mut hasher = Hasher(Keccak256::new());
hash_header(&mut hasher, RLP_SMALL_TAG, RLP_LARGE_TAG, counter.0 as u16);
- hash_params_legacy(&mut hasher, params);
+ hash_params_legacy(&mut hasher, params).await;
Ok(hasher.0.finalize().into())
}
-pub fn compute_eip1559(params: &ParamsEIP1559) -> Result<[u8; 32], ()> {
+pub async fn compute_eip1559<D: DataProducer>(
+ params: &ParamsEIP1559<'_, D>,
+) -> Result<[u8; 32], ()> {
// https://eips.ethereum.org/EIPS/eip-1559
// We hash [chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas limit, recipient, value, data, access list]
// RLP encoded. Prefixed with 0x02 for EIP1559 transaction type
@@ -137,7 +216,7 @@ pub fn compute_eip1559(params: &ParamsEIP1559) -> Result<[u8; 32], ()> {
// 1) calculate length
let mut counter = Counter(0);
- hash_params_eip1559(&mut counter, params);
+ hash_params_eip1559(&mut counter, params).await;
if counter.0 > 0xffff {
// Don't support bigger than this for now.
@@ -148,7 +227,7 @@ pub fn compute_eip1559(params: &ParamsEIP1559) -> Result<[u8; 32], ()> {
let mut hasher = Hasher(Keccak256::new());
hasher.write(&[0x02]); // prefix the rlp encoding with transaction type before hashing
hash_header(&mut hasher, RLP_SMALL_TAG, RLP_LARGE_TAG, counter.0 as u16);
- hash_params_eip1559(&mut hasher, params);
+ hash_params_eip1559(&mut hasher, params).await;
Ok(hasher.0.finalize().into())
}
@@ -156,6 +235,8 @@ pub fn compute_eip1559(params: &ParamsEIP1559) -> Result<[u8; 32], ()> {
mod tests {
use super::*;
+ use util::bb02_async::block_on;
+
#[test]
fn test_compute_eip1559() {
/* Generated using this Go program:
@@ -177,10 +258,12 @@ mod tests {
¶ms.ChainConfig{
ChainID: big.NewInt(200),
LondonBlock: big.NewInt(12965000),
+ CancunTime: params.MainnetChainConfig.CancunTime,
},
¶ms.ChainConfig{
ChainID: big.NewInt(9223372036854775803),
LondonBlock: big.NewInt(12965000),
+ CancunTime: params.MainnetChainConfig.CancunTime,
},
}
@@ -201,9 +284,9 @@ mod tests {
fmt.Printf("gas_limit: %s,\n", encbytes(new(big.Int).SetUint64(tx.Gas()).Bytes()))
fmt.Printf("recipient: %s,\n", encbytes(tx.To().Bytes()))
fmt.Printf("value: %s,\n", encbytes(tx.Value().Bytes()))
- fmt.Printf("data: %s,\n", encbytes(tx.Data()))
+ fmt.Printf("data: RefCell::new(SimpleProducer::new(&%s[..])),\n", encbytes(tx.Data()))
fmt.Printf("},\n")
- signer := types.MakeSigner(net, net.LondonBlock)
+ signer := types.MakeSigner(net, net.LondonBlock, *net.CancunTime)
fmt.Printf("expected_sighash: *%s,\n", encbytes(signer.Hash(tx).Bytes()))
fmt.Printf("},\n")
}
@@ -245,10 +328,10 @@ mod tests {
outputtx(nets[rand.Intn(len(nets))], tx)
}
}
- */
+ */
- struct Test<'a> {
- params: ParamsEIP1559<'a>,
+ struct Test<'a, D: DataProducer> {
+ params: ParamsEIP1559<'a, D>,
expected_sighash: [u8; 32],
}
let tests = &[
@@ -261,7 +344,7 @@ mod tests {
gas_limit: b"\x85\x9b\xd7\xdf\x52\x9d\xdd\x09",
recipient: b"\x92\xba\x4d\x76\x42\x9b\x61\x7a\x0c\x9f\x9f\x0d\x3b\xa5\x5b\x0c\xc0\xd6\x14\x4c",
value: b"\x88",
- data: b"\x85\x35\x02\xb4\x1d\xf4\xf9\x19\x29\xe1\x8f\xda\x9e\x6f\x82\xe5\x4e\x74\x8e\x81\xe7\x9e\x4b\xbd\x6f\xe3\x4c\xdc\xba\x84\x3e\xe8\xd6\x3e\x8c\x4f\xfe\x1c\xeb\xea\x54\x6d\x8f\xac\x13\xdd\x1a\xac\x04\xce\x2e\xa2\x87\x7c\x55\x79\xcf\xa2\xc7\x8e\x1b\x0b\xaf\xae\x88\x1b\x82\xa7\x51\x10\x8a\x42\xed\x3c\x90\x3c\xaa\x43\x46\x5a\x78\x62\x06\x16\x97\x8a\xed\x0c\xe3\xc6\xc4\xf3\xae\x7b\xc3\xe0\x49\x5b\x57\x12\xfe\xfd\xbe\x0c\x10\x28\x87\xe1\x00\xda\xcd\x2d\x88\x5f\x69\x2c\xb6\x07\xda\x00\xa1\x1c\x1c\x70\x71\xe7\x96\xa2\xdc\x2d\xc2\x5a\x5b\x74\xb2\xe1\x29\x70\x5e\x27\x3f\x05\xc9\x23\x26\x82\x8e\x2b\x05\x6e\x38\x17\x65\x8e\x10\x61\x49\x89\x47\xfd\xf3\x44\x41\x0e\xd4\xc1\x16\x02\x3f\xa8\xe3\x57\x6b\x6f\xed\x27\xff\x89\x74\xba\xc0\xca\xfd\x9a\xd0\x56\x92\xb1\x36\x19\xe7\x38\x96\x4d\xfd\xc7\x9e\x8d\x53\x43\x73\x66\x1c\xfd\x66\xd7\x4f\xec\x1e\x1b\x89\x49\x1a\xb7\x23\x6e\x4b\x75\x21\x62\x90\xcf\x2b\xeb\x42\xc3\xca\x27\x32\x85\x60\xf1\xaa\xc0\x67\xce\xa6\xe8\xbf\x46\xd4\xab\x2b\x46\x80\x40\x2c\x5f\xb2\x82\x0e\x88\x5d\x32\x60\xf1\xde\x97\x82\x83\xd4\xa0\x9a\x36\xf9\x6c\x20\x94\x17\x46\xe3\xed\x4d\xa6\x46\xa9\xae\x8b\x4f\xa7\xb4\xfc\x3a\x20\xba\xfa\x1a\x75\xed\x32\x7a\x86\xb8\xb0\xc3\x9a\xf1\xcf\xd2\xb3\xb5\x12\x19\xea\x79\x53\x3a\xbf\x44\x8d\x2c\x47\x9d\x32\x60\x75\x33\x90\x59\x14\xc8\xcc\x1c\xf0\x9d\xa3\x9e\x0e\x92\x9d\x02\x4a\xbc\xbc\xb1\x69\x39\x7b\xb7\x34\xe7\xef\x0a\x6e\x01\xf1\x85\x4d\xeb\x5f\xe4\x24\xfe\xf7\xac\x21\x08\x91\xf5\x97\x5e\x29\x2a\xa2\xb8\xaa\x04\x7c\x61\xcd\xb3\x33\x73\xeb\xe7\x2c\x27\xa0\x98\xc0\x21\x97\xda\xe6\xb7\x32\xc3\x51\xdf\x66\x8f\x87\x4e\x2c\x9f\x1c\xe0\x9c\xa8\x60\x17\xe7\xe2\x17\x48\x30\x3f\xf4\x1c\x1b\x23\xe1\x1c\x48\xed\x17\x53\x9d\x68\x5f\x76\xf2\xa7\x98\xbc\x64\xde\x0e\x5d\xb2\x86\x4b\x2a\xd3\xc2\x6c\xe6\x38\x23\x42\x76\x5a\x13\xd6\x96\xe5\x2d\xf7\x60\xf6\xc3\x46\x5e\x29\xa0\xdc\xa4\x6a\xc3\xa0\xd5\x70\x13\x3b\xc2\x15\x71\xf5\xf5\x4a\x64\x31\x05\x51\x3f\xd8\x42\x9b\x19\x4a\xe1\xba\x9f\x2a\x83\x86\xae\x72\xb3\x66\x1f\xe8\x2c\x2a\xc6\x4d\xbf\x46\x15\x18\x24\xe2\x30\x53\x12\x63\x7c\x99\xc2\xb8\x7d\x6d\xf0\xdd\x5e\xf2\x83\x67\x19\x07\x2d\x67\x2f\x61\xfa\xa0\xbe\x86\xf4\x57\x92\x1e\xc3\x7c\x0e\x46\x0c\xf0\xd7\x03\xd0\x7d\xc5\xf5\x66\x1a\x45\x01\x33\x40\x9a\x71\x2b\x6a\x66\xab\xd7\xba\x65\x22\x4c\xa2\x69\x78\xd9\xa5\xce\x62\xfe\xb1\x1a\x83\x8f\x16\x62\x2e\xb5\x4c\xee\x3e\x67\x55\x22\x9c\x18\x3c\x19\x33\xa9\x16\x58\x5e\x18\x3b\xb7\x09\x19\x2d\xb0\xe6\xc8\xd7\x09\xb9\xd7\x38\x3b\x99\x3c\x69\x49\x99\x45\xb0\xb0\xcf\xe3\xdc\x2e\xc1\xfc\x96\x10\xd7\xee\xb1\x9d\x09\x16\xa2\x74\x23\xc2\x9e\x44\x2f\x0e\x31\xc2\xc9\x53\x96\x60\xf0\x5f\xb3\x7e\x45\xcd\x1b\xf0\xbc\xfc\x1a\x34\x6c\x43\x4f\x11\xcf\x00\x41\x6f\xa6\x16\x95\xb9\x20\x2e\x68\x36\x3a\x1c\x78\x7f\x47\x84\xe0\xae\xd9\xc7\x85\x64\x18\x4e\x13\x1f\x1e\x7c\x81\x1f\xbd\x88\x5b\xcc\x67\x34\xe8\x93\x3f\x3c\xb2\xf2\x5d\x52\xf9\xf8\xc7\x54\x7a\xd7\xe1\xd6\x27\x8c\x9f\x7c\x87\x2f\x84\x0f\x9d\x94\xd9\xfd\xed\xae\x93\xdb\x24\x95\x71\x8f\x58\x0b\x8c\x8f\x2b\xec\xc6\xaa\x76\xc3\xb0\xf9\x48\xaf\xbe\x61\x27\xa5\xcf\xd5\x6b\xc1\x1b\x3c\x2e\xa8\x37\xa1\xc6\x69\xa8\x22\xf7\x68\x64\xec\x2a\xe0\xcd\x6b\xfd\xdf\x21\xb1\x14\x44\x74\xbf\xd3\x7c\xd2\x06\xb5\x1a\xce\x05\x0a\xb6\x19\x9e\xc7\xb3\x96\xd6\x18\xfd\xe0\xe1\xa2\x99\x9a\x6f\x3d\x9f\x8b\x7a\xb8\x14\x9f\x72\xde\xba\x5c\x6c\xd4\xfd\x4d\x39\x2c\x92\xb4\xb2\x1a\xc8\x12\x03\x40\x62\xdf\xc3\x06\x3a\x7a\x68\x62\xb0\xfe\xf1\x05\x29\x19\xc2\xa8\x7a\x49\x94\xfc\x1e\x40\x1e\x11\xc5\xa4\x9c\x7e\x8e\xa9\xe6\x5d\x6c\xc4\x04\x65\xfd\x35\x2f\x2c\x42\xec\x3d\x3e\xf6\x0d\xb6\x97\x40\x51\x7d\xc7\x65\x2b\x9e\xef\xf5\x16\x53\x5a\xa1\xc9\xf3\x3d\xb1\x3e\xd1\xf7\xae\x1b\xe3\x84\x13\x23\x28\xd1\x03\xf8\x71\xaf\x9b\xcd\x15\x23\x3c\x39\x39\x78\xf5\xc1\x70\x89\xe8\xf3\x26\x7a\x0c\xcc\x7e\x39\xbf\xca\xc7\xac\x42\xbe\x2c\x17\x2c\x62\x43\xd1\x06\x33\x03\x6d\x3d\x46\xb8\x19\x16\xae\x46\xff\x13\xd6\xa6\xb2\xfa\xd9\x07\x9d\x6d\xf3\x44\x05\x90\x29\x66\x7b\x2e\xb4\x1a\x40\x01\x17\x55\x6f\xe5\xcb\x40\x5b\x31\x70\xac\xac\xa5\xc7\x5b\xaf\x7f\x7b\x70",
+ data: RefCell::new(SimpleProducer::new(&b"\x85\x35\x02\xb4\x1d\xf4\xf9\x19\x29\xe1\x8f\xda\x9e\x6f\x82\xe5\x4e\x74\x8e\x81\xe7\x9e\x4b\xbd\x6f\xe3\x4c\xdc\xba\x84\x3e\xe8\xd6\x3e\x8c\x4f\xfe\x1c\xeb\xea\x54\x6d\x8f\xac\x13\xdd\x1a\xac\x04\xce\x2e\xa2\x87\x7c\x55\x79\xcf\xa2\xc7\x8e\x1b\x0b\xaf\xae\x88\x1b\x82\xa7\x51\x10\x8a\x42\xed\x3c\x90\x3c\xaa\x43\x46\x5a\x78\x62\x06\x16\x97\x8a\xed\x0c\xe3\xc6\xc4\xf3\xae\x7b\xc3\xe0\x49\x5b\x57\x12\xfe\xfd\xbe\x0c\x10\x28\x87\xe1\x00\xda\xcd\x2d\x88\x5f\x69\x2c\xb6\x07\xda\x00\xa1\x1c\x1c\x70\x71\xe7\x96\xa2\xdc\x2d\xc2\x5a\x5b\x74\xb2\xe1\x29\x70\x5e\x27\x3f\x05\xc9\x23\x26\x82\x8e\x2b\x05\x6e\x38\x17\x65\x8e\x10\x61\x49\x89\x47\xfd\xf3\x44\x41\x0e\xd4\xc1\x16\x02\x3f\xa8\xe3\x57\x6b\x6f\xed\x27\xff\x89\x74\xba\xc0\xca\xfd\x9a\xd0\x56\x92\xb1\x36\x19\xe7\x38\x96\x4d\xfd\xc7\x9e\x8d\x53\x43\x73\x66\x1c\xfd\x66\xd7\x4f\xec\x1e\x1b\x89\x49\x1a\xb7\x23\x6e\x4b\x75\x21\x62\x90\xcf\x2b\xeb\x42\xc3\xca\x27\x32\x85\x60\xf1\xaa\xc0\x67\xce\xa6\xe8\xbf\x46\xd4\xab\x2b\x46\x80\x40\x2c\x5f\xb2\x82\x0e\x88\x5d\x32\x60\xf1\xde\x97\x82\x83\xd4\xa0\x9a\x36\xf9\x6c\x20\x94\x17\x46\xe3\xed\x4d\xa6\x46\xa9\xae\x8b\x4f\xa7\xb4\xfc\x3a\x20\xba\xfa\x1a\x75\xed\x32\x7a\x86\xb8\xb0\xc3\x9a\xf1\xcf\xd2\xb3\xb5\x12\x19\xea\x79\x53\x3a\xbf\x44\x8d\x2c\x47\x9d\x32\x60\x75\x33\x90\x59\x14\xc8\xcc\x1c\xf0\x9d\xa3\x9e\x0e\x92\x9d\x02\x4a\xbc\xbc\xb1\x69\x39\x7b\xb7\x34\xe7\xef\x0a\x6e\x01\xf1\x85\x4d\xeb\x5f\xe4\x24\xfe\xf7\xac\x21\x08\x91\xf5\x97\x5e\x29\x2a\xa2\xb8\xaa\x04\x7c\x61\xcd\xb3\x33\x73\xeb\xe7\x2c\x27\xa0\x98\xc0\x21\x97\xda\xe6\xb7\x32\xc3\x51\xdf\x66\x8f\x87\x4e\x2c\x9f\x1c\xe0\x9c\xa8\x60\x17\xe7\xe2\x17\x48\x30\x3f\xf4\x1c\x1b\x23\xe1\x1c\x48\xed\x17\x53\x9d\x68\x5f\x76\xf2\xa7\x98\xbc\x64\xde\x0e\x5d\xb2\x86\x4b\x2a\xd3\xc2\x6c\xe6\x38\x23\x42\x76\x5a\x13\xd6\x96\xe5\x2d\xf7\x60\xf6\xc3\x46\x5e\x29\xa0\xdc\xa4\x6a\xc3\xa0\xd5\x70\x13\x3b\xc2\x15\x71\xf5\xf5\x4a\x64\x31\x05\x51\x3f\xd8\x42\x9b\x19\x4a\xe1\xba\x9f\x2a\x83\x86\xae\x72\xb3\x66\x1f\xe8\x2c\x2a\xc6\x4d\xbf\x46\x15\x18\x24\xe2\x30\x53\x12\x63\x7c\x99\xc2\xb8\x7d\x6d\xf0\xdd\x5e\xf2\x83\x67\x19\x07\x2d\x67\x2f\x61\xfa\xa0\xbe\x86\xf4\x57\x92\x1e\xc3\x7c\x0e\x46\x0c\xf0\xd7\x03\xd0\x7d\xc5\xf5\x66\x1a\x45\x01\x33\x40\x9a\x71\x2b\x6a\x66\xab\xd7\xba\x65\x22\x4c\xa2\x69\x78\xd9\xa5\xce\x62\xfe\xb1\x1a\x83\x8f\x16\x62\x2e\xb5\x4c\xee\x3e\x67\x55\x22\x9c\x18\x3c\x19\x33\xa9\x16\x58\x5e\x18\x3b\xb7\x09\x19\x2d\xb0\xe6\xc8\xd7\x09\xb9\xd7\x38\x3b\x99\x3c\x69\x49\x99\x45\xb0\xb0\xcf\xe3\xdc\x2e\xc1\xfc\x96\x10\xd7\xee\xb1\x9d\x09\x16\xa2\x74\x23\xc2\x9e\x44\x2f\x0e\x31\xc2\xc9\x53\x96\x60\xf0\x5f\xb3\x7e\x45\xcd\x1b\xf0\xbc\xfc\x1a\x34\x6c\x43\x4f\x11\xcf\x00\x41\x6f\xa6\x16\x95\xb9\x20\x2e\x68\x36\x3a\x1c\x78\x7f\x47\x84\xe0\xae\xd9\xc7\x85\x64\x18\x4e\x13\x1f\x1e\x7c\x81\x1f\xbd\x88\x5b\xcc\x67\x34\xe8\x93\x3f\x3c\xb2\xf2\x5d\x52\xf9\xf8\xc7\x54\x7a\xd7\xe1\xd6\x27\x8c\x9f\x7c\x87\x2f\x84\x0f\x9d\x94\xd9\xfd\xed\xae\x93\xdb\x24\x95\x71\x8f\x58\x0b\x8c\x8f\x2b\xec\xc6\xaa\x76\xc3\xb0\xf9\x48\xaf\xbe\x61\x27\xa5\xcf\xd5\x6b\xc1\x1b\x3c\x2e\xa8\x37\xa1\xc6\x69\xa8\x22\xf7\x68\x64\xec\x2a\xe0\xcd\x6b\xfd\xdf\x21\xb1\x14\x44\x74\xbf\xd3\x7c\xd2\x06\xb5\x1a\xce\x05\x0a\xb6\x19\x9e\xc7\xb3\x96\xd6\x18\xfd\xe0\xe1\xa2\x99\x9a\x6f\x3d\x9f\x8b\x7a\xb8\x14\x9f\x72\xde\xba\x5c\x6c\xd4\xfd\x4d\x39\x2c\x92\xb4\xb2\x1a\xc8\x12\x03\x40\x62\xdf\xc3\x06\x3a\x7a\x68\x62\xb0\xfe\xf1\x05\x29\x19\xc2\xa8\x7a\x49\x94\xfc\x1e\x40\x1e\x11\xc5\xa4\x9c\x7e\x8e\xa9\xe6\x5d\x6c\xc4\x04\x65\xfd\x35\x2f\x2c\x42\xec\x3d\x3e\xf6\x0d\xb6\x97\x40\x51\x7d\xc7\x65\x2b\x9e\xef\xf5\x16\x53\x5a\xa1\xc9\xf3\x3d\xb1\x3e\xd1\xf7\xae\x1b\xe3\x84\x13\x23\x28\xd1\x03\xf8\x71\xaf\x9b\xcd\x15\x23\x3c\x39\x39\x78\xf5\xc1\x70\x89\xe8\xf3\x26\x7a\x0c\xcc\x7e\x39\xbf\xca\xc7\xac\x42\xbe\x2c\x17\x2c\x62\x43\xd1\x06\x33\x03\x6d\x3d\x46\xb8\x19\x16\xae\x46\xff\x13\xd6\xa6\xb2\xfa\xd9\x07\x9d\x6d\xf3\x44\x05\x90\x29\x66\x7b\x2e\xb4\x1a\x40\x01\x17\x55\x6f\xe5\xcb\x40\x5b\x31\x70\xac\xac\xa5\xc7\x5b\xaf\x7f\x7b\x70"[..])),
},
expected_sighash: *b"\x89\x25\x06\xfc\x15\x98\xe5\x4c\xf8\xbc\xf7\x21\x22\xd3\x98\x52\x9b\xab\x73\xf1\xec\x13\xc2\xc2\x54\x87\x7e\xe8\x44\x94\x6f\xd3",
},
@@ -274,7 +357,7 @@ mod tests {
gas_limit: b"\x35\xcd\x45\x5d\x2f\x16\x88\xed",
recipient: b"\x46\xb5\xa0\x76\x3a\xe7\xe1\x83\x3f\xb7\xad\xf9\x89\x36\xf5\x1e\x4d\xda\x8a\x28",
value: b"\x4e\xf1\x03\x30",
- data: b"\x5a\x3b\x38\x6c\x7d\xa7\x14\xf2\xa8\x29\xe1\xc2\x02\x16\x73\xbf\x30\xc5\x0b\x67\x9d\x50\x56\x89\x55\xc9\xc1\x98\x08\x9d\x95\xf6\x03\x97\xd2",
+ data: RefCell::new(SimpleProducer::new(&b"\x5a\x3b\x38\x6c\x7d\xa7\x14\xf2\xa8\x29\xe1\xc2\x02\x16\x73\xbf\x30\xc5\x0b\x67\x9d\x50\x56\x89\x55\xc9\xc1\x98\x08\x9d\x95\xf6\x03\x97\xd2"[..])),
},
expected_sighash: *b"\xc8\x37\xf2\xfe\xda\xee\x4c\xa6\xc0\x1d\x8c\xb4\xd9\x5e\xe9\x95\xb2\x7c\x69\xb4\x74\x4b\xf2\x11\x0f\xc1\xc6\x99\xd5\x99\x9e\x9e",
},
@@ -287,7 +370,7 @@ mod tests {
gas_limit: b"\x48\xab\x91\x55\xa0\xb6\x5f\x2f",
recipient: b"\x8f\xc9\x11\x86\x87\x3a\x1e\xad\x05\xa4\xa6\x67\x1d\x69\x51\x5c\x83\x9d\xd8\xaf",
value: b"\x3a\x3a\xd7\x74",
- data: b"\xdd\x4c\x1f\xf5\x54\x7f\x57\x52\x03\x1f\x21\x21\xe1\x41\x08\xaa\x5a\x57\x45\x6c\xae\x91\xc1\x73\x29\xad\x5a\xce\x61\xea\xe9\xb6\x52\xdf\x33\x00\xb4\xc2\xab\x58\x27\x76\xd8\x5b\x68\xca\x32\xd5\xc3\x73\xc2\x64\x78\x58\x3b\xc4\x8f\xa3\x6b\xe4\x8d\x65\x9c\x3f\xe1\x73\x41\x01\xc7\xe4\x8f\xd3\x7f\xb9\xfa\xe3\xf0\xbb\x4e\x9b\x6d\xf4\x75\x2a\x2e\x91\x64\xcf\x05\xf5\x68\xd2\xc8\x9e\xa4\xd6\x5d\x76\x06\x0e\x64\x87\x90\x59\x32\x4b\xb7\x5a\xdb\x14\x1a\x2f\x7c\x2f\xde\x78\x11\xf4\x81\xcf\x08\x6a\x3e\xc3\xd8\xb3\x77\x00\x12\xfd\x27\xa4\xb6\x5b\x02\xae\x85\x25\x6f\x73\x6e\xde\x3e\x4d\xd8\x57\x20\x95\x75\xa4\x88\xd5\x74\x0d\x2f\x72\x69\x5a\x57\x0d\xbf\x26\x47\xf2\x95\xe2\x33\x95\xee\xda\xcf\xf6\x36\xe1\xb0\xcf\x20\xde\x6a\x10\xff\x99\x43\xed\xca\x6f\x96\xbf\x4d\xda\xf0\x0b\x9d\x4f\xcd\x6a\xcb\xdb\xb3\xf6\x31\x94\x50\x35\x86\xa8\xa6\x58\xae\x60\xb5\xee\x53\x9a\xb5\xad\x19\xf2\xba\x23\xdc\xa6\x67\xdf\xa6\x55\x13\x4c\x59\x4a\x2c\x80\x6b\xdf\xa4\xe7\x56\xe4\x58\xb4\x8b\xae\x49\x0d\x04\x2e\x07\xa3\x55\xe9\x6c\xfb\x89\xcc\xab\xf2\x81\x9d\x79\x4d\x9e\x12\x82\xfd\x0a\x72\x54\xf1\xb3\x94\xf6\xea\xbc\x66\xa6\x48\xba\xdf\xdb\x47\xd3\x50\x8a\x69\x38\x0b\xa6\x0d\x5f\xf4\xb4\x32\x7b\xf6\x50\xe0\x13\x1b\x8f\x57\x75\xad\x86\x97\xa7\x34\x63\xcd\x28\x06\xe6\xae\xee\xf9\x2b\x5e\x9b\xff\xe4\x0e\x94\x66\x99\x0f\xa3\xae\xc1\x1e\x4a\x7c\xb6\xae\xbb\x17\xb7\xfe\xd2\x95\x13\xd3\x1e\xd4\xff\x1d\x16\xe6\xd5\x99\x56\x19\x51\x5f\x5f\x53\x87\x69\x00\xed\x0f\x7a\xd1\xf2\x38\xbb\x33\x44\x09\xe3\xc1\x64\x95\x73\xa5\x6f\x43\xa8\xe1\xd2\x13\x72\x46\xfc\xa6\xc6\x33\x24\xd4\x3f\x83\xec\x0d\x4d\x2f\xd6\x50\x6f\xdf\xee\xe2\x1e\x24\x32\x3d\x80\xe7\xcb\x84\x5f\x43\xd2\x23\x22\x9a\xa4\x21\x14\x4a\x27\xdb\xb7\xc4\x40\xc1\xc7\x98\xf9\xa2\x4d\x2c\x85\xf1\x2c\x24\x88\xbf\x87\xd2\xd9\x29\xa0\xa4\x79\xa5\x5b\x7b\x73\xe4\xef\xb2\x41\x43\x4e\x36\xd4\x4f\x7d\x79\x38\x8d\xa1\x9e\x5c\xfe\x83\x21\x63\x75\x98\x26\xdf\x39\xf8\x33\x69\x5c\xa2\x2a\xa6\x51\x95\x48\x90\xbc\xdc\xcf\x66\xad\x3d\x73\xa8\xe1\xab\x9f\x83\x87\x7d\x26\x3b\xbb\x27\xf5\xbc\x49\x7b\xd6\x54\x47\x4d\xcb\x86\x2a\xb4\xdd\x68\x9b\xa0\x4d\x0d\xae\x68\xa0\x83\xd6\xa5\xe8\x74\xc4\x1c\xe4\xae\x76\x9d\xdd\xb6\x21\xc1\x64\x32\x39\xbd\x37\x8a\x2e\x91\xa9\xac\xe2\x77\xf2\xc0\x8d\x71\x4b\xc9\xd9\xe6\x2c\x05\x62\xca\x29\x6e\x12\xa7\x76\x17\x44\xdd\xb8\x23\xa8\x2f\x19\xba\x7d\x0a\x52\x4b\x54\x92\xbb\xf7\x2a\xc3\x4e\xfc\xb9\x0a\x5e\xdf\x6d\xbc\x21\x9f\xbf\x30\xec\xf2\x5f\xa6\x66\xc9\x24\x6b\x08\x1d\x5d\x2c\x57\x8e\xef\x00\x08\xb0\x8d\x61\xa0\x97\x64\x04\xf4\x2e\xa8\x2a\x48\x73\xfb\x0d\x64\x87\x77\x7d\xa6\x47\x06\xb7\x48\x57",
+ data: RefCell::new(SimpleProducer::new(&b"\xdd\x4c\x1f\xf5\x54\x7f\x57\x52\x03\x1f\x21\x21\xe1\x41\x08\xaa\x5a\x57\x45\x6c\xae\x91\xc1\x73\x29\xad\x5a\xce\x61\xea\xe9\xb6\x52\xdf\x33\x00\xb4\xc2\xab\x58\x27\x76\xd8\x5b\x68\xca\x32\xd5\xc3\x73\xc2\x64\x78\x58\x3b\xc4\x8f\xa3\x6b\xe4\x8d\x65\x9c\x3f\xe1\x73\x41\x01\xc7\xe4\x8f\xd3\x7f\xb9\xfa\xe3\xf0\xbb\x4e\x9b\x6d\xf4\x75\x2a\x2e\x91\x64\xcf\x05\xf5\x68\xd2\xc8\x9e\xa4\xd6\x5d\x76\x06\x0e\x64\x87\x90\x59\x32\x4b\xb7\x5a\xdb\x14\x1a\x2f\x7c\x2f\xde\x78\x11\xf4\x81\xcf\x08\x6a\x3e\xc3\xd8\xb3\x77\x00\x12\xfd\x27\xa4\xb6\x5b\x02\xae\x85\x25\x6f\x73\x6e\xde\x3e\x4d\xd8\x57\x20\x95\x75\xa4\x88\xd5\x74\x0d\x2f\x72\x69\x5a\x57\x0d\xbf\x26\x47\xf2\x95\xe2\x33\x95\xee\xda\xcf\xf6\x36\xe1\xb0\xcf\x20\xde\x6a\x10\xff\x99\x43\xed\xca\x6f\x96\xbf\x4d\xda\xf0\x0b\x9d\x4f\xcd\x6a\xcb\xdb\xb3\xf6\x31\x94\x50\x35\x86\xa8\xa6\x58\xae\x60\xb5\xee\x53\x9a\xb5\xad\x19\xf2\xba\x23\xdc\xa6\x67\xdf\xa6\x55\x13\x4c\x59\x4a\x2c\x80\x6b\xdf\xa4\xe7\x56\xe4\x58\xb4\x8b\xae\x49\x0d\x04\x2e\x07\xa3\x55\xe9\x6c\xfb\x89\xcc\xab\xf2\x81\x9d\x79\x4d\x9e\x12\x82\xfd\x0a\x72\x54\xf1\xb3\x94\xf6\xea\xbc\x66\xa6\x48\xba\xdf\xdb\x47\xd3\x50\x8a\x69\x38\x0b\xa6\x0d\x5f\xf4\xb4\x32\x7b\xf6\x50\xe0\x13\x1b\x8f\x57\x75\xad\x86\x97\xa7\x34\x63\xcd\x28\x06\xe6\xae\xee\xf9\x2b\x5e\x9b\xff\xe4\x0e\x94\x66\x99\x0f\xa3\xae\xc1\x1e\x4a\x7c\xb6\xae\xbb\x17\xb7\xfe\xd2\x95\x13\xd3\x1e\xd4\xff\x1d\x16\xe6\xd5\x99\x56\x19\x51\x5f\x5f\x53\x87\x69\x00\xed\x0f\x7a\xd1\xf2\x38\xbb\x33\x44\x09\xe3\xc1\x64\x95\x73\xa5\x6f\x43\xa8\xe1\xd2\x13\x72\x46\xfc\xa6\xc6\x33\x24\xd4\x3f\x83\xec\x0d\x4d\x2f\xd6\x50\x6f\xdf\xee\xe2\x1e\x24\x32\x3d\x80\xe7\xcb\x84\x5f\x43\xd2\x23\x22\x9a\xa4\x21\x14\x4a\x27\xdb\xb7\xc4\x40\xc1\xc7\x98\xf9\xa2\x4d\x2c\x85\xf1\x2c\x24\x88\xbf\x87\xd2\xd9\x29\xa0\xa4\x79\xa5\x5b\x7b\x73\xe4\xef\xb2\x41\x43\x4e\x36\xd4\x4f\x7d\x79\x38\x8d\xa1\x9e\x5c\xfe\x83\x21\x63\x75\x98\x26\xdf\x39\xf8\x33\x69\x5c\xa2\x2a\xa6\x51\x95\x48\x90\xbc\xdc\xcf\x66\xad\x3d\x73\xa8\xe1\xab\x9f\x83\x87\x7d\x26\x3b\xbb\x27\xf5\xbc\x49\x7b\xd6\x54\x47\x4d\xcb\x86\x2a\xb4\xdd\x68\x9b\xa0\x4d\x0d\xae\x68\xa0\x83\xd6\xa5\xe8\x74\xc4\x1c\xe4\xae\x76\x9d\xdd\xb6\x21\xc1\x64\x32\x39\xbd\x37\x8a\x2e\x91\xa9\xac\xe2\x77\xf2\xc0\x8d\x71\x4b\xc9\xd9\xe6\x2c\x05\x62\xca\x29\x6e\x12\xa7\x76\x17\x44\xdd\xb8\x23\xa8\x2f\x19\xba\x7d\x0a\x52\x4b\x54\x92\xbb\xf7\x2a\xc3\x4e\xfc\xb9\x0a\x5e\xdf\x6d\xbc\x21\x9f\xbf\x30\xec\xf2\x5f\xa6\x66\xc9\x24\x6b\x08\x1d\x5d\x2c\x57\x8e\xef\x00\x08\xb0\x8d\x61\xa0\x97\x64\x04\xf4\x2e\xa8\x2a\x48\x73\xfb\x0d\x64\x87\x77\x7d\xa6\x47\x06\xb7\x48\x57"[..])),
},
expected_sighash: *b"\xd7\xe4\xf8\x76\x5e\xf9\x0b\x6c\xfb\x41\xae\xa1\x67\x5d\xb3\x64\x56\x39\x90\xc6\xab\xa5\x85\x1e\x6b\xc8\x9d\x20\xd0\x20\xe2\x5e",
},
@@ -300,7 +383,7 @@ mod tests {
gas_limit: b"\x1d\xa9\xff\xd4\x9b\xba\x29\x28",
recipient: b"\xaf\x58\x19\x6f\x77\x5e\x30\xf3\xc9\x3b\x49\xec\x2f\x1e\x8a\x37\xe4\x48\x88\x77",
value: b"\xff\xec\xe7\xcc\x5a\xfb\x2c\xed\x7a\x6b\xbc\xac\xe3\xee\xa0\x1b",
- data: b"\xd7\x59\x40\x0d\x87\xb9\x62\xa7\x78\xdd\x9e\xa0\x42\x35\x9d\x4c\x20\xfe\x21\x8a\x46\x6f\xdc\xaa\x07\xf3\x45\xc9\x47\xe5\xa0\x96\xa2\x3f\x89\x67\xcf\x4f\xe1\x28\xbd\xea\x9c\xfc\xc6\x58\xf2\xed\xb1\x24\x92\x9c\xdc\xcf\x58\x8f\x49\x4e\xbe\x33\x46\xc1\x9a\xed\x78\x7b\x97\xc5\x77\x0d\xfe\xde\x84\x5c\xf5\xb0\x40\xdc\xb6\x08\x94\x48\x66\x3f\xc3\x32\x17\xc1\xf2\x2f\xb4\xca\xa5\x60\x4e\x16\x20\xc3\x97\xb3\xa8\xe3\x47\xb7\x93\x43\xe4\x3e\x5e\x94\xfc\xa5\xe4\x08\x47\x04\x6d\xf9\xd8\x88\x02\xbe\x24\x12\xa1\x34\x67\xb6\x65\x56\x2f\x32\x87\x48\xe4\x83\xc5\xea\x98\x51\x23",
+ data: RefCell::new(SimpleProducer::new(&b"\xd7\x59\x40\x0d\x87\xb9\x62\xa7\x78\xdd\x9e\xa0\x42\x35\x9d\x4c\x20\xfe\x21\x8a\x46\x6f\xdc\xaa\x07\xf3\x45\xc9\x47\xe5\xa0\x96\xa2\x3f\x89\x67\xcf\x4f\xe1\x28\xbd\xea\x9c\xfc\xc6\x58\xf2\xed\xb1\x24\x92\x9c\xdc\xcf\x58\x8f\x49\x4e\xbe\x33\x46\xc1\x9a\xed\x78\x7b\x97\xc5\x77\x0d\xfe\xde\x84\x5c\xf5\xb0\x40\xdc\xb6\x08\x94\x48\x66\x3f\xc3\x32\x17\xc1\xf2\x2f\xb4\xca\xa5\x60\x4e\x16\x20\xc3\x97\xb3\xa8\xe3\x47\xb7\x93\x43\xe4\x3e\x5e\x94\xfc\xa5\xe4\x08\x47\x04\x6d\xf9\xd8\x88\x02\xbe\x24\x12\xa1\x34\x67\xb6\x65\x56\x2f\x32\x87\x48\xe4\x83\xc5\xea\x98\x51\x23"[..])),
},
expected_sighash: *b"\xb9\xfa\x4a\x47\xfb\xd3\x18\xb1\x22\x3d\x2a\x35\x83\xa7\x8e\x18\x12\x42\x36\x31\xf7\x77\xc7\xed\x7b\x3e\x22\x6e\x8a\x92\x11\x2f",
},
@@ -313,7 +396,7 @@ mod tests {
gas_limit: b"\x4c\x25\x23\x20\x8a\x0d\xca\xa2",
recipient: b"\x4c\x2b\x7c\xc7\xb8\x0c\xb6\x35\xe8\x5d\xbd\x23\x37\x40\xd5\x93\x78\xa2\x12\x95",
value: b"\x3b\x79",
- data: b"\x17\xcc\x3c\x00\x8a\xcb\xe5\x12\x31\xfb\x80\x9f\x21\xcb\xa0\x00\x19\x51\x91\xe3\x18\xd0\xf3\x49\xf3\x82\x25\x1d\xe0\x3b\x35\xf5\x7d\xcf\x52\xb9\x68\x26\x0a\x94\x5c\x91\x9c\x8f\xb9\xfb\x8d\xfa\x84\x7d\x66\xfb\xa0\x23\x4a\xdb\xbc\x36\xe3\x46\xa4\xc1\xcb\xe2\x99\x18\x14\x6b\xba\x0b\x16\xa7\x18\xd6\xc4\x0a\x3e\x59\x76\xca\x04\x68\x64\x74\x9c\x48\x04\xc7\x9c\xc9\xad\x64\xb6\x76\x07\x0f\x61\x3f\xdf\x96\x48\xa2\x56\xdc\x3c\x22\x3a\x4b\xce\x89\x15\x94\x2b\xd9\x6b\x00\x73\x1d\xad\x95\x83\x7c\x3f\xaf\xff\x1a\x4c\xc1\x02\x1e\x5b\x42\xbb\x75\x78\x9c\x70\xa3\xf7\x7d\xa5\x3c\x25\xe0\x48\xb9\x0b\xaa\x1e\xb0\x11\x1a\x2c\xcc\x50\x47\x2b\x28\x40\x89\x6b",
+ data: RefCell::new(SimpleProducer::new(&b"\x17\xcc\x3c\x00\x8a\xcb\xe5\x12\x31\xfb\x80\x9f\x21\xcb\xa0\x00\x19\x51\x91\xe3\x18\xd0\xf3\x49\xf3\x82\x25\x1d\xe0\x3b\x35\xf5\x7d\xcf\x52\xb9\x68\x26\x0a\x94\x5c\x91\x9c\x8f\xb9\xfb\x8d\xfa\x84\x7d\x66\xfb\xa0\x23\x4a\xdb\xbc\x36\xe3\x46\xa4\xc1\xcb\xe2\x99\x18\x14\x6b\xba\x0b\x16\xa7\x18\xd6\xc4\x0a\x3e\x59\x76\xca\x04\x68\x64\x74\x9c\x48\x04\xc7\x9c\xc9\xad\x64\xb6\x76\x07\x0f\x61\x3f\xdf\x96\x48\xa2\x56\xdc\x3c\x22\x3a\x4b\xce\x89\x15\x94\x2b\xd9\x6b\x00\x73\x1d\xad\x95\x83\x7c\x3f\xaf\xff\x1a\x4c\xc1\x02\x1e\x5b\x42\xbb\x75\x78\x9c\x70\xa3\xf7\x7d\xa5\x3c\x25\xe0\x48\xb9\x0b\xaa\x1e\xb0\x11\x1a\x2c\xcc\x50\x47\x2b\x28\x40\x89\x6b"[..])),
},
expected_sighash: *b"\xbe\x2f\x19\x4e\x3c\xe1\x53\xe7\xb6\x65\x4a\x43\x34\xf9\x97\x22\x3e\x44\xfb\x00\x4c\x73\xd3\x6b\xd8\xbb\xd6\x46\xd5\xc8\x44\x79",
},
@@ -326,7 +409,7 @@ mod tests {
gas_limit: b"\x99\x5a\x1f\x10\x9f\x66\x81\x61",
recipient: b"\xf7\x47\x2a\x96\x57\x2c\xb4\x1a\x20\x14\x17\x20\x5e\xc6\xf5\x5b\x8a\x7b\x5b\x4a",
value: b"\xc6\x10\x8e\xe0\x45",
- data: b"\x29\xf0\x48\xbe\xfc\x0e\xe4\x0a\xcb\x4a\x6c\x6e\x10\x72\xd0\x43\x00\x50\x8d\xd5\xf3\x5b\x2c\xfc\x06\x81\xd9\xd0\x01\x96\x84\x59\x8c\x82\x74\x6d\x59\x93\xf0\x01\xf7\xd9\x3d\xcf\xf2\x0d\x79\xd2\xad\x4e\xfd\x5e\xe4\xec\xab\x28\xf2\xb9\xb6\x19\x04\x58\xfe\x36\xc4\xb7\x75\xac\xaf\x60\xc1\x54\x23\x95\xb6\x8c\xef\x56\x8d\x39\x60\x38\x4e\xbd\x8a\x4e\xaa\x2a\xeb\xec\x66\x4e\x56\x38\x70\xdb\x80\x3d\x28\x0e\x3e\x62\x70\xa3\xb0\xfe\x03\x8b\xc8\x2d\x9c\x83\x0f\xe8\x44\xd2\x56\xb0\xb5\xe9\x62\xf3\x31\x33\x9f\x13\xd8\x52\x97\x3b\x29\xca\xa0\x3e\x90\x14\xa8\x87\xe2\x01\xee\x01\x16\xeb\x71\x0b\xc6\xae\xe2\xc2\x4e\x5d\x90\x44\xc5\x4a\x4d\xca\x64\x64\x03\x6c\x36\x14\xc6\x9f\x9c\x82\x3c\x5b\xf2\x21\xc7\x26\xe9\xa9\x8b\xf2\x34\x01\x38\xd2\x21\xda\x53\xde\x54\xc8\xb5\x06\xf9\x3f\x7e\x01\xcb\x14\xd7\x94\xc5\xde\xe6\x8c\x67\x32\x9c\x1d\x3c\xa9\xb4\xd3\xfb\x10\x1a\xb9\x78\x16\x21\x23\x6b\xc1\x2b\xfa\xc5\x28\x24\x19\xc6\xa6\xf8\x3d\x47\xcd\xe6\xf1\xf5\x9b\x3c\x00\x77\x77\xc8\x00\x0b\x70\xe1\xc0\xc8\x90\x22\xb9\xdb\x13\x66\xd3\x1d\x05\x00\xdd\x9f\x02\x43\xd6\xea\xb5\x0f\xd2\x01\x61\xc7\x48\x49\xc3\xde\x2c\x51\xab\x9b\x78\xcf\x96\x59\x10\x88\x2d\xc7\xf5\x3b\xc7\x32\x0b\x1c\xf4\x84\x72\xf6\x4b\x36\x41\xdf\xd3\x69\x8f\x73\x4c\xd9\x0e\x5c\x03\x78\x4c\x58\xc0\x1c\xae\xfa\x96\xa1\x53\x59\x3f\x14\x2a\x60\x55\x8b\x32\x80\x94\x0a\x7a\xe5\xd8\xd0\x2b\xb1\xe6\x17\x9d\x39\x5a\xc3\xc1\xcc\xdc\x15\x1f\xc4\x05\xd1\xf7\x29\x1c\x3a\x2a\xee\x9a\x3a\x24\x78\x60\x2f\xd6\x5c\x7b\x66\xad\xff\x36\x8a\xfb\xf8\xd8\x00\xce\x4b\xe0\xec\xbc\x55\x39\x8c\x91\x30\xc9\xc0\x10\x3c\x64\x1e\x91\xa7\x2a\x97\x87\x96\xd7\xc0\x67\x3e\x1b\xe0\x8b\x93\xfa\x84\x22\x81\x8c\x43\x45\xc1\x66\x5c\x87\x92\x26\x12\xde\xbe\xe7\x93\xa5\x6b\x75\x74\x9b\xd2\xb4\x42\x50\xf1\xfc\x6f\xac\x83\xfd\x6b\x90\x24\xb9\xda\x7f\xab\xca\x91\x37\x74\x4e\x90\x40\x9c\x63\xca\xa1\x65\x92\x81\x5f\xcd\xda\x77\x98\x46\x0f\x15\xa6\x08\xc8\x66\xbb\x9d\x86\xe1\x9a\x61\x12\xfe\xe7\xdd\x54\x24\xf2\x79\x75\x93\x0e\x46\x11\x07\x2d\x94\x0f\xfc\x75\xd0\x1c\x14\x21\xa3\xc0\x2d\x4e\x8b\x1f\xda\x49\x9d\x70\xe4\x6f\xcc\xbf\x5e\x74\xab\xa2\x8f\xa9\x1c\x1a\x90\xf3\xec\x41\x43\x53\xf3\xc6\xb1\x11\xe4\xb3\x1b\xb4\x37\x06\xe7\xa8\xaf\xc8\x47\xfc\xec\xfb\x2f\x51\xef\x5a\xa4\xc6\xd6\x63\x8c\x3d\xb2\x1a\xa7\x94\x87\x69\xb5\x78\xa1\xc7\xd4\xe9\x37\x55\x88\x98\x73\xaf\x69\x69\xd8\xcd\x11\x11\x3a\xb3\xbe\xd7\x93\x68\x5c\x71\xe4\x26\xac\x59\x09\x34\x55\x40\x51\xe6\xaf\x8f\x6c\xd8\xad\x7e\xd6\x8e\xd0\xa3\x29\xdf\x46\xf1\x68\x35\xf7\x62\xec\x66\xe5\xcd\xde\xeb\xbf\x97\xc8\x32\x1d\x86\xc0\x86\xe4\xa0\xbb\x05\x4b\x39\xb4\x5f\x38\xef\x12\xcb\x15\x6d\xa7\x06\xe7\x99\x98\x90\x74\x03\x5d\xff\x1f\xc3\x7e\xb4\xda\x5d\xe0\xf1\x5a\x14\xd5\x3b\x15\xe6\xbd\x02\x5b\xdf\x69\x0a\xc0\x6d\x4f\x58\x11\xac\x16\x94\x75\x25\x47\x24\xf8\xcb\xc1\x73\x8d\xcc\x88\xd0\x67\x81\xdb\xf1\x75",
+ data: RefCell::new(SimpleProducer::new(&b"\x29\xf0\x48\xbe\xfc\x0e\xe4\x0a\xcb\x4a\x6c\x6e\x10\x72\xd0\x43\x00\x50\x8d\xd5\xf3\x5b\x2c\xfc\x06\x81\xd9\xd0\x01\x96\x84\x59\x8c\x82\x74\x6d\x59\x93\xf0\x01\xf7\xd9\x3d\xcf\xf2\x0d\x79\xd2\xad\x4e\xfd\x5e\xe4\xec\xab\x28\xf2\xb9\xb6\x19\x04\x58\xfe\x36\xc4\xb7\x75\xac\xaf\x60\xc1\x54\x23\x95\xb6\x8c\xef\x56\x8d\x39\x60\x38\x4e\xbd\x8a\x4e\xaa\x2a\xeb\xec\x66\x4e\x56\x38\x70\xdb\x80\x3d\x28\x0e\x3e\x62\x70\xa3\xb0\xfe\x03\x8b\xc8\x2d\x9c\x83\x0f\xe8\x44\xd2\x56\xb0\xb5\xe9\x62\xf3\x31\x33\x9f\x13\xd8\x52\x97\x3b\x29\xca\xa0\x3e\x90\x14\xa8\x87\xe2\x01\xee\x01\x16\xeb\x71\x0b\xc6\xae\xe2\xc2\x4e\x5d\x90\x44\xc5\x4a\x4d\xca\x64\x64\x03\x6c\x36\x14\xc6\x9f\x9c\x82\x3c\x5b\xf2\x21\xc7\x26\xe9\xa9\x8b\xf2\x34\x01\x38\xd2\x21\xda\x53\xde\x54\xc8\xb5\x06\xf9\x3f\x7e\x01\xcb\x14\xd7\x94\xc5\xde\xe6\x8c\x67\x32\x9c\x1d\x3c\xa9\xb4\xd3\xfb\x10\x1a\xb9\x78\x16\x21\x23\x6b\xc1\x2b\xfa\xc5\x28\x24\x19\xc6\xa6\xf8\x3d\x47\xcd\xe6\xf1\xf5\x9b\x3c\x00\x77\x77\xc8\x00\x0b\x70\xe1\xc0\xc8\x90\x22\xb9\xdb\x13\x66\xd3\x1d\x05\x00\xdd\x9f\x02\x43\xd6\xea\xb5\x0f\xd2\x01\x61\xc7\x48\x49\xc3\xde\x2c\x51\xab\x9b\x78\xcf\x96\x59\x10\x88\x2d\xc7\xf5\x3b\xc7\x32\x0b\x1c\xf4\x84\x72\xf6\x4b\x36\x41\xdf\xd3\x69\x8f\x73\x4c\xd9\x0e\x5c\x03\x78\x4c\x58\xc0\x1c\xae\xfa\x96\xa1\x53\x59\x3f\x14\x2a\x60\x55\x8b\x32\x80\x94\x0a\x7a\xe5\xd8\xd0\x2b\xb1\xe6\x17\x9d\x39\x5a\xc3\xc1\xcc\xdc\x15\x1f\xc4\x05\xd1\xf7\x29\x1c\x3a\x2a\xee\x9a\x3a\x24\x78\x60\x2f\xd6\x5c\x7b\x66\xad\xff\x36\x8a\xfb\xf8\xd8\x00\xce\x4b\xe0\xec\xbc\x55\x39\x8c\x91\x30\xc9\xc0\x10\x3c\x64\x1e\x91\xa7\x2a\x97\x87\x96\xd7\xc0\x67\x3e\x1b\xe0\x8b\x93\xfa\x84\x22\x81\x8c\x43\x45\xc1\x66\x5c\x87\x92\x26\x12\xde\xbe\xe7\x93\xa5\x6b\x75\x74\x9b\xd2\xb4\x42\x50\xf1\xfc\x6f\xac\x83\xfd\x6b\x90\x24\xb9\xda\x7f\xab\xca\x91\x37\x74\x4e\x90\x40\x9c\x63\xca\xa1\x65\x92\x81\x5f\xcd\xda\x77\x98\x46\x0f\x15\xa6\x08\xc8\x66\xbb\x9d\x86\xe1\x9a\x61\x12\xfe\xe7\xdd\x54\x24\xf2\x79\x75\x93\x0e\x46\x11\x07\x2d\x94\x0f\xfc\x75\xd0\x1c\x14\x21\xa3\xc0\x2d\x4e\x8b\x1f\xda\x49\x9d\x70\xe4\x6f\xcc\xbf\x5e\x74\xab\xa2\x8f\xa9\x1c\x1a\x90\xf3\xec\x41\x43\x53\xf3\xc6\xb1\x11\xe4\xb3\x1b\xb4\x37\x06\xe7\xa8\xaf\xc8\x47\xfc\xec\xfb\x2f\x51\xef\x5a\xa4\xc6\xd6\x63\x8c\x3d\xb2\x1a\xa7\x94\x87\x69\xb5\x78\xa1\xc7\xd4\xe9\x37\x55\x88\x98\x73\xaf\x69\x69\xd8\xcd\x11\x11\x3a\xb3\xbe\xd7\x93\x68\x5c\x71\xe4\x26\xac\x59\x09\x34\x55\x40\x51\xe6\xaf\x8f\x6c\xd8\xad\x7e\xd6\x8e\xd0\xa3\x29\xdf\x46\xf1\x68\x35\xf7\x62\xec\x66\xe5\xcd\xde\xeb\xbf\x97\xc8\x32\x1d\x86\xc0\x86\xe4\xa0\xbb\x05\x4b\x39\xb4\x5f\x38\xef\x12\xcb\x15\x6d\xa7\x06\xe7\x99\x98\x90\x74\x03\x5d\xff\x1f\xc3\x7e\xb4\xda\x5d\xe0\xf1\x5a\x14\xd5\x3b\x15\xe6\xbd\x02\x5b\xdf\x69\x0a\xc0\x6d\x4f\x58\x11\xac\x16\x94\x75\x25\x47\x24\xf8\xcb\xc1\x73\x8d\xcc\x88\xd0\x67\x81\xdb\xf1\x75"[..])),
},
expected_sighash: *b"\x22\xdd\xa4\x69\x2b\x74\xe8\x6c\x59\x30\x4f\x20\x20\x30\xb9\x33\xd3\x0b\x55\x2e\x9a\xea\xa0\x4c\x8e\x71\x21\xe7\xdd\xdb\x23\x4b",
},
@@ -339,7 +422,7 @@ mod tests {
gas_limit: b"\x9d\xa4\x44\x46\x71\xcd\x25\xfc",
recipient: b"\xff\x97\x53\xf8\xf0\x5b\x46\x6a\x09\x69\x7e\x52\x5a\x57\xea\x1b\x09\x4c\xc3\x3d",
value: b"\xb9\x22\xca\x34\xff",
- data: b"\x62\x20\xec\x78\x72\xbe\x3c\xe4\x14\xa2\x55\x58\x61\x0f\xdb\x26\xa5\xe5\xb0\xad\x53\x3c\x19\xcf\x0f\x00\x26\x51\xbd\xe8\x05\x84\x92\x34\x0f\xec\xd6\x63\x68\xc4\x0a\x33\xc0\xa9\xbb\xd6\xb7\x01\xff\xa4\x08\x50\x5a\xdd\x89\x2c\x5b\x84\xf5\x84\xb5\xcb\xe1\x49\xbb\xba\xeb\x90\x18\x9a\x4d\xd0\x87\xc7\x5b\x3a\xa4\x7e\x94\x05\x67\x27\x4a\xc5\x95\xf8\x84\x73\x2d\x47\x31\x8b\xc1\x89\xe8\x6b\x41\x7b\x0b\xef\xb1\xa2\xa5\xd8\xf9\x40\x40\x21\x14\x3f\x8d\x6b\xdd\x07\xc0\x01\x6c\x28\x15\xf6\x37\x6a\x0f\x65\xf3\x40\xbc\x17\xbf\xc0\xbe\xfb\x53\x66\x94\x70\x0e\xab\x50\xfa\xb3\x6a\xd2\xe7",
+ data: RefCell::new(SimpleProducer::new(&b"\x62\x20\xec\x78\x72\xbe\x3c\xe4\x14\xa2\x55\x58\x61\x0f\xdb\x26\xa5\xe5\xb0\xad\x53\x3c\x19\xcf\x0f\x00\x26\x51\xbd\xe8\x05\x84\x92\x34\x0f\xec\xd6\x63\x68\xc4\x0a\x33\xc0\xa9\xbb\xd6\xb7\x01\xff\xa4\x08\x50\x5a\xdd\x89\x2c\x5b\x84\xf5\x84\xb5\xcb\xe1\x49\xbb\xba\xeb\x90\x18\x9a\x4d\xd0\x87\xc7\x5b\x3a\xa4\x7e\x94\x05\x67\x27\x4a\xc5\x95\xf8\x84\x73\x2d\x47\x31\x8b\xc1\x89\xe8\x6b\x41\x7b\x0b\xef\xb1\xa2\xa5\xd8\xf9\x40\x40\x21\x14\x3f\x8d\x6b\xdd\x07\xc0\x01\x6c\x28\x15\xf6\x37\x6a\x0f\x65\xf3\x40\xbc\x17\xbf\xc0\xbe\xfb\x53\x66\x94\x70\x0e\xab\x50\xfa\xb3\x6a\xd2\xe7"[..])),
},
expected_sighash: *b"\xc3\x68\xa1\x06\x3f\x58\x9c\x72\xbb\xd4\xe0\x60\x18\x42\xf8\x98\x56\x81\x81\x66\xe3\x39\xa7\x5a\xac\x19\x42\x49\xa2\xee\x32\x5a",
},
@@ -352,7 +435,7 @@ mod tests {
gas_limit: b"\xc3\x05\xe9\x39\x91\x8d\xb3\x60",
recipient: b"\xc2\xb1\xed\xb0\x70\x92\x9c\x33\xb6\xed\xed\x80\x73\x5a\xd0\xdd\x7d\xe4\x01\x51",
value: b"\xf3\xba\x02\x33\x84\xa3\x0f\x40\xf0\x8b\xac",
- data: b"\xc2\x07\x76\xaf\xde\xc2\xa4\x5f\x1c\x38\xd7\x5f\xd2\x9f\x52\x5d\x7c\x10\x30\xce\x9a\xcf\x5f\x46\x42\x61\x10\x2d\xeb\x66\xb5\xaa\xfb\x8c\x04\x1c\x44\xb1\x8e\xcb\xc1\xbe\x6d\xed\xc7\x92\x48\xdb\x2a\xf4\x3d\xfe\xa3\x81\x5f\xea\xe3\x85\x6a\xe0\x15\x18\xe3\xba\xd7\x4d\x55\xd8\xb8\x6d\x6e\x3f\xdf\x72\x4f\x27\x7a\xa2\x99\xf6\x6e\x79\x33\xd3\x84\x4a\xda\x74\x94\x90\xb7\xe0\x39\xf2\xcc\x23\xd1\xb1\x10\x99\x3f\xcd\x62\x8a\xc0\xad\x2c",
+ data: RefCell::new(SimpleProducer::new(&b"\xc2\x07\x76\xaf\xde\xc2\xa4\x5f\x1c\x38\xd7\x5f\xd2\x9f\x52\x5d\x7c\x10\x30\xce\x9a\xcf\x5f\x46\x42\x61\x10\x2d\xeb\x66\xb5\xaa\xfb\x8c\x04\x1c\x44\xb1\x8e\xcb\xc1\xbe\x6d\xed\xc7\x92\x48\xdb\x2a\xf4\x3d\xfe\xa3\x81\x5f\xea\xe3\x85\x6a\xe0\x15\x18\xe3\xba\xd7\x4d\x55\xd8\xb8\x6d\x6e\x3f\xdf\x72\x4f\x27\x7a\xa2\x99\xf6\x6e\x79\x33\xd3\x84\x4a\xda\x74\x94\x90\xb7\xe0\x39\xf2\xcc\x23\xd1\xb1\x10\x99\x3f\xcd\x62\x8a\xc0\xad\x2c"[..])),
},
expected_sighash: *b"\xb1\x87\xfd\x52\xde\xc4\xde\xff\x20\x3e\x87\x30\xfe\xd9\xa2\x72\x10\xc4\x50\x9b\x18\xdf\x79\xee\x10\x7e\x31\x9a\x94\xfa\x39\xa9",
},
@@ -365,7 +448,7 @@ mod tests {
gas_limit: b"\xeb\x11\xc5\x13\x40\x48\xb8\x33",
recipient: b"\x08\x31\x6d\xbc\x7f\xf1\xc1\x4f\xf0\xdd\x87\x5a\x2d\x65\x44\xc5\x1d\xc5\x08\x4b",
value: b"\x23",
- data: b"\x02\x06\xf8\xec",
+ data: RefCell::new(SimpleProducer::new(&b"\x02\x06\xf8\xec"[..])),
},
expected_sighash: *b"\xcb\x16\xd2\xa4\x68\xdf\x34\xc6\xdd\x80\xf7\xfc\xaf\x30\x78\x3c\x00\x9a\x58\x77\x5c\xd8\xa8\x79\x52\x2a\x3f\x0b\x1f\xbb\x90\x67",
},
@@ -378,7 +461,7 @@ mod tests {
gas_limit: b"\x5a\xa5\xcb\xf7\x6d\x91\x42\x15",
recipient: b"\x75\xe0\xa6\x13\x3f\xd2\x45\xd7\xf4\xc4\xbb\x42\x62\x44\x4a\xd1\xbf\x0e\x5d\x02",
value: b"\x9a\x6b\x42\x49\x00\x3b\xd5\xd9\x6f\x72\x45\x18\x5b\x41\x1c",
- data: b"\x43\xc3\x23\x8d\xf0\x9a\x9f\x10\x0f\x33\x07\x45\xda\xb5\x0d\xf0\x8a\x2f\x65\x9b\x90\xc2\xa5\xbf\xb7\xe6\xa2\x3a\xf1\xe7\x0c\x59\x07\xf2\xc8\xf9\x3d\x57\x16\x35\x0e\xda\x65\xbf\x69\xc5\x43\x4b\x74\x32\x58\x17\x00\xd8\x15\xf4\x28\xdc\xfe\x96\x89\x48\x39\x9d\x5c\x2d\xc7\x80\xc6\xb4\x8b\xf0\xb0\x2a\x98\xe9\x98\x13\x80\xab\x89\xdb\x55\xe0\x17\xd2\x78\xcb\x4b\x77\x45\xe7\x88\xea\x7d\xcf\x08\x38\xc5\x2c\x50\xd9\x7c\x58\xa7\x66\x97\xec\x7f\x36\x94\x16\x2c\x89\x82\x16\x78\xc4\xf2\x41\x3f\x70\x1f\x79\x86\x3f\x2b\xa6\x19\xc8\xc9\x5f\x39\xbb\x8d\x5a\xa6\x6e\x60\x15\x91\xf2\x4c\x16\x02\xa6\x83\xbf\x10\x5f\x1d\x6b\xfd\xd7\x2d\xb6\x2d\xf0\x9b\xb9\xd5\xaa\x42\xae\x2b\x0a",
+ data: RefCell::new(SimpleProducer::new(&b"\x43\xc3\x23\x8d\xf0\x9a\x9f\x10\x0f\x33\x07\x45\xda\xb5\x0d\xf0\x8a\x2f\x65\x9b\x90\xc2\xa5\xbf\xb7\xe6\xa2\x3a\xf1\xe7\x0c\x59\x07\xf2\xc8\xf9\x3d\x57\x16\x35\x0e\xda\x65\xbf\x69\xc5\x43\x4b\x74\x32\x58\x17\x00\xd8\x15\xf4\x28\xdc\xfe\x96\x89\x48\x39\x9d\x5c\x2d\xc7\x80\xc6\xb4\x8b\xf0\xb0\x2a\x98\xe9\x98\x13\x80\xab\x89\xdb\x55\xe0\x17\xd2\x78\xcb\x4b\x77\x45\xe7\x88\xea\x7d\xcf\x08\x38\xc5\x2c\x50\xd9\x7c\x58\xa7\x66\x97\xec\x7f\x36\x94\x16\x2c\x89\x82\x16\x78\xc4\xf2\x41\x3f\x70\x1f\x79\x86\x3f\x2b\xa6\x19\xc8\xc9\x5f\x39\xbb\x8d\x5a\xa6\x6e\x60\x15\x91\xf2\x4c\x16\x02\xa6\x83\xbf\x10\x5f\x1d\x6b\xfd\xd7\x2d\xb6\x2d\xf0\x9b\xb9\xd5\xaa\x42\xae\x2b\x0a"[..])),
},
expected_sighash: *b"\x7b\x05\x11\x07\xba\x34\x51\x19\x32\x19\xa5\xce\x68\x5b\x45\x30\x60\x87\x3a\x47\xc9\x64\x3f\x41\x73\x70\x4b\x92\x4f\x37\x86\xd9",
},
@@ -391,7 +474,7 @@ mod tests {
gas_limit: b"\x1c\x0c\x94\x34\x74\x88\xef\xb1",
recipient: b"\xcf\xf8\xa8\xdc\x35\xf2\xfb\x12\xc6\x1e\xfc\x53\x00\xeb\x48\x68\xed\x82\x39\x7b",
value: b"\x12\x7e\xcf\x05\x71\xe8\x47\x07\x9d\x0b\x6a\x6a\x2c\x83",
- data: b"\x28\x20\xea\x23\x0f\xaf\x83\x0d\x0b\x61\x71\xf0\x39\xdf\x0e\xf0\x63\xdf\x3c\x71\xe9\xd1\x92\x3c\x4d\xc0\x87\x13\x7e\x31\x53\xd5\xab\x05\xf1\x3e\x87\x57\xa4\x2e\x92\x74\xf7\x0c\x40\xce\x38\xbc\xcd\x46\x28\xe2\x6f\x66\x14\x4c\xfb\x03\x89\xd2\x75\x4f\x5b\xed\x14\xbc\xb4\x70\xa3\x2e\x08\xc8\x15\xb0\xca\x85\xeb\xa9\x72\x95\x24\x9c\xe7\x48\xd0\xaa\xf0\x5e\x7a\x2e\x78\x53\x5f\x95\xe0\x4c\x0f\xd6\x35\x9f\x85\x8c\xab\xc1\x10\x47\xea\x5d\xf6\x90\x10\x3b\xba\xa7\x2b\xf5\x09\xe9\x4c\xbe\xa1\x73\x18\xa0\x36\x71\xc8\x08\x30\xe7\xee\x6d\xf5\xac\x42\x2f\xea\x82\x03\x52\x57\x83\x9c\x9d\x71\x67\x0e\xb8\x55\x6b\x78\xa3\xd2\x07\x7a\x61\xe8\x13\xb0\xfc\x13\x53\x45\x02\x73\xf6\x51\x0b\x89\x47\xf9\xd1\x85\xe0\xd9\x7d\x89\xeb\xb0\x8e\x61\xc2\x30\x01\x3b\x59\x74\xaa\x21\xab\x74\x16\x2c\xfe\xf3\xee\x1d\xd4\xb8\x47\x4b\x8a\x3f\x29\x05\xda\x25\x91\x9e\x9e",
+ data: RefCell::new(SimpleProducer::new(&b"\x28\x20\xea\x23\x0f\xaf\x83\x0d\x0b\x61\x71\xf0\x39\xdf\x0e\xf0\x63\xdf\x3c\x71\xe9\xd1\x92\x3c\x4d\xc0\x87\x13\x7e\x31\x53\xd5\xab\x05\xf1\x3e\x87\x57\xa4\x2e\x92\x74\xf7\x0c\x40\xce\x38\xbc\xcd\x46\x28\xe2\x6f\x66\x14\x4c\xfb\x03\x89\xd2\x75\x4f\x5b\xed\x14\xbc\xb4\x70\xa3\x2e\x08\xc8\x15\xb0\xca\x85\xeb\xa9\x72\x95\x24\x9c\xe7\x48\xd0\xaa\xf0\x5e\x7a\x2e\x78\x53\x5f\x95\xe0\x4c\x0f\xd6\x35\x9f\x85\x8c\xab\xc1\x10\x47\xea\x5d\xf6\x90\x10\x3b\xba\xa7\x2b\xf5\x09\xe9\x4c\xbe\xa1\x73\x18\xa0\x36\x71\xc8\x08\x30\xe7\xee\x6d\xf5\xac\x42\x2f\xea\x82\x03\x52\x57\x83\x9c\x9d\x71\x67\x0e\xb8\x55\x6b\x78\xa3\xd2\x07\x7a\x61\xe8\x13\xb0\xfc\x13\x53\x45\x02\x73\xf6\x51\x0b\x89\x47\xf9\xd1\x85\xe0\xd9\x7d\x89\xeb\xb0\x8e\x61\xc2\x30\x01\x3b\x59\x74\xaa\x21\xab\x74\x16\x2c\xfe\xf3\xee\x1d\xd4\xb8\x47\x4b\x8a\x3f\x29\x05\xda\x25\x91\x9e\x9e"[..])),
},
expected_sighash: *b"\xfe\x12\xb3\xf0\xc9\xf6\xa8\x7c\xbb\x2e\x13\x07\x52\x14\x3f\x3e\x30\x27\x04\x9f\x73\x8d\xdd\x1e\xd3\xd6\x48\x22\x04\xf8\x4d\xa3",
},
@@ -404,7 +487,7 @@ mod tests {
gas_limit: b"\x7a\xc7\x1c\x60\x17\x8c\xd4\xbb",
recipient: b"\xf8\xf0\xdd\x89\x28\xae\x93\x95\x90\xfe\x07\xd3\x14\x52\x86\xfb\x2b\xa6\x2c\x94",
value: b"\x9c\x3c\xf1\x92\x31\x89\x76\x06\x60\x73\x40\xd1\x95\x55",
- data: b"\x4c\x46\x23\x03\x9e\x99\xc2\x7d\xb5\x06\x46\xbf\xfb\x28\xb7\x82\xa7\x3b\x49\x09\x19\x1b\x20\x37\x88\x8f\x3e\x7b\xdf\x08\xb6\x63\xf0\x5f\xb0\xaa\x92\xf2\x08\x6d\x78\xf9\x7c\xa4\x04\x05\xf4\x3e\x32\xed\x85\xa2\x21\x58\x7b\xeb\x98\xa4\x8f\xdb\x46\x7f\xfb\x90\xaf\x1e\x78\x66\x05\x57\x2f\x00\x38\x5d\xfe\xe3\x04\x88\xfa\x6e\x36\xc1\xbe\xd7\xd3\xc9\xda\x42\x3e\xa8\x5d\x33\x5d\x2f\xe6\x5f\x2c\x0b\xd9\xc9\x68\x48\xb3\x21\xab\xfa\x5f\x70\xec\x2e\xeb\xa4\xfa\x64\xa0\x6e\x09\x17\xb3\x85\xa7\xff\xa3\x1d\x01\xaf\x05\x52\x17\x34\xe8\xae\xfb\xb0\xa5\x62\x58\x51\x9a\x5f\x89\x5c\xf0\x3b\x3a\xef\x20\x97\xef\x6e\x4c\x32\x19\x20\x1a\xef\x88\x23\xd1\x9a\x3c\x71\xa3\x0f\x3c\x18\x04\xdf\x11\xe4\x01\x54\x8b\xf8\x6c\x48\x76\x44\x6b\x4f\x84\xf8\x18\x75\xc6\xb7\x82\xee\x77\xb5\x81\xde\x44\x2a\xae\xd3\x57\x3a\x53\xda\x31\x4d\x23\x89\x10\x36\xf0\x11\xb5\x30\x7e\xef\xba\xb2\x86\x19\xb4\xc1\xca\x18\x46\x8b\xae\xa0\xb7\xda\x01\x87\x19\x5c\xa5\x7b\x27\x43\xfc\xd5\xd7\x01\x74\x4a\x6e\x91\x3a\x2e\xbe\x4a\xb8\x43\x4e\xbf\x07\x8b\x2f\x62\x9e\x3c\x8d\xa6\x77\xd6\xb5\x69\x74\xf1\x3f\x1f\x8f\xc5\x76\xfc\xce\x65\x9b\x1d\x35\x39\xf8\x29\x40\xfd\x6f\x51\xff\x20\xb0\x63\xec\x4c\x40\x36\x39\x25\x95\x0a\xd2\xcf\x2a\xfc\xc3\x4f\xc1\x09\xa6\x7e\xbb\x78\xe8\x5f\x61\xd6\x67\xf7\x16\xed\x71\x7a\x06\x55\x83\xcb\x48\xb5\x80\x9b\x79\x2d\xd8\xd0\x8d\x1e\xc0\xd4\x17\x12\xff\xf9\x77\x90\x75\xd7\x0e\x74\x10\x07\x82\x5a\x0f\x82\xa9\x54\xa7\x91\x9c\x3c\x63\x90\xe5\xd0\x84\xbf\x33\xdb\x4d\x01\xfa\x86\x79\x1d\x21\x7e\x4f\x2e\xe2\xaf\x43\x8a\xdb\x67\x86\x3a\xc9\xf3\x79\xa8\x4e\x54\xfa\xa5\x86\xa5\x4a\x09\xac\xf0\x59\x2c\x17\xeb\xe7\xa0\xf9\x05\xc2\x08\x15\x72\x86\xe7\x75\x4d\xd6\x3a\x49\x4a\x82\x2b\x51\xdb\xd8\x1d\xe0\x78\x2f\x78\xdd\x85\xf2\x33\x42\xdc\xae\xfb\x62\x84\x65\x7a\x77\xe0\x91\x80\x91\xb9\x04\x6b\x14\x04\x67\x51\x8e\x33\xfb\x45\x0f\x3b\x16\x8e\x8f\x3e\xb7\x8c\x66\xc6\x11\x4a\x25\x77\x1d\xae\xe8\x88\x4d\xd4\x3c\x1c\xa4\xd9\x60\x08\xb5\x2c\x57\x87\xff\xad\xef\x17\xae\xda\x33\x40\x20\xde\x30\xc2\x78\x48\xf8\xd8\x93\x7f\x33\x13\x8f\x6f\x94\x29\xc9\x6d\xcb\x49\x54\x54\x19\xfb\x69\x3c\x51\xa3\x6b\xfc\xc8\x77\x89\xae\x1a\x9d\x4c\x51\xed\xc0\x0c\x66\x95\xcc\x15\x41\xc1\x3b\x87\x2d\xbf\xb2\xc1\x45\xed\xa2\xa2\xe4\x00\xab\xcb\x40\x88\x7a\xa2\x1b\xcc\xbd\x87\x59\x6f\xe7\x4e\xe7\xc7\x4c\x2f\x5a\xa8\x27\x16\x0c\xc0\x85\x77\x04\xdd\xf1\x2c\xd1\xfe\x8e\x74\x1d\x71\x6e\xee\xf9\x37\x36\x1b\x4e\x0a\xf0\x8e\x48\x2c\xde\x60\x3e\xf5\x02\x03\x33\x49\xcd\xa4\x80\x9b\x7a\x93\x79\x99\xdf\x85\x5a\x07\x87\x44\x86\x33",
+ data: RefCell::new(SimpleProducer::new(&b"\x4c\x46\x23\x03\x9e\x99\xc2\x7d\xb5\x06\x46\xbf\xfb\x28\xb7\x82\xa7\x3b\x49\x09\x19\x1b\x20\x37\x88\x8f\x3e\x7b\xdf\x08\xb6\x63\xf0\x5f\xb0\xaa\x92\xf2\x08\x6d\x78\xf9\x7c\xa4\x04\x05\xf4\x3e\x32\xed\x85\xa2\x21\x58\x7b\xeb\x98\xa4\x8f\xdb\x46\x7f\xfb\x90\xaf\x1e\x78\x66\x05\x57\x2f\x00\x38\x5d\xfe\xe3\x04\x88\xfa\x6e\x36\xc1\xbe\xd7\xd3\xc9\xda\x42\x3e\xa8\x5d\x33\x5d\x2f\xe6\x5f\x2c\x0b\xd9\xc9\x68\x48\xb3\x21\xab\xfa\x5f\x70\xec\x2e\xeb\xa4\xfa\x64\xa0\x6e\x09\x17\xb3\x85\xa7\xff\xa3\x1d\x01\xaf\x05\x52\x17\x34\xe8\xae\xfb\xb0\xa5\x62\x58\x51\x9a\x5f\x89\x5c\xf0\x3b\x3a\xef\x20\x97\xef\x6e\x4c\x32\x19\x20\x1a\xef\x88\x23\xd1\x9a\x3c\x71\xa3\x0f\x3c\x18\x04\xdf\x11\xe4\x01\x54\x8b\xf8\x6c\x48\x76\x44\x6b\x4f\x84\xf8\x18\x75\xc6\xb7\x82\xee\x77\xb5\x81\xde\x44\x2a\xae\xd3\x57\x3a\x53\xda\x31\x4d\x23\x89\x10\x36\xf0\x11\xb5\x30\x7e\xef\xba\xb2\x86\x19\xb4\xc1\xca\x18\x46\x8b\xae\xa0\xb7\xda\x01\x87\x19\x5c\xa5\x7b\x27\x43\xfc\xd5\xd7\x01\x74\x4a\x6e\x91\x3a\x2e\xbe\x4a\xb8\x43\x4e\xbf\x07\x8b\x2f\x62\x9e\x3c\x8d\xa6\x77\xd6\xb5\x69\x74\xf1\x3f\x1f\x8f\xc5\x76\xfc\xce\x65\x9b\x1d\x35\x39\xf8\x29\x40\xfd\x6f\x51\xff\x20\xb0\x63\xec\x4c\x40\x36\x39\x25\x95\x0a\xd2\xcf\x2a\xfc\xc3\x4f\xc1\x09\xa6\x7e\xbb\x78\xe8\x5f\x61\xd6\x67\xf7\x16\xed\x71\x7a\x06\x55\x83\xcb\x48\xb5\x80\x9b\x79\x2d\xd8\xd0\x8d\x1e\xc0\xd4\x17\x12\xff\xf9\x77\x90\x75\xd7\x0e\x74\x10\x07\x82\x5a\x0f\x82\xa9\x54\xa7\x91\x9c\x3c\x63\x90\xe5\xd0\x84\xbf\x33\xdb\x4d\x01\xfa\x86\x79\x1d\x21\x7e\x4f\x2e\xe2\xaf\x43\x8a\xdb\x67\x86\x3a\xc9\xf3\x79\xa8\x4e\x54\xfa\xa5\x86\xa5\x4a\x09\xac\xf0\x59\x2c\x17\xeb\xe7\xa0\xf9\x05\xc2\x08\x15\x72\x86\xe7\x75\x4d\xd6\x3a\x49\x4a\x82\x2b\x51\xdb\xd8\x1d\xe0\x78\x2f\x78\xdd\x85\xf2\x33\x42\xdc\xae\xfb\x62\x84\x65\x7a\x77\xe0\x91\x80\x91\xb9\x04\x6b\x14\x04\x67\x51\x8e\x33\xfb\x45\x0f\x3b\x16\x8e\x8f\x3e\xb7\x8c\x66\xc6\x11\x4a\x25\x77\x1d\xae\xe8\x88\x4d\xd4\x3c\x1c\xa4\xd9\x60\x08\xb5\x2c\x57\x87\xff\xad\xef\x17\xae\xda\x33\x40\x20\xde\x30\xc2\x78\x48\xf8\xd8\x93\x7f\x33\x13\x8f\x6f\x94\x29\xc9\x6d\xcb\x49\x54\x54\x19\xfb\x69\x3c\x51\xa3\x6b\xfc\xc8\x77\x89\xae\x1a\x9d\x4c\x51\xed\xc0\x0c\x66\x95\xcc\x15\x41\xc1\x3b\x87\x2d\xbf\xb2\xc1\x45\xed\xa2\xa2\xe4\x00\xab\xcb\x40\x88\x7a\xa2\x1b\xcc\xbd\x87\x59\x6f\xe7\x4e\xe7\xc7\x4c\x2f\x5a\xa8\x27\x16\x0c\xc0\x85\x77\x04\xdd\xf1\x2c\xd1\xfe\x8e\x74\x1d\x71\x6e\xee\xf9\x37\x36\x1b\x4e\x0a\xf0\x8e\x48\x2c\xde\x60\x3e\xf5\x02\x03\x33\x49\xcd\xa4\x80\x9b\x7a\x93\x79\x99\xdf\x85\x5a\x07\x87\x44\x86\x33"[..])),
},
expected_sighash: *b"\x02\x3a\x93\x5b\x72\x18\xa0\x68\x3b\x48\x71\xe2\x35\x6f\x51\xd7\xe7\x12\x5f\x7e\x06\x39\xe4\xe3\x2e\x44\x93\xf8\x30\xf9\x9d\x3a",
},
@@ -417,7 +500,7 @@ mod tests {
gas_limit: b"\x74\x82\x73\x66\xae\xb0\xe6\xad",
recipient: b"\xdd\xe0\x07\x93\x4e\x05\x7e\xf8\xd9\x11\xbd\x77\xae\xcc\xa3\xf5\xad\x4d\x70\x45",
value: b"\x9f\xb9\xe4\x24\x24\x2e\x87\x2c\xda\xb9",
- data: b"\xcb\x53\x6a\xae\x21\x75\x4c\xb0\xf7\x7b\xb0\x62\x53\xdc\x76\xa1\x9d\xd5\x39\xb7\x7c\x03\x71\x07\xef\x53\x3a\xbc\x83\x3c\xc0\x07\xc8\x00\xc7\xae\x1f\xd5\x7e\x67\x47\x5f\x63\xb4\x25\x65\x56\x73\x62\xe8\x5a\x33\x62\x3f\x22\x18\x68\xc5\xd6\x27\xa2\x37\xec\x50\xe8\xc8\x86\xd3\x77\x40\x1d\xc0\x20\x3b\x4b\x6f\xa3\xb0\x5c\x07\xfd\x62\x21\xfa\xe0\x49\x94\x44\xb8\x54\xdc\x1f\xfa\x9f\xab\xcb\x66\x6f\xc0\xe9\x07\x49\x5d\x25\x96\xbc\x12\xfc\xce\x61\xc9\xbd\xf9\x7a\x9d\xcb\xfb\x38\x33\x62\x80\xd2\x98\x93\xe7\x30\x73\x11\xa1\x49\xc3\xbb\xd6\x46\xe9\x19\x2e\x3b\x99\x44\x7b\x49\x43\xf7\x5b\x84\x91\x56\x21\x05\xe8\x1b\x37\x46\xe6\x98\x9f\x29\xd4\x82\x4f\x8b\xbb\x1d\xc5\xb7\x3b\xf0\xc7\x9e\xae\x66\xa1\x5d\xfa\x4f\x20\x32\xf6\x75\x3b\xe4\xfd\x73\x8a\xe9\x7a\xba\x36\xad\xfc\x21\xef\x16\xc6\x47\x88\x11\x6d\x3a\x12\x1e\x87\xb6\xf3\x04\xcd\x21\x12\x03\x58\xd3\xc0\x57\xa3\x35\xa3\xc6\x90\x86\xe5\x39\x49\x95\x77\x76\x06\x11\xd5\xec\xc4\x91\x69\xd0\xc0\x80\x43\xa5\x1d\x58\x7b\x2c\x39\xd6\xf0\xf4\xac\x5c\x29\xb1\x7f\xff\xbe\x9b\x1c\xd4\xe2\xef\x53\xe4\xa9\xf1\xee\x5b\x04\x99\x52\xb0\x93\xae\x0b\xb8\x73\x1b\xc4\xe2\x0b\x5b\xa6\x48\x9e\x6b\x36\x7d\x88\x48\xa9\xb2\x22\xce\x72\x60\xef\x47\x6a\x1b\xc2\x5f\xad\x90\x14\xd6\xc3\x35\xd4\x69\x2f\x68\x1e\x09\x98\xa0\xf9\x69\x9a\x1c\x48\x66\x5f\x87\x3f\xd3\x46\x34\xa8\x7d\xaa\xa7\x37\xcd\x93\xfb\x3d\xfa\x78\x76\xcc\x2d\xb2\x77\x08\xfd\x76\x05\x2a\x61\xa1\x02\x49\xe0\x5b\xb5\x49\x2f\xf3\xd5\x40\xc6\xdf\x28\xd4\x0b\xf7\x25\x3e\x52\xdc\xfc\xdc\x00\x50\xc2\xbe\x69\xef\x35\x2b\xd2\xbb",
+ data: RefCell::new(SimpleProducer::new(&b"\xcb\x53\x6a\xae\x21\x75\x4c\xb0\xf7\x7b\xb0\x62\x53\xdc\x76\xa1\x9d\xd5\x39\xb7\x7c\x03\x71\x07\xef\x53\x3a\xbc\x83\x3c\xc0\x07\xc8\x00\xc7\xae\x1f\xd5\x7e\x67\x47\x5f\x63\xb4\x25\x65\x56\x73\x62\xe8\x5a\x33\x62\x3f\x22\x18\x68\xc5\xd6\x27\xa2\x37\xec\x50\xe8\xc8\x86\xd3\x77\x40\x1d\xc0\x20\x3b\x4b\x6f\xa3\xb0\x5c\x07\xfd\x62\x21\xfa\xe0\x49\x94\x44\xb8\x54\xdc\x1f\xfa\x9f\xab\xcb\x66\x6f\xc0\xe9\x07\x49\x5d\x25\x96\xbc\x12\xfc\xce\x61\xc9\xbd\xf9\x7a\x9d\xcb\xfb\x38\x33\x62\x80\xd2\x98\x93\xe7\x30\x73\x11\xa1\x49\xc3\xbb\xd6\x46\xe9\x19\x2e\x3b\x99\x44\x7b\x49\x43\xf7\x5b\x84\x91\x56\x21\x05\xe8\x1b\x37\x46\xe6\x98\x9f\x29\xd4\x82\x4f\x8b\xbb\x1d\xc5\xb7\x3b\xf0\xc7\x9e\xae\x66\xa1\x5d\xfa\x4f\x20\x32\xf6\x75\x3b\xe4\xfd\x73\x8a\xe9\x7a\xba\x36\xad\xfc\x21\xef\x16\xc6\x47\x88\x11\x6d\x3a\x12\x1e\x87\xb6\xf3\x04\xcd\x21\x12\x03\x58\xd3\xc0\x57\xa3\x35\xa3\xc6\x90\x86\xe5\x39\x49\x95\x77\x76\x06\x11\xd5\xec\xc4\x91\x69\xd0\xc0\x80\x43\xa5\x1d\x58\x7b\x2c\x39\xd6\xf0\xf4\xac\x5c\x29\xb1\x7f\xff\xbe\x9b\x1c\xd4\xe2\xef\x53\xe4\xa9\xf1\xee\x5b\x04\x99\x52\xb0\x93\xae\x0b\xb8\x73\x1b\xc4\xe2\x0b\x5b\xa6\x48\x9e\x6b\x36\x7d\x88\x48\xa9\xb2\x22\xce\x72\x60\xef\x47\x6a\x1b\xc2\x5f\xad\x90\x14\xd6\xc3\x35\xd4\x69\x2f\x68\x1e\x09\x98\xa0\xf9\x69\x9a\x1c\x48\x66\x5f\x87\x3f\xd3\x46\x34\xa8\x7d\xaa\xa7\x37\xcd\x93\xfb\x3d\xfa\x78\x76\xcc\x2d\xb2\x77\x08\xfd\x76\x05\x2a\x61\xa1\x02\x49\xe0\x5b\xb5\x49\x2f\xf3\xd5\x40\xc6\xdf\x28\xd4\x0b\xf7\x25\x3e\x52\xdc\xfc\xdc\x00\x50\xc2\xbe\x69\xef\x35\x2b\xd2\xbb"[..])),
},
expected_sighash: *b"\x09\xa0\x50\x20\xde\x29\x30\x1f\x2f\x06\x0c\x1e\x3c\x54\xf8\x38\x05\x22\xc4\x9c\x7c\x22\x7b\xd6\x53\xee\xa2\x10\xab\xc4\x2a\xf6",
},
@@ -430,7 +513,7 @@ mod tests {
gas_limit: b"\x57\x0d\x52\xb5\x86\x85\x02\x84",
recipient: b"\xde\x36\x4a\x53\x05\x3a\xaf\xf0\xf7\xec\x83\x13\x97\x71\x73\xd7\xd1\xa3\xb3\x83",
value: b"\x44\xd9",
- data: b"\x63\xc8\x97\xe9\x32\x7a\x5a\x8f\x77\x16\xc9\xc9\x88\xe1\xac\x24\xf4\x1f\x81\xf2\x44\xd5\x76\x05\xf7\x9a\x55\x1d\xd7\x64\x6b\x60\x6b\x2a\x28\x44\x16\x96\xc2\xb4\x8b\x86\xcd\xec\xf0\xbc\xba\x5d\x7a\x0f\xd4\x51\xcf\x93\xf4\x41\x27\x85\xf7\x72\x2e\xa0\xd0\x90\xf8\x7a\x4d\x9c\x86\x81\xb6\xbf\x8a\x73\x7e\xce\x62\xd6\xee\x77\xc5",
+ data: RefCell::new(SimpleProducer::new(&b"\x63\xc8\x97\xe9\x32\x7a\x5a\x8f\x77\x16\xc9\xc9\x88\xe1\xac\x24\xf4\x1f\x81\xf2\x44\xd5\x76\x05\xf7\x9a\x55\x1d\xd7\x64\x6b\x60\x6b\x2a\x28\x44\x16\x96\xc2\xb4\x8b\x86\xcd\xec\xf0\xbc\xba\x5d\x7a\x0f\xd4\x51\xcf\x93\xf4\x41\x27\x85\xf7\x72\x2e\xa0\xd0\x90\xf8\x7a\x4d\x9c\x86\x81\xb6\xbf\x8a\x73\x7e\xce\x62\xd6\xee\x77\xc5"[..])),
},
expected_sighash: *b"\xfa\x3a\xb7\xa6\x29\xf0\xbd\xcf\x65\xd5\x28\x50\x3a\x07\x02\x6d\x7b\x50\x1e\x1e\x36\x69\x3c\x0a\x4d\xf1\xc0\x31\x8d\x6b\xf4\xfd",
},
@@ -443,7 +526,7 @@ mod tests {
gas_limit: b"\xe3\x17\x04\xb2\x15\x8c\x5c",
recipient: b"\x44\xd6\xb7\x98\x64\x8e\x79\x1a\x6c\xbc\x86\x5e\xec\x6d\x39\x88\x04\xf6\xe5\x4f",
value: b"\x07",
- data: b"\x6a\x60\x93\x8e\x16\xfd\x7d\x5c\x2f\xf6\x32\xe5\xa2\x76\x86\x70\xda\x64\x0a\xdb\xce\xd8\x44\x0e\xb7\xff\x17\x7a\xb9\x3e\xc4\x35\x55\x3b\x48\xc4\x0e\xdb\xe7\xcb\xaf\xb9\x3f\x8b\x62\xe5\xbd\xeb\xa9\x8f\xbf\x93\x99\xa3\x5e\x69\x76\x1c\xc0\xc9\xe3\xca\xde\xa7\x42\x0f\x07\x8d\x17\x38\x6d\xab\x35\x55\x82\xe6\x31\x86\x54\xdf\x69\xcc\x20\xe9\x3f\x87\x89\x69\x32\x6d\x01\xe8\x02\x46\x89\x1f\x2b\x6d\x32\x4a\x08\x97\x77\xfd\x95\x3c\xbf\xd1\x08\x03\xfa\x97\xad\xc3\x98\x54\x4b\xec\x9f\x65\xac\x69\xd7\xe8\xc6\x12\x52\x53\xc6\x31\xc6\x3a\xcc\x15\x61\xd6\x81\x23\xb1\x55\xc7\x4c\xdb\xd3\xd0\x49\xc4\x45\x7b\x3d\x3a\x54\x6b\x5a\x21\xe5\xc5\x32\xc5\xdf\x89\x57\x26\x85\xa7\x6e\x47\x90\x9f\xe5\x0e\x32\x1d\xaa\x22\x95\x20\x54\xb9\x57\x8f\xf0\xba\x99\x2b\xc9\x5d\x7f\x75\xa7\x03\xcc\x02\x1e\xb7\xe0\x1c\x96\x9f\xdf\x9e\x54\xb0\x57\xcd\xed\x28\xeb\xdb\xd9\x98\x78\x1d\xe3\x38\x71\xcc\xbe\x70\x4c\x32\x6f\x20\xd6\x21\x91\x9b\x82\x67\xa7\x3c\x86\x69\xd8\x5d\x01\x04\x5c\x76\xd9\xf5\x6e\x23\x23\x8e\x38\x3a\xd1\xf1\xe0\x21\x5a\x85\x95\x63\xa3\x99\x0a\x87\x37\xfe\xef\x29\xce\x95\x86\x04\x62\xc2\xab\xe5\x5b\xbb\x12\x8e\xfe\x2d\xdd\x36\x62\x83\xbb\x8b\xe2\x7b\xa7\x53\x24\x09\x0e\x49\x27\xdb\xfd\x6e\x42\xf3\x8c\xf0\xcc\xc5\x06\x63\xdf\x4e\x52\x98\x45\xb2\x4f\xe3\x2f\xce\x39\x03\x81\xe4\x5b\x53\x01\x1e\x61\x22\xda\xdb\x41\xae\x66\x46\x87\x4c\xb6\xa6\x34\x8d\x27\x9a\xbc\x1b\x11\x19\x4c\x04\x0a\x0a\x36\x60\x45\x2b\x64\x8a\x39\x90\x1c\xb5\xad\xb5\x57\xbd\xcf\xb3\xf9\xf4\x39\x38\x89\x0d\xbe\x83\x9c\x35\xc9\x15\x8d\xa4\x4b\x1e\xd5\x4e\x2c\x70\xbb\xa1\x95\x69\x30\xc9\x88\x0e\xc3\x40\x24\xe9\xa9\x45\x32\xaa\x5f\xf6\x1c\x6f\x4a\x33\xee\x10\x88\x97\x33\x8f\x9e\x53\xea\x03\xd5\x7c\x06\xd8\x75\x46\xa3\x8f\xcf\x19\x95\x30\xca\xac\x10\xbd\xbe\x79\x4c\x40\xe6\x18\x47\xbc\x55\x05\x21\xf2\xa2\x57\xb0\x70\x15\x02\x36\x21\x5e\x65\xb4\xd6\x1b\xa8\x5b\x6a\x16\x28\x6d\xf6\x6f\x6f\x62\x97\xfb\x3e\xee\x1d\xea\x4b\x99\x4c\x5f\x92\xe4\x05\x56\x22\x14\x6c\x02\x88\x77\xc7\xcd\xd5\x4a\xd9\x1a\x12\x74\xf8\x51\xd0\x7b\xf1\x69\x6e\x57\xc2\x4f\xe1\x29\x44\x5d\xfe\x55\xec\xb9\x5b\x73\x83\x03\xad\xc3\x20\x76\x7e\x5f\xe8\x3a\x53\x81\x41\xb5\xbc\x77\x83\x28\x81\xf2\x7e\x45\x58\xf1\x65\x59\x25\x48\x49\xc4\x8d\x1f\x10\xaa\x28\x7d\x21\x8d\xb2\x87\xc4\x38\x28\x50\x46\x10\x60\xea\x82\xa2\x23\xd3\xdb\xa2\xf3\x39\xd1\xdf\xda\x26\x97\xaa\x3c\xa9\xd4\x45\x4c\x61\xf5\x12\x11\x64\x9a\x17\x30\x06\xd0\xfa\xe7\xb5\x57\xec\xf1\xff\xbc\x1a\x03\xcf\x15\xea\xc8\x6e\xe8\xb5\xc4\x8b\x82\x51\xea\xa1\x22\x88\x92\x7e\x67\x7b\x59\x7a\xc4\xcb\x38\xd4\xed\x27\x44\xf9\x32\x0a\xf2\x74\xeb\x9c\x1e\x9c\x85\x55\xf1\xdb\x0b\x8d\xe8\xb2\x8f\x9b\xc3\x37\x98\x7c\x93\x30\xf6\x1d\xd9\x3b\x9e\x36\xd8\xf8\x19\x59\x18\x45\xcb\xf9\xbf\xa5\x5c\xe2\x26\x9b\xb1\x6b\x5e\x0b\xf8\xd1\xeb\x64\x88\xad\x84\x08\x3b\x50\x75\xaf\xa7\x11\xac\x6f\x6c\xa8\xd1\x1a\xf1\xfa\xdb\x88\x2d\xd6\xcb\xe7\x6b\x53\x57\x8e\x1f\x2e\xa9\x4f\x62\x77\x58\x32\x67\x4f\x6d\x39\x98\xd8\xce\xd5\x27\x77\x48\x6b\xda\x65\x4f\x79\xe4\xe5\x51\xa1\x7b\x16\xa6\x29\x2b\x38\xd5\x8b\xf5\x4b\x37\xdb\xe1\xb8\xd7\x9b\x40\x9d\xbf\xb9\x2f\xff\xaf\xb7\x87\xf5\x2b\xb9\xe7\xce\xdc\xab\xa6\x0a\x41\x10\x34\x8d\x3f\x1d\xe2\xbf\x8f\x0b\xf1\x35\xda\x93\x7f\x78\x91\x64\x39\xae\x69\x85\x61\x7a\x31\xa7\x4e\xfb\xce\x41\x35\x81\x73\xac\x3e\x35\x3e\x70\x8e\xbb\x14\x5a\x7a\x3c\x0a\x30\x4f\xee\xf4\xd6\x43\x11\x6c\xc7\x03\x59\xae\x0a\x04\x68\x45\xc0\x75\xea\x33\x05\x3c\x48\x6b\xdb\x68\x15\x78\x14\x41\x65\x4a\xfc\xf9\xb0\xdd\xb7\xab\x49\xe2\x16\x04\xd5\x5a\x08\xdd\x42\x7b\x14\x3c\x88\x1f\x82\x58\x03\x83\x4d\x65\x24\xa3\x32\x5c\xb0\xed\xb7\x32\x53",
+ data: RefCell::new(SimpleProducer::new(&b"\x6a\x60\x93\x8e\x16\xfd\x7d\x5c\x2f\xf6\x32\xe5\xa2\x76\x86\x70\xda\x64\x0a\xdb\xce\xd8\x44\x0e\xb7\xff\x17\x7a\xb9\x3e\xc4\x35\x55\x3b\x48\xc4\x0e\xdb\xe7\xcb\xaf\xb9\x3f\x8b\x62\xe5\xbd\xeb\xa9\x8f\xbf\x93\x99\xa3\x5e\x69\x76\x1c\xc0\xc9\xe3\xca\xde\xa7\x42\x0f\x07\x8d\x17\x38\x6d\xab\x35\x55\x82\xe6\x31\x86\x54\xdf\x69\xcc\x20\xe9\x3f\x87\x89\x69\x32\x6d\x01\xe8\x02\x46\x89\x1f\x2b\x6d\x32\x4a\x08\x97\x77\xfd\x95\x3c\xbf\xd1\x08\x03\xfa\x97\xad\xc3\x98\x54\x4b\xec\x9f\x65\xac\x69\xd7\xe8\xc6\x12\x52\x53\xc6\x31\xc6\x3a\xcc\x15\x61\xd6\x81\x23\xb1\x55\xc7\x4c\xdb\xd3\xd0\x49\xc4\x45\x7b\x3d\x3a\x54\x6b\x5a\x21\xe5\xc5\x32\xc5\xdf\x89\x57\x26\x85\xa7\x6e\x47\x90\x9f\xe5\x0e\x32\x1d\xaa\x22\x95\x20\x54\xb9\x57\x8f\xf0\xba\x99\x2b\xc9\x5d\x7f\x75\xa7\x03\xcc\x02\x1e\xb7\xe0\x1c\x96\x9f\xdf\x9e\x54\xb0\x57\xcd\xed\x28\xeb\xdb\xd9\x98\x78\x1d\xe3\x38\x71\xcc\xbe\x70\x4c\x32\x6f\x20\xd6\x21\x91\x9b\x82\x67\xa7\x3c\x86\x69\xd8\x5d\x01\x04\x5c\x76\xd9\xf5\x6e\x23\x23\x8e\x38\x3a\xd1\xf1\xe0\x21\x5a\x85\x95\x63\xa3\x99\x0a\x87\x37\xfe\xef\x29\xce\x95\x86\x04\x62\xc2\xab\xe5\x5b\xbb\x12\x8e\xfe\x2d\xdd\x36\x62\x83\xbb\x8b\xe2\x7b\xa7\x53\x24\x09\x0e\x49\x27\xdb\xfd\x6e\x42\xf3\x8c\xf0\xcc\xc5\x06\x63\xdf\x4e\x52\x98\x45\xb2\x4f\xe3\x2f\xce\x39\x03\x81\xe4\x5b\x53\x01\x1e\x61\x22\xda\xdb\x41\xae\x66\x46\x87\x4c\xb6\xa6\x34\x8d\x27\x9a\xbc\x1b\x11\x19\x4c\x04\x0a\x0a\x36\x60\x45\x2b\x64\x8a\x39\x90\x1c\xb5\xad\xb5\x57\xbd\xcf\xb3\xf9\xf4\x39\x38\x89\x0d\xbe\x83\x9c\x35\xc9\x15\x8d\xa4\x4b\x1e\xd5\x4e\x2c\x70\xbb\xa1\x95\x69\x30\xc9\x88\x0e\xc3\x40\x24\xe9\xa9\x45\x32\xaa\x5f\xf6\x1c\x6f\x4a\x33\xee\x10\x88\x97\x33\x8f\x9e\x53\xea\x03\xd5\x7c\x06\xd8\x75\x46\xa3\x8f\xcf\x19\x95\x30\xca\xac\x10\xbd\xbe\x79\x4c\x40\xe6\x18\x47\xbc\x55\x05\x21\xf2\xa2\x57\xb0\x70\x15\x02\x36\x21\x5e\x65\xb4\xd6\x1b\xa8\x5b\x6a\x16\x28\x6d\xf6\x6f\x6f\x62\x97\xfb\x3e\xee\x1d\xea\x4b\x99\x4c\x5f\x92\xe4\x05\x56\x22\x14\x6c\x02\x88\x77\xc7\xcd\xd5\x4a\xd9\x1a\x12\x74\xf8\x51\xd0\x7b\xf1\x69\x6e\x57\xc2\x4f\xe1\x29\x44\x5d\xfe\x55\xec\xb9\x5b\x73\x83\x03\xad\xc3\x20\x76\x7e\x5f\xe8\x3a\x53\x81\x41\xb5\xbc\x77\x83\x28\x81\xf2\x7e\x45\x58\xf1\x65\x59\x25\x48\x49\xc4\x8d\x1f\x10\xaa\x28\x7d\x21\x8d\xb2\x87\xc4\x38\x28\x50\x46\x10\x60\xea\x82\xa2\x23\xd3\xdb\xa2\xf3\x39\xd1\xdf\xda\x26\x97\xaa\x3c\xa9\xd4\x45\x4c\x61\xf5\x12\x11\x64\x9a\x17\x30\x06\xd0\xfa\xe7\xb5\x57\xec\xf1\xff\xbc\x1a\x03\xcf\x15\xea\xc8\x6e\xe8\xb5\xc4\x8b\x82\x51\xea\xa1\x22\x88\x92\x7e\x67\x7b\x59\x7a\xc4\xcb\x38\xd4\xed\x27\x44\xf9\x32\x0a\xf2\x74\xeb\x9c\x1e\x9c\x85\x55\xf1\xdb\x0b\x8d\xe8\xb2\x8f\x9b\xc3\x37\x98\x7c\x93\x30\xf6\x1d\xd9\x3b\x9e\x36\xd8\xf8\x19\x59\x18\x45\xcb\xf9\xbf\xa5\x5c\xe2\x26\x9b\xb1\x6b\x5e\x0b\xf8\xd1\xeb\x64\x88\xad\x84\x08\x3b\x50\x75\xaf\xa7\x11\xac\x6f\x6c\xa8\xd1\x1a\xf1\xfa\xdb\x88\x2d\xd6\xcb\xe7\x6b\x53\x57\x8e\x1f\x2e\xa9\x4f\x62\x77\x58\x32\x67\x4f\x6d\x39\x98\xd8\xce\xd5\x27\x77\x48\x6b\xda\x65\x4f\x79\xe4\xe5\x51\xa1\x7b\x16\xa6\x29\x2b\x38\xd5\x8b\xf5\x4b\x37\xdb\xe1\xb8\xd7\x9b\x40\x9d\xbf\xb9\x2f\xff\xaf\xb7\x87\xf5\x2b\xb9\xe7\xce\xdc\xab\xa6\x0a\x41\x10\x34\x8d\x3f\x1d\xe2\xbf\x8f\x0b\xf1\x35\xda\x93\x7f\x78\x91\x64\x39\xae\x69\x85\x61\x7a\x31\xa7\x4e\xfb\xce\x41\x35\x81\x73\xac\x3e\x35\x3e\x70\x8e\xbb\x14\x5a\x7a\x3c\x0a\x30\x4f\xee\xf4\xd6\x43\x11\x6c\xc7\x03\x59\xae\x0a\x04\x68\x45\xc0\x75\xea\x33\x05\x3c\x48\x6b\xdb\x68\x15\x78\x14\x41\x65\x4a\xfc\xf9\xb0\xdd\xb7\xab\x49\xe2\x16\x04\xd5\x5a\x08\xdd\x42\x7b\x14\x3c\x88\x1f\x82\x58\x03\x83\x4d\x65\x24\xa3\x32\x5c\xb0\xed\xb7\x32\x53"[..])),
},
expected_sighash: *b"\x4d\x9e\xda\x22\xda\x4f\x7b\xc4\xdd\x35\xe0\x45\x8f\xe5\xa3\xe3\x52\x8e\x3f\xd1\x12\x38\x0b\x41\xfa\x3a\x3f\x5b\xc0\x94\x0e\xe6",
},
@@ -456,7 +539,7 @@ mod tests {
gas_limit: b"\x6e\x3b\x3d\xa3\x88\x5e\xd3\xe6",
recipient: b"\x12\xb3\x22\x44\x53\x4d\xac\xba\x55\x18\xd2\xd2\x64\xf4\x27\x96\x14\x0f\xb3\xa7",
value: b"\x43\xfd\xdf\xb5\x65\x6e\x23\xc2\x21\xe8\x1a\x19\xdc\x46\x66",
- data: b"\x3b\x1c\xff\x2a\x91\x1c\xe0\xd1\x73\xd4\x1e\x40\x1c\x33\x97\x17\x5e\x05\x4e\x8f\x89\x3e\x48\xc4\x71\xa1\x33\x37\x4f\xf4\x95\x8b\x05\xf8\xa3\xed\x4b\x7c\x15\x5e\x1e\x6c\x9d\xbd\xce\xab\x3f\xec\xfa\x5e\x0d\x7d\xb0\x31\xcb\xbe\x0b\xba\xc0\x1a\x25\xd3\x9f\x67\xad\x14\x56\x25\x61\xdf\xc4\xd5\x9f\x5c\x2f\x06\x3a\x11\xa0\x28\x24\xdd\x04\x7c\x32\x14\xe4\x46\xa4\x77\xcc\xa2\x70\xd5\xd0\xa8\x32\x4b\x8d\xd8\xed\x9e\xbe\x0e\x72\x05\x07\xe8\x5a\x40\xf2\x47\xe2\xd6\x0e",
+ data: RefCell::new(SimpleProducer::new(&b"\x3b\x1c\xff\x2a\x91\x1c\xe0\xd1\x73\xd4\x1e\x40\x1c\x33\x97\x17\x5e\x05\x4e\x8f\x89\x3e\x48\xc4\x71\xa1\x33\x37\x4f\xf4\x95\x8b\x05\xf8\xa3\xed\x4b\x7c\x15\x5e\x1e\x6c\x9d\xbd\xce\xab\x3f\xec\xfa\x5e\x0d\x7d\xb0\x31\xcb\xbe\x0b\xba\xc0\x1a\x25\xd3\x9f\x67\xad\x14\x56\x25\x61\xdf\xc4\xd5\x9f\x5c\x2f\x06\x3a\x11\xa0\x28\x24\xdd\x04\x7c\x32\x14\xe4\x46\xa4\x77\xcc\xa2\x70\xd5\xd0\xa8\x32\x4b\x8d\xd8\xed\x9e\xbe\x0e\x72\x05\x07\xe8\x5a\x40\xf2\x47\xe2\xd6\x0e"[..])),
},
expected_sighash: *b"\x72\xf2\xfd\x6a\x77\x6f\x4e\x3f\x0a\x27\x6e\x13\xaa\x87\x48\x90\x78\x76\x34\x87\x93\x5b\x10\xf6\x5e\x76\xc5\x7c\xd8\x38\xa2\x83",
},
@@ -469,7 +552,7 @@ mod tests {
gas_limit: b"\x21\x87\xdd\x03\xd2\x57\x8b\xf7",
recipient: b"\x99\x5b\x35\x11\x05\x3c\xd7\xba\x94\xa6\x1c\x72\xe9\xa9\x23\xbe\xd1\xac\x61\xc5",
value: b"\xe1\x06",
- data: b"\x25\x90\x64\x09\x1f\x6a\x64\xb0\x05\xe3\xe6\x87\x18\x93\xcc\x1b\xa7\x32\xa6\x6f\xe4\xe5\x7b\x0f\x5f\x13\x24\xff\xb8\xcd\xb6\xcb\x2e\x63\x3b\x81\x06\x57\xf3\x2a\xc6\x65\x80\xe0\xe7\x35\xbe\xca\xe2\x07\x82\xae\x41\x9f\x85\xad\xf1\xca\xc4\x8f\x7d\x34\x37\x91\xd5\x40\xa8\x1a\x65\x21\x43\x05\x89\xd8\x1a\x88\x20\x65\xce\xca\x51\xa0\x21\x25\xa7\x2c\x8f\x21\xf2\x88\x8f\x75\x50\x9b\xe8\xc6\x99\xd8\x7e\x48\xb3\x60\xbb\x28\x6f\x4d\xbc\x73\x17\xf1\xbf\x12\xb2\x73\xb1\xd5\xcd\xaa\xc4\xc0\xb0\x50\xcc\x7e\x25\xb0\xab\x56\x30\xb8\xcc\xee\xcc\x8b\x3c\xd4\xe1\xcd\x04\xc6\xe5\xde\xb4\x1a\xb5\xca\xb1\xc2\x90\x87\xf7\x18\xbb\x5d\x2e\x05\x07\xd6\xd4\xb8\xac\x25\xdb\xea\x64\x54\x75\xfc\x52\xe1\x2a\x33\xc2\xf2\xa8\xe5\xfd\xa2\x80\x0d\x06\x5c\xf2\x6c\x32\x3d\x65\x58\x84\x97\x33\xd9",
+ data: RefCell::new(SimpleProducer::new(&b"\x25\x90\x64\x09\x1f\x6a\x64\xb0\x05\xe3\xe6\x87\x18\x93\xcc\x1b\xa7\x32\xa6\x6f\xe4\xe5\x7b\x0f\x5f\x13\x24\xff\xb8\xcd\xb6\xcb\x2e\x63\x3b\x81\x06\x57\xf3\x2a\xc6\x65\x80\xe0\xe7\x35\xbe\xca\xe2\x07\x82\xae\x41\x9f\x85\xad\xf1\xca\xc4\x8f\x7d\x34\x37\x91\xd5\x40\xa8\x1a\x65\x21\x43\x05\x89\xd8\x1a\x88\x20\x65\xce\xca\x51\xa0\x21\x25\xa7\x2c\x8f\x21\xf2\x88\x8f\x75\x50\x9b\xe8\xc6\x99\xd8\x7e\x48\xb3\x60\xbb\x28\x6f\x4d\xbc\x73\x17\xf1\xbf\x12\xb2\x73\xb1\xd5\xcd\xaa\xc4\xc0\xb0\x50\xcc\x7e\x25\xb0\xab\x56\x30\xb8\xcc\xee\xcc\x8b\x3c\xd4\xe1\xcd\x04\xc6\xe5\xde\xb4\x1a\xb5\xca\xb1\xc2\x90\x87\xf7\x18\xbb\x5d\x2e\x05\x07\xd6\xd4\xb8\xac\x25\xdb\xea\x64\x54\x75\xfc\x52\xe1\x2a\x33\xc2\xf2\xa8\xe5\xfd\xa2\x80\x0d\x06\x5c\xf2\x6c\x32\x3d\x65\x58\x84\x97\x33\xd9"[..])),
},
expected_sighash: *b"\xa2\x24\x01\x3a\xd3\xbd\xde\xc6\x1a\xe2\xc3\xc8\xe8\x46\xfe\x5f\xbf\x4a\x03\x44\x92\x7c\xfe\x1f\x96\xdd\x04\x3f\x5d\x15\x7a\x1a",
},
@@ -482,7 +565,7 @@ mod tests {
gas_limit: b"\x83\x36\xc9\x98\x78\x00\x09\x70",
recipient: b"\xc3\xe8\x42\x2a\x0d\x73\x04\xdc\xee\x9c\x87\xdf\x43\x10\x90\x30\xb2\xb0\x97\x6e",
value: b"\x5a\x6f\x85\x0c\x71\xdc\xd5\x10\xe0",
- data: b"\x3f\xf1\x8f\xbf\x9b\x8e\x90\x24\x77\xfb\xdd\x4d\x71\x41\x5d\x62\x82\xd2\xeb\xff\xb8\x70\xa0\xa9\x5a\x6c\x05\xea\xa1\x13\x91\x8c\x15\xee\xd3\x75\x1a\xb6\x39\xe9\x8a\x19\xbe\x29\x26\x7d\xad\x5c\x23\x3b\x1b\x88\x6f\x83\xc1\x7b\x88\x82\x8d\xe9\xde\x44\x50\x52\xd9\xb8\xda\x2d\x4a\x4e\x82\xa5\x47\x9b\x2f\x64\xa9\xa8\xda\x18\x3b\xff\x72\x83\xc1\x36\xc1\x15\xa9\x66\xc6\x8c\xda\x38\xdd\x62\x98\x67\x13\xd7\x6f\x28\xb8\x53\x26\xaf\x1a\x92\xf3\x4d\xe0\x7b\x26\xe2\xf1\x1c\x09\xac\xae\xeb\x8f\xe3\x54\xf7\x53\x8e\xba\xe5\x1b\x1e\x40\x7e\x9c\xa0\xfc\x1c\x52\xf9\x40\x8d\x17\x41\xf6\x3b\x7b\x51\x6a\xbb\xee\xa6\x33\x9d\x38\x26\xcf\x8a\x4d\x84\xe0\x70\x48\xcd\x9c\x8e\x0d\x3c\xd4\x40\x9f\x5a\xe7\xca\x62\x68\x79\x2b\xde\xee\x25\xac\xc1\x9c\x2a\xc8\x6a\xd3\x85\x39\xd1\xdc\x43\x2b\xa4\x74\x3c\x09\x1c\xe3\x6f\x23\xa5\x59\x14\x09\x6a\xb9\x6f\xf5\xca\xfb\xc3\x28\x17\x0e\x15\xbc\xb6\x80\xe6\x42\x5e\xf9\xf7\x3a\xd2\x2d\xc2\x0f\x7a\xc3\x66\x9b\xec\x14\xb6\x68\x39\x8f\x1b\xf7\x56\x46\xd3\xa4\xae\xcc\x99\x90\x6b\xdc\xcf\xc9\xb5\xc1\x52\xfc\x0a\x30\xfe\x2d\xe2\xc7\xc4\x64\xe0\x54\x56\xeb\xa0\xc9\x46\xbe\x76\x90\x9e\x0a\xbd\xa4\x84\xad\x7f\xc7\x72\x11\x5f\x5a\x91\x55\x2a\xdf\x31\x54\xcf\x9f\x7f\x4a\x68\x26\x16\xd5\xc5\xcb\x6f\xd3\x2e\x3a\xa5\xf4\x57\x64\x3a\x68\xe5\xe7\x84\x1d\xf8\xf5\x23\xb6\xc8\x76\x93\xad\x56\xda\x80\x8d\x16\x5c\x36\x25\xd3\xc8\x59\xaf\x3a\x95\x7d\xa4\xe6\xc1\x9e\x7f\x08\xf5\xbc\x07\x2a\x93\x79\x60\xd6\x04\x60\xdd\x44\xb4\xc3\x71\x17\x41\xbc",
+ data: RefCell::new(SimpleProducer::new(&b"\x3f\xf1\x8f\xbf\x9b\x8e\x90\x24\x77\xfb\xdd\x4d\x71\x41\x5d\x62\x82\xd2\xeb\xff\xb8\x70\xa0\xa9\x5a\x6c\x05\xea\xa1\x13\x91\x8c\x15\xee\xd3\x75\x1a\xb6\x39\xe9\x8a\x19\xbe\x29\x26\x7d\xad\x5c\x23\x3b\x1b\x88\x6f\x83\xc1\x7b\x88\x82\x8d\xe9\xde\x44\x50\x52\xd9\xb8\xda\x2d\x4a\x4e\x82\xa5\x47\x9b\x2f\x64\xa9\xa8\xda\x18\x3b\xff\x72\x83\xc1\x36\xc1\x15\xa9\x66\xc6\x8c\xda\x38\xdd\x62\x98\x67\x13\xd7\x6f\x28\xb8\x53\x26\xaf\x1a\x92\xf3\x4d\xe0\x7b\x26\xe2\xf1\x1c\x09\xac\xae\xeb\x8f\xe3\x54\xf7\x53\x8e\xba\xe5\x1b\x1e\x40\x7e\x9c\xa0\xfc\x1c\x52\xf9\x40\x8d\x17\x41\xf6\x3b\x7b\x51\x6a\xbb\xee\xa6\x33\x9d\x38\x26\xcf\x8a\x4d\x84\xe0\x70\x48\xcd\x9c\x8e\x0d\x3c\xd4\x40\x9f\x5a\xe7\xca\x62\x68\x79\x2b\xde\xee\x25\xac\xc1\x9c\x2a\xc8\x6a\xd3\x85\x39\xd1\xdc\x43\x2b\xa4\x74\x3c\x09\x1c\xe3\x6f\x23\xa5\x59\x14\x09\x6a\xb9\x6f\xf5\xca\xfb\xc3\x28\x17\x0e\x15\xbc\xb6\x80\xe6\x42\x5e\xf9\xf7\x3a\xd2\x2d\xc2\x0f\x7a\xc3\x66\x9b\xec\x14\xb6\x68\x39\x8f\x1b\xf7\x56\x46\xd3\xa4\xae\xcc\x99\x90\x6b\xdc\xcf\xc9\xb5\xc1\x52\xfc\x0a\x30\xfe\x2d\xe2\xc7\xc4\x64\xe0\x54\x56\xeb\xa0\xc9\x46\xbe\x76\x90\x9e\x0a\xbd\xa4\x84\xad\x7f\xc7\x72\x11\x5f\x5a\x91\x55\x2a\xdf\x31\x54\xcf\x9f\x7f\x4a\x68\x26\x16\xd5\xc5\xcb\x6f\xd3\x2e\x3a\xa5\xf4\x57\x64\x3a\x68\xe5\xe7\x84\x1d\xf8\xf5\x23\xb6\xc8\x76\x93\xad\x56\xda\x80\x8d\x16\x5c\x36\x25\xd3\xc8\x59\xaf\x3a\x95\x7d\xa4\xe6\xc1\x9e\x7f\x08\xf5\xbc\x07\x2a\x93\x79\x60\xd6\x04\x60\xdd\x44\xb4\xc3\x71\x17\x41\xbc"[..])),
},
expected_sighash: *b"\xca\x73\x8f\xfd\x0c\xbf\x7a\x96\xf9\xa1\x77\x07\xf8\xe2\x58\x9a\xd9\x73\xf2\xc3\xfd\xf4\x51\xc3\xeb\x98\x18\xa8\xd7\xf8\x8f\x54",
},
@@ -495,7 +578,7 @@ mod tests {
gas_limit: b"\xac\x1f\x92\x5d\x77\x08\xef\x37",
recipient: b"\x76\xb9\xcd\x19\xe1\xbd\x0f\x69\xa1\xbb\xe8\x4e\x5a\xdc\x7a\x7b\x32\x8f\xcf\xdf",
value: b"\x0c\xfe\x32\xd6\xb0\xdf\x28",
- data: b"\xc6\xc6\x88\x31\x33\xce\xdc\x72\xd7\x5e\x2c\x76\x6c\x19\x98\x3b\xa8\x68\x79\x4a\x71\x24\x09\x11\x59\xc7\x6f\xbf\xfe\x93\x63\x31\x80\x1d\x7c\x94\x9a\x8f\xb2\x6b\x1b\xcd\x96\x4d\x67\x81\xb9\x30\x84\x20\xe1\x92\xd0\xd7\xe8\x16\x07\x5a\xf5\x03\xe6\x99\x48\x2b\xda\xf0\x13\xa6\x57\x96\xa2\xb7\x40\xd2\xd9\xd8\x32\x6d\x85\x47\xe4\x33\x3d\x28\x9f\x0a\x86\xb3\x3b\xb1\xb8\x4e\x57\xf8\x25\xd9\xcd\xd0\x90\x75\x83\x79\xe8\xb6\x24\x07\x25\x8c\x0a\x80\x94\x1f\x8b\xe0\x5f\x76\xab\x64\x91\x29\x34\xd9\x29\xfd\xf8\x7d\xf3\x2e\x90\x60\x73\x06\x20\x56\x38\xbc\x91\x90\x25\x66\x79\x11\xa5\xe8\xa7\x76\x03\x27\x33\xab\x37\x39\x3d\x02\x00\x1e\xe2\xae\xac\xad\x07\x82\x4a\xa9\xcd\x7c\xad\x87\x1a\x44\xfd\xaf\x67\x2c\x18\x88\xc3",
+ data: RefCell::new(SimpleProducer::new(&b"\xc6\xc6\x88\x31\x33\xce\xdc\x72\xd7\x5e\x2c\x76\x6c\x19\x98\x3b\xa8\x68\x79\x4a\x71\x24\x09\x11\x59\xc7\x6f\xbf\xfe\x93\x63\x31\x80\x1d\x7c\x94\x9a\x8f\xb2\x6b\x1b\xcd\x96\x4d\x67\x81\xb9\x30\x84\x20\xe1\x92\xd0\xd7\xe8\x16\x07\x5a\xf5\x03\xe6\x99\x48\x2b\xda\xf0\x13\xa6\x57\x96\xa2\xb7\x40\xd2\xd9\xd8\x32\x6d\x85\x47\xe4\x33\x3d\x28\x9f\x0a\x86\xb3\x3b\xb1\xb8\x4e\x57\xf8\x25\xd9\xcd\xd0\x90\x75\x83\x79\xe8\xb6\x24\x07\x25\x8c\x0a\x80\x94\x1f\x8b\xe0\x5f\x76\xab\x64\x91\x29\x34\xd9\x29\xfd\xf8\x7d\xf3\x2e\x90\x60\x73\x06\x20\x56\x38\xbc\x91\x90\x25\x66\x79\x11\xa5\xe8\xa7\x76\x03\x27\x33\xab\x37\x39\x3d\x02\x00\x1e\xe2\xae\xac\xad\x07\x82\x4a\xa9\xcd\x7c\xad\x87\x1a\x44\xfd\xaf\x67\x2c\x18\x88\xc3"[..])),
},
expected_sighash: *b"\x7b\x3d\x18\xb6\x08\x79\xcb\xb7\xb2\xdb\xc7\xbc\x3e\xf9\x88\x2e\x7b\x65\xbb\x8d\xd2\x00\xd1\x59\xfa\xf2\x6f\x2c\xb9\x76\x4c\x2a",
},
@@ -508,7 +591,7 @@ mod tests {
gas_limit: b"\x4a\xc1\x63\x5a\x5d\x50\xc5\x97",
recipient: b"\x92\x23\x3f\xa6\xdb\x42\x0e\x43\x8d\xdf\xed\x6f\x64\xe4\x55\x3e\x41\xd4\x63\xd8",
value: b"\xc9\x9e\x7e\xf8",
- data: b"\xf0\xe1\xc4\xc8\xb7\x69\x71\xcf\x8d\x08\xfd\x90\x60\x92\x1d\xa7\xfd\xee\xe4\x4c\xa6\x27\x99\x84\x29\xfd\x84\x79\xd2\x61\x47\x1b\x6a\x71\x1b\x83\x5a\x0a\xe4\xad\x69\xbf\x39\x10\x01\xbe\x14\x29\x81\xcd\xdd\xa0\x2c\x5e\xdc\x25\x54\x82\x51\xf5\xda\x26\xa9\x53\xe8\xbd\xbb\x6b\xb5\x4f\x7b\xe5\x59\x14\x9e\x77\x17\xfc\x1e\x1c",
+ data: RefCell::new(SimpleProducer::new(&b"\xf0\xe1\xc4\xc8\xb7\x69\x71\xcf\x8d\x08\xfd\x90\x60\x92\x1d\xa7\xfd\xee\xe4\x4c\xa6\x27\x99\x84\x29\xfd\x84\x79\xd2\x61\x47\x1b\x6a\x71\x1b\x83\x5a\x0a\xe4\xad\x69\xbf\x39\x10\x01\xbe\x14\x29\x81\xcd\xdd\xa0\x2c\x5e\xdc\x25\x54\x82\x51\xf5\xda\x26\xa9\x53\xe8\xbd\xbb\x6b\xb5\x4f\x7b\xe5\x59\x14\x9e\x77\x17\xfc\x1e\x1c"[..])),
},
expected_sighash: *b"\x1c\x60\x83\x67\xda\x5a\x66\x53\xa1\x14\xd1\x28\xa4\x2c\x26\x4a\x87\xee\x5c\x69\x2d\x2b\x6b\x6a\x5f\x87\x41\xc1\x93\x4e\x3a\x62",
},
@@ -521,7 +604,7 @@ mod tests {
gas_limit: b"\xd3\x1b\xc9\x5f\x59\x59\xd3\xef",
recipient: b"\xf9\xb6\x89\x27\x22\x95\x1b\x42\x12\x93\xbd\x81\xf9\x72\xd3\x1c\xc5\x1a\xd7\xfb",
value: b"\xfa\x31\x25\x8a\x68\xff\x07\xf0\x35\x05\x15\xc2\xe4\x19",
- data: b"\x25\x64\xa6\x7f\x49\x08\x63\x95\x48\xc1\x03\xab\x51\x82\xca\x20\x0d\x48\xd1\x2f\xc1\xe1\xcf\x7a\x5c\xad\xeb\xb4\x18\xe9\x66\xc3\xde\x50\x73\x2c\xf1\x5a\x8e\x7e\x88\xa9\x42\x80\x84\xbb\x63\xed\x7c\xcf\xf2\xfe\x99\xf9\x70\x50\xd7\x0f\x91\xd0\xaa\xcc\x31\x5d\xc4\x9e\xa2\xcc\xf9\x3a\xa1\x5e\x01\x25\xbb\x88\x2f\x89\xbd\xfa\x5a\xcc\x53\xa4\x6c\x9a\x13\x46\xad\x43\xd1\x9d\x18\x3a\x6c\x8d\x8d\x31\x7c\x55\x03\x5b\x05\xab\xd7\x6d\xba\x63\xab\xae\xd8\x84\xef\x03\xaa\x1c\x68\x1b\x30\x05\xd0\xa5\xdb\x1a\xad\x9b\x36\x6a\xa7\x3b\xe7\xd1\xdc\xc9\x7a\x52\x18\xa5\x4a\xa9\x47\xa7\x0a\x35\x09\x1c\xfe\x42\xbe\x5b\xc9\x6f\x17\xfb\x65\x8a\x40\x4f\x9a\x58\xfe\xfe\x09\x20\xb0\x3a\xc4\xdf\x68\x22\x48\xce\x73\xac\x58\xfb\x9a\xa0\x68\xcc\x5a\x5d\x2b\xc1\x68\x32\x57\x5c\xc4\x25\xe8\x54\x50\xd4\xb9\x90\xb6\x45\xfb\xa0\x01\x7e\x21\x4c\x2b\xbb\x49\x75\xa9\x3d\x76\xff\x59\x60\x35\xcc\xc6\x31\x06\x11\xfa\x00\x40\xf3\x8f\x56\x95\x31\x87\x6a\x60\x85\x0e\x7f\x2f\xd6\x6f\x03\x91\xcf\x8c\xdb\x32\x7d\x4f\x98\x83\xa6\x96\xa8\x64\x5c\x21\x74\xa8\xfe\xb0\x75\x52\x6a\xee\x5b\x37\xd9\x47\x88\xb6\x1b\xe9\xb4\x6b\x1f\x72\x14\xc4\xa2\x70\x95\xe5\x56\x5b\x2f\xbe\x47\x94\xfd\xf3\xe4\xb1\x83\x84\x01\x85\xf3\x83\xb8\x62\x31\xe1\x8c\xbe\xed\x3b\xae\x61\x47\x89\x0d\x19\x70\x40\x47\xb4\x2f\x73\xf0\x62\xf8\x89\x5a\x2c\x78\x82\x61\x7c\x4e\x65\x1e\xc3\x21\x5d\x8c\xdd\x84\xab\x84\x53\xcc\x4b\x55\x89\x58\xf3\xd5\xb5\x80\xb7\x87\x8f\xfb\xbd\x74\x22\x4b\x7d\x5f\xb5\x0c\x35\x8e\x82\xa1\x31\xdc\x46\x11\xd4\x2d\x42\x2c\x7f\x02\x6c\x87\x1f\x8b\xaa\xf2\xce\xec\xb0\x76\x48\xd9\x3a\x21\x6b\x92\x04\x5b\x4c\x23\xef\x4f\x34\xe8\x34\x93\x41\x76\x7f\x35\x2b\x00\x1d\x51\xc1\x90\xf3\xdd\x1c\xca\x43\x57\x2f\x94\xb8\x9e\x06\x0f\x74\xef\x5a\x88\x19\x06\x85\x8d\x7a\x63\xee\xd2\x7c\x0e\xee\xb6\xa4\x9a\x14\xa3\xff\x67\xa1\xdf\x3c\xee\x88\x06\x0d\x4f\x81\xb5\xae\x85\x09\x6e\x7a\xe3\xe7\x1e\xd3\x64\xee\x78\xcc\x98\x07\x27\xb2\x8b\x79\xe0\xec\x7b\x4a\x40\x75\xed\xd0\xa6\x55\x55\xdf\x85\x8b\x46\x0c\xad\x01\x0b\x78\x55\xda\x2a\xf8\x3f\xb5\xe4\x69\xfd\x9a\xf5\xba\x22\xac\x61\x23\x92\xcd\x2d\xb6\x7f\xf1\xfc\xa0\xb6\x8c\xec\x41\xd6\xe9\xa7\xc9\xcb\x2f\xe6\xf0\x50\x31\x5e\x9e\xb1\xa8\x17\x61\xa3\x51\xc1\xeb\x04\x5e\x36\x9a\x49\x1c\x73\x38\x2e\xac\xb3\x6e\xfe\x83\xd7\x63\xb7\x55\x42\x22\x87\x6e\x80\x2b\x89\x6b\x46\x2e\x49\xaf\x77\x42\xd5\x03\x62\xd8\x3f\x57\x74\x66\x77\xe0\x25\x36\x27\x18\xa6\x27\xd9\x24\xb2\x70\xcf\x7b\xa7\x33\x92\xa2\x2e\xc2\xbd\x8a\x99\xea\xcb\x7a\xb8\x82\xff\x7a\x0e\x5f\x3d\xe1\x25\x1f\x02\x0c\x58\x17\x2d\x1d\x12\x6b\xaa\x64\x8f\xb7\xbe\x80\xf8\xaf\xdd\x91\x61\xab\x16\x73\xaf\x80\xc5\x51\x79\xbc\x43\xdc\x55\x47\xa2\xf6\x1d\x6f\x40\x81\x16\x4c\x65\xde\xd7\x0e\x0f\xf0\x74\x90\x88\xd4\x87\x97\x6e\x3a\x81\x5c\x40\x21\x1c\xd1\xa7\x64\x14\x03\x96\xb8\xed\xae\x30\x69\x8a\x57\xb3\x01\xe0\x4d\x67\x56\xd1\xa1\x66\x5a\x3d\x14\x45\x64\x1e\x33\xeb\x5b\x39\x85\xaa\x04\x7e\xf8\xbd\xec\x64\x8c\x2a\xcb\x9f\x44\x13\xdd\xea\x17\xdc\x86\xd9\x23\xe4\x72\x25\x9e\x3f\x3f\x79\x7d\xfe\x3c\xf8\xfd\x33\x27\x7c\xb5\xf9\x46\x8a\x7b\x00\x5d\xa9\x65\xd1\x4f\x7f\xc6\x90\x0c\x77\xa7\x6d\xff\xc9\x45\x22\x84\x8b\x7c\xe8\xd9\x9c\x5c\xd7\xc5\x9f\x43\x0e\x8b\xfb\x9f\x74\x2f\x19\xa1\x38\xad\xbb\xa4\xca\x03\x41\xac\x55\x89\x8b\x4b\x77\x17\x03\x11\x9d\xcf\x0a\x57\x27\xd0\x83\xf7\x4a\xc2\x42\xaf\xbe\x7e\xf5\xa6\x9e\xb8\xac\x42\x98\x89\x60\xf2\x6b\x4d\x59\x05\x2c\x1e\x9e\xc1\xca\x57\xc0\xa1\x0b\x30\xba\xcf\x95\x9f\x32\xc0\x3b\x5f\x34\x3c\xe2\x2f\xe7\x10\xdd\x4e\xc2\xdc\x81\x2e\x16\x3b\x4e\x2e\x0b\x9d\x93\x97\xbe\x9e\x9b\x4c\xc9\xb6\x44\x9b\xe9\xe6\xb9\x05\x00\xc1\xd6\xf8\x4a\x42\x14\x12\xed\x62\x74\x22\x9b\x76\x1a\xc4\xbd\xbe\x44\x3f\x71\xcd\x2c\x87\x32\x8a\xea\xc0\x75\xcc\x0b\x0e\x02\x36\x37\xde\xd4\xca\x18\xb7\xfe\x02\xc7\xc0\x1c\xae\xc5\x2f\xfe\x2f\x03\x9a\x24\x7a\xb6\xcb\x59\xa5\xdd\x3c\xd5\x5d\x29\x49\x21\x4a\xaf\x64\x23\xec\x52\x25",
+ data: RefCell::new(SimpleProducer::new(&b"\x25\x64\xa6\x7f\x49\x08\x63\x95\x48\xc1\x03\xab\x51\x82\xca\x20\x0d\x48\xd1\x2f\xc1\xe1\xcf\x7a\x5c\xad\xeb\xb4\x18\xe9\x66\xc3\xde\x50\x73\x2c\xf1\x5a\x8e\x7e\x88\xa9\x42\x80\x84\xbb\x63\xed\x7c\xcf\xf2\xfe\x99\xf9\x70\x50\xd7\x0f\x91\xd0\xaa\xcc\x31\x5d\xc4\x9e\xa2\xcc\xf9\x3a\xa1\x5e\x01\x25\xbb\x88\x2f\x89\xbd\xfa\x5a\xcc\x53\xa4\x6c\x9a\x13\x46\xad\x43\xd1\x9d\x18\x3a\x6c\x8d\x8d\x31\x7c\x55\x03\x5b\x05\xab\xd7\x6d\xba\x63\xab\xae\xd8\x84\xef\x03\xaa\x1c\x68\x1b\x30\x05\xd0\xa5\xdb\x1a\xad\x9b\x36\x6a\xa7\x3b\xe7\xd1\xdc\xc9\x7a\x52\x18\xa5\x4a\xa9\x47\xa7\x0a\x35\x09\x1c\xfe\x42\xbe\x5b\xc9\x6f\x17\xfb\x65\x8a\x40\x4f\x9a\x58\xfe\xfe\x09\x20\xb0\x3a\xc4\xdf\x68\x22\x48\xce\x73\xac\x58\xfb\x9a\xa0\x68\xcc\x5a\x5d\x2b\xc1\x68\x32\x57\x5c\xc4\x25\xe8\x54\x50\xd4\xb9\x90\xb6\x45\xfb\xa0\x01\x7e\x21\x4c\x2b\xbb\x49\x75\xa9\x3d\x76\xff\x59\x60\x35\xcc\xc6\x31\x06\x11\xfa\x00\x40\xf3\x8f\x56\x95\x31\x87\x6a\x60\x85\x0e\x7f\x2f\xd6\x6f\x03\x91\xcf\x8c\xdb\x32\x7d\x4f\x98\x83\xa6\x96\xa8\x64\x5c\x21\x74\xa8\xfe\xb0\x75\x52\x6a\xee\x5b\x37\xd9\x47\x88\xb6\x1b\xe9\xb4\x6b\x1f\x72\x14\xc4\xa2\x70\x95\xe5\x56\x5b\x2f\xbe\x47\x94\xfd\xf3\xe4\xb1\x83\x84\x01\x85\xf3\x83\xb8\x62\x31\xe1\x8c\xbe\xed\x3b\xae\x61\x47\x89\x0d\x19\x70\x40\x47\xb4\x2f\x73\xf0\x62\xf8\x89\x5a\x2c\x78\x82\x61\x7c\x4e\x65\x1e\xc3\x21\x5d\x8c\xdd\x84\xab\x84\x53\xcc\x4b\x55\x89\x58\xf3\xd5\xb5\x80\xb7\x87\x8f\xfb\xbd\x74\x22\x4b\x7d\x5f\xb5\x0c\x35\x8e\x82\xa1\x31\xdc\x46\x11\xd4\x2d\x42\x2c\x7f\x02\x6c\x87\x1f\x8b\xaa\xf2\xce\xec\xb0\x76\x48\xd9\x3a\x21\x6b\x92\x04\x5b\x4c\x23\xef\x4f\x34\xe8\x34\x93\x41\x76\x7f\x35\x2b\x00\x1d\x51\xc1\x90\xf3\xdd\x1c\xca\x43\x57\x2f\x94\xb8\x9e\x06\x0f\x74\xef\x5a\x88\x19\x06\x85\x8d\x7a\x63\xee\xd2\x7c\x0e\xee\xb6\xa4\x9a\x14\xa3\xff\x67\xa1\xdf\x3c\xee\x88\x06\x0d\x4f\x81\xb5\xae\x85\x09\x6e\x7a\xe3\xe7\x1e\xd3\x64\xee\x78\xcc\x98\x07\x27\xb2\x8b\x79\xe0\xec\x7b\x4a\x40\x75\xed\xd0\xa6\x55\x55\xdf\x85\x8b\x46\x0c\xad\x01\x0b\x78\x55\xda\x2a\xf8\x3f\xb5\xe4\x69\xfd\x9a\xf5\xba\x22\xac\x61\x23\x92\xcd\x2d\xb6\x7f\xf1\xfc\xa0\xb6\x8c\xec\x41\xd6\xe9\xa7\xc9\xcb\x2f\xe6\xf0\x50\x31\x5e\x9e\xb1\xa8\x17\x61\xa3\x51\xc1\xeb\x04\x5e\x36\x9a\x49\x1c\x73\x38\x2e\xac\xb3\x6e\xfe\x83\xd7\x63\xb7\x55\x42\x22\x87\x6e\x80\x2b\x89\x6b\x46\x2e\x49\xaf\x77\x42\xd5\x03\x62\xd8\x3f\x57\x74\x66\x77\xe0\x25\x36\x27\x18\xa6\x27\xd9\x24\xb2\x70\xcf\x7b\xa7\x33\x92\xa2\x2e\xc2\xbd\x8a\x99\xea\xcb\x7a\xb8\x82\xff\x7a\x0e\x5f\x3d\xe1\x25\x1f\x02\x0c\x58\x17\x2d\x1d\x12\x6b\xaa\x64\x8f\xb7\xbe\x80\xf8\xaf\xdd\x91\x61\xab\x16\x73\xaf\x80\xc5\x51\x79\xbc\x43\xdc\x55\x47\xa2\xf6\x1d\x6f\x40\x81\x16\x4c\x65\xde\xd7\x0e\x0f\xf0\x74\x90\x88\xd4\x87\x97\x6e\x3a\x81\x5c\x40\x21\x1c\xd1\xa7\x64\x14\x03\x96\xb8\xed\xae\x30\x69\x8a\x57\xb3\x01\xe0\x4d\x67\x56\xd1\xa1\x66\x5a\x3d\x14\x45\x64\x1e\x33\xeb\x5b\x39\x85\xaa\x04\x7e\xf8\xbd\xec\x64\x8c\x2a\xcb\x9f\x44\x13\xdd\xea\x17\xdc\x86\xd9\x23\xe4\x72\x25\x9e\x3f\x3f\x79\x7d\xfe\x3c\xf8\xfd\x33\x27\x7c\xb5\xf9\x46\x8a\x7b\x00\x5d\xa9\x65\xd1\x4f\x7f\xc6\x90\x0c\x77\xa7\x6d\xff\xc9\x45\x22\x84\x8b\x7c\xe8\xd9\x9c\x5c\xd7\xc5\x9f\x43\x0e\x8b\xfb\x9f\x74\x2f\x19\xa1\x38\xad\xbb\xa4\xca\x03\x41\xac\x55\x89\x8b\x4b\x77\x17\x03\x11\x9d\xcf\x0a\x57\x27\xd0\x83\xf7\x4a\xc2\x42\xaf\xbe\x7e\xf5\xa6\x9e\xb8\xac\x42\x98\x89\x60\xf2\x6b\x4d\x59\x05\x2c\x1e\x9e\xc1\xca\x57\xc0\xa1\x0b\x30\xba\xcf\x95\x9f\x32\xc0\x3b\x5f\x34\x3c\xe2\x2f\xe7\x10\xdd\x4e\xc2\xdc\x81\x2e\x16\x3b\x4e\x2e\x0b\x9d\x93\x97\xbe\x9e\x9b\x4c\xc9\xb6\x44\x9b\xe9\xe6\xb9\x05\x00\xc1\xd6\xf8\x4a\x42\x14\x12\xed\x62\x74\x22\x9b\x76\x1a\xc4\xbd\xbe\x44\x3f\x71\xcd\x2c\x87\x32\x8a\xea\xc0\x75\xcc\x0b\x0e\x02\x36\x37\xde\xd4\xca\x18\xb7\xfe\x02\xc7\xc0\x1c\xae\xc5\x2f\xfe\x2f\x03\x9a\x24\x7a\xb6\xcb\x59\xa5\xdd\x3c\xd5\x5d\x29\x49\x21\x4a\xaf\x64\x23\xec\x52\x25"[..])),
},
expected_sighash: *b"\xb0\x86\xad\x36\x5a\xba\x90\xcb\x7d\xfc\xfb\x1b\x73\x59\xc9\x6f\x4a\x3b\x22\xfc\xb6\xa4\x10\x62\xc3\x2e\xf1\x1f\xe3\x6b\x7d\x29",
},
@@ -534,7 +617,7 @@ mod tests {
gas_limit: b"\x46\x5d\x2e\xc4\x9a\x3f\x28\xfb",
recipient: b"\xbb\xdc\x8d\xe6\x79\xf1\xd5\x73\x37\xf1\x98\x31\x9f\x36\x44\x24\x94\xec\x8d\x2a",
value: b"\x7e\xc7\xc6\xab\xe6\x03\x0a\xd9\x00\x05\x92\x14\x4a\x53\x4a",
- data: b"\x08\x85\x3f\x61\xd2\xe8\x54\x63\x16\xa7\x11\x2c\x3b\x4a\x79\xd0\x7f\x6f\xdf\x6b\xfd\x94\xdb\x56\x7d\xe9\x1e\xe3\x54\xb6\x14\xc8\xad\xb4\xd3\x24\x0f\xd5\xe3\xe5\x7b\x22\xa5\x4a\x91\x80\x02\xd8\xdc\x6b\x44\x6d\xe4\xcf\x28\xf9\x3f\xb4\x0c\xec\x13\xb0\xa1\xe1\x99\xb9\xa8\x38\x99\x36\x6b\x16\x37\xb3\x80\x6c\xf6\xb2\x19\xe3\xe2\x76\xa5\x09\xa5\xf5\x8a\x47\x12\x84\xdc\x1a\x39\x19\x30\x34\xfc\x09\x2f\x9a\xa9\x28\x99\xd9\x1b\x4a\xcd\x06\x2c\x05\x33\x5d\x2b\xc4\x41\xb3\xbc\x62\x00\xbe\xfd\xef\x16\x57\x05\xd5\xfc\x8e\x69\x5a\x99\x6f\xf8\xf5\x78\x21\x0d\x94\x4f\xf6\x6c\x49\xdd\xf2\x3f\xe2\x8d\x9f\xbf\x36\xfa\xeb\x58\x58\xc9\x70\xde\x96\x1d\x28\x43\x48\x16\x1b\xec\x1f\xee\x1b\xba\xa7\x2c\x08\x86\x54\x8d\x22\x06\x12\x19\xc5\x6d\x70\x59\x76\x3f\x80\xd9\xe7\x19\xd8\x26\x5c\xc7\x0f\xa7\x1a\x57\xb3\xff\x63\x99\x0f\xd2\x46\x2e\xd7\xbd\x09\xae\x9c\x7e\xea\xb6\x1e\xf2\xf3\x8e\xc4\xc0\xf6\x39\x50\x2f\x25\x4c\x54\x5c\x2f\x82\x42\x73\x52\x4c\x53\x4b\x28\xfb\xa7\xc0\x8c\xa2\xc9\x63\xdc\xc2\x42\x02\x7c\x23\x2b\x8e\x24\xdd\x52\x23\x5f\xf5\x3f\xaa\x7a\x98\xfe\x2a\x7c\xb0\x66\x70\xb9\x6f\x8d\x35\x7c\x26\xbc\xd9\x81\xdc\x8e\x21\xfa\xe0\x4e\x17\xb7\x03\x16\x4a\x83\x2f\xe1\xd2\x98\x1e\x0c\xcb\x5b\x96\xcc\xe1\xbd\x2f\xe4\xaa\x85\xbe\x82\xa7\xf9\x70\xd9\x43\x3f\x83\xe7\x40\xbc\x83\x26\xb6\x55\x57\xab\x40\xb1\x09\x83\xbc\xbe\xd4\x74\xf9\x94\xbd\xb7\xca\xcd\x69\xda\x16\x41\x94\xde\x5c\xfd\xd3\xf2\x9d\xd7\x16\x82\xf4\xe0\x58\x0c\x26\xf5\xf2\x6a\xdd\x17\x3b\x8c\xd2\x9b\x78\x3e\xca\x36\x04\xe7\xeb\xaf\xc2\xff\x09\x42\x8d\xb3\x1d\x04\x6d\x78\x82\x8c\xe9\x60\xf6\xe7\xcc\xf8\x4d\xe7\xc1\x81\x8a\x88\xf0\x99\x40\x01\x1f\x47\xbb\x91\xb6\x36\x01\xc3\xe3\x06\xe8\x84\x43\x0c\x76\xe0\x15\x05\x51\xd2\x34\x57\x0d\xbd\xac\xb9\x48\x9c\x03\x3c\xbb\xe6\xed\xc3\xab\xee\x43\x30\x18\xa3\xc8\xd4\x79\xbf\xca\x6b\x8c\xef\x08\x82\xd3\x86\xd6\x84\x4a\x58\xdf\x52\x38\x8c\x21\x01\xe7\xa4\x91\xbb\xf7\xb0\xf5\x26\xea\xe7\x93\x31\xd1\xd3\x2b\x70\x07\x28\xb0\x12\x82\x03\x61\x79\xf9\x65\x35\x3a\x78\x61\xa5\x0a\x06\xf7\x4e\xd1\x3c\xaf\x8d\x0a\xe4\x5c\x95\xef\x92\x26\x6a\x96\x3e\x68\x49\xc4\xdc\xb5\x38\x19\x5d\x4d\xd7\xa6\xf0\xeb\x60\x7d\xb7\xa4\x2c\x3c\xd0\xeb\x4c\xb8\x48\xe0\xe9\x07\x5a\x4a\xd9\x4d\x04\xfd\xa8\xe2\xaf\xa3\x0b\xb7\xdd\xf1\x24\x48\xed\xd2\x35\xf6\x81\x10\x75\x42\x15\x05\x8a\x07\xf7\x78\x70\xb4\x71\x82\x7b\x8f\x79\xb2\x26\x3f\x12\x9d\xe1\xa7\xf4\xed\xdf\x03\xd9\x99\x77\x2e\xcc\xa9\x83\xa8\x9e\xe1\x6e\xb4\x5e\x97\xc6\x68\x59\x0f\x04\x6a\xd5\xb0\xb7\x47\x81\xfb\x6e\x11\x6c\x2f\x86\x00\xb8\x44\x4d\x01\xec\xe4\xc5\x15\xe3\x0c\x0f\x5a\x17\x44\xe4\x0f\xa9\xc2\x2f\xfb\xde\x5b\x13\x8f\xb6\xfd\x8c\xe9\x75\x84\xbc\x81\xbd\xcd\x1e\x9d\xbe\x37\x1a\x8d\x82\x59\x33\xd7\x94\x75\x62\x2e\x4e\x80\xa2\xf5\xb0\xa3\x38\xd0\x75\x1b\x93\xa2\x51\xad\x1c\x22\x2b\x95\x11\x6e\xe0\xfe\x0e\x84\x67\xb1\x81\x32\xf9\xd0\xe2\x2c\x94\xf4\x9a\x2c\x90\x9e\x9d\x16\xa8\x27\x73\x51\x31\xdf\xe5\xc9\x09\xa4\xed\x44\x8e\xdf\xb4\x23\x52\xcd\x51\x53\x90\x8d\x83\x46\xb3\x9f\xfb\xdd\x47\x42\xea\x86\x55\x17\x91\x71\xad\x10\x1c\xeb\x45\x39\x19\xbf\x1d\xf5\x5f\xaf\xd9\xdc\xa2\xef\x2d\x3d\x12\x74\xc9\x55\xfe\x5b\xfb\x73\x5a\x64\xd2\x0e\xac\x91\xae\x11\xc9\x0b\xa4\xf0\x31\x34\x95\xe2\xaf\x8b\x36\x42\xbf\xba\xd0\x19\x95\x12\x6d\x19\xf6\x80\x20\x83\x71\x8a\xa3\x08\xbe\x6c\x2d\x25\xc9\xc1\x97\x76\x42\x42\x45\x32\x48\x73\xaf\x33\x58\x68\xcc\x28\x9d\x93\xba\x21\x28\x57\xbf\x64\x52\xd4\xac\x65\xa2\x0a\xde\xe1\x1f\x8f\xc0\xe0\xf5\x93\x70\x71\x38\x12\x44\xaa\xb2\x19\xf3\x55\xa9\x69\xf3\x06\xcb\x83\x5f\xe7\xa8\x07\xee\xb4\x1b\x07\x03\x6a\x8f\xd5\x81\xbb\x61\xb9\xea\x20\xb7\x4f\x70\xf7\x72\x7b\x55\x01\xa1\xc7\x23\xc2\xdb\x6f\x67\xd8\xe0\xb6\x8e\x46\xd0\xd5\x25\xa7\x31\xd7\xe4\xcb\xf7\x6a\xd8\x78\x94\xda\xf6\x84\x80\xf7\x8f\xfc\x89\xee",
+ data: RefCell::new(SimpleProducer::new(&b"\x08\x85\x3f\x61\xd2\xe8\x54\x63\x16\xa7\x11\x2c\x3b\x4a\x79\xd0\x7f\x6f\xdf\x6b\xfd\x94\xdb\x56\x7d\xe9\x1e\xe3\x54\xb6\x14\xc8\xad\xb4\xd3\x24\x0f\xd5\xe3\xe5\x7b\x22\xa5\x4a\x91\x80\x02\xd8\xdc\x6b\x44\x6d\xe4\xcf\x28\xf9\x3f\xb4\x0c\xec\x13\xb0\xa1\xe1\x99\xb9\xa8\x38\x99\x36\x6b\x16\x37\xb3\x80\x6c\xf6\xb2\x19\xe3\xe2\x76\xa5\x09\xa5\xf5\x8a\x47\x12\x84\xdc\x1a\x39\x19\x30\x34\xfc\x09\x2f\x9a\xa9\x28\x99\xd9\x1b\x4a\xcd\x06\x2c\x05\x33\x5d\x2b\xc4\x41\xb3\xbc\x62\x00\xbe\xfd\xef\x16\x57\x05\xd5\xfc\x8e\x69\x5a\x99\x6f\xf8\xf5\x78\x21\x0d\x94\x4f\xf6\x6c\x49\xdd\xf2\x3f\xe2\x8d\x9f\xbf\x36\xfa\xeb\x58\x58\xc9\x70\xde\x96\x1d\x28\x43\x48\x16\x1b\xec\x1f\xee\x1b\xba\xa7\x2c\x08\x86\x54\x8d\x22\x06\x12\x19\xc5\x6d\x70\x59\x76\x3f\x80\xd9\xe7\x19\xd8\x26\x5c\xc7\x0f\xa7\x1a\x57\xb3\xff\x63\x99\x0f\xd2\x46\x2e\xd7\xbd\x09\xae\x9c\x7e\xea\xb6\x1e\xf2\xf3\x8e\xc4\xc0\xf6\x39\x50\x2f\x25\x4c\x54\x5c\x2f\x82\x42\x73\x52\x4c\x53\x4b\x28\xfb\xa7\xc0\x8c\xa2\xc9\x63\xdc\xc2\x42\x02\x7c\x23\x2b\x8e\x24\xdd\x52\x23\x5f\xf5\x3f\xaa\x7a\x98\xfe\x2a\x7c\xb0\x66\x70\xb9\x6f\x8d\x35\x7c\x26\xbc\xd9\x81\xdc\x8e\x21\xfa\xe0\x4e\x17\xb7\x03\x16\x4a\x83\x2f\xe1\xd2\x98\x1e\x0c\xcb\x5b\x96\xcc\xe1\xbd\x2f\xe4\xaa\x85\xbe\x82\xa7\xf9\x70\xd9\x43\x3f\x83\xe7\x40\xbc\x83\x26\xb6\x55\x57\xab\x40\xb1\x09\x83\xbc\xbe\xd4\x74\xf9\x94\xbd\xb7\xca\xcd\x69\xda\x16\x41\x94\xde\x5c\xfd\xd3\xf2\x9d\xd7\x16\x82\xf4\xe0\x58\x0c\x26\xf5\xf2\x6a\xdd\x17\x3b\x8c\xd2\x9b\x78\x3e\xca\x36\x04\xe7\xeb\xaf\xc2\xff\x09\x42\x8d\xb3\x1d\x04\x6d\x78\x82\x8c\xe9\x60\xf6\xe7\xcc\xf8\x4d\xe7\xc1\x81\x8a\x88\xf0\x99\x40\x01\x1f\x47\xbb\x91\xb6\x36\x01\xc3\xe3\x06\xe8\x84\x43\x0c\x76\xe0\x15\x05\x51\xd2\x34\x57\x0d\xbd\xac\xb9\x48\x9c\x03\x3c\xbb\xe6\xed\xc3\xab\xee\x43\x30\x18\xa3\xc8\xd4\x79\xbf\xca\x6b\x8c\xef\x08\x82\xd3\x86\xd6\x84\x4a\x58\xdf\x52\x38\x8c\x21\x01\xe7\xa4\x91\xbb\xf7\xb0\xf5\x26\xea\xe7\x93\x31\xd1\xd3\x2b\x70\x07\x28\xb0\x12\x82\x03\x61\x79\xf9\x65\x35\x3a\x78\x61\xa5\x0a\x06\xf7\x4e\xd1\x3c\xaf\x8d\x0a\xe4\x5c\x95\xef\x92\x26\x6a\x96\x3e\x68\x49\xc4\xdc\xb5\x38\x19\x5d\x4d\xd7\xa6\xf0\xeb\x60\x7d\xb7\xa4\x2c\x3c\xd0\xeb\x4c\xb8\x48\xe0\xe9\x07\x5a\x4a\xd9\x4d\x04\xfd\xa8\xe2\xaf\xa3\x0b\xb7\xdd\xf1\x24\x48\xed\xd2\x35\xf6\x81\x10\x75\x42\x15\x05\x8a\x07\xf7\x78\x70\xb4\x71\x82\x7b\x8f\x79\xb2\x26\x3f\x12\x9d\xe1\xa7\xf4\xed\xdf\x03\xd9\x99\x77\x2e\xcc\xa9\x83\xa8\x9e\xe1\x6e\xb4\x5e\x97\xc6\x68\x59\x0f\x04\x6a\xd5\xb0\xb7\x47\x81\xfb\x6e\x11\x6c\x2f\x86\x00\xb8\x44\x4d\x01\xec\xe4\xc5\x15\xe3\x0c\x0f\x5a\x17\x44\xe4\x0f\xa9\xc2\x2f\xfb\xde\x5b\x13\x8f\xb6\xfd\x8c\xe9\x75\x84\xbc\x81\xbd\xcd\x1e\x9d\xbe\x37\x1a\x8d\x82\x59\x33\xd7\x94\x75\x62\x2e\x4e\x80\xa2\xf5\xb0\xa3\x38\xd0\x75\x1b\x93\xa2\x51\xad\x1c\x22\x2b\x95\x11\x6e\xe0\xfe\x0e\x84\x67\xb1\x81\x32\xf9\xd0\xe2\x2c\x94\xf4\x9a\x2c\x90\x9e\x9d\x16\xa8\x27\x73\x51\x31\xdf\xe5\xc9\x09\xa4\xed\x44\x8e\xdf\xb4\x23\x52\xcd\x51\x53\x90\x8d\x83\x46\xb3\x9f\xfb\xdd\x47\x42\xea\x86\x55\x17\x91\x71\xad\x10\x1c\xeb\x45\x39\x19\xbf\x1d\xf5\x5f\xaf\xd9\xdc\xa2\xef\x2d\x3d\x12\x74\xc9\x55\xfe\x5b\xfb\x73\x5a\x64\xd2\x0e\xac\x91\xae\x11\xc9\x0b\xa4\xf0\x31\x34\x95\xe2\xaf\x8b\x36\x42\xbf\xba\xd0\x19\x95\x12\x6d\x19\xf6\x80\x20\x83\x71\x8a\xa3\x08\xbe\x6c\x2d\x25\xc9\xc1\x97\x76\x42\x42\x45\x32\x48\x73\xaf\x33\x58\x68\xcc\x28\x9d\x93\xba\x21\x28\x57\xbf\x64\x52\xd4\xac\x65\xa2\x0a\xde\xe1\x1f\x8f\xc0\xe0\xf5\x93\x70\x71\x38\x12\x44\xaa\xb2\x19\xf3\x55\xa9\x69\xf3\x06\xcb\x83\x5f\xe7\xa8\x07\xee\xb4\x1b\x07\x03\x6a\x8f\xd5\x81\xbb\x61\xb9\xea\x20\xb7\x4f\x70\xf7\x72\x7b\x55\x01\xa1\xc7\x23\xc2\xdb\x6f\x67\xd8\xe0\xb6\x8e\x46\xd0\xd5\x25\xa7\x31\xd7\xe4\xcb\xf7\x6a\xd8\x78\x94\xda\xf6\x84\x80\xf7\x8f\xfc\x89\xee"[..])),
},
expected_sighash: *b"\x7f\xbd\x0b\x5a\xa1\x6b\xdd\xf1\xf1\x99\x27\x48\x3a\xf5\xba\xf3\x85\x1d\x95\xfe\x2e\x8b\xa2\xcf\x9a\x40\x05\xf4\x49\xf7\x29\x09",
},
@@ -547,7 +630,7 @@ mod tests {
gas_limit: b"\xee\xc5\xa6\xdc\x90\x2f\x90\xe0",
recipient: b"\x33\x96\x70\xfb\x38\x77\x3a\xe5\x2e\x39\x62\x58\x44\xa3\x05\x41\xdd\x74\xfc\x81",
value: b"\xb0\x9d\x14\xb2\x64\x85\xf2\xd0",
- data: b"\x70\x47\x85\xfc\x25\xb9\xe5\x62\xa4\x16\xce\xa3\x6b\x8f\x3d\x2d\x5b\xfc\xf4\xe7\x84\x62\xad\xe1\x20\x45\x3d\x47\xf4\xda\x24\x01\x3d\x56\x09\x8c\x08\x6c\x46\x52\x2a\xa6\xfb\x03\x30\xe7\xc5\x1c\x72\x03\x01\xf6\xa5\xa3\xee\x5d\x2f\x4a\x2e\x7c\xac\xf0\x67\xb4\xa7\x2e\x2e\x75\x85\xae\xad\x94\x96\x18\x91\x42\x76\x35\x9a\xec\x55\x96\xcf\x52\xc6\x86\x25\x90\x93\xbb\x5a\x2e\x84\xdb\x5a\x20\x22\xef\x80\x89\x85\x1e\xc1\xf6\xcb\x93\x2c\x09\x51\x0f\xcc\x3c\x34\x53\x6d\x7e\x3c\xef\x9b\xc5\x75\x4f\xa2\xe5\x7f\xe4\xa8\x20\xa6\x3a\x74\x5d\x3f\x0e\xc6\x47\x95\x92\x40\x67\x6e\xfd\xa7\xc1\x8a\xc4\x7d\xc8\x74\xca\xef\x5d\x58\x6f\x1d\x44\x7d\x73\x18\x20\x19\x49\x8b\x54\x7a\x7e\xbd\xf6\x81\x65\xef\xd4\x06\x0c\x09\x19\x65\x28\x8d\x8e\x3f\x9a\x2f\xd1\xb6\x8c\x83\xc2\xb2\xc3\x09\x35\xf3\x74\x2b\x53\xd5\xb2\x5d\x50\x27\xc5\x7b\x44\xe6\x0e\xf4\x29\xb5\xa0\x57\x73\x67\xea\xfc\x5a\xfb\x1f\x78\x38\x75\x20\x92\x52\xb8\x68\xa7\x45\x6e\xfb\x32\x06\x6b\xbf\xc9\xf7\x77\xa3\x2f\xd9\xb2\xb6\x2a\x96\xb0\x5c\x7d\x73\x8a\xad\x57\x5b\x79\xf8\xd2\xb3\x8f\x93\x21\xdb\xa6\xbb\x0b\x1b\xf1\xba\x80\x7e\x39\x80\x4c\xcf\x1c\x3d\xeb\x68\xd8\x9c\x05\x8c\xa5\x04\x47\x3b\x6b\xb9\x6d\xb4\x0d\xdb\xd4\x5d\xc6\xbc\xf2\xa9\x6e\x8f\x75\x04\xe3\xe4\x0e\xc2\xb0\x09\x59\x8b\x51\xa2\x14\x48\xce\x9e\x4c\x97\x18\xaf\xb8\x4d\xad\xc1\x09\x5f\xd6\xed\x78\x29\x77\x6f\x7d\x27\x5a\xf7\x52\x56\x31\xb5\x5d\x7f\xb4\x1d\x73\xb6\x38\x68\x95\xb8\x25\xdd\x55\xc6\xa0\xfe\xcb\x5f\xf9\x33\x38\xa0\x45\x96\xdf\x73\xfd\x05\xc6\xf4\x87\xc1\x67\x6a\x12\xb6\xe1\x93\xfd\x35\x94\x0e\x68\x22\xdb\xd9\x6c\xfc\x8c\xb6\x61\x9a\x7f\x0d\xdd\x66\x7a\x15\x12\xd6\x02\xf6\xd8\xa0\x58\x44\x5e\x61\x6e\x97\xa1\x7a\xbf\x0b\x63\xa5\x56\xf0\x81\x24\x09\xcb\x11\xa9\x83\x3b\xe6\x87\x7a\xf7\x47\x72\x5f\xf2\x89\x1f\x36\x72\xab\x47\xf8\xd9\x35\xb4\x2a\x5d\xda\xef\xc1\xe0\x45\xe3\xc9\x56\xca\xa1\xf6\x87\x2d\xf5\xc7\x31\x65\x9f\xbd\x2a\x05\x00\x36\xe0\x4f\x95\xc7\xb4\x8b\xac\x76\xa9\xf7\xcb\xed\x43\xf2\x8c\xb1\x64\xe1\x5d\x75\x8d\xbf\xb4\x89\x62\xda\xa1\xa5\x09\x7a\x8a\xfa\x64\x4e\x6d\x4d\x2a\x3e\x81\xac\x82\xda\x6a\x5f\xb1\xa6\x36\x50\x9c\xcf\x91\x1d\xc6\x19\x42\xc5\x6a\x8e\xbf\x61\x72\x08\x68\xd8\x98\x8c\x98\x40\xf7\xd2\xff\x7d\xc7\xbe\x58\x9c\xda\x47\xc4\x61\xb8\xcc\xcd\xba\xa1\x60\xae\x6c\xf9\x5e\xbd\xa1\x26\x98\x40\x20\x90\x7e\x6b\x7d\x49\xf4\xa0\x22\xd4\x46\x32\xd6\x6b\x40\x92\x6f\xd8\x3e\x52\x57\x6d\x5d\xa9\xe9",
+ data: RefCell::new(SimpleProducer::new(&b"\x70\x47\x85\xfc\x25\xb9\xe5\x62\xa4\x16\xce\xa3\x6b\x8f\x3d\x2d\x5b\xfc\xf4\xe7\x84\x62\xad\xe1\x20\x45\x3d\x47\xf4\xda\x24\x01\x3d\x56\x09\x8c\x08\x6c\x46\x52\x2a\xa6\xfb\x03\x30\xe7\xc5\x1c\x72\x03\x01\xf6\xa5\xa3\xee\x5d\x2f\x4a\x2e\x7c\xac\xf0\x67\xb4\xa7\x2e\x2e\x75\x85\xae\xad\x94\x96\x18\x91\x42\x76\x35\x9a\xec\x55\x96\xcf\x52\xc6\x86\x25\x90\x93\xbb\x5a\x2e\x84\xdb\x5a\x20\x22\xef\x80\x89\x85\x1e\xc1\xf6\xcb\x93\x2c\x09\x51\x0f\xcc\x3c\x34\x53\x6d\x7e\x3c\xef\x9b\xc5\x75\x4f\xa2\xe5\x7f\xe4\xa8\x20\xa6\x3a\x74\x5d\x3f\x0e\xc6\x47\x95\x92\x40\x67\x6e\xfd\xa7\xc1\x8a\xc4\x7d\xc8\x74\xca\xef\x5d\x58\x6f\x1d\x44\x7d\x73\x18\x20\x19\x49\x8b\x54\x7a\x7e\xbd\xf6\x81\x65\xef\xd4\x06\x0c\x09\x19\x65\x28\x8d\x8e\x3f\x9a\x2f\xd1\xb6\x8c\x83\xc2\xb2\xc3\x09\x35\xf3\x74\x2b\x53\xd5\xb2\x5d\x50\x27\xc5\x7b\x44\xe6\x0e\xf4\x29\xb5\xa0\x57\x73\x67\xea\xfc\x5a\xfb\x1f\x78\x38\x75\x20\x92\x52\xb8\x68\xa7\x45\x6e\xfb\x32\x06\x6b\xbf\xc9\xf7\x77\xa3\x2f\xd9\xb2\xb6\x2a\x96\xb0\x5c\x7d\x73\x8a\xad\x57\x5b\x79\xf8\xd2\xb3\x8f\x93\x21\xdb\xa6\xbb\x0b\x1b\xf1\xba\x80\x7e\x39\x80\x4c\xcf\x1c\x3d\xeb\x68\xd8\x9c\x05\x8c\xa5\x04\x47\x3b\x6b\xb9\x6d\xb4\x0d\xdb\xd4\x5d\xc6\xbc\xf2\xa9\x6e\x8f\x75\x04\xe3\xe4\x0e\xc2\xb0\x09\x59\x8b\x51\xa2\x14\x48\xce\x9e\x4c\x97\x18\xaf\xb8\x4d\xad\xc1\x09\x5f\xd6\xed\x78\x29\x77\x6f\x7d\x27\x5a\xf7\x52\x56\x31\xb5\x5d\x7f\xb4\x1d\x73\xb6\x38\x68\x95\xb8\x25\xdd\x55\xc6\xa0\xfe\xcb\x5f\xf9\x33\x38\xa0\x45\x96\xdf\x73\xfd\x05\xc6\xf4\x87\xc1\x67\x6a\x12\xb6\xe1\x93\xfd\x35\x94\x0e\x68\x22\xdb\xd9\x6c\xfc\x8c\xb6\x61\x9a\x7f\x0d\xdd\x66\x7a\x15\x12\xd6\x02\xf6\xd8\xa0\x58\x44\x5e\x61\x6e\x97\xa1\x7a\xbf\x0b\x63\xa5\x56\xf0\x81\x24\x09\xcb\x11\xa9\x83\x3b\xe6\x87\x7a\xf7\x47\x72\x5f\xf2\x89\x1f\x36\x72\xab\x47\xf8\xd9\x35\xb4\x2a\x5d\xda\xef\xc1\xe0\x45\xe3\xc9\x56\xca\xa1\xf6\x87\x2d\xf5\xc7\x31\x65\x9f\xbd\x2a\x05\x00\x36\xe0\x4f\x95\xc7\xb4\x8b\xac\x76\xa9\xf7\xcb\xed\x43\xf2\x8c\xb1\x64\xe1\x5d\x75\x8d\xbf\xb4\x89\x62\xda\xa1\xa5\x09\x7a\x8a\xfa\x64\x4e\x6d\x4d\x2a\x3e\x81\xac\x82\xda\x6a\x5f\xb1\xa6\x36\x50\x9c\xcf\x91\x1d\xc6\x19\x42\xc5\x6a\x8e\xbf\x61\x72\x08\x68\xd8\x98\x8c\x98\x40\xf7\xd2\xff\x7d\xc7\xbe\x58\x9c\xda\x47\xc4\x61\xb8\xcc\xcd\xba\xa1\x60\xae\x6c\xf9\x5e\xbd\xa1\x26\x98\x40\x20\x90\x7e\x6b\x7d\x49\xf4\xa0\x22\xd4\x46\x32\xd6\x6b\x40\x92\x6f\xd8\x3e\x52\x57\x6d\x5d\xa9\xe9"[..])),
},
expected_sighash: *b"\xdc\x19\x2e\x2f\x8e\x0f\xe4\x72\x26\x25\xbc\x1a\x05\x7c\x63\x63\x8c\xdc\x83\xce\xcc\xb1\x5f\x94\x82\xdc\x33\x0b\x1f\xe4\xd7\x16",
},
@@ -560,7 +643,7 @@ mod tests {
gas_limit: b"\xc5\x25\xc5\xda\x78\x6a\x5a\x10",
recipient: b"\x91\x46\xd3\xff\x0e\xe8\x08\x51\xd5\xa9\xa9\xa9\xac\x0b\xdd\x29\x81\xe6\x15\xfe",
value: b"\x45\x0f\x80\xe1\x37\x53\x81\x42\x29\x67\x1a",
- data: b"\x5a\xb4\xb4\x26\xd8\x49\xa1\x9f\x81\x49\x15\x43\xbb\x4a\x27\xcf\x8a\x06\xc9\x88\xf1\x25\x04\x7c\x2a\x02\x8c\xd2\x76\x3c\xfe\x9b\xd7\x66\x2d\xc4\x9d\x78\x72\x1d\xe0\x6a\xfd\xb1\x92\xb3\x95\xa3\xff\x3b\xfc\xfe\x0e\x9d\xda\x71\xef\x50\x09\x4c\x71\xf5\x79\xcf\xc2\xf7\xf6\x89\x61\x4c\xe7\x7e\x11\xcb\x76\x05\x59\x4c\xba\xf5\x0e\xf6\x41\xa1\xc2\x06\xe1\x0c\x3f\xa1\x77\xa0\x25\x2f\x25\xe1\x68\xd6\x4e\x0d\x8c\xa7\x5e\x0e\xe6\x13\x52\xda\x46\xc0\xfc\xda\xc1\x93\x9f\x47\x4e\x10\xa7\x9b\x6e\x12\x0a\x43\xce\xcf\x8e\x5b\x67\x5a\xda\x10\x30\x7b\x06\x6f\x31\x56\x2e\xf4\xc2\xe2\xf1\xcc\x6e\x5b\x18\xaf\x05\x1f\xd9\x41\xcc\xa9\x49\xa8\x5a\xdc\xdf\xec\x4d\x56\x1a\xa6\xf0\xab\x10\xce\x21\x33\xcd\xee\xc5\xef\x45\xe9\x94\x6e\x46\x95\x43\x02\x7c\x0c\x57\x3e\x13\xda\x78\xcf\x54\xf1\xe3\xaa\x2b\x22\xbf\x53\xa9\x77\xd6\xa0\xcd\x2a\x2b\x64\x46\xcf\xce\x2e\x7f\xec\xa9\x92\xb7\xae\xae\x12\x99\xe0\xa2\xf2\x4c\x00\xf8\xb4\xcd\xd3\x33\x6d\x3e\x26\xd8\x2b\x96\xae\xf4\x1b\xc7\x1e\x27\xc5\x5b\x94\x1d\x9e\xce\xf9\x5f\x65\x65\x10\x31\x19\xd5\xb7\xda\x48\x7b\x2f\xe0\x04\xd6\x77\x13\xcc\xb7\x79\xaa\x39\x75\xe9\x86\xdc\xb1\x00\xf6\x00\xc3\x0b\xc2\x50\xd5\x40\xa0\xa2\xf0\x35\xe3\xbf\x6f\x64\x20\x69\x85\xf1\xc1\x69\xce\xc3\x93\xfe\x98\x9c\xe3\x12\x26\x24\x50\xca\x05\x77\xbe\x24\x6a\xad\x1a\xb2\xba\xae\x7f\x22\xdd\xcb\x83\xc2\x15\x2e\x03\x7e\xf7\x43\xb4\x99\xb9\x17\x8b\xc4\x75\x79\x0b\x78\x16\xd3\x18\x1d\xcf\xc7\x23\x27\x37\x71\xca\xef\x10\x3b\xc7\x2f\x8b\xb8\x7c\xa2\xa3\x19\x69\x6b\x3d\xb5\xaa\xc3\xf7\x7e\xcc\xd5\x28\xc5\x8f\x90\xfb\x4f\xc8\x7c\xfe\x94\xa5\x54\x32\x44\x04\x72\x99\x5b\x54\x77\x49\xe3\xf4\xcb\x97\xba\x1d\xab\x77\x03\x27\x56\x3f\x5e\x92\x87\xf9\x14\x43\x85\x5b\xf7\x7a\xa7\xdd\xea\x5d\xac\x8c\x6a\xc2\x1e\xa8\x54\xf8\x71\x09\x0c\x9c\x80\x1a\xc0\x47\x0b\x42\x43\x1e\x06\x2e\x7b\xb2\xb8\x31\x4f\xdb\x00\xaa\x69\x58\xc4\x60\xa1\xc7\x44\x50\x37\xff\xd9\x29\x4d\x8f\xa3\xfe\xbb\xfe\x70\xc4\xd1\x01\x4e\xfa\x46\xd2\xf0\x86\x83\xe4\x20\x68\xa3\xc2\x25\xae\xe5\xce\xec\xb4\xdd\xca\x22\xe1\xf1\xf5\xdf\xc4\xfe\x77\xca\x8b\x84\x61\x9c\x03\x28\x74\x7b\x17\x99\x2d\x0a\x92\xee\xd5\xe8\xdc\xe1\xe4\x48\xcf\x98\x01\x39\xeb\xa0\x61\xc9\x2a\xb4\xeb\x17\x2e\xf4\xa1\x83\xe8\xea\x8a\xf0\x0b\x42\x23\x11\x76\xfc\xd2\x77\x11\xfb\x56\x89\xc7\x75\x9f\x29\x1e\x37\x02\xf6\x86\x35\xe9\x46\xdc\x4e\xc4\xfb\x0e\x38\x88\xc3\x94\xa9\x2d\xa6\xba\x98\xa1\x2f\x22\xdf\xd6\x69\x22\xbe\x11\x1f\xf0\x7c\xd8\x9b\x79\x97\x8f\xfa\x3c\x4b\x79\x58\x32\x58\xc3\x61\xaf\x6e\x65\x89\x86\x91\xb1\xff\xee\xeb\x51\xb4\xbe\xcc\xc3\xe6\x2e\x34\x49\x63\x21\x0a\x39\xbf\x1a\x2f\xef\x5c\x54\xa6\xf6\x11\xd0\x04\xac\x97\xfb\x60\xa3\x40\x79\xb7\x10\xf2\x95\x92\x25\x9e\x4a\xc3\x4a\xf8\x14\x74\xbe\x26\x78\x84\xc9\xfe\xd1\x33\x30\x5c\xc4\x06\x29\xce\xa8\x74\x18\x91\xf6\xcd\x03\x9d\x7e\x03\xcc\xf7\x07\xd8\x04\x00\xbd\x0e\xf9\x1c\x14\x80\x7d\xb1\xd4\x47\xc6\xa7\xba\x61\x25\x24\x8b\xda\x71\x87\x4e\xec\x27\xfc\x9a\x97\x3a\x7b\x74\xa9\x1f\xa5\x49\x46\x26\x41\x11\x3a\x2c\x40\x2d\x87\xf6\xa6\xc1\x58\x75\x93\xe9\x14\x8e\xc7\x72\xd7\x53\xca\x98\x6c\x4e\x34\xaf\x6e\xa8\x6d\x54\xb4\xe4\xc0\x0d\x91\x5f\x0c\x19\xe2\xc1\x37\x66\x12\xa6\x62\x6f\x22\xb4\x78\xba\xd5\xa2\x96\x78\x27\xf1\x25\x43\x81\x6f\x6d\x21\x49\x76\xbc\x50\xcf\x91\xca\x35\xff\x04\xbd\x6d\x4b\x2a\xdf\xef\x3e\xa2\x30\xfc\x04\x26\x6a\xfc\xdd\x95\xb1\x5e\x8c\xd2\xb1\x00\x18\x30\x76\xcf\x78\x38\x52\x2a\xf9\xe8\xea\x29\x5b\x54\x43\x55\x66\xd5\xff\x46\xbb\xce\x6d\x6c\xbc\x38\x3f\x07\x0f\x36\xf6\x9d\x11\xa6\xa9\xf1\x56\xa2\x68\xc6\xd1\x79\xe5\x5a\x64\xef\xdd\xf0\x0e\x9e\x16\xad\x30\xe9\x68\x45\xe0\x36\x5b\x6f\x88\x84\xe5\xcb\x4b\xde\x4e\x7f",
+ data: RefCell::new(SimpleProducer::new(&b"\x5a\xb4\xb4\x26\xd8\x49\xa1\x9f\x81\x49\x15\x43\xbb\x4a\x27\xcf\x8a\x06\xc9\x88\xf1\x25\x04\x7c\x2a\x02\x8c\xd2\x76\x3c\xfe\x9b\xd7\x66\x2d\xc4\x9d\x78\x72\x1d\xe0\x6a\xfd\xb1\x92\xb3\x95\xa3\xff\x3b\xfc\xfe\x0e\x9d\xda\x71\xef\x50\x09\x4c\x71\xf5\x79\xcf\xc2\xf7\xf6\x89\x61\x4c\xe7\x7e\x11\xcb\x76\x05\x59\x4c\xba\xf5\x0e\xf6\x41\xa1\xc2\x06\xe1\x0c\x3f\xa1\x77\xa0\x25\x2f\x25\xe1\x68\xd6\x4e\x0d\x8c\xa7\x5e\x0e\xe6\x13\x52\xda\x46\xc0\xfc\xda\xc1\x93\x9f\x47\x4e\x10\xa7\x9b\x6e\x12\x0a\x43\xce\xcf\x8e\x5b\x67\x5a\xda\x10\x30\x7b\x06\x6f\x31\x56\x2e\xf4\xc2\xe2\xf1\xcc\x6e\x5b\x18\xaf\x05\x1f\xd9\x41\xcc\xa9\x49\xa8\x5a\xdc\xdf\xec\x4d\x56\x1a\xa6\xf0\xab\x10\xce\x21\x33\xcd\xee\xc5\xef\x45\xe9\x94\x6e\x46\x95\x43\x02\x7c\x0c\x57\x3e\x13\xda\x78\xcf\x54\xf1\xe3\xaa\x2b\x22\xbf\x53\xa9\x77\xd6\xa0\xcd\x2a\x2b\x64\x46\xcf\xce\x2e\x7f\xec\xa9\x92\xb7\xae\xae\x12\x99\xe0\xa2\xf2\x4c\x00\xf8\xb4\xcd\xd3\x33\x6d\x3e\x26\xd8\x2b\x96\xae\xf4\x1b\xc7\x1e\x27\xc5\x5b\x94\x1d\x9e\xce\xf9\x5f\x65\x65\x10\x31\x19\xd5\xb7\xda\x48\x7b\x2f\xe0\x04\xd6\x77\x13\xcc\xb7\x79\xaa\x39\x75\xe9\x86\xdc\xb1\x00\xf6\x00\xc3\x0b\xc2\x50\xd5\x40\xa0\xa2\xf0\x35\xe3\xbf\x6f\x64\x20\x69\x85\xf1\xc1\x69\xce\xc3\x93\xfe\x98\x9c\xe3\x12\x26\x24\x50\xca\x05\x77\xbe\x24\x6a\xad\x1a\xb2\xba\xae\x7f\x22\xdd\xcb\x83\xc2\x15\x2e\x03\x7e\xf7\x43\xb4\x99\xb9\x17\x8b\xc4\x75\x79\x0b\x78\x16\xd3\x18\x1d\xcf\xc7\x23\x27\x37\x71\xca\xef\x10\x3b\xc7\x2f\x8b\xb8\x7c\xa2\xa3\x19\x69\x6b\x3d\xb5\xaa\xc3\xf7\x7e\xcc\xd5\x28\xc5\x8f\x90\xfb\x4f\xc8\x7c\xfe\x94\xa5\x54\x32\x44\x04\x72\x99\x5b\x54\x77\x49\xe3\xf4\xcb\x97\xba\x1d\xab\x77\x03\x27\x56\x3f\x5e\x92\x87\xf9\x14\x43\x85\x5b\xf7\x7a\xa7\xdd\xea\x5d\xac\x8c\x6a\xc2\x1e\xa8\x54\xf8\x71\x09\x0c\x9c\x80\x1a\xc0\x47\x0b\x42\x43\x1e\x06\x2e\x7b\xb2\xb8\x31\x4f\xdb\x00\xaa\x69\x58\xc4\x60\xa1\xc7\x44\x50\x37\xff\xd9\x29\x4d\x8f\xa3\xfe\xbb\xfe\x70\xc4\xd1\x01\x4e\xfa\x46\xd2\xf0\x86\x83\xe4\x20\x68\xa3\xc2\x25\xae\xe5\xce\xec\xb4\xdd\xca\x22\xe1\xf1\xf5\xdf\xc4\xfe\x77\xca\x8b\x84\x61\x9c\x03\x28\x74\x7b\x17\x99\x2d\x0a\x92\xee\xd5\xe8\xdc\xe1\xe4\x48\xcf\x98\x01\x39\xeb\xa0\x61\xc9\x2a\xb4\xeb\x17\x2e\xf4\xa1\x83\xe8\xea\x8a\xf0\x0b\x42\x23\x11\x76\xfc\xd2\x77\x11\xfb\x56\x89\xc7\x75\x9f\x29\x1e\x37\x02\xf6\x86\x35\xe9\x46\xdc\x4e\xc4\xfb\x0e\x38\x88\xc3\x94\xa9\x2d\xa6\xba\x98\xa1\x2f\x22\xdf\xd6\x69\x22\xbe\x11\x1f\xf0\x7c\xd8\x9b\x79\x97\x8f\xfa\x3c\x4b\x79\x58\x32\x58\xc3\x61\xaf\x6e\x65\x89\x86\x91\xb1\xff\xee\xeb\x51\xb4\xbe\xcc\xc3\xe6\x2e\x34\x49\x63\x21\x0a\x39\xbf\x1a\x2f\xef\x5c\x54\xa6\xf6\x11\xd0\x04\xac\x97\xfb\x60\xa3\x40\x79\xb7\x10\xf2\x95\x92\x25\x9e\x4a\xc3\x4a\xf8\x14\x74\xbe\x26\x78\x84\xc9\xfe\xd1\x33\x30\x5c\xc4\x06\x29\xce\xa8\x74\x18\x91\xf6\xcd\x03\x9d\x7e\x03\xcc\xf7\x07\xd8\x04\x00\xbd\x0e\xf9\x1c\x14\x80\x7d\xb1\xd4\x47\xc6\xa7\xba\x61\x25\x24\x8b\xda\x71\x87\x4e\xec\x27\xfc\x9a\x97\x3a\x7b\x74\xa9\x1f\xa5\x49\x46\x26\x41\x11\x3a\x2c\x40\x2d\x87\xf6\xa6\xc1\x58\x75\x93\xe9\x14\x8e\xc7\x72\xd7\x53\xca\x98\x6c\x4e\x34\xaf\x6e\xa8\x6d\x54\xb4\xe4\xc0\x0d\x91\x5f\x0c\x19\xe2\xc1\x37\x66\x12\xa6\x62\x6f\x22\xb4\x78\xba\xd5\xa2\x96\x78\x27\xf1\x25\x43\x81\x6f\x6d\x21\x49\x76\xbc\x50\xcf\x91\xca\x35\xff\x04\xbd\x6d\x4b\x2a\xdf\xef\x3e\xa2\x30\xfc\x04\x26\x6a\xfc\xdd\x95\xb1\x5e\x8c\xd2\xb1\x00\x18\x30\x76\xcf\x78\x38\x52\x2a\xf9\xe8\xea\x29\x5b\x54\x43\x55\x66\xd5\xff\x46\xbb\xce\x6d\x6c\xbc\x38\x3f\x07\x0f\x36\xf6\x9d\x11\xa6\xa9\xf1\x56\xa2\x68\xc6\xd1\x79\xe5\x5a\x64\xef\xdd\xf0\x0e\x9e\x16\xad\x30\xe9\x68\x45\xe0\x36\x5b\x6f\x88\x84\xe5\xcb\x4b\xde\x4e\x7f"[..])),
},
expected_sighash: *b"\xd7\xfd\x49\xd4\x8c\x27\x02\xf4\xc1\xeb\x15\x36\xa0\x6c\x9a\xfd\x94\xcb\x5b\x87\xd4\xb2\xec\x74\x16\xe0\x0c\x27\x8f\x3f\x41\xc7",
},
@@ -573,7 +656,7 @@ mod tests {
gas_limit: b"\x80\xfe\x68\x73\xa4\x6d\x31\xcc",
recipient: b"\x2b\x84\x39\xc0\x3a\x7a\x8f\x7a\x60\x36\x7b\x37\xf4\x4b\xcd\xed\x5c\x92\x22\x7d",
value: b"\xf4\x54\x03\x9d\x5c",
- data: b"\x5a\xa8\xae\xaa\xe9\xad\x21\xe3\xad\x25\xe5\xf3\xca\x7d\xc7\x8c\x52\xad\x6b\xec\x56\x3d\x1d\xe4\x4a\x25\xea\x2d\x71\x23\x58\x5d\x45\x96\x5e\xfa\x9a\xe5\x51\xf3\xda\xea\x5c\x03\x55\x36\x7c\x00\x71\xc0\x08\x34\x7f\x5a\x07\xc1\x03\xa1\x21\x95\x18\xf5\x33\x62\xb8\x80\xf3\x49\xe9\x4d\x4a\x7a\x6b\x17\xcd\xf6\x3a\x35\xe4\xf4\x88\xcb\x5f\xc2\xf9\x49\x14",
+ data: RefCell::new(SimpleProducer::new(&b"\x5a\xa8\xae\xaa\xe9\xad\x21\xe3\xad\x25\xe5\xf3\xca\x7d\xc7\x8c\x52\xad\x6b\xec\x56\x3d\x1d\xe4\x4a\x25\xea\x2d\x71\x23\x58\x5d\x45\x96\x5e\xfa\x9a\xe5\x51\xf3\xda\xea\x5c\x03\x55\x36\x7c\x00\x71\xc0\x08\x34\x7f\x5a\x07\xc1\x03\xa1\x21\x95\x18\xf5\x33\x62\xb8\x80\xf3\x49\xe9\x4d\x4a\x7a\x6b\x17\xcd\xf6\x3a\x35\xe4\xf4\x88\xcb\x5f\xc2\xf9\x49\x14"[..])),
},
expected_sighash: *b"\xc8\xaa\xdd\x44\x72\xa1\xa5\x71\x80\xb7\x8d\x18\x25\x70\xca\x82\x16\x6b\x13\x4e\x3b\xf7\x48\x20\xe3\xc9\x7c\xca\x47\xfb\x83\x2c",
},
@@ -586,7 +669,7 @@ mod tests {
gas_limit: b"\xf0\xa1\x5f\xaf\x66\x22\x4f\xa5",
recipient: b"\x20\xa9\x05\x00\x96\x48\x8e\xfa\x2c\x83\x79\xe8\x95\xa4\x63\x8b\x70\x29\x5c\xf7",
value: b"\x64\x52\xd6\xcd\xc1\x19\x3a\xd9\x1a\xcc\x26",
- data: b"\xd8\x7f\x68\x43\x2e\xf9\x06\x6b\x68\xe2\xba\xf7\x3d\x44\x4b\xb8\x15\xbb\xbc\x3c\xef\xbd\xe2\xd9\x3f\x5e\x15\x69\x8f\xe1\x89\xed\xa1\x65\x44\x7f\x8b\xf3\x2d\x0a\x0b\x8e\xab\x5a\xcf\xb0\x4c\x05\x27\xb7\xaf\xd9\xea\x3e\x39\x58\xf6\x3b\x45\xaf\x41\xfc\xcf\x8a\x8b\x6a\x42\x3e\x79\xd9\x5a\x6a\xcd\xba\x6b\x8a\x2c\x13\xb3\x79\x49\x14\xbd\x61\xa6\xe7\x9f\x28\xd7\x42\x69\x7c\x7f\x82\x35\xec\x39\x06\xa6\x6c\x3f\x5a\x84\x6a\xe5\x42\xda\x08\x6c\xb9\x0c\x09\x35\x2c\x62\x40\xb0\x04\x67\x10\xdd\x85\x2f\x91\xc6\x35\x40\x02\x7d\x95\x8c\x35\xab\x4e\x2b\x85\x48\xf8\x68\xcd\x37\x59\x01\xcf\xd7\x19\x41\x9e\x12\xe2\x3e\xb1\x02\x0c\x93\x79\xfd\x61\xdf\x38\x06\x30\x05\xa8\xcb\x1e\xb0\x08\x78\xf0\x4c\xbc\xda\xdc\xd1\x48\xc0\xa9\xa0\xcf\xe0\xbf\xb6\xf1\x86\x4d\xc6\xff\x50\x1b\x2f\xae\x8a\x48\x7a\x13\xad\xac\xaf\x42\xb0\x5c\x9e\x69\x32\x91\x39\xe8\x93\x06\x68\x48\xa8\xc2\x68\xa1\x2e\x32\x31\x53\x1a\x0b\x2a\xf2\x59\xae\x69\x2f\xfe\xda\x2e\xb0\x8c\x7f\x7c\x7b\xb2\xe5\xb3\x86\x3b\xbe\x25\x7c\x84\x7e\x04\x13\xdc\x37\xa2\x1b\x02\x2e\xd6\xac\x78\x3b\xc6\xea\x60\x79\x35\x6f\xb8\x56\x8f\xb8\x15\xc2\xe0\xec\xd1\x85\x70\xa9\x80\xab\x66\x32\x52\x69\x63\x0a\x9d\xa8\xfe\x73\xfe\x03\x91\x82\xeb\xc6\x6f\xa8\xf8\xb0\xb5\xb2\x2b\xc1\x70\x31\x2c\x72\xfc\x19\x36\xb1\x89\x54\xd4\xa2\x90\xfe\x7c\x85\xa1\xa1\x98\x68\x60\xe9\x04\xdc\x49\xaa\x5b\x25\xa6\x68\x10\x4b\x9a\x5d\x92\x89\xbe\x09\x6a\xb4\x87\xc3\xfa\x90\x01\x93\x81\x2f\x67\xa0\x62\xe8\xe0\x6a\xa3\x3c\x08\xb0\x20\x85\x2a\xe1\x4e\x6c\x36\x2c\x33\x60\x6e\xe1\x76\x3e\x8d\xd8\xca\x7a\x15\x65\x7a\xba\xd6\x09\xa6\x5b\x15\x68\x11\x2f\xd0\xa8\xea\xd1\x0f\xd9\xa8\x6a\x1f\x1e\x37\x66\xeb\x92\x49\x16\x10\x48\x4b\xe4\x54\x7c\x12\x6e\x97\x65\x3a\xe8\xf9\xd0\xa6\xca\x2e\xbd\x31\x15\xcd\x4e\x06\xc1\xfa\xe4\x16\x62\xb7\x1b\xe3\xf5\x82\x0c\x0a\x28\x70\x43\x4a\x84\xb7\x4e\x57\x1b\xd9\x22\xd1\x8d\x62\x49\x34\xcd\x06\xda\x79\x17\xb9\x08\xe5\x16\x38\xe3\x44\x29\xa8\x0e\xe0\x7d\xee\x9b\x8d\xc2\x65\xd2\x72\x96\xff\x36\x45\x5f\xd1\xf8\x3a\xbd\x82\x13\xf1\xc1\xd4\x36\xdb\x61\x5d\x7c\x38\x6e\x21\x48\x3f\x91\x23\x3d\x08\x37\x33\xce\xb9\x7e\x70\x16\x3c\x86\xe4\x29\xe2\x76\x9b\xda\x24\x2f\xac\x3b\x61\x66\x00\x5c\x9b\x59\x92\xc3\x2e\xbc\x57\x5c\xc0\xd5\x8b\x24\x13\xb0\x8d\x8f\xf7\x59\xc5\x11\x8d\x58\xe3\x2e\x44\xdd\xef\x11\x2f\xb7\xb9\x3c\x33\x5d\x88\x14\x00\x12\x49\x01\xbc\x36\x11\xc6\x74\x23\xfb\x86\x9a\x1c\xfb\x9b\x6a\x90\xe4\x61\x0d\x8a\xab\x80\xc9\xa7\x06\xb2\x23\x5b\xaf\xf9\x32\x55\x0a\xce\x88\x5a\x55\xf1\x2e\x35\xff\xd0\xca\xe2\xbc\x51\xc1\x12\x93\x35\x7f\x8e\x55\x66\x13\x91\xb0\x5a\x51\xa8\xb4\x71\xe8\xfa\x4c\x66\x3b\xc3\x7f\x3b\x6a\xe8\x1f\x97\x3e\xcf\x99\xde\xa9\x86\x99\x80\xea\x62\x56\x13\xf8\x45\xc3\xfc\x5f\x56\x43\x90\x8e\x3c\xd1\x4b\x71\xed\x89\x9f\x76\xae\x55\x25\xcd\x2e\xe9\x84\xec\x9f\xdf\x25\x47\xa5\x16\x75\x3e\x35\x8e\x0d\x45\x88\x1a\x26\xf4\x27\x06\xc3\x8c\xcf\xbd\xad\xcf\x1a\x97\x7b\xbe\x2c\xcf\xed\xaa\xb0\xf5\x50\x43\xc8\xb3\xab\xf3\x1c\xd9\xa9\x20\xb4\x66\x62\xc2\x4e\xd0\xcd\xf4\x71\xa1\xf3\x85\xf3\x35\x66\x1a\xb4\x3e\x5b\xf9\xb3\xcd\x32\x04\xd6\x24\x8e\x3e\xa6\xcf\x4b\x34\xc1\x67\x6c\x0c\x18\x5a\x9d\x41\xbe\xbb\xb1\x36\xc1\xab\x74\x18\xdf\xe7\xd1\xe1\x43\xb0\xe4\x4c\x6c\x05\x8c\x4c",
+ data: RefCell::new(SimpleProducer::new(&b"\xd8\x7f\x68\x43\x2e\xf9\x06\x6b\x68\xe2\xba\xf7\x3d\x44\x4b\xb8\x15\xbb\xbc\x3c\xef\xbd\xe2\xd9\x3f\x5e\x15\x69\x8f\xe1\x89\xed\xa1\x65\x44\x7f\x8b\xf3\x2d\x0a\x0b\x8e\xab\x5a\xcf\xb0\x4c\x05\x27\xb7\xaf\xd9\xea\x3e\x39\x58\xf6\x3b\x45\xaf\x41\xfc\xcf\x8a\x8b\x6a\x42\x3e\x79\xd9\x5a\x6a\xcd\xba\x6b\x8a\x2c\x13\xb3\x79\x49\x14\xbd\x61\xa6\xe7\x9f\x28\xd7\x42\x69\x7c\x7f\x82\x35\xec\x39\x06\xa6\x6c\x3f\x5a\x84\x6a\xe5\x42\xda\x08\x6c\xb9\x0c\x09\x35\x2c\x62\x40\xb0\x04\x67\x10\xdd\x85\x2f\x91\xc6\x35\x40\x02\x7d\x95\x8c\x35\xab\x4e\x2b\x85\x48\xf8\x68\xcd\x37\x59\x01\xcf\xd7\x19\x41\x9e\x12\xe2\x3e\xb1\x02\x0c\x93\x79\xfd\x61\xdf\x38\x06\x30\x05\xa8\xcb\x1e\xb0\x08\x78\xf0\x4c\xbc\xda\xdc\xd1\x48\xc0\xa9\xa0\xcf\xe0\xbf\xb6\xf1\x86\x4d\xc6\xff\x50\x1b\x2f\xae\x8a\x48\x7a\x13\xad\xac\xaf\x42\xb0\x5c\x9e\x69\x32\x91\x39\xe8\x93\x06\x68\x48\xa8\xc2\x68\xa1\x2e\x32\x31\x53\x1a\x0b\x2a\xf2\x59\xae\x69\x2f\xfe\xda\x2e\xb0\x8c\x7f\x7c\x7b\xb2\xe5\xb3\x86\x3b\xbe\x25\x7c\x84\x7e\x04\x13\xdc\x37\xa2\x1b\x02\x2e\xd6\xac\x78\x3b\xc6\xea\x60\x79\x35\x6f\xb8\x56\x8f\xb8\x15\xc2\xe0\xec\xd1\x85\x70\xa9\x80\xab\x66\x32\x52\x69\x63\x0a\x9d\xa8\xfe\x73\xfe\x03\x91\x82\xeb\xc6\x6f\xa8\xf8\xb0\xb5\xb2\x2b\xc1\x70\x31\x2c\x72\xfc\x19\x36\xb1\x89\x54\xd4\xa2\x90\xfe\x7c\x85\xa1\xa1\x98\x68\x60\xe9\x04\xdc\x49\xaa\x5b\x25\xa6\x68\x10\x4b\x9a\x5d\x92\x89\xbe\x09\x6a\xb4\x87\xc3\xfa\x90\x01\x93\x81\x2f\x67\xa0\x62\xe8\xe0\x6a\xa3\x3c\x08\xb0\x20\x85\x2a\xe1\x4e\x6c\x36\x2c\x33\x60\x6e\xe1\x76\x3e\x8d\xd8\xca\x7a\x15\x65\x7a\xba\xd6\x09\xa6\x5b\x15\x68\x11\x2f\xd0\xa8\xea\xd1\x0f\xd9\xa8\x6a\x1f\x1e\x37\x66\xeb\x92\x49\x16\x10\x48\x4b\xe4\x54\x7c\x12\x6e\x97\x65\x3a\xe8\xf9\xd0\xa6\xca\x2e\xbd\x31\x15\xcd\x4e\x06\xc1\xfa\xe4\x16\x62\xb7\x1b\xe3\xf5\x82\x0c\x0a\x28\x70\x43\x4a\x84\xb7\x4e\x57\x1b\xd9\x22\xd1\x8d\x62\x49\x34\xcd\x06\xda\x79\x17\xb9\x08\xe5\x16\x38\xe3\x44\x29\xa8\x0e\xe0\x7d\xee\x9b\x8d\xc2\x65\xd2\x72\x96\xff\x36\x45\x5f\xd1\xf8\x3a\xbd\x82\x13\xf1\xc1\xd4\x36\xdb\x61\x5d\x7c\x38\x6e\x21\x48\x3f\x91\x23\x3d\x08\x37\x33\xce\xb9\x7e\x70\x16\x3c\x86\xe4\x29\xe2\x76\x9b\xda\x24\x2f\xac\x3b\x61\x66\x00\x5c\x9b\x59\x92\xc3\x2e\xbc\x57\x5c\xc0\xd5\x8b\x24\x13\xb0\x8d\x8f\xf7\x59\xc5\x11\x8d\x58\xe3\x2e\x44\xdd\xef\x11\x2f\xb7\xb9\x3c\x33\x5d\x88\x14\x00\x12\x49\x01\xbc\x36\x11\xc6\x74\x23\xfb\x86\x9a\x1c\xfb\x9b\x6a\x90\xe4\x61\x0d\x8a\xab\x80\xc9\xa7\x06\xb2\x23\x5b\xaf\xf9\x32\x55\x0a\xce\x88\x5a\x55\xf1\x2e\x35\xff\xd0\xca\xe2\xbc\x51\xc1\x12\x93\x35\x7f\x8e\x55\x66\x13\x91\xb0\x5a\x51\xa8\xb4\x71\xe8\xfa\x4c\x66\x3b\xc3\x7f\x3b\x6a\xe8\x1f\x97\x3e\xcf\x99\xde\xa9\x86\x99\x80\xea\x62\x56\x13\xf8\x45\xc3\xfc\x5f\x56\x43\x90\x8e\x3c\xd1\x4b\x71\xed\x89\x9f\x76\xae\x55\x25\xcd\x2e\xe9\x84\xec\x9f\xdf\x25\x47\xa5\x16\x75\x3e\x35\x8e\x0d\x45\x88\x1a\x26\xf4\x27\x06\xc3\x8c\xcf\xbd\xad\xcf\x1a\x97\x7b\xbe\x2c\xcf\xed\xaa\xb0\xf5\x50\x43\xc8\xb3\xab\xf3\x1c\xd9\xa9\x20\xb4\x66\x62\xc2\x4e\xd0\xcd\xf4\x71\xa1\xf3\x85\xf3\x35\x66\x1a\xb4\x3e\x5b\xf9\xb3\xcd\x32\x04\xd6\x24\x8e\x3e\xa6\xcf\x4b\x34\xc1\x67\x6c\x0c\x18\x5a\x9d\x41\xbe\xbb\xb1\x36\xc1\xab\x74\x18\xdf\xe7\xd1\xe1\x43\xb0\xe4\x4c\x6c\x05\x8c\x4c"[..])),
},
expected_sighash: *b"\x9d\xe2\x17\xf5\xed\x62\xd5\x55\x23\x20\x0e\xd3\x63\x15\xad\x7e\xff\x3e\x9b\xae\x92\x93\x1e\x7f\x22\x69\xfc\x51\x61\x9f\xbc\x11",
},
@@ -599,7 +682,7 @@ mod tests {
gas_limit: b"\xfb\x14\x6d\x61\x9b\xea\x1f\x31",
recipient: b"\xf9\x52\x32\x45\xd4\x29\x15\xd9\x2a\x3c\x19\x50\xd0\x2d\xce\x4e\x0c\x1b\x4d\xa3",
value: b"\xa0\x89\xd4\x00\x85\x96\x58\xf1\x68\x47\x1f\x37",
- data: b"\x04\xfd\xac\xe6\xb3\x8e\xae\x35\x32\x30\xea\x8b\xfd\x92\x95\x15\xd9\xf1\xcd\x32\x25\x3f\x35\x39\xc9\x72\xc9\xba\x51\xd3\xc7\xf0\x93\x17\xb9\x52\x7f\x30\x9f\x75\xe4\xb0\x46\xe0\x65\x57\x3c\x28\x08\x7a\xa9\xab\x08\x1e\xbb\x22\xa7\xb1\xd8\x58\xb2\xa4\xc0\x41\x85\xa3\xef\x3b\x17\xd6\x10\x5c\xd1\xe9\xed\x0c\xa7\x92\x32\x82\xfa\x75\xeb\xfe\xfc\xd4\xb6\x40\x76\x47\x33\x20\xef\xac\xa4\xa5\xcd\xcd\x42\x43\x71\x10\x12\x19\x71\x64\x1c\xd9\xd7\xd5\x2d\x52\x2d\x4f\x3a\x58\x22\x6d\x4d\xeb\xb4\x4f\xfa\xb7\xea\x32\xd8\xdb\x66\x26\xf0\xe7\x9c\x42\x7b\x32\xa4\x74\x5e\x2c\xae\xf9\x69\x94\x56\xcc\xff\x04\xbb\x60\x65\xea\x42\xc6\x5a\x57\xfe\xc2\xdf\x5b\x59\x93\x4a\x31\xe0\xc8\xb3\x18\x50\xc6\x39\x86\x5c\x55\xff\x06\xe2\xcf\x2a\xf9\xd4\x8b\x15\xe4\xd9\x78\x3d\x9b\x32\xf9\xa5\xde\x54\x6c\x6d\x67\x48\xf0\x20\x68\x41\xaf\x9f\x03\x4c\xba\x67\x0b\x7c\x0f\x31\xaa\x4f\xda\xdf\x63\x77\x74\xf2\x21\x16\x98\xe0\x52\xda\xfe\x55\x93\xa4\x2e\x77\xf2\xdb\xca\x50\xc9\x41\xe0\x86\x58\xce\x1b\xb1\xae\x60\xce\x0b\x4d\xbb\xf7\xd8\x2b\xcc\x4a\xad\xde\x70\x10\x2d\x62\x33\xe6\x56\x12\x93\xaa\x4f\x9a\x15\xb9\xbf\xed\x77\x1d\x09\xcd\x6e\xb8\xad\x7e\x1a\xa0\xc2\x9f\x7d\x58\xf0\xb9\x9b\xea\x2d\xcf\x3a\xc9\x45\x7b\x3b\x8d\xa2\x88\x59\xc0\xb9\x6b\xe0\xe5\xcf\x77\xa6\x8c\x5a\x9d\xe6\x39\xe4\x3b\x84\x7a\xce\xc3\x3e\x28\xd8\xa9\x7d\xa0\xbf\x6d\x35\x94\xd7\x7e\xa3\x89\xa1\xba\x17\x66\x62\x93\xd7\x6d\x99\xaa\xb6\xc7\x40\x4a\x1e\x01\xf4\x60\xcb\xce\x69\x7d\x45\x7e\xc3\x55\x01\x59\x32\x28\x7a\xed\x4f\x0f\x22\xe4\x76\x03\xcf\x2c\xa6\x77\xe2\xf9\xd1\x3b\x88\x1c\xf0\xdc\x11\x2b\x07\x7a\x18\xe4\x93\xbb\xde\x43\x86\x2c\x98\x5d\x92\xbb\x4d\x18\x8f\x27\x14\x12\x07\x05\x11\xd9\x05\xbd\x13\xc1\x54\x4c\xba\x9a\x9c\xea",
+ data: RefCell::new(SimpleProducer::new(&b"\x04\xfd\xac\xe6\xb3\x8e\xae\x35\x32\x30\xea\x8b\xfd\x92\x95\x15\xd9\xf1\xcd\x32\x25\x3f\x35\x39\xc9\x72\xc9\xba\x51\xd3\xc7\xf0\x93\x17\xb9\x52\x7f\x30\x9f\x75\xe4\xb0\x46\xe0\x65\x57\x3c\x28\x08\x7a\xa9\xab\x08\x1e\xbb\x22\xa7\xb1\xd8\x58\xb2\xa4\xc0\x41\x85\xa3\xef\x3b\x17\xd6\x10\x5c\xd1\xe9\xed\x0c\xa7\x92\x32\x82\xfa\x75\xeb\xfe\xfc\xd4\xb6\x40\x76\x47\x33\x20\xef\xac\xa4\xa5\xcd\xcd\x42\x43\x71\x10\x12\x19\x71\x64\x1c\xd9\xd7\xd5\x2d\x52\x2d\x4f\x3a\x58\x22\x6d\x4d\xeb\xb4\x4f\xfa\xb7\xea\x32\xd8\xdb\x66\x26\xf0\xe7\x9c\x42\x7b\x32\xa4\x74\x5e\x2c\xae\xf9\x69\x94\x56\xcc\xff\x04\xbb\x60\x65\xea\x42\xc6\x5a\x57\xfe\xc2\xdf\x5b\x59\x93\x4a\x31\xe0\xc8\xb3\x18\x50\xc6\x39\x86\x5c\x55\xff\x06\xe2\xcf\x2a\xf9\xd4\x8b\x15\xe4\xd9\x78\x3d\x9b\x32\xf9\xa5\xde\x54\x6c\x6d\x67\x48\xf0\x20\x68\x41\xaf\x9f\x03\x4c\xba\x67\x0b\x7c\x0f\x31\xaa\x4f\xda\xdf\x63\x77\x74\xf2\x21\x16\x98\xe0\x52\xda\xfe\x55\x93\xa4\x2e\x77\xf2\xdb\xca\x50\xc9\x41\xe0\x86\x58\xce\x1b\xb1\xae\x60\xce\x0b\x4d\xbb\xf7\xd8\x2b\xcc\x4a\xad\xde\x70\x10\x2d\x62\x33\xe6\x56\x12\x93\xaa\x4f\x9a\x15\xb9\xbf\xed\x77\x1d\x09\xcd\x6e\xb8\xad\x7e\x1a\xa0\xc2\x9f\x7d\x58\xf0\xb9\x9b\xea\x2d\xcf\x3a\xc9\x45\x7b\x3b\x8d\xa2\x88\x59\xc0\xb9\x6b\xe0\xe5\xcf\x77\xa6\x8c\x5a\x9d\xe6\x39\xe4\x3b\x84\x7a\xce\xc3\x3e\x28\xd8\xa9\x7d\xa0\xbf\x6d\x35\x94\xd7\x7e\xa3\x89\xa1\xba\x17\x66\x62\x93\xd7\x6d\x99\xaa\xb6\xc7\x40\x4a\x1e\x01\xf4\x60\xcb\xce\x69\x7d\x45\x7e\xc3\x55\x01\x59\x32\x28\x7a\xed\x4f\x0f\x22\xe4\x76\x03\xcf\x2c\xa6\x77\xe2\xf9\xd1\x3b\x88\x1c\xf0\xdc\x11\x2b\x07\x7a\x18\xe4\x93\xbb\xde\x43\x86\x2c\x98\x5d\x92\xbb\x4d\x18\x8f\x27\x14\x12\x07\x05\x11\xd9\x05\xbd\x13\xc1\x54\x4c\xba\x9a\x9c\xea"[..])),
},
expected_sighash: *b"\x04\x8a\xa1\x62\x6b\x62\x7d\x52\x8a\xb6\xc9\x6d\x77\x90\x9e\xdf\xae\x7b\x7e\x93\xd9\x45\x67\x51\xd1\x7d\xc2\x1f\xab\x6f\x16\x56",
},
@@ -612,7 +695,7 @@ mod tests {
gas_limit: b"\x95\x9e\x18\x8f\x50\x8c\x4e\xa1",
recipient: b"\xac\xa8\x49\x35\x4b\xb3\xf0\x3d\xfd\x2e\x5d\x62\xd2\x70\x22\x95\xd5\x77\xd5\x60",
value: b"\xfc\x9c\x6b\x72\xc1",
- data: b"\x3e\x36\xb8\x46\x0d\x5f\xb4\x34\x93\x6b\xdf\x5b\xce\x54\xa0\xc4\xee\x9e\xe3\xe5\xb5\x19\xd9\x5f\xb7\x47\x8e\xa9\x04\x07\x77\x55\x52\x70\xa4\x9c\xc5\x1c\xa9\xcb\xf0\xdd\xdd\x09\x1e\x29\x5d\x88\xfd\xe5\x38\x96\x38\x0c\x05\x63\x94\x45\x3f\x27\xb1\x06\x49\xd0\x2b\xe8\xed\xcd\xbe\x40\x7e\xbc\xd8\xdc\xf8\xef\xa2\x58\xdd\x57\xfb\x1e\x4d\xbf\x2b\x0a\x99\x13\x52\x1c\x3c\xb5\x9b\x25\x8c\xaf\x3e\x9d\x86\xee\x6c\xc8\xb6\x58\x00\x95\xaa\xdd\x23\x43\x22\x7e\xd0\x3c\x7e\xd8\x88\x11\x15\x59\x08\x52\x30\xe5\x8a\x0f\x18\x3a\xec\x38\x8f\x45\xac\x5d\xc1\x0b\xe1\x16\xba\xdf\xc5\x05\x2a\x21\x7d\x26\xb2\x6a\xae\xf5\x09\x55\x39\x6d\x3b\x03\x93\xd4\x08\x17\x75\x83\xce\x36\xff\x0b\x0e\xbf\xe0\xcf\x1f\xce\xa0\xa5\x21\xc2\x50\x37\x2a\x8a\xca\xb2\x86\xea\x53\x2b\x66\x9e\x52\x9f\x2b\xd6\x96\x6b\x2c\xe3\x12\x64\xfe\x3b\x70\x94\x71\xbe\x2c\x6f\x86\xa2\xca\x4c\x0d\xb8\x6f\x0c\x32\x92\x88\x33\xef\x1b\x14\x73\x20\x27\x6e\x59\x99\x3b\xa0\xf4\xfa\x9e\x8b\x09\x71\xe5\xa7\xcb\xd5\xaf\xa4\x3f\xfa\xbd\x15\x8f\xaf\x32",
+ data: RefCell::new(SimpleProducer::new(&b"\x3e\x36\xb8\x46\x0d\x5f\xb4\x34\x93\x6b\xdf\x5b\xce\x54\xa0\xc4\xee\x9e\xe3\xe5\xb5\x19\xd9\x5f\xb7\x47\x8e\xa9\x04\x07\x77\x55\x52\x70\xa4\x9c\xc5\x1c\xa9\xcb\xf0\xdd\xdd\x09\x1e\x29\x5d\x88\xfd\xe5\x38\x96\x38\x0c\x05\x63\x94\x45\x3f\x27\xb1\x06\x49\xd0\x2b\xe8\xed\xcd\xbe\x40\x7e\xbc\xd8\xdc\xf8\xef\xa2\x58\xdd\x57\xfb\x1e\x4d\xbf\x2b\x0a\x99\x13\x52\x1c\x3c\xb5\x9b\x25\x8c\xaf\x3e\x9d\x86\xee\x6c\xc8\xb6\x58\x00\x95\xaa\xdd\x23\x43\x22\x7e\xd0\x3c\x7e\xd8\x88\x11\x15\x59\x08\x52\x30\xe5\x8a\x0f\x18\x3a\xec\x38\x8f\x45\xac\x5d\xc1\x0b\xe1\x16\xba\xdf\xc5\x05\x2a\x21\x7d\x26\xb2\x6a\xae\xf5\x09\x55\x39\x6d\x3b\x03\x93\xd4\x08\x17\x75\x83\xce\x36\xff\x0b\x0e\xbf\xe0\xcf\x1f\xce\xa0\xa5\x21\xc2\x50\x37\x2a\x8a\xca\xb2\x86\xea\x53\x2b\x66\x9e\x52\x9f\x2b\xd6\x96\x6b\x2c\xe3\x12\x64\xfe\x3b\x70\x94\x71\xbe\x2c\x6f\x86\xa2\xca\x4c\x0d\xb8\x6f\x0c\x32\x92\x88\x33\xef\x1b\x14\x73\x20\x27\x6e\x59\x99\x3b\xa0\xf4\xfa\x9e\x8b\x09\x71\xe5\xa7\xcb\xd5\xaf\xa4\x3f\xfa\xbd\x15\x8f\xaf\x32"[..])),
},
expected_sighash: *b"\xdd\xc2\xda\xcb\xa6\x27\x89\xa8\x63\x95\x20\x7a\xb3\xaa\xaa\x52\x60\x84\x64\x47\x5e\x00\xee\x05\xd1\x20\x52\x07\xe7\xf6\xea\x7e",
},
@@ -625,7 +708,7 @@ mod tests {
gas_limit: b"\x9f\x52\x05\xde\xfb\xc7\x5f\x6e",
recipient: b"\x23\xbf\x52\xcd\x74\x3c\x16\x3a\xb8\x1d\x45\x31\x04\xe4\xe8\xcc\xde\xef\x08\xa2",
value: b"\x9d\x5f\x42\xda\xbe\x95\xbb\x63\xdc\xb3",
- data: b"\x75\x13\x81\xbb\xe8\xe4\x1b\xb3\xab\xdc\x1c\x9d\x32\xe6\x1b\xf4\x01\x68\xe7\xa7\xa7\xf7\xbf\x91\x81\xc6\x8b\x5d\x2e\x00\xe5\xf4\x27\x79\x8b\xb2\x2b\x9e\x64\x05\x3d\x7b\x91\x0e\x49\x39\xce\xd6\xdf\x0b\x8d\xf8\xf3\x62\x32\x2f\xa0\x72\xa4\x2b\xde\x8b\xbc\xaa\xab\x40\xb6\x20\x75\x7d\x8e\xdf\x12\x92\xd0\x6a\xb2\x4c\x25\xc1\xfd\x2b\xf1\xaa\x6f\x3e\x7e\xd9\x67\x71\xdb\x3f\x85\x1c\x64\x09\x67\xc8\x52\x1d\xcf\x0f\xdf\xe6\xb0\x91\xb5\x2a\x6d\x2f\x4d\xbd\x94\x4f\x1d\x06\x08\x72\xf8\xde\xd7\x85\x95\x02\xee\x24\x1b\x29\x55\x23\x5e\x0b\x85\x75\x20\xe6\xf2\xa9\xe1\x03\xfa\x21\x21\x94\xb7\x88\xd5\xa1\x4f\xad\x67\x18\x3f\x99\x8a\x65\xda\x60\x7e\xb8\xc4\x3b\xac\x5c\xbd\x7a\x33\x49\xc4\x18\xc0\xe0\x3f\xbc\x2d\x36\x06\x59\x67\x72\x43\xa8\x91\x8a\x43\xa2\xbe\x6e\x10\x31\xd4\x4b\x1d\xed\xb1\x20\x37\x2a\x72\xf8\xfa\xa0\x0d\x27\x4f\x6b\xaa\xc9\x5d\x68\xee\x70\x8a\xee\xb3\x98\xe5\x37\xb3\xc7\x88\xea\x16\xb5\xd5\x64\x60\x8f\x5f\xf7\xe6\x85\x28\x6c\x4f\x87\x4c\xb3\x34\xf5\x40\xdf\xff\xa2\x50\x6d\xc0\x91\x0e\x4a\x47\x86\xc5\x7b\x11\xe5\xea\x66\x9b\xca\x79\xb9\x03\x55\xd3\x14\x11\x85\xfa\x2b\x0c\x60\xda\x0f\x0b\x14\x45\xc9\x7d\x65\xa3\xee\x34\xa4\x8e\x73\x1e\xb1\x08\xa4\xe8\xb7\x19\xe5\x69\xc5\xbb\xe7\x84\x5f\x98\xc6\xfc\xfe\xff\x31\x92\xf4\xa6\x69\x00\x32\x79\x76\xdb\x3f\x12\x5f\x2f\x26\x41\xa3\x16\xf8\xca\xb4\x2c\x2d\xba\x60\x67\x53\x4f\x4b\x81\xbe\x96\x10\x2c\xa5\xd2\xf4\x21\x86\xe2\x9f\x56\x38\x56\xd0\xd8\xd2\x21\xaa\x71\x83\x6c\x38\x84\xe8\xa2\xb3\x14\xa2\xeb\x75\xd6\x3a\x70\x83\x36\xb0\x07\x07\x6c\xf1\x42\x1b\xd7\xbc\x4a\xc1\x7e\x5d\x4e\x49\x72\x5f\x8b\xa8\x83\x63\xfd\x09\x64\xd5\x12\xd2\xbd\xe8\xe0\xa2\xd7\xed\x84\xdf\x89\x82\xe6\xec\x65\xa9\xd9\x8e\x07\x19\xbc\x97\x00\xcd\x36\x95\x6a\x7a\xce\xdf\x6e\x93\xb8\xf6\xb4\xea\x6c\xbf\x27\x7c\xca\x76\xf6\x42\x0b\x96\xdf\xd5\x69\x23\x90\x26\xbd\x94\xab\x5b\x86\x51\x29\x6f\x40\x1e\x6d\x7e\x8b\xff\x19\x97\x35\xb9\x34\x8f\x08\xa8\x18\x73\x9f\x3f\x6c\xd6\x3f\x32\xaa\x55\x49\xfe\xa9\x1a\xac\xb4\x6a",
+ data: RefCell::new(SimpleProducer::new(&b"\x75\x13\x81\xbb\xe8\xe4\x1b\xb3\xab\xdc\x1c\x9d\x32\xe6\x1b\xf4\x01\x68\xe7\xa7\xa7\xf7\xbf\x91\x81\xc6\x8b\x5d\x2e\x00\xe5\xf4\x27\x79\x8b\xb2\x2b\x9e\x64\x05\x3d\x7b\x91\x0e\x49\x39\xce\xd6\xdf\x0b\x8d\xf8\xf3\x62\x32\x2f\xa0\x72\xa4\x2b\xde\x8b\xbc\xaa\xab\x40\xb6\x20\x75\x7d\x8e\xdf\x12\x92\xd0\x6a\xb2\x4c\x25\xc1\xfd\x2b\xf1\xaa\x6f\x3e\x7e\xd9\x67\x71\xdb\x3f\x85\x1c\x64\x09\x67\xc8\x52\x1d\xcf\x0f\xdf\xe6\xb0\x91\xb5\x2a\x6d\x2f\x4d\xbd\x94\x4f\x1d\x06\x08\x72\xf8\xde\xd7\x85\x95\x02\xee\x24\x1b\x29\x55\x23\x5e\x0b\x85\x75\x20\xe6\xf2\xa9\xe1\x03\xfa\x21\x21\x94\xb7\x88\xd5\xa1\x4f\xad\x67\x18\x3f\x99\x8a\x65\xda\x60\x7e\xb8\xc4\x3b\xac\x5c\xbd\x7a\x33\x49\xc4\x18\xc0\xe0\x3f\xbc\x2d\x36\x06\x59\x67\x72\x43\xa8\x91\x8a\x43\xa2\xbe\x6e\x10\x31\xd4\x4b\x1d\xed\xb1\x20\x37\x2a\x72\xf8\xfa\xa0\x0d\x27\x4f\x6b\xaa\xc9\x5d\x68\xee\x70\x8a\xee\xb3\x98\xe5\x37\xb3\xc7\x88\xea\x16\xb5\xd5\x64\x60\x8f\x5f\xf7\xe6\x85\x28\x6c\x4f\x87\x4c\xb3\x34\xf5\x40\xdf\xff\xa2\x50\x6d\xc0\x91\x0e\x4a\x47\x86\xc5\x7b\x11\xe5\xea\x66\x9b\xca\x79\xb9\x03\x55\xd3\x14\x11\x85\xfa\x2b\x0c\x60\xda\x0f\x0b\x14\x45\xc9\x7d\x65\xa3\xee\x34\xa4\x8e\x73\x1e\xb1\x08\xa4\xe8\xb7\x19\xe5\x69\xc5\xbb\xe7\x84\x5f\x98\xc6\xfc\xfe\xff\x31\x92\xf4\xa6\x69\x00\x32\x79\x76\xdb\x3f\x12\x5f\x2f\x26\x41\xa3\x16\xf8\xca\xb4\x2c\x2d\xba\x60\x67\x53\x4f\x4b\x81\xbe\x96\x10\x2c\xa5\xd2\xf4\x21\x86\xe2\x9f\x56\x38\x56\xd0\xd8\xd2\x21\xaa\x71\x83\x6c\x38\x84\xe8\xa2\xb3\x14\xa2\xeb\x75\xd6\x3a\x70\x83\x36\xb0\x07\x07\x6c\xf1\x42\x1b\xd7\xbc\x4a\xc1\x7e\x5d\x4e\x49\x72\x5f\x8b\xa8\x83\x63\xfd\x09\x64\xd5\x12\xd2\xbd\xe8\xe0\xa2\xd7\xed\x84\xdf\x89\x82\xe6\xec\x65\xa9\xd9\x8e\x07\x19\xbc\x97\x00\xcd\x36\x95\x6a\x7a\xce\xdf\x6e\x93\xb8\xf6\xb4\xea\x6c\xbf\x27\x7c\xca\x76\xf6\x42\x0b\x96\xdf\xd5\x69\x23\x90\x26\xbd\x94\xab\x5b\x86\x51\x29\x6f\x40\x1e\x6d\x7e\x8b\xff\x19\x97\x35\xb9\x34\x8f\x08\xa8\x18\x73\x9f\x3f\x6c\xd6\x3f\x32\xaa\x55\x49\xfe\xa9\x1a\xac\xb4\x6a"[..])),
},
expected_sighash: *b"\x30\xb2\xe7\x40\xf1\x90\x0c\x1e\xcc\x5d\x01\x41\x01\xda\xc3\x8e\x7a\x50\x82\x39\x20\x67\x71\xa4\xfd\xc2\x71\x76\xed\x7a\x6e\x16",
},
@@ -638,7 +721,7 @@ mod tests {
gas_limit: b"\xf5\xaf\x5a\x21\x13\x9e\x05\x61",
recipient: b"\x16\xa6\x15\x0e\x8e\xff\x06\x88\xb0\xcf\x15\xeb\x62\x4f\x94\x4d\x33\x46\x7a\x29",
value: b"\xf5\xa8\xcc\x7b\x59",
- data: b"\x18\x63\xa3\x53\x1c\xd7\x24\x38\x25\x0d\x90\x0d\xaa\x2b\x3b\xb3\x4a\xf2\x65\xb7\x72\x54\xfe\x9f\x8e\x94\xff\x88\x0b\x75\x31\x60\xb5\x2f\x89\xdf\x67\x39\x27\x20\x79\x13\x84\x3d\x35\xf7\xd1\x0f\xc5\x3c\x5b\x43\x48\xeb\xec\x14\xd2\x37\x2a\xbc\x94\xfc\x3c\x1d\xdb\xcb\xaa\xcb\xfd\x83\x00\x23\xb3\x6c\x3d\x52\x88\xa6\x28\x86\x90\x76\x1c\x35\x84\x9e\x76\xb8\x6d\x60\x6b\x63\x58\xe3\x06\xb8\x5e\x7b\x71\x00\x51\xfa\xd8\xca\x87\x24\x7d\xc2\x0a\xfa\xb5\x58\x5a\xb4\x0c\x46\x9b\xb4\x6f\x9c\x39\x00\x75\x13\xc2\xd1\x56\x40\x68\x4e\xde\x5e\xd8\xf5\xad\x24\xd8\x3b\xf8\x9f\xd3\x0c\xa0\x11\xb0\x62\x4e\x76\x06\x45\x66\x00\x2d\x16\x6c\x91\xed\x58\xdf\x33\x54\xde\xaf\x8c\x5c\xb4\x42\x1c\x62\x07\x1c\xd7\xb4\xb9\x41\xc7\xc1\x9e\xde\xf8\x4b\x62\x72\x86\xc1\x82\x95\x11\x9d\x70\x4d\xbe\x17\xb6\xff\x12\x3c\x8a\xc7\xab\xc1\x54\x83\xf7\x12\x8c\x1d\x13\xab\x73\x31\x6f\xb1\xd2\xaf\x6c\x2c\x3f\x8a\xb3\xae\x24\xb8\xbf\x35\xf6\x20\x57\x86\x48\xb0\x11\x36\xc7\xb1\x79\x04\x12\xa3\x88\x41\xee\x94\x36\xdf\x65\x3d\x71\x71\x9d\x3b\xaa\x07\xa8\xc9\xfe\x9d\x57\x61\x9f\x38\x4a\x35\x4b\xbd\xa5\xd6\x63\x2d\x46\x50\x91\x69\xe6\x57\x2b\x24\x78\xf5\xc3\xef\x52\x69\x27\x80\xad\x17\x2f\xda\x01\x7c\xb6\xa7\x94\xbf\x9e\xda\x5b\x8c\xd7\x9f\x20\xc4\xed\x5a\xd5\x75\x19\xc6\x89\x3b\x72\x22\x50\x2c\x99\x30\x7b\x9c\x45\xdf\x55\x04\x8c\x73\x31\xf1\xd1\x31\xc0\x1c\xe9\xc9\x82\x0c\x3c\xaf\xcc\x81\x32\x20\x8d\xb5\xa2\xbe\x36\xc9\xf9\x0b\xd5\xb9\x52\x0a\x84\x4c\x97\x23\x07\x0a\x43\xd6\xcd\xe8\x63\x22\xd0\x38\xab\x8c\xe4\x2b\x16\xe5\x25\x4a\xd4\xbc\xc4\x58\x45\x66\x38\x60\x4e\x95\x33\x79\xdb\x53\x90\xa7\x34\xab\x28\x79\x68\x61\xb9\xef\x66\x9c\xab\x20\x79\x49\x76\xea\xe4\x18\xb8\xf3\x46\x26\xbf\x9b\xab\x64\xc7\x07\x37\xd2\xd5\xb6\xde\x4d",
+ data: RefCell::new(SimpleProducer::new(&b"\x18\x63\xa3\x53\x1c\xd7\x24\x38\x25\x0d\x90\x0d\xaa\x2b\x3b\xb3\x4a\xf2\x65\xb7\x72\x54\xfe\x9f\x8e\x94\xff\x88\x0b\x75\x31\x60\xb5\x2f\x89\xdf\x67\x39\x27\x20\x79\x13\x84\x3d\x35\xf7\xd1\x0f\xc5\x3c\x5b\x43\x48\xeb\xec\x14\xd2\x37\x2a\xbc\x94\xfc\x3c\x1d\xdb\xcb\xaa\xcb\xfd\x83\x00\x23\xb3\x6c\x3d\x52\x88\xa6\x28\x86\x90\x76\x1c\x35\x84\x9e\x76\xb8\x6d\x60\x6b\x63\x58\xe3\x06\xb8\x5e\x7b\x71\x00\x51\xfa\xd8\xca\x87\x24\x7d\xc2\x0a\xfa\xb5\x58\x5a\xb4\x0c\x46\x9b\xb4\x6f\x9c\x39\x00\x75\x13\xc2\xd1\x56\x40\x68\x4e\xde\x5e\xd8\xf5\xad\x24\xd8\x3b\xf8\x9f\xd3\x0c\xa0\x11\xb0\x62\x4e\x76\x06\x45\x66\x00\x2d\x16\x6c\x91\xed\x58\xdf\x33\x54\xde\xaf\x8c\x5c\xb4\x42\x1c\x62\x07\x1c\xd7\xb4\xb9\x41\xc7\xc1\x9e\xde\xf8\x4b\x62\x72\x86\xc1\x82\x95\x11\x9d\x70\x4d\xbe\x17\xb6\xff\x12\x3c\x8a\xc7\xab\xc1\x54\x83\xf7\x12\x8c\x1d\x13\xab\x73\x31\x6f\xb1\xd2\xaf\x6c\x2c\x3f\x8a\xb3\xae\x24\xb8\xbf\x35\xf6\x20\x57\x86\x48\xb0\x11\x36\xc7\xb1\x79\x04\x12\xa3\x88\x41\xee\x94\x36\xdf\x65\x3d\x71\x71\x9d\x3b\xaa\x07\xa8\xc9\xfe\x9d\x57\x61\x9f\x38\x4a\x35\x4b\xbd\xa5\xd6\x63\x2d\x46\x50\x91\x69\xe6\x57\x2b\x24\x78\xf5\xc3\xef\x52\x69\x27\x80\xad\x17\x2f\xda\x01\x7c\xb6\xa7\x94\xbf\x9e\xda\x5b\x8c\xd7\x9f\x20\xc4\xed\x5a\xd5\x75\x19\xc6\x89\x3b\x72\x22\x50\x2c\x99\x30\x7b\x9c\x45\xdf\x55\x04\x8c\x73\x31\xf1\xd1\x31\xc0\x1c\xe9\xc9\x82\x0c\x3c\xaf\xcc\x81\x32\x20\x8d\xb5\xa2\xbe\x36\xc9\xf9\x0b\xd5\xb9\x52\x0a\x84\x4c\x97\x23\x07\x0a\x43\xd6\xcd\xe8\x63\x22\xd0\x38\xab\x8c\xe4\x2b\x16\xe5\x25\x4a\xd4\xbc\xc4\x58\x45\x66\x38\x60\x4e\x95\x33\x79\xdb\x53\x90\xa7\x34\xab\x28\x79\x68\x61\xb9\xef\x66\x9c\xab\x20\x79\x49\x76\xea\xe4\x18\xb8\xf3\x46\x26\xbf\x9b\xab\x64\xc7\x07\x37\xd2\xd5\xb6\xde\x4d"[..])),
},
expected_sighash: *b"\x6b\x91\x1a\x74\xc3\x50\x62\x23\x3a\x4d\x14\x83\xbf\x1e\x45\xda\x4b\xe9\x08\x88\xcf\xe3\xe9\x11\x8e\x1f\xe9\x0f\x30\x37\x77\x09",
},
@@ -651,7 +734,7 @@ mod tests {
gas_limit: b"\x23\x16\x12\x09\xb9\x4f\x3d\xc8",
recipient: b"\x57\x6a\x7a\x14\xe0\xf7\x6e\x0a\x53\x74\xfe\x72\xa0\xf7\x36\x8c\x0f\x95\xce\x46",
value: b"\x40\xb6\x89\xdc\x18\xa5\x6c\x15\x7d\x8b\xb7\x74\xd2\x47\x25",
- data: b"\xa3\x99\xde\x26\x90\xb5\x44\x36\x80\xce\xed\x09\xf8\x22\x0c\xd6\x8f\x29\x83\x40\xbc\xb2\xf0\x14\xca\xf6\x64\x83\x6b\x8d\xd4\xed\x5e\xa6\xc7\x8f\x5b\x50\x9f\x27\xea\xc6\x4f\x59\x98\x15\x10\x13\x72\xea\x76\x3b\x68\x27\xbf\xa6\x3a\xbe\x5b\x3d\xa9\x3e\xb2\xc9\x8a\xc9\x8c\xb2\xc5\xae\x31\x77\xa3\x1f\x23\xfd\x18\x7e\x50\x26\x6e\xa7\xec\xe3\xe5\x47\xeb\x76\xe0\x5b\xe3\x82\xa0\x77\x94\xc2\xa3\x1b\x9e\x23\xa2\x13\xb6\x6f\xb6\x76\x51\x7e\x29\xf9\x8a\x09\x61\xe3\xc3\x0e\x63\xf7\x0b\xa0\xfd\x74\x47\x14\x8e\xd6\x97\xaa\xc5\xa4\x11\xdb\xfc\xcd\xfc\x2e\xa6\x08\x1d\x77\x15\x92\x0a\xad\x97\x43\x31\x89\x31\xae\x2f\x4a\xe4\xeb\x93\xb4\x90\x67\xd7\x0e\xe1\x0e\xb4\x9e\x49\x8b\x74\x43\x3d\xb7\x08\xd8\xf0\x94\x51\x16\xf3\xf1\x6b\x43\x00\xe6\x4f\x64\x55\x4f\x1d\x55\x37\x56\x38\x98\xbe\x44\xd8\xee\x41\x69\x49\x42\xae\xe6\x89\x33\x81\x8a\xb5\x8b\xf6\x00\x11\x12\x0c\xb4\x92\x00\x97\x14\x50\x28\x7d\x4f\x58\xa6\x22\xd0\x10\xcd\x69\xda\xf9\x98\x1f\xa8\xb9\xf7\xf3\x52\x9b\x70\x51\x99\x6c\x77\x61\x82\x00\x17\xd7\x39\x99\xfa\xa2\x01\xf1\xdf\x93\xed\xcd\x44\x6c\x5e\xba\x85\x1d\xc2\x67\x9a\xbf\xdc\xcf\x83\xbc\x94\x40\xb7\x6b\xb5\xe8\x22\x0a\x70\x7a\x67\xe3\x9e\xdf\x9f\x16\x00\xc6\x2a\xf1\xb2\xd9\x25\x4a\x7e\x7c\x74\xdf\x94\x33\xbe\x55\x01\xb3\x75\x88\x68\xa8\xc2\xbc\xb5\x8e\x79\x21\x53\x98\x37\xc7\x67\x20\xfa\x39\xca\x89\x4e\xfe\x13\x1a\x95\x14\x6d\x06\xa0\xa5\x88\x15\x1a\xa8\x0a\xa3\xfb\x6e\xcc\x8c\x3a\xdd\x91\x7c\x86\x1a\x3f\x65\x9e\xeb\xbd\x82\x3d\x76\x0e\x8a\xb3\xa4\x14\x09\xca\x1e\x8a\x4a\x58\x2c\xf6\x17\x52\x9b\xf4\x5a\xb3\x01\x6b\x04\x0d\xa4\xa6\x97\x4a\xae\xa5\xfc\x5a\xda\xc3\xbd\xba\x0f\xbc\xe3\xcf\xb7\xdd\x52\x23\x07\x09\x4d\xe3\xc4\x99\x89\x84\xa0\xe3\xd4\xfe\xfb\x9a\x3a\x51\xa4\x92\xd2\x1f\xc3\xbf\xf3\xe8\xa4\x27\x42\x07\x51\x4f\x1a\xd3\x86\xeb\xf6\x2d\xa3\x18\xf1\xfa\x27\xb6\x01\x98\x5e\xf1\x77\x4b\x3c\x4b\x87\x62\xde\x2a\xd6\xd8\x9a\x86\x6a\xdd\xd4\x92\x01\x01\xe4\x98\x9d\x6f\x6c\x15\x3f\xf1\x23\x31\xdf\x2f\x3b\x0d\x3b\x48\x15\xad\x65\x42\x3c\x90\x2e\x55\xb3\x0b\xa5\x13\xde\xdd\xd3\xc6\x35\xc8\xbe\xef\x56\x07\x0f\x11\x73\x58\x2c\xb2\xe8\xfa\x90\x70\xff\x6c\x05\x19\x83\x08\x9f\x4f\xfc\x30\x23\x18\x4b\x9c\xba\x57\xce\x7c\xfb\xda\xd8\xf6\x21\x9b\x45\xcf\xc1\xb4\x49\x4b\x1c\xdc\xa6\x5d\x0f\x37\x05\x37\x30\xc7\xda\x14\x0e\x55\x30\xf3\xf2\x62\xe3\x96\x9b\xe0\x57\x21\x21\xaf\x25\xdc\xf0\xa4\x70\x2c\x11\xc5\x39\x45\x25\xeb\xc1\xb8\x8d\x2e\x19\x3b\x63\x7a\xf7\xb9\xa9\x4d\x0d\x97\xe6\x53\xd2\xd8\xe7\x71\xd5\x4c\x85\x26\x9e\x72\x02\x83\xa6\xb4\x91\xa4\x40\x8b\xbf\x92\x7d\x3b\xb6\xc1\x3c\x10\x0e\x3b\xaf\x43\x51\x96\x81\x9e\x61\xae\xd1\x4c\x9d\x9f\x35\x6a\x4a\x8a\x02\x18\x74\xd4\x7c\xb9\x9c\x53\xd2\x09\x1f\x16\xb9\xf8\x58\xe1\x7a\xfa\x8c\x5b\x69\xb9\x28\x71\x9b\x7e\x9f\xf0\x7d\x71\xa5\x84\x66\x65\x2d\x08\xc2\xf6\x3a\x84\x0d\x42\xf1\x62\xc8\x18\x37\x4e\xac\x3e\x45\x00\xe2\x2b\x22\x62\xa7\x05\x3c\xae\x3d\xaa\x4d\xd2\x55\x05\x8a\x5a\x13\x25\x9b\xfd\xc5\xe8\x99\xdf\x0b\xf2\xec\xfc\x96\x1e\x29\xcb\x9b\x44\xc3\x1b\x8a\x9e\x16\x3a\xda\x0f\xda\x21\x3e\x9a\x4e\x35\x5f\x72\xa4\xfe\xd4\x3d\x6f\x5d\xd3\x0b\x19\xc7\xaa\xf6\x40\x73\x14\x48\x1d\x42\xe5\x1d\xdf\x0c\x25\x77\xc1\x6f\xa5\x0e\xe6\xdd\x16\xb4\xbf\x6d\xe8\x11\xee\xd2\xe7\x34\x84\x21\x7c\xfb\x3b\x4b\x5f\x7f\x96\xa1\xfe\x2d\xcb\x09\x4c\x07\xb8\x06\x4e\x1b\xb0\xa1\x89\x6d\xd6\xb3\xe8\xe2\x4a\x07\xdb\x6f\xd4\x1d\x6b\x14\x8c\x55\xfd\xbb\xe5\x71\x42\x6c\xc9\x3c\x1b\x4f\x9f\x42\x4b\x18\xb5\x07\xa9\xdf\x32\x0a\x89\x99\xec\x9f\x56\x80\x3e\x56\xe9\xb2\x61\x81\xf8\x4f\xed\x06\xc9\xc4\xcb\x6e\x97\x2b\x51\x79\xeb\x2a\x1e\x17\xa6\x78\x0c\xc6\xe3\x94\xc4\xfb\x59\x54\x5e\xbc\x59\xd2\x2d\x40\x92\x96\xcb\xa6\x2c\xb7\xa0\x9f\x55\x0f\x65\x48\x7c\xad\xa2\xae\x88\x73\xcb\x1a\xc9\xa6\x40\x74\x60\x9d\x5a\x22\x1b\xd4\xe0\x5f\x18\x9f\x50\x15\xb2\x78\x3d\x85\xa1\x49\x32\xe5\x4c\x4c\x06\xb7\xdf\x52\x61\x3c\xf6",
+ data: RefCell::new(SimpleProducer::new(&b"\xa3\x99\xde\x26\x90\xb5\x44\x36\x80\xce\xed\x09\xf8\x22\x0c\xd6\x8f\x29\x83\x40\xbc\xb2\xf0\x14\xca\xf6\x64\x83\x6b\x8d\xd4\xed\x5e\xa6\xc7\x8f\x5b\x50\x9f\x27\xea\xc6\x4f\x59\x98\x15\x10\x13\x72\xea\x76\x3b\x68\x27\xbf\xa6\x3a\xbe\x5b\x3d\xa9\x3e\xb2\xc9\x8a\xc9\x8c\xb2\xc5\xae\x31\x77\xa3\x1f\x23\xfd\x18\x7e\x50\x26\x6e\xa7\xec\xe3\xe5\x47\xeb\x76\xe0\x5b\xe3\x82\xa0\x77\x94\xc2\xa3\x1b\x9e\x23\xa2\x13\xb6\x6f\xb6\x76\x51\x7e\x29\xf9\x8a\x09\x61\xe3\xc3\x0e\x63\xf7\x0b\xa0\xfd\x74\x47\x14\x8e\xd6\x97\xaa\xc5\xa4\x11\xdb\xfc\xcd\xfc\x2e\xa6\x08\x1d\x77\x15\x92\x0a\xad\x97\x43\x31\x89\x31\xae\x2f\x4a\xe4\xeb\x93\xb4\x90\x67\xd7\x0e\xe1\x0e\xb4\x9e\x49\x8b\x74\x43\x3d\xb7\x08\xd8\xf0\x94\x51\x16\xf3\xf1\x6b\x43\x00\xe6\x4f\x64\x55\x4f\x1d\x55\x37\x56\x38\x98\xbe\x44\xd8\xee\x41\x69\x49\x42\xae\xe6\x89\x33\x81\x8a\xb5\x8b\xf6\x00\x11\x12\x0c\xb4\x92\x00\x97\x14\x50\x28\x7d\x4f\x58\xa6\x22\xd0\x10\xcd\x69\xda\xf9\x98\x1f\xa8\xb9\xf7\xf3\x52\x9b\x70\x51\x99\x6c\x77\x61\x82\x00\x17\xd7\x39\x99\xfa\xa2\x01\xf1\xdf\x93\xed\xcd\x44\x6c\x5e\xba\x85\x1d\xc2\x67\x9a\xbf\xdc\xcf\x83\xbc\x94\x40\xb7\x6b\xb5\xe8\x22\x0a\x70\x7a\x67\xe3\x9e\xdf\x9f\x16\x00\xc6\x2a\xf1\xb2\xd9\x25\x4a\x7e\x7c\x74\xdf\x94\x33\xbe\x55\x01\xb3\x75\x88\x68\xa8\xc2\xbc\xb5\x8e\x79\x21\x53\x98\x37\xc7\x67\x20\xfa\x39\xca\x89\x4e\xfe\x13\x1a\x95\x14\x6d\x06\xa0\xa5\x88\x15\x1a\xa8\x0a\xa3\xfb\x6e\xcc\x8c\x3a\xdd\x91\x7c\x86\x1a\x3f\x65\x9e\xeb\xbd\x82\x3d\x76\x0e\x8a\xb3\xa4\x14\x09\xca\x1e\x8a\x4a\x58\x2c\xf6\x17\x52\x9b\xf4\x5a\xb3\x01\x6b\x04\x0d\xa4\xa6\x97\x4a\xae\xa5\xfc\x5a\xda\xc3\xbd\xba\x0f\xbc\xe3\xcf\xb7\xdd\x52\x23\x07\x09\x4d\xe3\xc4\x99\x89\x84\xa0\xe3\xd4\xfe\xfb\x9a\x3a\x51\xa4\x92\xd2\x1f\xc3\xbf\xf3\xe8\xa4\x27\x42\x07\x51\x4f\x1a\xd3\x86\xeb\xf6\x2d\xa3\x18\xf1\xfa\x27\xb6\x01\x98\x5e\xf1\x77\x4b\x3c\x4b\x87\x62\xde\x2a\xd6\xd8\x9a\x86\x6a\xdd\xd4\x92\x01\x01\xe4\x98\x9d\x6f\x6c\x15\x3f\xf1\x23\x31\xdf\x2f\x3b\x0d\x3b\x48\x15\xad\x65\x42\x3c\x90\x2e\x55\xb3\x0b\xa5\x13\xde\xdd\xd3\xc6\x35\xc8\xbe\xef\x56\x07\x0f\x11\x73\x58\x2c\xb2\xe8\xfa\x90\x70\xff\x6c\x05\x19\x83\x08\x9f\x4f\xfc\x30\x23\x18\x4b\x9c\xba\x57\xce\x7c\xfb\xda\xd8\xf6\x21\x9b\x45\xcf\xc1\xb4\x49\x4b\x1c\xdc\xa6\x5d\x0f\x37\x05\x37\x30\xc7\xda\x14\x0e\x55\x30\xf3\xf2\x62\xe3\x96\x9b\xe0\x57\x21\x21\xaf\x25\xdc\xf0\xa4\x70\x2c\x11\xc5\x39\x45\x25\xeb\xc1\xb8\x8d\x2e\x19\x3b\x63\x7a\xf7\xb9\xa9\x4d\x0d\x97\xe6\x53\xd2\xd8\xe7\x71\xd5\x4c\x85\x26\x9e\x72\x02\x83\xa6\xb4\x91\xa4\x40\x8b\xbf\x92\x7d\x3b\xb6\xc1\x3c\x10\x0e\x3b\xaf\x43\x51\x96\x81\x9e\x61\xae\xd1\x4c\x9d\x9f\x35\x6a\x4a\x8a\x02\x18\x74\xd4\x7c\xb9\x9c\x53\xd2\x09\x1f\x16\xb9\xf8\x58\xe1\x7a\xfa\x8c\x5b\x69\xb9\x28\x71\x9b\x7e\x9f\xf0\x7d\x71\xa5\x84\x66\x65\x2d\x08\xc2\xf6\x3a\x84\x0d\x42\xf1\x62\xc8\x18\x37\x4e\xac\x3e\x45\x00\xe2\x2b\x22\x62\xa7\x05\x3c\xae\x3d\xaa\x4d\xd2\x55\x05\x8a\x5a\x13\x25\x9b\xfd\xc5\xe8\x99\xdf\x0b\xf2\xec\xfc\x96\x1e\x29\xcb\x9b\x44\xc3\x1b\x8a\x9e\x16\x3a\xda\x0f\xda\x21\x3e\x9a\x4e\x35\x5f\x72\xa4\xfe\xd4\x3d\x6f\x5d\xd3\x0b\x19\xc7\xaa\xf6\x40\x73\x14\x48\x1d\x42\xe5\x1d\xdf\x0c\x25\x77\xc1\x6f\xa5\x0e\xe6\xdd\x16\xb4\xbf\x6d\xe8\x11\xee\xd2\xe7\x34\x84\x21\x7c\xfb\x3b\x4b\x5f\x7f\x96\xa1\xfe\x2d\xcb\x09\x4c\x07\xb8\x06\x4e\x1b\xb0\xa1\x89\x6d\xd6\xb3\xe8\xe2\x4a\x07\xdb\x6f\xd4\x1d\x6b\x14\x8c\x55\xfd\xbb\xe5\x71\x42\x6c\xc9\x3c\x1b\x4f\x9f\x42\x4b\x18\xb5\x07\xa9\xdf\x32\x0a\x89\x99\xec\x9f\x56\x80\x3e\x56\xe9\xb2\x61\x81\xf8\x4f\xed\x06\xc9\xc4\xcb\x6e\x97\x2b\x51\x79\xeb\x2a\x1e\x17\xa6\x78\x0c\xc6\xe3\x94\xc4\xfb\x59\x54\x5e\xbc\x59\xd2\x2d\x40\x92\x96\xcb\xa6\x2c\xb7\xa0\x9f\x55\x0f\x65\x48\x7c\xad\xa2\xae\x88\x73\xcb\x1a\xc9\xa6\x40\x74\x60\x9d\x5a\x22\x1b\xd4\xe0\x5f\x18\x9f\x50\x15\xb2\x78\x3d\x85\xa1\x49\x32\xe5\x4c\x4c\x06\xb7\xdf\x52\x61\x3c\xf6"[..])),
},
expected_sighash: *b"\x99\x15\xf6\x72\x7e\xd3\x1d\xd2\x59\x53\x80\x87\xc8\xce\xfd\xff\x10\x75\x02\x7b\x28\x6b\xc7\x00\xd5\xc5\xca\xf9\xc7\xc5\x33\x1a",
},
@@ -664,7 +747,7 @@ mod tests {
gas_limit: b"\xb9\x6b\x0c\xdb\x50\x09\x80\x49",
recipient: b"\xf6\xca\x39\x49\xd2\x31\xbe\x2c\xc2\x26\xcb\x44\x24\xbc\x00\x5a\xf7\xcc\x1f\xcb",
value: b"\x98\x7e\x05\xbd\x06\xf3",
- data: b"\x3d\x53\x40\xa1\x6f\xb9\x9e\x1d\x1d\x6f\x47\x48\x61\x34\xe5\x78\x62\xf3\xb3\x55\xf4\x30\xd0\xdb\x08\x68\xc8\x89\x1c\x2b\x08\x4a\xc1\x1c\x0b\x10\x03\xde\xd6\xd5\x38\xdb\x30\x90\xd8\x19\x7b\x17\xfa\x8c\x65\xdb\x54\x70\x88\x97\xff\xa7\x51\x12\x72\x5d\x42\x8b\xd2\x2e\x97\x3e\xe8\xa2\xd8\xf7\xd1\x7f\xd6\xf8\x46\x5d\x3f\xc3\xb3\x71\xeb\xb9\x57\xd3\xf5\xb1\x1f\xd3\x2a\xca\xea\x65\x20\x1e\x2c\x8b\xcb\x34\xde\x9b\xfd\x19\x6e\x68\x93\x77\x27\x23\xb8\x37\x27\xd9\x6d\x53\xc2\xec\x97\x8f\xe1\xf0\xf9\x5b\x40\xa8\xd3\x65\x16\xdf\x0b\x1d\xf9\x02\x98\x4f\x54\x71\xeb\xba\x73\xa6\xdd\x03\x5f\xc7\xd3\x86\xfa\xcf\xcc\x07\xcf\x08\x2a\xfd\x1a\x93\x5c\xad\xc7\x8c\xc7\x3d\x09\x89\x14\xe9\xa6\x44\x44\xa7\x2c\xbc\x75\xb7\x16\x3d\x62\x8f\x54\xc1\x80\xae\xa1\x63\xe7\x23\x20\xc2\x57\xba\xef\x97\x61\x54\x0b\xa8\x7a\x82\x43\xbb\x26\x2d\xc1\xd9\x32\x5d\x0d\x64\x6e\x4e\x32\xcb\xb4\x28\x92\x76\xd2\x1f\xb3\x3a\xe6\x46\xbc\x12\xec\x70\x04\x8b\x42\x86\x89\x04\x1e\x87\xfe\x8f\xb2\x2c\xff\xd2\x06\xd3\x27\x4e\xf7\x14\x8f\x08\xbc\xaa\x89\xc6\x18\x00\xfa\xb9\x27\xa8\x00\x59\xe7\x0d\x06\x60\x4f\x12\x6d\xad\x80\x5c\xf6\x04\xab\x95\x1c\x34\xc1\xd9\xbc\x9d\xa8\x68\x5d\x19\x22\xb7\x08\x0f\x13\xcc\xcd\x9d\x58\xc3\x78\xc7\x2c\x6e\xe3\xec\x83\xf6\xa1\x15\x19\x3f\x2b\x8e\x61\x38\xa0\x3e\x5e\xab\xe6\x22\xc9\xf8\xf7\x92\x1a\x2e\xfa\x8a\x6e\x03\x5b\xf7\x63\x98\xae\x06\xac\xa2\xe8\x78\x5c\x0a\xdd\xe6\x4b\x15\x5c\x23\x58\xc8\xcc\x8d\x4d\x3b\x2d\x96\xca\x61\x94\xd3\x24\x6a\x0e\x75\x3a\xd7\x42\x66\xad\x1d\xbf\x33\xa4\xc3\xb8\x79\xff\x08\xfc\xe8\x83\xfa\x1e\x57\xa4\xdf\xca\x33\x14\xa4\x4a\x7a\x36\xaf\xb5\xb2\x73\x9b\x87\x3d\xc0\x5c\x8a\xf4\x10\x81\x2a\xa2\x2e\x2f\x8a\x9f\xd6\x7f\x1a\xbc\x89\x3d\xcb\x3f\x60\x0a\xf1\xbf\xd4\x2b\xde\x8f\x50\x9f\x42\x61\x86\xb3\xf9\x4e\x7d\x7e\x82\xca\x85\xe5\x35\x59\xce\xe4\xcc\xa6\x16\x6d\x54\xcd\x00\x06\xf9\xb9\x4a\x34\x64\xb4\xad\x38\x12\x0f\x64\x6a\xc3\x4b\xe9\x72\x56\xb8\xb5\x4b\x09\x10\x94\x87\xc3\x13\x3b\xa5\xe4\x39\x14\x6d\xc3\x43\xee\xcf\x88\x56\xd4\xe0\xb8\x8b\x68\x41\xcc\xdc\xe4\xeb\xc2\x1d\x8f\xab\xdd\x1c\x65\xd4\xb1\x26\x37\xd8\x2b\x03\xdc\x56\x5f\xa4\x4a\x46\x91\xd0\xd0\x42\x6b\x8f\x45\xec\x57\x26\x9a\x9f\xde\x0a\xc3\x3f\xd6\xfd\x56\xd9\xc3\xad\x03\x77\xdd\x90\x83\x30\x3e\x1e\x61\x2e\x38\x9b\x78\x2c\x2e\xc2\xef\x95\x07\x56\x90\x98\x20\x22\xb9\x1e\x45\xbf\xf3\x0d\x02\x05\x87\x5e\x23\x69\xa3\x42\x3c\x39\x67\xaf\xb3\x4f\x45\xf9\x61\xea\xd8\xde\x33\x6d\xb0\x27\x03\x2e\x7a\x58\x55\x20\xc9\x52\xd4\xd9\x93\xb8\xb5\x14\xaf\x1b\xbb\xeb\xf6",
+ data: RefCell::new(SimpleProducer::new(&b"\x3d\x53\x40\xa1\x6f\xb9\x9e\x1d\x1d\x6f\x47\x48\x61\x34\xe5\x78\x62\xf3\xb3\x55\xf4\x30\xd0\xdb\x08\x68\xc8\x89\x1c\x2b\x08\x4a\xc1\x1c\x0b\x10\x03\xde\xd6\xd5\x38\xdb\x30\x90\xd8\x19\x7b\x17\xfa\x8c\x65\xdb\x54\x70\x88\x97\xff\xa7\x51\x12\x72\x5d\x42\x8b\xd2\x2e\x97\x3e\xe8\xa2\xd8\xf7\xd1\x7f\xd6\xf8\x46\x5d\x3f\xc3\xb3\x71\xeb\xb9\x57\xd3\xf5\xb1\x1f\xd3\x2a\xca\xea\x65\x20\x1e\x2c\x8b\xcb\x34\xde\x9b\xfd\x19\x6e\x68\x93\x77\x27\x23\xb8\x37\x27\xd9\x6d\x53\xc2\xec\x97\x8f\xe1\xf0\xf9\x5b\x40\xa8\xd3\x65\x16\xdf\x0b\x1d\xf9\x02\x98\x4f\x54\x71\xeb\xba\x73\xa6\xdd\x03\x5f\xc7\xd3\x86\xfa\xcf\xcc\x07\xcf\x08\x2a\xfd\x1a\x93\x5c\xad\xc7\x8c\xc7\x3d\x09\x89\x14\xe9\xa6\x44\x44\xa7\x2c\xbc\x75\xb7\x16\x3d\x62\x8f\x54\xc1\x80\xae\xa1\x63\xe7\x23\x20\xc2\x57\xba\xef\x97\x61\x54\x0b\xa8\x7a\x82\x43\xbb\x26\x2d\xc1\xd9\x32\x5d\x0d\x64\x6e\x4e\x32\xcb\xb4\x28\x92\x76\xd2\x1f\xb3\x3a\xe6\x46\xbc\x12\xec\x70\x04\x8b\x42\x86\x89\x04\x1e\x87\xfe\x8f\xb2\x2c\xff\xd2\x06\xd3\x27\x4e\xf7\x14\x8f\x08\xbc\xaa\x89\xc6\x18\x00\xfa\xb9\x27\xa8\x00\x59\xe7\x0d\x06\x60\x4f\x12\x6d\xad\x80\x5c\xf6\x04\xab\x95\x1c\x34\xc1\xd9\xbc\x9d\xa8\x68\x5d\x19\x22\xb7\x08\x0f\x13\xcc\xcd\x9d\x58\xc3\x78\xc7\x2c\x6e\xe3\xec\x83\xf6\xa1\x15\x19\x3f\x2b\x8e\x61\x38\xa0\x3e\x5e\xab\xe6\x22\xc9\xf8\xf7\x92\x1a\x2e\xfa\x8a\x6e\x03\x5b\xf7\x63\x98\xae\x06\xac\xa2\xe8\x78\x5c\x0a\xdd\xe6\x4b\x15\x5c\x23\x58\xc8\xcc\x8d\x4d\x3b\x2d\x96\xca\x61\x94\xd3\x24\x6a\x0e\x75\x3a\xd7\x42\x66\xad\x1d\xbf\x33\xa4\xc3\xb8\x79\xff\x08\xfc\xe8\x83\xfa\x1e\x57\xa4\xdf\xca\x33\x14\xa4\x4a\x7a\x36\xaf\xb5\xb2\x73\x9b\x87\x3d\xc0\x5c\x8a\xf4\x10\x81\x2a\xa2\x2e\x2f\x8a\x9f\xd6\x7f\x1a\xbc\x89\x3d\xcb\x3f\x60\x0a\xf1\xbf\xd4\x2b\xde\x8f\x50\x9f\x42\x61\x86\xb3\xf9\x4e\x7d\x7e\x82\xca\x85\xe5\x35\x59\xce\xe4\xcc\xa6\x16\x6d\x54\xcd\x00\x06\xf9\xb9\x4a\x34\x64\xb4\xad\x38\x12\x0f\x64\x6a\xc3\x4b\xe9\x72\x56\xb8\xb5\x4b\x09\x10\x94\x87\xc3\x13\x3b\xa5\xe4\x39\x14\x6d\xc3\x43\xee\xcf\x88\x56\xd4\xe0\xb8\x8b\x68\x41\xcc\xdc\xe4\xeb\xc2\x1d\x8f\xab\xdd\x1c\x65\xd4\xb1\x26\x37\xd8\x2b\x03\xdc\x56\x5f\xa4\x4a\x46\x91\xd0\xd0\x42\x6b\x8f\x45\xec\x57\x26\x9a\x9f\xde\x0a\xc3\x3f\xd6\xfd\x56\xd9\xc3\xad\x03\x77\xdd\x90\x83\x30\x3e\x1e\x61\x2e\x38\x9b\x78\x2c\x2e\xc2\xef\x95\x07\x56\x90\x98\x20\x22\xb9\x1e\x45\xbf\xf3\x0d\x02\x05\x87\x5e\x23\x69\xa3\x42\x3c\x39\x67\xaf\xb3\x4f\x45\xf9\x61\xea\xd8\xde\x33\x6d\xb0\x27\x03\x2e\x7a\x58\x55\x20\xc9\x52\xd4\xd9\x93\xb8\xb5\x14\xaf\x1b\xbb\xeb\xf6"[..])),
},
expected_sighash: *b"\xe3\xee\xf9\x19\x4d\x2c\xe4\x95\x92\xf5\x13\xa7\xa2\x5b\x43\x13\x6d\x50\x28\x7a\x53\xed\x63\x22\xf3\xb3\xd1\x3d\x32\x7e\x2f\x75",
},
@@ -677,7 +760,7 @@ mod tests {
gas_limit: b"\x52\x8f\xf0\x0d\x34\x43\xcd\x73",
recipient: b"\x03\x00\x16\xd7\xc2\x5d\x27\xc6\x06\x23\x04\x4f\x40\x40\x4f\xf6\x1e\xae\xef\x80",
value: b"\x06\xc8\xe0\x07\x1c\xc2\x5a\x07\xea\x3f\xfa\x6c",
- data: b"\xaf\xf7\xde\xca\xce\xaf\x08\xcd\x05\xf0\x68\xa9\x97\x42\x2f\x7b\x8d\x10\xe2\xc2\x99\x0e\x78\x0f\xd9\x8f\xb3\x7f\x4e\x94\xc9\x54\x22\xa2\x0e\x97\x81\xd3\x14\x59\x24\x4e\x65\x3f\xaf\x1f\xb5\x0e\x31\x11\x04\x47\x5f\x3a\x4c\x85\xbc\x19\x30\xc5\x5e\x2a\xf2\xb5\x8d\x91\xf7\x9a\x28\xa6\x1a\xeb\x0e\x53\x45\x02\xbd\xcf\x90\xd0\x1a\xc1\x51\xcd\xd7\x52\xd1\x2f\x68\x40\x9d\x57\x6e\xa2\xb1\x16\xb5\x17\xdc\xad\x58\x7c\x6a\x1a\x3f\xad\xf0\x9e\x08\x3c\xe4\x6f\x89\x21\xa9\x9f\x75\x1c\x40\xd8\x1d\x50\xd0\xaf\x34\xd7\x55\x0a\xb5\xd2\x7f\xdf\x8e\x9a\xce\xd1\xe3\xaa\xce\x71\x23\x45\x3e\xb3\x3d\x46\x0e\x4c\x49\x61\x56\xaa\x46\xfb\xb9\xd9\x27\x60\x04\x6d\x79\xd8\xdf\xbc\xc8\xf7\x73\x7e\xdf\x54\x0e\x4e\x32\x82\xa3\x8f\x79\x3a\x70\xe8\xe4\xe7\x8a\x9a\xf4\x99\x9d\xd8\x2d\x50\x2b\x50\x40\xa8\x3e\x31\x54\x7c\xd9\x5a\x2d\xab\x02\xa6\x11\x49\x15\x3a\x49\x97\xfd\x3e\xfc\x82\x46\xdd\xd2\x75\xde\xaa\xd4\x84\xf8\xad\x07\x68\xb4\xeb\xe6\x5a\x7b\xe2\x85\x08\xea\xad\x80\xc7\xf8\xb7\xe0\xf7\x40\x6f\x2e\x6b\x13\xe8\xa4\xec\x26\x09\xeb\x33\xcf\x79\xb6\x34\x43\x60\x05\x4f\xb1\x1e\xe0\xec\x17\x03\x1f\x6c\x2c\x15\x59\x57\xf7\xbd\xa7\xcf\x23\xd0\x23\x0a\x1b\xfa\xbe\xfb\xa5\x79\x9e\x72\xce\xad\x3e\xff\x84\xaf\x1c\x11\x71\x53\x06\xbd\xbc\x1c\x2d\x56\x58\x76\x58\x6b\xc5\xa9\xd9\x7c\x5e\x4e\x0e\x59\x56\x11\x2f\xb8\x51\x1e\x33\x4c\xa3\xd0\x21\xbb\x3e\xb7\x23\x4e\xa9\xcb\xb4\x74\xcf\xf5\xc1\x1a\x13\x58\xd8\x88\x15\x66\xc2\xa4\x3a\x6e\x75\x92\xc1\xd6\x60\x4b\xea\x42\x45\x28\xf1\x3c\x0e\xe3\xa2\xa1\x25\x68\xe2\x52\xd4\xc5\xab\x9e\xab\x4f\xf5\x32\x3f\xea\x1d\xbb\x2a\xa9\x33\xef\x6e\x44\x0a\xf1\xf5\xde\x1f\xa8\x50\xdb\x4d\x71\xaa\x1d\xae\xd0\x12\xe0\xa5\x6b\x9e\x68\x93\x0d\x2d\xc0\x1d\x89\x27\x5c\x79\x05\x69\xe1\xdb\x3a\xe7\xff\xee\x91\x44\x8f\x6b\x85\x03\x77\x19\xbf\x41\x48\x18\x66",
+ data: RefCell::new(SimpleProducer::new(&b"\xaf\xf7\xde\xca\xce\xaf\x08\xcd\x05\xf0\x68\xa9\x97\x42\x2f\x7b\x8d\x10\xe2\xc2\x99\x0e\x78\x0f\xd9\x8f\xb3\x7f\x4e\x94\xc9\x54\x22\xa2\x0e\x97\x81\xd3\x14\x59\x24\x4e\x65\x3f\xaf\x1f\xb5\x0e\x31\x11\x04\x47\x5f\x3a\x4c\x85\xbc\x19\x30\xc5\x5e\x2a\xf2\xb5\x8d\x91\xf7\x9a\x28\xa6\x1a\xeb\x0e\x53\x45\x02\xbd\xcf\x90\xd0\x1a\xc1\x51\xcd\xd7\x52\xd1\x2f\x68\x40\x9d\x57\x6e\xa2\xb1\x16\xb5\x17\xdc\xad\x58\x7c\x6a\x1a\x3f\xad\xf0\x9e\x08\x3c\xe4\x6f\x89\x21\xa9\x9f\x75\x1c\x40\xd8\x1d\x50\xd0\xaf\x34\xd7\x55\x0a\xb5\xd2\x7f\xdf\x8e\x9a\xce\xd1\xe3\xaa\xce\x71\x23\x45\x3e\xb3\x3d\x46\x0e\x4c\x49\x61\x56\xaa\x46\xfb\xb9\xd9\x27\x60\x04\x6d\x79\xd8\xdf\xbc\xc8\xf7\x73\x7e\xdf\x54\x0e\x4e\x32\x82\xa3\x8f\x79\x3a\x70\xe8\xe4\xe7\x8a\x9a\xf4\x99\x9d\xd8\x2d\x50\x2b\x50\x40\xa8\x3e\x31\x54\x7c\xd9\x5a\x2d\xab\x02\xa6\x11\x49\x15\x3a\x49\x97\xfd\x3e\xfc\x82\x46\xdd\xd2\x75\xde\xaa\xd4\x84\xf8\xad\x07\x68\xb4\xeb\xe6\x5a\x7b\xe2\x85\x08\xea\xad\x80\xc7\xf8\xb7\xe0\xf7\x40\x6f\x2e\x6b\x13\xe8\xa4\xec\x26\x09\xeb\x33\xcf\x79\xb6\x34\x43\x60\x05\x4f\xb1\x1e\xe0\xec\x17\x03\x1f\x6c\x2c\x15\x59\x57\xf7\xbd\xa7\xcf\x23\xd0\x23\x0a\x1b\xfa\xbe\xfb\xa5\x79\x9e\x72\xce\xad\x3e\xff\x84\xaf\x1c\x11\x71\x53\x06\xbd\xbc\x1c\x2d\x56\x58\x76\x58\x6b\xc5\xa9\xd9\x7c\x5e\x4e\x0e\x59\x56\x11\x2f\xb8\x51\x1e\x33\x4c\xa3\xd0\x21\xbb\x3e\xb7\x23\x4e\xa9\xcb\xb4\x74\xcf\xf5\xc1\x1a\x13\x58\xd8\x88\x15\x66\xc2\xa4\x3a\x6e\x75\x92\xc1\xd6\x60\x4b\xea\x42\x45\x28\xf1\x3c\x0e\xe3\xa2\xa1\x25\x68\xe2\x52\xd4\xc5\xab\x9e\xab\x4f\xf5\x32\x3f\xea\x1d\xbb\x2a\xa9\x33\xef\x6e\x44\x0a\xf1\xf5\xde\x1f\xa8\x50\xdb\x4d\x71\xaa\x1d\xae\xd0\x12\xe0\xa5\x6b\x9e\x68\x93\x0d\x2d\xc0\x1d\x89\x27\x5c\x79\x05\x69\xe1\xdb\x3a\xe7\xff\xee\x91\x44\x8f\x6b\x85\x03\x77\x19\xbf\x41\x48\x18\x66"[..])),
},
expected_sighash: *b"\xb3\x01\xd3\x74\x88\x51\x55\x6e\x0a\x63\xf0\x67\x17\x0e\x76\x93\xbb\x6c\xfa\x82\x04\xb7\x9c\x3e\xd9\xcb\x84\xf2\xcc\xed\x39\xfc",
},
@@ -690,7 +773,7 @@ mod tests {
gas_limit: b"\x24\xa5\x4b\x6f\xd9\x33\x93\x8a",
recipient: b"\x52\x18\x3c\xe8\x98\x4e\x4a\x69\x50\x36\x27\x44\x49\x37\x19\x8f\x3c\xa7\x03\xbc",
value: b"\x70\x83\x36\x6c\x2e\xfb\x31",
- data: b"\xf6\x5a\xd6\x66\x34\x8a\x32\x87\xf2\x74\xdd\xb2\x7c\x71\x87\x49\x96\x08\xd3\x3f\xd4\x37\x8a\x0e\xff\x35\x63\xd2\x62\x19\x2a\x0e\x10\x13\xd3\x53\x9a\x5a\x09\xdb\x64\x11\x41\xd8\x3c\x1a\xc9\x3a\x28\x47\x06\xd5\xc5\x81\xe6\x0f\x13\x11\xac\x0c\x09\x92\xe4\x24\x95\x0d\x0c\xd1\x2d\x23\x51\xd5\x57\x59\xfe\x11\x3d\x2a\x0e\xd1\x51\x9e\x05\x67\x14\xf7\x25\xa5\x17\x69\x78\xb4\x28\x3a\x08\xdc\x2b\x3f\xb4\x37\x8a\xf1\x7c\x67\x60\xd7\xae\x56\xa7\x9f\x30\x5a\xe6\xeb\x23\x5c\x84\x0d\x61\x15\x3d\x54\x95\x03\x6a\x0b\x12\x64\xf8\x33\x98\x26\x66\xc9\xf1\x77\xb0\x56\xc2\xeb\x45\xde\x66\x08\xe2\x25\x10\xa1\x64\x77\x70\x1d\x27\x0f\xee\x44\xae\xe9\x77\x5a\xbd\x7d\x6c\x90\x82\x94\x08\xbb\x6b\xae\x2a\x6e\xdd\x1f\x6d\x44\x42\x19\xbf\x8f\x8d\xc3\xf2\xf9\xe1\xf0\x17\x80\xdd\x55\x90\x72\x78\x56\x38\x3a\x49\x5f\xfc\x9b\x4a\x3e\x1e\x4a\x07\x33\xb4\xb6\x33\xde\x8d\x21\x20\x4a\x2e\xd4\xac\x49\x8f\x27\xa4\x7d\xb2\x8f\x64\x08\x0c\x1b\x26\xcb\x3e\x4a\xbd\x8b\xc8\xf4\x63\x9c\xe1\xc9\x50\x4f\xd1\x1e\x26\x7b\x59\x8f\x11\x25\xf0\x7c\x19\xf3\x18\x5c\x01\xbe\xd1\xf5\x7c\x88\xa9\x66\x2a\x31\x85\xb2\xa0\x9b\x8a\x25\x13\xbf\xac\xfa\xc7\x01\x8a\x88\x84\xbc\x9d\x15\x17\xd5\x76\x57\xb4\xf3\x5c\x6f\x09\xb4\x19\x04\xaf\xbe\xfd\xc9\x8e\x82\x16\x12\xfc\x3c\xa3\x81\x24\xb2\x95\x7e\x27\xa5\x7e\xcc\x93\x7b\xb7\x49\x7e\x11\x38\xcf\x90\x39\x34\x55\xf9\xe2\xee\x0d\xe8\x9f\x63\x77\x49\xf0\xb9\xbf\x51\x2c\xdd\x34\x81\xde\xb6\x22\xc5\x46\xd1\xc8\x39\xca\x8e\x94\x63\xe4\x2c\x1c\x4f\x72\x62\x15\x12\x79\x74\x3a\xb0\x8b\x48\x53\x63\x0c\xc0\xcd\x22\x93\x27\x82\xdd\x48\x7c\xe0\x88\x5c",
+ data: RefCell::new(SimpleProducer::new(&b"\xf6\x5a\xd6\x66\x34\x8a\x32\x87\xf2\x74\xdd\xb2\x7c\x71\x87\x49\x96\x08\xd3\x3f\xd4\x37\x8a\x0e\xff\x35\x63\xd2\x62\x19\x2a\x0e\x10\x13\xd3\x53\x9a\x5a\x09\xdb\x64\x11\x41\xd8\x3c\x1a\xc9\x3a\x28\x47\x06\xd5\xc5\x81\xe6\x0f\x13\x11\xac\x0c\x09\x92\xe4\x24\x95\x0d\x0c\xd1\x2d\x23\x51\xd5\x57\x59\xfe\x11\x3d\x2a\x0e\xd1\x51\x9e\x05\x67\x14\xf7\x25\xa5\x17\x69\x78\xb4\x28\x3a\x08\xdc\x2b\x3f\xb4\x37\x8a\xf1\x7c\x67\x60\xd7\xae\x56\xa7\x9f\x30\x5a\xe6\xeb\x23\x5c\x84\x0d\x61\x15\x3d\x54\x95\x03\x6a\x0b\x12\x64\xf8\x33\x98\x26\x66\xc9\xf1\x77\xb0\x56\xc2\xeb\x45\xde\x66\x08\xe2\x25\x10\xa1\x64\x77\x70\x1d\x27\x0f\xee\x44\xae\xe9\x77\x5a\xbd\x7d\x6c\x90\x82\x94\x08\xbb\x6b\xae\x2a\x6e\xdd\x1f\x6d\x44\x42\x19\xbf\x8f\x8d\xc3\xf2\xf9\xe1\xf0\x17\x80\xdd\x55\x90\x72\x78\x56\x38\x3a\x49\x5f\xfc\x9b\x4a\x3e\x1e\x4a\x07\x33\xb4\xb6\x33\xde\x8d\x21\x20\x4a\x2e\xd4\xac\x49\x8f\x27\xa4\x7d\xb2\x8f\x64\x08\x0c\x1b\x26\xcb\x3e\x4a\xbd\x8b\xc8\xf4\x63\x9c\xe1\xc9\x50\x4f\xd1\x1e\x26\x7b\x59\x8f\x11\x25\xf0\x7c\x19\xf3\x18\x5c\x01\xbe\xd1\xf5\x7c\x88\xa9\x66\x2a\x31\x85\xb2\xa0\x9b\x8a\x25\x13\xbf\xac\xfa\xc7\x01\x8a\x88\x84\xbc\x9d\x15\x17\xd5\x76\x57\xb4\xf3\x5c\x6f\x09\xb4\x19\x04\xaf\xbe\xfd\xc9\x8e\x82\x16\x12\xfc\x3c\xa3\x81\x24\xb2\x95\x7e\x27\xa5\x7e\xcc\x93\x7b\xb7\x49\x7e\x11\x38\xcf\x90\x39\x34\x55\xf9\xe2\xee\x0d\xe8\x9f\x63\x77\x49\xf0\xb9\xbf\x51\x2c\xdd\x34\x81\xde\xb6\x22\xc5\x46\xd1\xc8\x39\xca\x8e\x94\x63\xe4\x2c\x1c\x4f\x72\x62\x15\x12\x79\x74\x3a\xb0\x8b\x48\x53\x63\x0c\xc0\xcd\x22\x93\x27\x82\xdd\x48\x7c\xe0\x88\x5c"[..])),
},
expected_sighash: *b"\xd8\xd4\x77\xbd\x99\x74\x9c\xde\xa0\x41\x09\x22\x59\x9b\xdc\xb4\xbd\x9f\x54\xe5\x92\x9e\xe2\xcb\xc2\x7a\x4e\xe8\xa3\xe6\x8a\x94",
},
@@ -703,7 +786,7 @@ mod tests {
gas_limit: b"\x7e\xe7\x86\x57\x99\x53\x77\xba",
recipient: b"\x05\xff\xfe\x9b\x8a\xe9\x1e\x19\x1d\x92\xe8\xdc\xaf\x1a\xb2\xb6\x8b\xc8\x00\x63",
value: b"\x2a\xbd\x74\x48\x71\x1c\x06\x36\x78\x82\x47\xca\xa4\xc8\xa4\xfd",
- data: b"\x59\xf7\xff\x70\xff\x26\xa5\x58\x9a\x7c\x2a\xcb\xdc\x1c\x43\x63\x8c\xc4\xfa\x7c\x3f\x93\xcf\x15\x9f\x79\x2d\x21\xb0\x4f\x69\xb3\xac\x31\xfe\x98\x30\x44\x2e\xbd\xf1\x39\x0f\x9a\x72\xf1\x5c\x6a\x41\x93\xa2\xa3\x4c\xfe\x6b\x2a\x83\xfe\x15\x77\x1c\x98\x14\x76\xe3\xdd\xa5\x63\xf6\xe9\x19\x7b\x11\xce\xd5\xc7\x80\x68\xd9\x96\xf5\xac\x48\xaa\x61\x46\xde\x3e\x3f\x15\xdc\x77\x6a\x91\xdc\x52\x3e\xc2\xaa\x4e\x1e\xc4\x43\x5e\xeb\xa0\x7b\xc5\xb1\x0d\x83\x9e\xd1\x46\x30\xb7\x3f\x53\x21\x57\xd5\x08\xdb\xe0\x46\xe5\xe1\x27\x3c\x78\xf2\xab\x00\x3b\x4a\x4b\x31\xbd\x0a\x4b\x25\x0f\x83\xf5\x52\xfb\x45\x59\x12\xfe\x2a\xa3\x3b\x90\xc4\xc1\x6a\x2f\xfc\xdc\x28\xf8\xa6\x0f\x8e\x3f\xc6\x30\x62\x56\xda\xf8\xe0\x7e\xc8\x1f\x82\x68\x81\x8c\x0e\xb3\x6f\x52\xaa\x58\x6f\x33\x0b\xf7\xf6\x2c\x11\x8a\xbf\x9a\x75\x89\xf8\xa7\x91\x6e\xa8\x15\xe4\x4a\x84\xbe\x04\x20\x11\xf1\x2d\x0d\x25\x3a\x8d\xd2\xa9\x0a\xc9\x02\x7f\x3e\xf6\xa7\x0b\xe5\xd3\xc7\x47\xdd\x0b\x12\x08\xbc\x84\x71\x84\x92\x72\x08\x59\xed\x1d\xc1\xd0\xdb\x4c\x10\x93\x59\xd9\x56\xf7\x48\x92\x23\x83\x33\xfa\xe6\x11\xa7\x92\xf9\x40\x1d\x24\xad\xe2\x01\x07\xdb\x36\x8d\x08\xfd\x8a\x7f\xad\x60\xd5\x5f\xdb\x45\x0c\xc2\xb6\xd9\xd7\x03\xe0\x3e\xb7\xc8\x66\x2b\xe0\x68\xd5\x33\x3c\xf1\x81\x5d\xc0\x64\xa6\xbd\x7e\xf5\x50\x04\x73\xbd\x57\x61\x61\xa0\x0a\x7f\x10",
+ data: RefCell::new(SimpleProducer::new(&b"\x59\xf7\xff\x70\xff\x26\xa5\x58\x9a\x7c\x2a\xcb\xdc\x1c\x43\x63\x8c\xc4\xfa\x7c\x3f\x93\xcf\x15\x9f\x79\x2d\x21\xb0\x4f\x69\xb3\xac\x31\xfe\x98\x30\x44\x2e\xbd\xf1\x39\x0f\x9a\x72\xf1\x5c\x6a\x41\x93\xa2\xa3\x4c\xfe\x6b\x2a\x83\xfe\x15\x77\x1c\x98\x14\x76\xe3\xdd\xa5\x63\xf6\xe9\x19\x7b\x11\xce\xd5\xc7\x80\x68\xd9\x96\xf5\xac\x48\xaa\x61\x46\xde\x3e\x3f\x15\xdc\x77\x6a\x91\xdc\x52\x3e\xc2\xaa\x4e\x1e\xc4\x43\x5e\xeb\xa0\x7b\xc5\xb1\x0d\x83\x9e\xd1\x46\x30\xb7\x3f\x53\x21\x57\xd5\x08\xdb\xe0\x46\xe5\xe1\x27\x3c\x78\xf2\xab\x00\x3b\x4a\x4b\x31\xbd\x0a\x4b\x25\x0f\x83\xf5\x52\xfb\x45\x59\x12\xfe\x2a\xa3\x3b\x90\xc4\xc1\x6a\x2f\xfc\xdc\x28\xf8\xa6\x0f\x8e\x3f\xc6\x30\x62\x56\xda\xf8\xe0\x7e\xc8\x1f\x82\x68\x81\x8c\x0e\xb3\x6f\x52\xaa\x58\x6f\x33\x0b\xf7\xf6\x2c\x11\x8a\xbf\x9a\x75\x89\xf8\xa7\x91\x6e\xa8\x15\xe4\x4a\x84\xbe\x04\x20\x11\xf1\x2d\x0d\x25\x3a\x8d\xd2\xa9\x0a\xc9\x02\x7f\x3e\xf6\xa7\x0b\xe5\xd3\xc7\x47\xdd\x0b\x12\x08\xbc\x84\x71\x84\x92\x72\x08\x59\xed\x1d\xc1\xd0\xdb\x4c\x10\x93\x59\xd9\x56\xf7\x48\x92\x23\x83\x33\xfa\xe6\x11\xa7\x92\xf9\x40\x1d\x24\xad\xe2\x01\x07\xdb\x36\x8d\x08\xfd\x8a\x7f\xad\x60\xd5\x5f\xdb\x45\x0c\xc2\xb6\xd9\xd7\x03\xe0\x3e\xb7\xc8\x66\x2b\xe0\x68\xd5\x33\x3c\xf1\x81\x5d\xc0\x64\xa6\xbd\x7e\xf5\x50\x04\x73\xbd\x57\x61\x61\xa0\x0a\x7f\x10"[..])),
},
expected_sighash: *b"\xe2\xf3\xea\xf4\xb0\xdb\x06\xb6\xf1\xc7\x5a\xe2\x45\x8e\xd6\xfb\x09\x2f\xcd\x80\x0a\x14\x45\xea\x02\x37\x44\x0f\x03\x8c\x4a\xff",
},
@@ -716,7 +799,7 @@ mod tests {
gas_limit: b"\x06\x78\x77\x34\xcf\x85\x8b\xe4",
recipient: b"\xc5\xf4\x8d\xe2\x96\x7e\x3b\x67\x80\x6c\x45\xb8\xb5\xb9\xfd\x32\xd6\xb7\x74\x2f",
value: b"\x1c",
- data: b"\xee\x0d\x69\x5f\xc6\x29\x72\x14\x25\x2f\x2c\xae\x9b\x0c\x28\xed\xab\x86\x27\xa4\xf3\x0b\xb1\xe2\xd4\xfa\x6c\xa6\x5c\xc8\x1a\x28\xee\x5e\x69\x50\x91\xb5\x6e\x9e\xc2\xfa\x92\xbf\x92\xb3\x8e\x92\x45\xfb\x9c\x85\xd9\x6f\xe3\xab\x65\xd8\xdb\xef\xa3\x05\x0e\x69\xeb\x16\xf7\xef\x63\x52\x80\x86\xaa\x81\xc0\x45\x85\xd6\x00\x3e\xdc\x35\x7f\xeb\x01\x3e\x0b\x12\x86\x99\x71\x95\xb9\xde\x55\x02\x98\xb9\xc7\x2a\xa1\x5c\xc0\x4b\x51\x57\x7b\xb3\x3e\xaa\x59\x5a\x02\x6f\xb9\x7d\x4d\xe3\x60\x7a\x63\x09\x34\xe6\x83\xf1\x77\xb3\x22\x36\xcc\x2f\x09\x1a\x25\xa1\xa2\x60\x69\x6e\x59\xb3\x16\xef\x77\x6a\x23\x49\x81\x67\xbe\xe5\x92\x53\x79\x2e\x87\x77\x0c\x34\x09\xa9\xab\x40\x5e\xd0\x3e\x86\x2b\x13\xb3\x2b\xcd\x4f\xb9\xee\x4d\xbf\x31\xd3\x45\x5c\xb7\x86\x93\x10\x69\x15\xa8\xbd\xda\x9a\x93\xc0\x84\xbe\x24\x4a\xcc\xbe\xbc\x1e\x64\xbd\x79\x7e\xab\xf8\xee\x73\xf0\x5e\xd0\x58\x02\x71\x09\x20\xa3\xb4\xf1\xc0\xe6\xcf\x64\x35\xe3\x06\x49\xc3\xc2\x4d\x14\x81\x6d\xfe\xce\x1a\x22\x94\x20\x49\xcb\x41\x71\xd6\x6c\xd3\x7e\xae\x9a\x5c\xa4\xcd\xed\x74\x4f\x43\x9e\x47\x3f\x6f\xbb\x5a\xaf\x52\x8b\x80\xc8\x8e\xe3\xd0\xff\x09\xc9\x14\x3d\x98\x09\xf6\xe9\x92\x2f\x9b\x70\xbf\x09\xec\xaa\x8c\xe8\x0f\x37\xd8\x30\xd4\xcc\xb3\x2e\x81\x9a\x32\x3f\x55\xd3\xba\xef\xf1\x9e\x5a\x72\x8f\xbd\x14\xe1\xed\x69\xe6\xee\x29\xef\x85\xec\x27\x79\x19\x7b\xa4\x9c\x7b\x1a\x38\x80",
+ data: RefCell::new(SimpleProducer::new(&b"\xee\x0d\x69\x5f\xc6\x29\x72\x14\x25\x2f\x2c\xae\x9b\x0c\x28\xed\xab\x86\x27\xa4\xf3\x0b\xb1\xe2\xd4\xfa\x6c\xa6\x5c\xc8\x1a\x28\xee\x5e\x69\x50\x91\xb5\x6e\x9e\xc2\xfa\x92\xbf\x92\xb3\x8e\x92\x45\xfb\x9c\x85\xd9\x6f\xe3\xab\x65\xd8\xdb\xef\xa3\x05\x0e\x69\xeb\x16\xf7\xef\x63\x52\x80\x86\xaa\x81\xc0\x45\x85\xd6\x00\x3e\xdc\x35\x7f\xeb\x01\x3e\x0b\x12\x86\x99\x71\x95\xb9\xde\x55\x02\x98\xb9\xc7\x2a\xa1\x5c\xc0\x4b\x51\x57\x7b\xb3\x3e\xaa\x59\x5a\x02\x6f\xb9\x7d\x4d\xe3\x60\x7a\x63\x09\x34\xe6\x83\xf1\x77\xb3\x22\x36\xcc\x2f\x09\x1a\x25\xa1\xa2\x60\x69\x6e\x59\xb3\x16\xef\x77\x6a\x23\x49\x81\x67\xbe\xe5\x92\x53\x79\x2e\x87\x77\x0c\x34\x09\xa9\xab\x40\x5e\xd0\x3e\x86\x2b\x13\xb3\x2b\xcd\x4f\xb9\xee\x4d\xbf\x31\xd3\x45\x5c\xb7\x86\x93\x10\x69\x15\xa8\xbd\xda\x9a\x93\xc0\x84\xbe\x24\x4a\xcc\xbe\xbc\x1e\x64\xbd\x79\x7e\xab\xf8\xee\x73\xf0\x5e\xd0\x58\x02\x71\x09\x20\xa3\xb4\xf1\xc0\xe6\xcf\x64\x35\xe3\x06\x49\xc3\xc2\x4d\x14\x81\x6d\xfe\xce\x1a\x22\x94\x20\x49\xcb\x41\x71\xd6\x6c\xd3\x7e\xae\x9a\x5c\xa4\xcd\xed\x74\x4f\x43\x9e\x47\x3f\x6f\xbb\x5a\xaf\x52\x8b\x80\xc8\x8e\xe3\xd0\xff\x09\xc9\x14\x3d\x98\x09\xf6\xe9\x92\x2f\x9b\x70\xbf\x09\xec\xaa\x8c\xe8\x0f\x37\xd8\x30\xd4\xcc\xb3\x2e\x81\x9a\x32\x3f\x55\xd3\xba\xef\xf1\x9e\x5a\x72\x8f\xbd\x14\xe1\xed\x69\xe6\xee\x29\xef\x85\xec\x27\x79\x19\x7b\xa4\x9c\x7b\x1a\x38\x80"[..])),
},
expected_sighash: *b"\x32\x83\x28\x4b\x30\x88\x57\x98\x00\xe5\xa0\x84\x10\x4f\x5d\xe8\xf8\x75\xe0\x8d\xeb\xe1\xf2\xb4\x7c\x5c\xfa\xea\x88\x76\xbc\x1f",
},
@@ -729,7 +812,7 @@ mod tests {
gas_limit: b"\xb4\xdb\x6f\x87\x4d\x9d\x42\xc2",
recipient: b"\x6c\xb1\x70\xf7\xe2\xee\x1c\x50\x67\xbd\xe3\xe7\x6b\xa3\x77\xb4\x55\xeb\x98\xe0",
value: b"\xf6\x26\x11\x3a\xd1\x5d\xc1\xc8\x65\x99\x6e\xc1",
- data: b"\x81\xe7\x81\x52\x79\x5a\xdb\x45\x85\xfb\xd0\xeb\x6b\x66\x7c\x6a\x54\x64\x60\xde\xcc\x01\xc2\xec\xbd\x57\x1a\x84\x8f\x5e\x2c\xf0\x25\x52\x24\xe2\xcc\x70\x6c\x0e\x19\x01\x0c\x33\x47\x31\xf6\x3e\x8c\x16\x6a\x03\x0b\x73\x98\x6a\x90\xa5\xa2\xcc\x06\x86\x3a\xe9\xf7\x5c\x4f\x4e\x42\xd1\x99",
+ data: RefCell::new(SimpleProducer::new(&b"\x81\xe7\x81\x52\x79\x5a\xdb\x45\x85\xfb\xd0\xeb\x6b\x66\x7c\x6a\x54\x64\x60\xde\xcc\x01\xc2\xec\xbd\x57\x1a\x84\x8f\x5e\x2c\xf0\x25\x52\x24\xe2\xcc\x70\x6c\x0e\x19\x01\x0c\x33\x47\x31\xf6\x3e\x8c\x16\x6a\x03\x0b\x73\x98\x6a\x90\xa5\xa2\xcc\x06\x86\x3a\xe9\xf7\x5c\x4f\x4e\x42\xd1\x99"[..])),
},
expected_sighash: *b"\xbf\x95\x34\x25\x03\x76\x23\xc9\x5d\xd8\x70\xae\xc9\xe1\xe3\xee\x80\x77\xe2\xde\x61\xb6\xa2\x4e\x24\x82\xa1\xf9\x32\x06\x76\x6e",
},
@@ -742,7 +825,7 @@ mod tests {
gas_limit: b"\x9f\xaf\xcb\x52\x05\x78\xfd\x1d",
recipient: b"\x5d\x0e\x8d\x1c\xcb\x1a\x0a\x15\x5e\x02\x60\x52\x2f\xd3\x46\x26\x9f\x01\x9e\xaa",
value: b"\x2a\x65\xbc\x4d\x5c\x28\x74\x92\xa4\x3e\xd0\x62\x12\xad\xdf\x1f",
- data: b"\x3e\x76\x47\xb7\x19\x3e\x53\x5e\x31\x7a\x66\x5d\xa6\xe2\xfd\x77\x3a\x68\x1e\x54\xcd\x6e\xf7\x65\x9c\x0c\xae",
+ data: RefCell::new(SimpleProducer::new(&b"\x3e\x76\x47\xb7\x19\x3e\x53\x5e\x31\x7a\x66\x5d\xa6\xe2\xfd\x77\x3a\x68\x1e\x54\xcd\x6e\xf7\x65\x9c\x0c\xae"[..])),
},
expected_sighash: *b"\xc1\x1c\xe1\xf7\xa3\x20\xd3\x88\xcd\xa8\x64\x31\x6f\xf6\x80\x92\xcf\xc6\x1a\x4c\xbc\x6d\xdc\xe5\xa8\x21\x21\x74\xf5\x67\x98\x17",
},
@@ -755,7 +838,7 @@ mod tests {
gas_limit: b"\xc4\x3a\x0b\x37\x66\x24\xdb\xd8",
recipient: b"\xbc\xce\x6c\x1d\x3e\xb2\xe7\x18\xb6\xba\x47\xe4\x67\xe8\x03\x69\xf5\x54\x03\xf0",
value: b"\x98\x89\x56\x37\x36\x63\x7d\xdf",
- data: b"\x38\x24\xa4\xdd\x96\xf4\x5a\x08\x34\x06\x96\x6f\xf4\x86\x5b\xa0\xf8\xfa\x5f\xfd\xf5\xbb\x34\x08\x8a\xcb\xb1\xa8\x8f\x2b\x2d\x47\x60\x7f\xaa\x6d\x0d\xa0\xc7\xa1\x6f\xee\x55\xdd\x98\xf3\x6b\x1f\x80\xdd\x47\x89\xa0\x7b\x2b\xc5\x60\xfc\xe5\xc6\x8c\xe1\x94\x7f\x53\x1e\x7e\xa7\xbd\xba\x20\xd9\xa8\x1a\x2e\x6e\x47\xb4\x94\x6b\x40\xfe\x10\x7e\x14\x62\xca\x67\x23\x58\x66\xc1\x9f\x14\x48\x6b\x13\x26\xfc\xc3\xcc\xbc\x60\x33\xee\xb3\x37\x50\x43\x1f\x1a\x56\xe5\x52\xb9\x1b\xb8\x6a\x0c\xba\xbd\x2f\x9e\x84\x0a\x38\x06\xab\x46\x04\x9f\x08\x84\xdf\x23\xd0\x67\x8f\x5e\xc5\x09\x49\x08\xd8\xf1\xe8\x63\x30\x0d\x73\xc6\x18\x8c\x07\x50\x0f\xd8\x66\xe3\x5d\xd9\x97\xd3\x34\x43\xc9\xc6\xd6\xea\xb9\x49\xab\xae\x5b\xff\x8b\x84\xf5\x13\x32\x1d\x0e\x8c\xa3\xd8\xc5\xd6\x31\xfa\x20\x96\x96\xa7\xe7\x1b\x8c\x1e\x83\x5e\x74\x0b\x88\x7d\x93\x06\xcb\xc9\x88\x9b\xf1\x14\x77\x75\xe0\x56\x19\xf8\xbc\xa6\x5f\xdb\x83\x2e\xe3\xe4\x4c\x82\xb6\xbe\xc8\x14\xc9\xa8\x46\x20\x36\x74\x5a\x4e\x52\xc8\xbb\xca\x01\xc4\x88\xc9\x05\xfd\xde\x2b\xe8\xec\x36\x5a\xb3\x0c\xfb\x03\xe9\xb8\x14\x51\xcb\x1a\x52\x85\xa9\x39\x4c\xf6\xea\xd6\x9c\xe7\xc2\x87\xaf\x43\x47\x83\x64\xc6\xdc\xeb\x31\x31\xd2\x70\x4b\x3c\x39\x4e\x8c\xae\x43\x11\xbb\xf7\xd0\x4a\xf1\xf4\x7f\x0f\x4e\xec\x78\x3f\xa8\xab\xf3\xad\x6f\x61\x74\xa2\xda\x10\x84\xe1\x4f\xbd\xb1\x98\xd2\x7e\xa3\x43\xaf\xdc\xe9\xcc\x36\x68\xdc\x90\xde\x69\xb4\x5c\x2b\xca\xa6\x96\xbd\x62\x4d\x40\x8d\x8d\xb1\x76\xbc\xc4\x90\x87\x44\xb9\x61\x0d\x4b\x2a\xb6\xf6\x4d\x4c\x59\xca\x6d\xd2\x1b\x94\xa0\x26\x8d\xbd\x5c\x13\xdc\x0e\x04\x1a\x70\xde\xd0\x6b\x1c\xcc\x45\x61\x45\xdf\x25\x21\xd0\x04\x58\x18\xf4\x31\x59\x1c\x43\xd0\xd4\x5a\x0e\x86\xb1\xa3\x43\x95\xa1\x79\xf3\xdb\xeb\x55\xc5\x52\x51\x45\x60\x97\x0f\x88\xee\x55\xcf\x7a\xe6\xce\x29\xbd\xdb\xe6\x3e\x4a\x48\xb1\x47\x9f\x44\xde\x18\x40\xc2\xe8\x89\x0e\xe0\xce\x27\xfd\x35\x4e\xe1\xa6\x78\xb3\x75\xc0\x83\x69\x2c\xdf\x0e\x75\x22\x2b\x0c\xa2\xd7\x00\x91\x3e\xf9\x70\x0a\xbf\xc3\xf3\x76\x05\xf1\xdb\x3d\x00\xb0\x5a\x01\x56\xf1\xd8\xf2\x58\x61\x78\xc8\x23\x1d\xab\xdb\x82\x4c\x97\x83\x60\xb3\x02\x24\x4a\x30\x32\x3e\xb4\x0b\xac\xda\x8e\xab\x42\xec\x2d\x46\xdb\xeb\x2e\xfc\xa4\xd7\x78\x3a\xd3\x55\xc4\x73\xb8\xf7\x71",
+ data: RefCell::new(SimpleProducer::new(&b"\x38\x24\xa4\xdd\x96\xf4\x5a\x08\x34\x06\x96\x6f\xf4\x86\x5b\xa0\xf8\xfa\x5f\xfd\xf5\xbb\x34\x08\x8a\xcb\xb1\xa8\x8f\x2b\x2d\x47\x60\x7f\xaa\x6d\x0d\xa0\xc7\xa1\x6f\xee\x55\xdd\x98\xf3\x6b\x1f\x80\xdd\x47\x89\xa0\x7b\x2b\xc5\x60\xfc\xe5\xc6\x8c\xe1\x94\x7f\x53\x1e\x7e\xa7\xbd\xba\x20\xd9\xa8\x1a\x2e\x6e\x47\xb4\x94\x6b\x40\xfe\x10\x7e\x14\x62\xca\x67\x23\x58\x66\xc1\x9f\x14\x48\x6b\x13\x26\xfc\xc3\xcc\xbc\x60\x33\xee\xb3\x37\x50\x43\x1f\x1a\x56\xe5\x52\xb9\x1b\xb8\x6a\x0c\xba\xbd\x2f\x9e\x84\x0a\x38\x06\xab\x46\x04\x9f\x08\x84\xdf\x23\xd0\x67\x8f\x5e\xc5\x09\x49\x08\xd8\xf1\xe8\x63\x30\x0d\x73\xc6\x18\x8c\x07\x50\x0f\xd8\x66\xe3\x5d\xd9\x97\xd3\x34\x43\xc9\xc6\xd6\xea\xb9\x49\xab\xae\x5b\xff\x8b\x84\xf5\x13\x32\x1d\x0e\x8c\xa3\xd8\xc5\xd6\x31\xfa\x20\x96\x96\xa7\xe7\x1b\x8c\x1e\x83\x5e\x74\x0b\x88\x7d\x93\x06\xcb\xc9\x88\x9b\xf1\x14\x77\x75\xe0\x56\x19\xf8\xbc\xa6\x5f\xdb\x83\x2e\xe3\xe4\x4c\x82\xb6\xbe\xc8\x14\xc9\xa8\x46\x20\x36\x74\x5a\x4e\x52\xc8\xbb\xca\x01\xc4\x88\xc9\x05\xfd\xde\x2b\xe8\xec\x36\x5a\xb3\x0c\xfb\x03\xe9\xb8\x14\x51\xcb\x1a\x52\x85\xa9\x39\x4c\xf6\xea\xd6\x9c\xe7\xc2\x87\xaf\x43\x47\x83\x64\xc6\xdc\xeb\x31\x31\xd2\x70\x4b\x3c\x39\x4e\x8c\xae\x43\x11\xbb\xf7\xd0\x4a\xf1\xf4\x7f\x0f\x4e\xec\x78\x3f\xa8\xab\xf3\xad\x6f\x61\x74\xa2\xda\x10\x84\xe1\x4f\xbd\xb1\x98\xd2\x7e\xa3\x43\xaf\xdc\xe9\xcc\x36\x68\xdc\x90\xde\x69\xb4\x5c\x2b\xca\xa6\x96\xbd\x62\x4d\x40\x8d\x8d\xb1\x76\xbc\xc4\x90\x87\x44\xb9\x61\x0d\x4b\x2a\xb6\xf6\x4d\x4c\x59\xca\x6d\xd2\x1b\x94\xa0\x26\x8d\xbd\x5c\x13\xdc\x0e\x04\x1a\x70\xde\xd0\x6b\x1c\xcc\x45\x61\x45\xdf\x25\x21\xd0\x04\x58\x18\xf4\x31\x59\x1c\x43\xd0\xd4\x5a\x0e\x86\xb1\xa3\x43\x95\xa1\x79\xf3\xdb\xeb\x55\xc5\x52\x51\x45\x60\x97\x0f\x88\xee\x55\xcf\x7a\xe6\xce\x29\xbd\xdb\xe6\x3e\x4a\x48\xb1\x47\x9f\x44\xde\x18\x40\xc2\xe8\x89\x0e\xe0\xce\x27\xfd\x35\x4e\xe1\xa6\x78\xb3\x75\xc0\x83\x69\x2c\xdf\x0e\x75\x22\x2b\x0c\xa2\xd7\x00\x91\x3e\xf9\x70\x0a\xbf\xc3\xf3\x76\x05\xf1\xdb\x3d\x00\xb0\x5a\x01\x56\xf1\xd8\xf2\x58\x61\x78\xc8\x23\x1d\xab\xdb\x82\x4c\x97\x83\x60\xb3\x02\x24\x4a\x30\x32\x3e\xb4\x0b\xac\xda\x8e\xab\x42\xec\x2d\x46\xdb\xeb\x2e\xfc\xa4\xd7\x78\x3a\xd3\x55\xc4\x73\xb8\xf7\x71"[..])),
},
expected_sighash: *b"\x62\x4c\x4b\x28\x9a\x82\x2a\xf5\x24\xda\x07\x77\xbe\x1b\x0f\xac\xd7\x49\xe8\x8e\xb1\x9a\x66\x44\xdd\x63\x05\x6b\x22\x19\x2b\x2b",
},
@@ -768,7 +851,7 @@ mod tests {
gas_limit: b"\xf7\xda\x52\xe4\xfa\x22\xe9\x08",
recipient: b"\x34\x76\xe3\x02\xde\x86\x6e\x49\x79\x0d\x81\xd8\x02\xcd\x55\xc5\x3d\x7a\xa5\xd9",
value: b"\x80\xe4\xf0\x01\xcb\xe6\x1d\x33\x09\x76\x47\xf1",
- data: b"\xb1\x7d\x17\x7f\x02\xad\xd4\x6b\x4f\x6d\x35\x9c\x8c\xe1\x9e\xd8\x52\xf6\xc7\xea\x38\xf2\x7e\x54\x44\x0e\x0d\x12\x0d\x4f\xaf\x35\xb7\xb2\x2c\x93\x77\xcd\xfb\x1b\xec\x21\xda\x19\x8f\xde\xa1\xa9\x89\xd2\x53\xfd\xb2\xda\xe2\x5f\x83\x10\xb5\x10\xb6\x67\x1a\x42\x52\x43\xb4\x6e\x1a\xd8\x59\x24\xb6\x26\x65\xb6\x06\x0f\xfb\xf2\x1d\x6a\x4a\xde\xb6\x0c\x22\xf2\xe1\xfc\x30\xcf\xf0\x42\xb4\x08\x4c\x2e\xca\x3d\x9d\xfa\x0a\x21\xbc\xe8\x92\xe0\x4e\x87\x70\x3a\x24\x03\x01\xb1\x85\xcb\x79\x6b\x41\xc7\xec\xc6\xde\x2d\x4b\x9c\x78\x56\x4a\xd4\x0d\x98\xce\x58\x97\x36\x63\x21\x98\x4d\xd3\x21\x10\x36\x88\xfd\x38\xae\x31\xff\xee\x7c\x55\xa3\xc7\xd0\x33\xd3\xa3\x5e\x99\x89\x01\x83\x4e\x7e\x9e\xdf\x32\xde\x3e\xcd\x07\xc4\xb8\xb5\xf8\x55\x54\x57\x6d\xb9\x06\x24\x16\x8a\xd0\x55\x5e\xbc\x0c\x5a\xb1\x64\x5a\xda\xa6\xc3\x9e\x89\xce\x71\x74\x67\xf1\x08\x89\x1e\xd5\x40\xfd\x4d\xdf\xd1\x82\x49\xe5\xfe\x02\x73\x70\xbc\xf9\x14\xc3\x32\xba\xc8\xce\xa0\xc6\x38\x0b\x35\xad\x42\x01\xfd\x13\xb3\x65\x63\x3f\xe7\x10\x52\xc5\x05\x67\xc6\x36\x6b\x9b\x61\xda\x0b\x48\x7c\xe7\xe4\x41\x31\x13\x66\x34\xb9\xf8\xb3\x15\xe2\x7c\x0f\x27\xd5\x37\x1f\x79\xc4\xa9\xf2\xb0\x0a\x6c\x92\xc0\xeb\xdb\x31\x17\x64\x5d\xb5\x67\x8f\xca\xd0\xb6\xd2\xec\x55\x98\x4b\x37\x89\x6c\x47\x6e\xa8\xd4\x62\x7a\x1c\xb9\xbe\x1a\xac\x17\xf0\xfa\x67\x49\xb3\x0f\x4c\xbd\xa3\x5d\x6f\xf3\x45\xb6\x7f\x82\x61\x58\x14\xc9\x61\xb1\x4d\x26\xd4\x5e\xa8\x0f\x5e\x25\x86\xca\x59\x24\xd3\x7f\x06\xaf\xda\x0b\x00\x24\x0b\x24\x43\xfd\x5a\x6f\x7d\x91\x9f\x86\xc3\x3e\x7a\x4a\x67\xb8\xad\x9f\x26\xfe\x59\xda\xc3\xac\x6a\x17\xbc\x96\x38\x1e\x83\x82\x13\x19\x42\xf5\x0f\xbd\x03\x2a\x0b\xd3\xa9\xbb\x3b\x3e\x75\xf0\x4c\xa1\xc4\x72\x50\x8c\xd5\xdc\xfb\xdd\xbd\xbb\x39\x1d\x2a\x91\x38\xa6\x2e\x87\xf4\x2a\x47\x04\xac\x99\x78\xdd\x53\x4e\x17\x02\xd2\xcf\x69\xe7\x91\xa6\x8b\xe3\xb9\x04\xd2\x5b\x95\xe2\xf3\x2f\x99\x76\x87\x6e\x37\xe5\x19\x7b\xaf\xb3\x46\xa4\x50\x5d\x89\xcc\x76\x8e\x57\x34\x27\x87\xbc\x43\x35\x40\xbd\x08\xb0\x52\x47\x06\x1b\x5e\xda\x7a\xb8\xa2\x56\xae\x65\x82\x5b\xe1\x41\x8c\x37\x42\x67\x3b\xd6\x8e\xaf\x0d\xdf\x4f\x7f\xf2\xa9\x8e\x05\xab\x11\xd5\x8f\x22\x51\xfa\x4d\x8e\xa5",
+ data: RefCell::new(SimpleProducer::new(&b"\xb1\x7d\x17\x7f\x02\xad\xd4\x6b\x4f\x6d\x35\x9c\x8c\xe1\x9e\xd8\x52\xf6\xc7\xea\x38\xf2\x7e\x54\x44\x0e\x0d\x12\x0d\x4f\xaf\x35\xb7\xb2\x2c\x93\x77\xcd\xfb\x1b\xec\x21\xda\x19\x8f\xde\xa1\xa9\x89\xd2\x53\xfd\xb2\xda\xe2\x5f\x83\x10\xb5\x10\xb6\x67\x1a\x42\x52\x43\xb4\x6e\x1a\xd8\x59\x24\xb6\x26\x65\xb6\x06\x0f\xfb\xf2\x1d\x6a\x4a\xde\xb6\x0c\x22\xf2\xe1\xfc\x30\xcf\xf0\x42\xb4\x08\x4c\x2e\xca\x3d\x9d\xfa\x0a\x21\xbc\xe8\x92\xe0\x4e\x87\x70\x3a\x24\x03\x01\xb1\x85\xcb\x79\x6b\x41\xc7\xec\xc6\xde\x2d\x4b\x9c\x78\x56\x4a\xd4\x0d\x98\xce\x58\x97\x36\x63\x21\x98\x4d\xd3\x21\x10\x36\x88\xfd\x38\xae\x31\xff\xee\x7c\x55\xa3\xc7\xd0\x33\xd3\xa3\x5e\x99\x89\x01\x83\x4e\x7e\x9e\xdf\x32\xde\x3e\xcd\x07\xc4\xb8\xb5\xf8\x55\x54\x57\x6d\xb9\x06\x24\x16\x8a\xd0\x55\x5e\xbc\x0c\x5a\xb1\x64\x5a\xda\xa6\xc3\x9e\x89\xce\x71\x74\x67\xf1\x08\x89\x1e\xd5\x40\xfd\x4d\xdf\xd1\x82\x49\xe5\xfe\x02\x73\x70\xbc\xf9\x14\xc3\x32\xba\xc8\xce\xa0\xc6\x38\x0b\x35\xad\x42\x01\xfd\x13\xb3\x65\x63\x3f\xe7\x10\x52\xc5\x05\x67\xc6\x36\x6b\x9b\x61\xda\x0b\x48\x7c\xe7\xe4\x41\x31\x13\x66\x34\xb9\xf8\xb3\x15\xe2\x7c\x0f\x27\xd5\x37\x1f\x79\xc4\xa9\xf2\xb0\x0a\x6c\x92\xc0\xeb\xdb\x31\x17\x64\x5d\xb5\x67\x8f\xca\xd0\xb6\xd2\xec\x55\x98\x4b\x37\x89\x6c\x47\x6e\xa8\xd4\x62\x7a\x1c\xb9\xbe\x1a\xac\x17\xf0\xfa\x67\x49\xb3\x0f\x4c\xbd\xa3\x5d\x6f\xf3\x45\xb6\x7f\x82\x61\x58\x14\xc9\x61\xb1\x4d\x26\xd4\x5e\xa8\x0f\x5e\x25\x86\xca\x59\x24\xd3\x7f\x06\xaf\xda\x0b\x00\x24\x0b\x24\x43\xfd\x5a\x6f\x7d\x91\x9f\x86\xc3\x3e\x7a\x4a\x67\xb8\xad\x9f\x26\xfe\x59\xda\xc3\xac\x6a\x17\xbc\x96\x38\x1e\x83\x82\x13\x19\x42\xf5\x0f\xbd\x03\x2a\x0b\xd3\xa9\xbb\x3b\x3e\x75\xf0\x4c\xa1\xc4\x72\x50\x8c\xd5\xdc\xfb\xdd\xbd\xbb\x39\x1d\x2a\x91\x38\xa6\x2e\x87\xf4\x2a\x47\x04\xac\x99\x78\xdd\x53\x4e\x17\x02\xd2\xcf\x69\xe7\x91\xa6\x8b\xe3\xb9\x04\xd2\x5b\x95\xe2\xf3\x2f\x99\x76\x87\x6e\x37\xe5\x19\x7b\xaf\xb3\x46\xa4\x50\x5d\x89\xcc\x76\x8e\x57\x34\x27\x87\xbc\x43\x35\x40\xbd\x08\xb0\x52\x47\x06\x1b\x5e\xda\x7a\xb8\xa2\x56\xae\x65\x82\x5b\xe1\x41\x8c\x37\x42\x67\x3b\xd6\x8e\xaf\x0d\xdf\x4f\x7f\xf2\xa9\x8e\x05\xab\x11\xd5\x8f\x22\x51\xfa\x4d\x8e\xa5"[..])),
},
expected_sighash: *b"\x0e\x86\xfc\x33\xac\x6b\x2f\xe3\x80\x7d\x40\xb8\x5b\xe0\x00\x3a\x09\xfe\xdf\x37\xdf\xf5\xcf\x73\x80\x99\x9c\x71\xa0\xdb\x69\xc8",
},
@@ -781,7 +864,7 @@ mod tests {
gas_limit: b"\x9c\xd2\xc1\x8b\xa2\xdb\xbe\x3b",
recipient: b"\x41\x09\x23\x3a\xc4\xdd\xcc\xf8\xe7\x43\x64\x9d\x43\xb3\xeb\x6f\x2e\xe2\xbb\x3b",
value: b"\x70\x20\x42\x5e\x5e\xe6\x0c\x64\xb0\xcf\x17\x08\x63\x38\x0b",
- data: b"\x06\xbe\x45\xf2\xaa\xe3\xca\xc9\x77\xcc\x3f\x03\x7a\x98\xb9\xa5\x9d\x6a\x66\xdd\xfd\xc7\x1a\xe8\x42\xb6\x82\xf7\x1b\xdc\xac\xe8\x80\x27\x7b\x32\xef\x1d\xc3\x70\x94\xf6\x29\xfa\xec\xeb\x6c\x26\x01\x02\xff\x9b\x6e\x88\x62\xbf\xd4\x85\x6c\xf2\xca\x02\xd7\x80\x1d\xc5\xc2\x0e\xa5\x09\x74\x19\x3e\x32\xd3\xf0\x84\xf1\x84\x47\xab\xab\xd9\x6f\x98\x7c\x87\x9a\x94\x05\x85\x24\x7a\x9a\x01\x19\xb9\x18\x99\x2e\x00\x9f\x19\x62\xab\xa9\x97\x4a\xd2\xc0\x65\x15\x03\xfe\xc3\x90\x74\x87\xf7\x4e\x90\x09\x74\x5e\x33\xe0\xfb\x6a\x34\x9d\xab\x13\xd4\xc3\x12\xeb\xe8\xfb\x0c\x7d\x54\x55\x89\x1a\x82\x82\xc8\xbb\x0c\x89\x57\x61\xa9\x6c\x18\x93\x00\x50\x91\x30\x00\x95\xc4\xf6\x9a\xa2\x4e\x70\xe6\x44\xd1\x7a\xf3\xcd\xc2\x89\xf6\x67\x36\x06\xfa\x87\xfb\xd3\xfb\xde\x21\x1d\xfd\x1a\x29\x3c\x4e\x44\x5f\xb5\x4b\xb8\xb3\xef\x2f\xce\x61\x0c\x06\xca\xb5\xd6\xb3\x38\xce\xe3\xb5\xaf\x1c\x67\x3e\x9a\xe8\x4f\x56\x13\xc0\x13\x20\x1e\x54\xfb\xc1\xea\x5c\xbc\x97\xa4\xd2\x2c\xb8\xd1\xae\x0e\x05\x47\xbb\x50\xa4\x97\x4b\x99\x89\x25\xf4\x1c\x87\x59\x26\x01\xf9\x95\x0d\x72\x46\xf8\xe4\x1c\x3b\x65\x02\x8b\x4e\xd2\xbc\x39\xa8\x08\x9f\x09\x32\x31\xe7\xa6\xe5\x2c\x4d\x34\x29\x2d\xa1\x26\xfc\xfc\x83\xc5\x61\xb8\x6e\x00\xe8\xcc\x49\x67\x3c\xcd\xec\x8f\x56\xd2\xed",
+ data: RefCell::new(SimpleProducer::new(&b"\x06\xbe\x45\xf2\xaa\xe3\xca\xc9\x77\xcc\x3f\x03\x7a\x98\xb9\xa5\x9d\x6a\x66\xdd\xfd\xc7\x1a\xe8\x42\xb6\x82\xf7\x1b\xdc\xac\xe8\x80\x27\x7b\x32\xef\x1d\xc3\x70\x94\xf6\x29\xfa\xec\xeb\x6c\x26\x01\x02\xff\x9b\x6e\x88\x62\xbf\xd4\x85\x6c\xf2\xca\x02\xd7\x80\x1d\xc5\xc2\x0e\xa5\x09\x74\x19\x3e\x32\xd3\xf0\x84\xf1\x84\x47\xab\xab\xd9\x6f\x98\x7c\x87\x9a\x94\x05\x85\x24\x7a\x9a\x01\x19\xb9\x18\x99\x2e\x00\x9f\x19\x62\xab\xa9\x97\x4a\xd2\xc0\x65\x15\x03\xfe\xc3\x90\x74\x87\xf7\x4e\x90\x09\x74\x5e\x33\xe0\xfb\x6a\x34\x9d\xab\x13\xd4\xc3\x12\xeb\xe8\xfb\x0c\x7d\x54\x55\x89\x1a\x82\x82\xc8\xbb\x0c\x89\x57\x61\xa9\x6c\x18\x93\x00\x50\x91\x30\x00\x95\xc4\xf6\x9a\xa2\x4e\x70\xe6\x44\xd1\x7a\xf3\xcd\xc2\x89\xf6\x67\x36\x06\xfa\x87\xfb\xd3\xfb\xde\x21\x1d\xfd\x1a\x29\x3c\x4e\x44\x5f\xb5\x4b\xb8\xb3\xef\x2f\xce\x61\x0c\x06\xca\xb5\xd6\xb3\x38\xce\xe3\xb5\xaf\x1c\x67\x3e\x9a\xe8\x4f\x56\x13\xc0\x13\x20\x1e\x54\xfb\xc1\xea\x5c\xbc\x97\xa4\xd2\x2c\xb8\xd1\xae\x0e\x05\x47\xbb\x50\xa4\x97\x4b\x99\x89\x25\xf4\x1c\x87\x59\x26\x01\xf9\x95\x0d\x72\x46\xf8\xe4\x1c\x3b\x65\x02\x8b\x4e\xd2\xbc\x39\xa8\x08\x9f\x09\x32\x31\xe7\xa6\xe5\x2c\x4d\x34\x29\x2d\xa1\x26\xfc\xfc\x83\xc5\x61\xb8\x6e\x00\xe8\xcc\x49\x67\x3c\xcd\xec\x8f\x56\xd2\xed"[..])),
},
expected_sighash: *b"\x5f\xfa\x14\x19\xbb\x00\xd8\xb5\xf4\x5f\xf2\xe4\xa6\x78\xf4\x0f\xcc\x98\x9e\xb4\x13\x44\x97\x3f\x2f\x19\xbf\x12\xe3\x2b\xf1\x4f",
},
@@ -794,7 +877,7 @@ mod tests {
gas_limit: b"\xfc\x83\xaf\xe3\x47\x8e\x24\x51",
recipient: b"\x84\xd6\x0d\xc2\xfa\x39\x49\x69\x55\x33\x3c\xdd\x8e\x32\x27\xfc\xc8\x9c\x3f\xbe",
value: b"\xfa\x3b\x37\xec",
- data: b"\xf0\x1d\x76\x2d\xb8\xbd\x48\x5c\xf5\x94\xcc\x30\x71",
+ data: RefCell::new(SimpleProducer::new(&b"\xf0\x1d\x76\x2d\xb8\xbd\x48\x5c\xf5\x94\xcc\x30\x71"[..])),
},
expected_sighash: *b"\xdf\x0b\xee\x8e\x5f\x53\x37\x10\xb4\xe6\x16\xeb\xe8\xdc\xf5\x89\xbd\xa0\x60\x8f\xf5\xcc\xbe\x63\x14\x37\xc5\xc8\xcb\xe5\xf7\x4b",
},
@@ -807,7 +890,7 @@ mod tests {
gas_limit: b"\x6b\xd0\x7e\x2a\x14\xfe\x13\x52",
recipient: b"\x50\x92\x7c\x67\x33\xd7\xe7\x6f\xc3\x6c\x11\xac\xc9\xa4\xe9\x51\x2f\xab\x56\x01",
value: b"\xaa\x2d\x0f\x00\x6f\xd0\x6c\x01\x65\x73\x24\x26\xe1\x17\xda\x3b",
- data: b"\x52\x1d\x09\x58\x5c\xa8\x53\xba\x6f\x93\xe2\x60\x22\x9b\xf6\x59\x08\xa4\xa9\x50\x8c\xf4\xd9\x9a\x21\x6e\xaf\xe4\xd1\xc1\x1d\x6d\x15\x2c\x20\xcd\x2b\x0a\x9f\x66\x2e\x0c\x8e\x3a\xbf\x99\x49\x85\x9b\x1e\x55\xf3\x1d\x86\xfc\x66\xd2\x3d\x8b\x61\x99\x5b\x0a\x40\xf9\x4d\x38\x01\xb6\xba\x74\x9f\xc8\x70\x0e\xad\xc2\x6b\x26\xcc\xba\x3b\x57\x4d\xa9\xbb\x3e\x21\xd0\x02\x35\xac\xa1\x08\x9c\x8d\x30\xfe\xa0\x81\x30\x33\xb6\x36\x59\xb7\x6c\xae\x78\x01\xb0\xa7\xe9\x32\xe8\xd4\xcf\x34\x4b\xb4\xff\xae\xae\x7e\x73\x9a\x65\xfc\x57\x93\x79\xdc\x25\x88\xd0\xa6\xe7\x57\x56\xaa\xdd\x34\x66\x19\x77\xb8\x35\xdc\x6c\xe1\x71\xb8\x8c\x3a\x62\xa0\xf1\x25\xcf\xa8\x55\x5f\xf4\xaf\x6d\xb5\x34\xc7\x86\x14\x6b\x43\xf7\x6a\x48\x25\xe0\xfb\x61\x03\xaa\x89\x13\x98\x97\xff\xf3\x91\x33\x14\xea\xc1\x5b\x0e\x2d\xc0\xe0\xa3\x58\x3b\x09\xd9\x0a\x0a\xc3\x67\xb9\x07\x1e\x7b\xe0\x83\x67\xf4\x98\x3b\xc1\xce\x23\x93\xe5\x12\xf2\xd9\xdb\x0e\x33\x32\x44\xad\x21\x4a\x3f\x00\x39\x69\xb0\xca\x6c\x57\x10\xb1\x23\x1a\x75\x72\x69\xfe\xf9\x53\x05\x45\xb5\x7f\xe9\xbd\xfc\x2f\x08\xbf\x78\xb4\xd8\x84\x65\xae\xab\x8d\x56\x6a\x6c\x88\x64\x07\x01\x63\x29\x01\x76\x12\x9f\x44\xd7\xd3\xff\x3a\xaa\x4d\xe3\x63\x2c\xd2\x98\x7e\x7b\xba\x92\x82\x13\x15\xa9\xb1\xbf\xc0\x9c\x52\xde\x51\x57\xa2\x4f\xf7\xf9\xb8\x48\x09\x26\x67\xa7\x48\xc7\x12\xa4\xc8\xc5\x74\xbd\x98\x4d\xd1\x52\xd3\x3c\x0f\x41\xe0\x76\x3f\x8f\x35\xca\x67\x2d\x87\xac\xb0\xad\x71\x67\xed\xf8\xdd\x75\xf2\xa5\xa5\x40\xc1\xc5\xc7\x6c\x02\x9e\x5e\x6e\x8c\x2d\x2e\x46\xef\x32\xf8\x13\xa3\x7b\x2b\x75\x82\x34\x6c\xb2\xa6\x3d\x50\xfc\xcb\x73\xbf\xf0\xed\xd8\xcd\x07\xc5\x9e\xf1\x2a\x4e\x38\x3e\xc9\xe6\x3b\xf1\xb3\x4f\x6b\xaa\xf4\xe9\x07\x51\xd1\xf6\xfe\x17\x0b\xe8\x56\x36\xa1\x79\x2c\x3e\x38\x2e\x1a\x0a\xd0\xc9\xa4\x90\xe5\xc7\x57\xe5\x15\x28\xe7\xa3\x09\xab\xb9\x3f\x9f\xd6\x95\x73\x95\xa9\xe5\x20\x35\xb2\x06\x52\xe6\x53\x80\x34\x2a\xf2\x02\x3c\x54\x29\x46\xfe\xd4\x54\xfa\x0a\xc1\x85\xf0\x99\xd0\x02\xa3\xae\x50\x52\xa8\x3c\xca\xe5\xa3\x15\x43\xe5\x4e\xfd\x0b\x2e\x4e\xd9\xbc\xf7\xf4\xce\x9b\xc0\x27\x97\x2a\xb4\xa6\xae\xe7\xa3\x4e\x60\x0f\x9b\xde\xd7\x82\x04\xb8\x44\xbb\x21\x93\x9b\x39\x45\x2c\x46\x8b\xf8\x63\x95\xb5\x1e\x70\xf5\xcd\x4e\xce\x2a\x66\x42\x9e\xf9\xd0\x3d\xbb\xa3\xa6\x20\x11\x8d\xf9\x49\x68\x76\x0e\x00\x04\x2a\x48\x36\x5d\xd2\x2f\x1c\xe7\x21\x6a\x40\x8e\x05\x43\x72\xd6\xfa\x33\xc5\xbe\xb4\xbb\x9e\xd5\x3b\xc3\xc2\xa3\x7c\x61\x81\x83\x12\xa1\x1c\xd2\xfa\x04\x9a\x3f\xe8\x74\xad\xb5\x12\xb6\xc9\xbf\xca\x1d\x40\x53\xd8\x7f\x62\xd4\xae\xcf\xf4\x1c\x5c\x3f\x7f\x76\xb8\x84\xb8\x99\x2c\x87\xcf\x78\x0c\xda\x5f\xc1\xb7\x5e\x0b\x1e",
+ data: RefCell::new(SimpleProducer::new(&b"\x52\x1d\x09\x58\x5c\xa8\x53\xba\x6f\x93\xe2\x60\x22\x9b\xf6\x59\x08\xa4\xa9\x50\x8c\xf4\xd9\x9a\x21\x6e\xaf\xe4\xd1\xc1\x1d\x6d\x15\x2c\x20\xcd\x2b\x0a\x9f\x66\x2e\x0c\x8e\x3a\xbf\x99\x49\x85\x9b\x1e\x55\xf3\x1d\x86\xfc\x66\xd2\x3d\x8b\x61\x99\x5b\x0a\x40\xf9\x4d\x38\x01\xb6\xba\x74\x9f\xc8\x70\x0e\xad\xc2\x6b\x26\xcc\xba\x3b\x57\x4d\xa9\xbb\x3e\x21\xd0\x02\x35\xac\xa1\x08\x9c\x8d\x30\xfe\xa0\x81\x30\x33\xb6\x36\x59\xb7\x6c\xae\x78\x01\xb0\xa7\xe9\x32\xe8\xd4\xcf\x34\x4b\xb4\xff\xae\xae\x7e\x73\x9a\x65\xfc\x57\x93\x79\xdc\x25\x88\xd0\xa6\xe7\x57\x56\xaa\xdd\x34\x66\x19\x77\xb8\x35\xdc\x6c\xe1\x71\xb8\x8c\x3a\x62\xa0\xf1\x25\xcf\xa8\x55\x5f\xf4\xaf\x6d\xb5\x34\xc7\x86\x14\x6b\x43\xf7\x6a\x48\x25\xe0\xfb\x61\x03\xaa\x89\x13\x98\x97\xff\xf3\x91\x33\x14\xea\xc1\x5b\x0e\x2d\xc0\xe0\xa3\x58\x3b\x09\xd9\x0a\x0a\xc3\x67\xb9\x07\x1e\x7b\xe0\x83\x67\xf4\x98\x3b\xc1\xce\x23\x93\xe5\x12\xf2\xd9\xdb\x0e\x33\x32\x44\xad\x21\x4a\x3f\x00\x39\x69\xb0\xca\x6c\x57\x10\xb1\x23\x1a\x75\x72\x69\xfe\xf9\x53\x05\x45\xb5\x7f\xe9\xbd\xfc\x2f\x08\xbf\x78\xb4\xd8\x84\x65\xae\xab\x8d\x56\x6a\x6c\x88\x64\x07\x01\x63\x29\x01\x76\x12\x9f\x44\xd7\xd3\xff\x3a\xaa\x4d\xe3\x63\x2c\xd2\x98\x7e\x7b\xba\x92\x82\x13\x15\xa9\xb1\xbf\xc0\x9c\x52\xde\x51\x57\xa2\x4f\xf7\xf9\xb8\x48\x09\x26\x67\xa7\x48\xc7\x12\xa4\xc8\xc5\x74\xbd\x98\x4d\xd1\x52\xd3\x3c\x0f\x41\xe0\x76\x3f\x8f\x35\xca\x67\x2d\x87\xac\xb0\xad\x71\x67\xed\xf8\xdd\x75\xf2\xa5\xa5\x40\xc1\xc5\xc7\x6c\x02\x9e\x5e\x6e\x8c\x2d\x2e\x46\xef\x32\xf8\x13\xa3\x7b\x2b\x75\x82\x34\x6c\xb2\xa6\x3d\x50\xfc\xcb\x73\xbf\xf0\xed\xd8\xcd\x07\xc5\x9e\xf1\x2a\x4e\x38\x3e\xc9\xe6\x3b\xf1\xb3\x4f\x6b\xaa\xf4\xe9\x07\x51\xd1\xf6\xfe\x17\x0b\xe8\x56\x36\xa1\x79\x2c\x3e\x38\x2e\x1a\x0a\xd0\xc9\xa4\x90\xe5\xc7\x57\xe5\x15\x28\xe7\xa3\x09\xab\xb9\x3f\x9f\xd6\x95\x73\x95\xa9\xe5\x20\x35\xb2\x06\x52\xe6\x53\x80\x34\x2a\xf2\x02\x3c\x54\x29\x46\xfe\xd4\x54\xfa\x0a\xc1\x85\xf0\x99\xd0\x02\xa3\xae\x50\x52\xa8\x3c\xca\xe5\xa3\x15\x43\xe5\x4e\xfd\x0b\x2e\x4e\xd9\xbc\xf7\xf4\xce\x9b\xc0\x27\x97\x2a\xb4\xa6\xae\xe7\xa3\x4e\x60\x0f\x9b\xde\xd7\x82\x04\xb8\x44\xbb\x21\x93\x9b\x39\x45\x2c\x46\x8b\xf8\x63\x95\xb5\x1e\x70\xf5\xcd\x4e\xce\x2a\x66\x42\x9e\xf9\xd0\x3d\xbb\xa3\xa6\x20\x11\x8d\xf9\x49\x68\x76\x0e\x00\x04\x2a\x48\x36\x5d\xd2\x2f\x1c\xe7\x21\x6a\x40\x8e\x05\x43\x72\xd6\xfa\x33\xc5\xbe\xb4\xbb\x9e\xd5\x3b\xc3\xc2\xa3\x7c\x61\x81\x83\x12\xa1\x1c\xd2\xfa\x04\x9a\x3f\xe8\x74\xad\xb5\x12\xb6\xc9\xbf\xca\x1d\x40\x53\xd8\x7f\x62\xd4\xae\xcf\xf4\x1c\x5c\x3f\x7f\x76\xb8\x84\xb8\x99\x2c\x87\xcf\x78\x0c\xda\x5f\xc1\xb7\x5e\x0b\x1e"[..])),
},
expected_sighash: *b"\xd1\x99\x95\xf6\x70\xc5\x6c\xdb\x7d\xf7\x1d\x08\xd6\x55\xfa\xb1\x7e\x33\xe1\x67\x0f\x4d\xe8\xa6\x25\x54\xd2\xfe\x5b\xd2\x82\xbc",
},
@@ -820,7 +903,7 @@ mod tests {
gas_limit: b"\x03\x77\x38\x7c\xb5\x96\xeb\xf1",
recipient: b"\xe0\xdc\x06\xe2\x3f\xc1\xdb\xfd\xa2\x1c\xf2\x7a\x02\x97\x48\x58\xef\x4a\x53\x1b",
value: b"\x66\x91\x9d\x4c\x26\xc8\x03\x32\x1b\x11\x04\x8e\x93\x2a",
- data: b"\x4d\xa8\x10\x39\xd6\xf3\x78\x6d\x24\xe1\x49\xfb\x46\xc8\x41\x58\x26\x0b\x4b\xf3\xad\xd5\x47\x17\x82\xa1\x6a\xb6\x88\xc2\xe5\x01\xf5\x92\xc4\xf1\x61\x3f\x34\x29\x9d\xa4\xf8\x35\x2a\x2a\x3f\x6b\x34\x4c\x38\xfc\x50\x76\x21\x7a\xb2\x49\x9b\x9b\x9b\xf7\x48\xda\x81\x80\x1b\x1f\xc0\xbb\x5f\x40\x79\xdf\x09\x6a\xc1\x31\x33\xf7\xa5\x08\xbc\x10\x90\x82\xb9\x8b\x47\xba\xf4\xe5\x99\x17\xee\x18\x85\x91\xbf\x20\x89\xf6\x0d\x21\x71\x1e\x27\x61\xc3\x5e\x35\x04\xec\x31\xb5\x9f\x8a\x83\x28\x5d\x49\x41\x48\xe0\xdb\xc1\x57\xbf\x42\xad\x9c\x0b\x62\xc7\x12\xfa\xaf\x76\xb8\x43\xc4\x3a\xbe\xf7\xb4\xff\x47\xac\xa9\xad\xd7\x46\x2b\x88\xd9\x19\xa2\x3c\x1c\x45\x2e\x32\xe0\x98\xef\x6b\xfe\xe3\x8f\xa6\xe1\x33\xb1\x8c\x5f\x50\x06\xfb\xac\xb8\x4c\x8d\x22\xfa\x84\xa3\x68\xa5\xb6\x73\x46\x7c\xc6\xb9\xbe\xd2\x15\x52\x60\xeb\x99\xff\xcf\x34\xc9\xa1\x68\x0b\x36\xfe\xf7\xbc\x87\x43\x7c\x12\xbb\x57\xcd\x15\xc6\xd0\xbd\xac\xd0\x57\x04\x7c\xce\x53\x06\x91\x9e\x6b\xf0\x84\x04\x28\xa7\x52\xbc\xd7\x51\x03\xbb\xc5\x17\x3c\x4c\x06\x73\x0a\x98\x14\xa7\xb2\x72\xb2\x76\x57\x15\xc3\xee\x18\xcb\xb8\x6d\x81\x7b\xc9\x19\xf7\x69\x24\x2a\x5f\x39\x21\x1e\x9b\x89\xa0\x74\xa3\xe1\xeb\xe5\x8f\xa3\x37\xf6\x4d\x01\x1c\x9a\xca\xe1\x49\x8f\x32\x04\x67\x8f\x55\xb6\x2c\x26\xc4\x45\x13\x53\x13\xd5\x6f\xe4\xd6\x9f\xf2\x64\x3e\x72\x49\xa4\x67\xa6\x14\x7d\x2b\x1a\x8c\x79\xef\xec\x7d\x04\xba\x9e\x50\x28\xe8\x02\xc2\xb1\xba\x9e\x23\x87\x15\x9c\x17\xff\x89\x90\x3d\x06\x15\x2b\x1f\xd0\xa4\x2a\x3f\x43\x31\xdd\xbc\xdd\x8a\xd7\x70\x35\x84\x37\x9c\x32\xf4\x02\xaa\x3b\x1b\x70\x71\xf0\xe0\x57\x37\x63\xc6\xb5\x72\x46\x77\xb1\xf5\x57\x20\x2f\x20\xf8\x88\x49\x41\xaf\xb4\xd2\x5b\xa9\x91\xb7\x90\x2f\xb9\x01\xe6\x76\x2e\x83\xd3\x79\x72\x7c\x42\x49\x2c\x49\x3f\x07\xde\x98\x4c\xb5\xe0\x49\xa7\x84\x82\x66\xa4\x62\xf1\xc9\x0d\xe2\x8e\xc2\x33\x02\x99\x45\x63\x47\x89\x43\x2a\xdb\x2e\xad\x67\xbc\x2c\xda\xcb\xc0\xb9\xba\x4c\xc9\x98\x24\x81\x37\x33\x0c\x20\x33\x1a\xe8\xd3\xd1\xe4\x37\x68\x70\x69\x4c\x15\x4f\xfb\x4f\xc3\xae\x53\x9a\x76\xae\x1e\x97\x41\xfa\xf9\xf2\xff\x0d\x81\x90\x5d\x57\xc4\x42\x3d\x50\xe5\xa0\xf6\x88\x7e\xb3\xcb\xc0\x49\xaf\x8f\xb2\xca\xa5\xcb\xf5\x2e\x3f\x73\x9b\xab\xaa\x3a\xa2\xb7\xce\x60\xde\xab\xf4\xef\x6c\x3c\xf8\xab\x20\xcc\x63\x41\x20\x2e\x80\xda\x1f\x08\xa7\x07\xde\xae\x5d\xe7\x6d\x5b\xdc\xb5\x26\x24\x4d\xa5\xa8\x13\xca\x90\xf6\xd4\x1d\x2c\xa7\x95\xd7\xd7\x8c\x1c\xa5\x20\x28\x13\x55\x70\x0c\xf6\xcf\x39\x73\xdc\x29\x2e",
+ data: RefCell::new(SimpleProducer::new(&b"\x4d\xa8\x10\x39\xd6\xf3\x78\x6d\x24\xe1\x49\xfb\x46\xc8\x41\x58\x26\x0b\x4b\xf3\xad\xd5\x47\x17\x82\xa1\x6a\xb6\x88\xc2\xe5\x01\xf5\x92\xc4\xf1\x61\x3f\x34\x29\x9d\xa4\xf8\x35\x2a\x2a\x3f\x6b\x34\x4c\x38\xfc\x50\x76\x21\x7a\xb2\x49\x9b\x9b\x9b\xf7\x48\xda\x81\x80\x1b\x1f\xc0\xbb\x5f\x40\x79\xdf\x09\x6a\xc1\x31\x33\xf7\xa5\x08\xbc\x10\x90\x82\xb9\x8b\x47\xba\xf4\xe5\x99\x17\xee\x18\x85\x91\xbf\x20\x89\xf6\x0d\x21\x71\x1e\x27\x61\xc3\x5e\x35\x04\xec\x31\xb5\x9f\x8a\x83\x28\x5d\x49\x41\x48\xe0\xdb\xc1\x57\xbf\x42\xad\x9c\x0b\x62\xc7\x12\xfa\xaf\x76\xb8\x43\xc4\x3a\xbe\xf7\xb4\xff\x47\xac\xa9\xad\xd7\x46\x2b\x88\xd9\x19\xa2\x3c\x1c\x45\x2e\x32\xe0\x98\xef\x6b\xfe\xe3\x8f\xa6\xe1\x33\xb1\x8c\x5f\x50\x06\xfb\xac\xb8\x4c\x8d\x22\xfa\x84\xa3\x68\xa5\xb6\x73\x46\x7c\xc6\xb9\xbe\xd2\x15\x52\x60\xeb\x99\xff\xcf\x34\xc9\xa1\x68\x0b\x36\xfe\xf7\xbc\x87\x43\x7c\x12\xbb\x57\xcd\x15\xc6\xd0\xbd\xac\xd0\x57\x04\x7c\xce\x53\x06\x91\x9e\x6b\xf0\x84\x04\x28\xa7\x52\xbc\xd7\x51\x03\xbb\xc5\x17\x3c\x4c\x06\x73\x0a\x98\x14\xa7\xb2\x72\xb2\x76\x57\x15\xc3\xee\x18\xcb\xb8\x6d\x81\x7b\xc9\x19\xf7\x69\x24\x2a\x5f\x39\x21\x1e\x9b\x89\xa0\x74\xa3\xe1\xeb\xe5\x8f\xa3\x37\xf6\x4d\x01\x1c\x9a\xca\xe1\x49\x8f\x32\x04\x67\x8f\x55\xb6\x2c\x26\xc4\x45\x13\x53\x13\xd5\x6f\xe4\xd6\x9f\xf2\x64\x3e\x72\x49\xa4\x67\xa6\x14\x7d\x2b\x1a\x8c\x79\xef\xec\x7d\x04\xba\x9e\x50\x28\xe8\x02\xc2\xb1\xba\x9e\x23\x87\x15\x9c\x17\xff\x89\x90\x3d\x06\x15\x2b\x1f\xd0\xa4\x2a\x3f\x43\x31\xdd\xbc\xdd\x8a\xd7\x70\x35\x84\x37\x9c\x32\xf4\x02\xaa\x3b\x1b\x70\x71\xf0\xe0\x57\x37\x63\xc6\xb5\x72\x46\x77\xb1\xf5\x57\x20\x2f\x20\xf8\x88\x49\x41\xaf\xb4\xd2\x5b\xa9\x91\xb7\x90\x2f\xb9\x01\xe6\x76\x2e\x83\xd3\x79\x72\x7c\x42\x49\x2c\x49\x3f\x07\xde\x98\x4c\xb5\xe0\x49\xa7\x84\x82\x66\xa4\x62\xf1\xc9\x0d\xe2\x8e\xc2\x33\x02\x99\x45\x63\x47\x89\x43\x2a\xdb\x2e\xad\x67\xbc\x2c\xda\xcb\xc0\xb9\xba\x4c\xc9\x98\x24\x81\x37\x33\x0c\x20\x33\x1a\xe8\xd3\xd1\xe4\x37\x68\x70\x69\x4c\x15\x4f\xfb\x4f\xc3\xae\x53\x9a\x76\xae\x1e\x97\x41\xfa\xf9\xf2\xff\x0d\x81\x90\x5d\x57\xc4\x42\x3d\x50\xe5\xa0\xf6\x88\x7e\xb3\xcb\xc0\x49\xaf\x8f\xb2\xca\xa5\xcb\xf5\x2e\x3f\x73\x9b\xab\xaa\x3a\xa2\xb7\xce\x60\xde\xab\xf4\xef\x6c\x3c\xf8\xab\x20\xcc\x63\x41\x20\x2e\x80\xda\x1f\x08\xa7\x07\xde\xae\x5d\xe7\x6d\x5b\xdc\xb5\x26\x24\x4d\xa5\xa8\x13\xca\x90\xf6\xd4\x1d\x2c\xa7\x95\xd7\xd7\x8c\x1c\xa5\x20\x28\x13\x55\x70\x0c\xf6\xcf\x39\x73\xdc\x29\x2e"[..])),
},
expected_sighash: *b"\x11\xd1\xf3\xe4\x70\x84\xed\x61\x6b\xea\xa6\x25\x72\x06\xd4\x1d\x3a\x43\x1c\xba\xf0\x90\x9b\xab\x6c\x72\x9e\x10\xe7\xae\x7f\x54",
},
@@ -833,7 +916,7 @@ mod tests {
gas_limit: b"\xc8\x12\x9e\x43\xba\x01\x15\x7a",
recipient: b"\x07\xbc\x07\xa2\xaa\x96\x1b\xc3\xc6\x8e\xb2\x88\x93\xaf\xa2\x26\xd5\xde\x61\x70",
value: b"\x47\x08\x22\xd6",
- data: b"\x79\xf3\xcd\x9d\x26\xba\xaa\xbb\x9e\x9a\xdd\xb6\xa6\xcf\xf1\xe3\x81\xe5\x4d\x15\x8f\x02\x13\x9a\x28\x52\x5f\xd2\x07\x01\xb0\x03\x18\x3d\xf2\xbe\x79\x1e\xe7\xf6\x2c\xc3\x1a\xe3\xf1\x6e\xd0\x66\xbc\x2d\x45\x75\xd6\xe8\x00\xf7\x2a\xd8\x7a\x07\xae\xb7\x58\x55\xfc\x24\x3d\x8c\xfc\x51\x33\xd4\xac\x30\x88\x4e\x07\x9e\x51\xe8\x63\x09\x87\x5e\x5d\x83\x6b\x43\x92\x3e\x12\xd4\x60\x2b\xff\x08\x6b\x08\x41\x1f\x6f\x95\x93\xa8\xa0\xb3\x08\x00\x5e\x33\xb9\x43\xa1\xc6\x4c\x72\xed\x20\x42\xa0\x86\xb8\x42\xde\xcd\x78\xd2\x44\x9a\x00\xf2\x04\x93\xf5\x0b\x57\x5b\xd9\x4e\xbd\xdd\xa5\x09\x95\x38\xc6\x97\x71\x73\x98\xa1\xcf\x0a\xc1\x2b\xc7\x4a\x70\xe7\xde\x7c\x39\x14\x27\xe1\x4c\x5c\xd9\x23\x06\x80\xc4\x4d\x35\x34\x2c\xca\x87\x9f\x7a\x98\x9d\x77\xd5\xc3\x01\x66\x9b\x55\x8b\x4c\xa8\xa8\x57\xc2\xba\xc0\x2c\xdd\xbd\xbc\x9d\xaa\x30\x8e\x36\x17\xa7\x27\x55\xeb\xae\x41\x52\x16\xea\x9e\x87\x86\x96\xae\x43\x4e\x89\x79\x8c\x30\x26\x20\x33\x7b\x55\xe9\x74\xe6\x2d\x3d\xe8\xd6\x5f\xd0\xb4\x1b\xae\x00\x5a\x72\x3d\xee\xf4\xa6\xdd\x29\x8c\x78\x27\xbb\xf9\x60\xdc\xc2\x92\x5e\x14\xfc\x06\xa6\xbe\x24\x04\x75\xb0\xe4\x34\x74\x56\x20\x93\x97\xb9\xc3\xa9\x91\xb5\x0c\x6a\x65\x71\x04\xb0\xe0\x32\x7d\xf8\x41\x28\x31\xf5\x79\xf2\xcb\x2d\xe2\xf7\xfb\xcb\x6b\xf6\x69\x1c\xaa\x0f\x7a\x40\xbf\x39\xe4\x31\x65\xda\xad\x09\x88\x08\xe7\x32\xbe\xb3\x5d\x9c\x65\x98\xad\xb7\xb0\x33\x74\x47\xa5\xa2\x20\xcc\x47\x53\x4b\xee\x96\xab\x63\x6c\xba\x8a\x9f\x4c\x64\xe0",
+ data: RefCell::new(SimpleProducer::new(&b"\x79\xf3\xcd\x9d\x26\xba\xaa\xbb\x9e\x9a\xdd\xb6\xa6\xcf\xf1\xe3\x81\xe5\x4d\x15\x8f\x02\x13\x9a\x28\x52\x5f\xd2\x07\x01\xb0\x03\x18\x3d\xf2\xbe\x79\x1e\xe7\xf6\x2c\xc3\x1a\xe3\xf1\x6e\xd0\x66\xbc\x2d\x45\x75\xd6\xe8\x00\xf7\x2a\xd8\x7a\x07\xae\xb7\x58\x55\xfc\x24\x3d\x8c\xfc\x51\x33\xd4\xac\x30\x88\x4e\x07\x9e\x51\xe8\x63\x09\x87\x5e\x5d\x83\x6b\x43\x92\x3e\x12\xd4\x60\x2b\xff\x08\x6b\x08\x41\x1f\x6f\x95\x93\xa8\xa0\xb3\x08\x00\x5e\x33\xb9\x43\xa1\xc6\x4c\x72\xed\x20\x42\xa0\x86\xb8\x42\xde\xcd\x78\xd2\x44\x9a\x00\xf2\x04\x93\xf5\x0b\x57\x5b\xd9\x4e\xbd\xdd\xa5\x09\x95\x38\xc6\x97\x71\x73\x98\xa1\xcf\x0a\xc1\x2b\xc7\x4a\x70\xe7\xde\x7c\x39\x14\x27\xe1\x4c\x5c\xd9\x23\x06\x80\xc4\x4d\x35\x34\x2c\xca\x87\x9f\x7a\x98\x9d\x77\xd5\xc3\x01\x66\x9b\x55\x8b\x4c\xa8\xa8\x57\xc2\xba\xc0\x2c\xdd\xbd\xbc\x9d\xaa\x30\x8e\x36\x17\xa7\x27\x55\xeb\xae\x41\x52\x16\xea\x9e\x87\x86\x96\xae\x43\x4e\x89\x79\x8c\x30\x26\x20\x33\x7b\x55\xe9\x74\xe6\x2d\x3d\xe8\xd6\x5f\xd0\xb4\x1b\xae\x00\x5a\x72\x3d\xee\xf4\xa6\xdd\x29\x8c\x78\x27\xbb\xf9\x60\xdc\xc2\x92\x5e\x14\xfc\x06\xa6\xbe\x24\x04\x75\xb0\xe4\x34\x74\x56\x20\x93\x97\xb9\xc3\xa9\x91\xb5\x0c\x6a\x65\x71\x04\xb0\xe0\x32\x7d\xf8\x41\x28\x31\xf5\x79\xf2\xcb\x2d\xe2\xf7\xfb\xcb\x6b\xf6\x69\x1c\xaa\x0f\x7a\x40\xbf\x39\xe4\x31\x65\xda\xad\x09\x88\x08\xe7\x32\xbe\xb3\x5d\x9c\x65\x98\xad\xb7\xb0\x33\x74\x47\xa5\xa2\x20\xcc\x47\x53\x4b\xee\x96\xab\x63\x6c\xba\x8a\x9f\x4c\x64\xe0"[..])),
},
expected_sighash: *b"\xcc\xdd\x16\x2f\x47\x6f\xb7\x47\x22\x5d\x00\xf9\x45\xe2\x93\x61\xb1\x10\x00\x43\x6a\x70\x82\x55\x18\x77\x7b\xaf\xbe\xac\x05\xe3",
},
@@ -846,7 +929,7 @@ mod tests {
gas_limit: b"\x25\xdb\xb0\x74\xc8\x44\xaf\x6b",
recipient: b"\x11\xca\x72\xdf\x47\xa6\x8d\x77\x8b\xed\x05\xf7\x0b\x88\x4e\x6c\x74\x35\x73\x58",
value: b"\x30\x21\x6f\x7a\xe6\x50\x22",
- data: b"\x69\xd5\x42\xe5\xc5\x57\x74\xeb\x18\x23\x48\xc8\x12\x59\x28\x71\x3f\x18\xa2\xf6\x36\x5b\xb6\x1d\x08\xea\x1e\x8a\xaf\xaa\x98\xc9\x8b\x0a\x5d\xc4\xe0\xe9\x24\xeb\x76\xd8\x2f\x4e\xff\xd5\xce\x2c\xbc\xa2\x61\x38\x43\xac\x4c\xc1\x6a\xe9\xb4\x38\xc0\x54\x87\xac\xc4\xe0\xee\x3e\x8b\x65\x47\xac\x5c\xa5\x6a\x81\x8d\x11\xf8\x0e\xca\x9f\xa4\x09\x9a\x52\xc7\x1c\xa3\x24\xf3\x09\x96\x38\xde\xd2\xa5\x70\xd1\xed\x72\xa8\x34\x68\xee\xc1\x82\xff\x52\x24\xae\xa0\xc5",
+ data: RefCell::new(SimpleProducer::new(&b"\x69\xd5\x42\xe5\xc5\x57\x74\xeb\x18\x23\x48\xc8\x12\x59\x28\x71\x3f\x18\xa2\xf6\x36\x5b\xb6\x1d\x08\xea\x1e\x8a\xaf\xaa\x98\xc9\x8b\x0a\x5d\xc4\xe0\xe9\x24\xeb\x76\xd8\x2f\x4e\xff\xd5\xce\x2c\xbc\xa2\x61\x38\x43\xac\x4c\xc1\x6a\xe9\xb4\x38\xc0\x54\x87\xac\xc4\xe0\xee\x3e\x8b\x65\x47\xac\x5c\xa5\x6a\x81\x8d\x11\xf8\x0e\xca\x9f\xa4\x09\x9a\x52\xc7\x1c\xa3\x24\xf3\x09\x96\x38\xde\xd2\xa5\x70\xd1\xed\x72\xa8\x34\x68\xee\xc1\x82\xff\x52\x24\xae\xa0\xc5"[..])),
},
expected_sighash: *b"\xee\x55\x6c\x3f\x59\x25\x28\x13\x20\x5d\xa7\xe6\x23\x29\xcc\x58\x9b\x3d\x5a\x2f\x73\xfa\x8a\xbd\x6c\x30\x76\xe2\xaa\xec\x80\x8e",
},
@@ -859,7 +942,7 @@ mod tests {
gas_limit: b"\x6d\xae\x73\xbc\x3c\x02\xb0\x57",
recipient: b"\x52\x01\x4f\xf0\x2d\x25\x98\xe8\x49\xd8\xcc\x92\x55\xbf\x9f\xfa\x41\xb3\x63\x81",
value: b"\xb2\xcc\x1b\x4f",
- data: b"\xb9\xfd\x4d\x5a\x23\x35\x0c\x12\x19\xbd\x91\xef\xc2\x6f\x63\xf5\xcf\x72\x23\xf9\x7a\x3d\x30\xb9\xc9\xb9\xd1\x11\x25\xd5\x14\xfc\xc0\x05\xb8\xb0\x58\x1b\xe7\x54\x09\xce\x68\x79\x1c\xac\xd0\x16\x55\xbf\xd5\xfd\x24\xed\x05\xa7\x3c\xa7\x24\x7a\x16\x44\x8e\xfe\xff\x08\xf8\xea\xd7\x16\x76\x19\xe3\x81\x84\xc9\x4f\x78\xf9\xcc\xb1\xdf\xd6\x6e\xaf\xec\xe2\x66\x75\x42\x24\x9d\x10\x91\xe0\xac\x21\x50\x46\x71\x14\x00\xac\xfa\xe8\xa2\x8e\x3a\xea\x6f\x12\x81\x81\x4b\xf8\xa6\x53\x67\xb2\xc6\x20\x5b\x76\x40\x72\x87\x17\x68\x11\x3c\xdd\x5a\xab\xf8\x6d\xdf\x4d\x44\x7a\x97\x12\x44\x64\xf8\x55\x26\x73\x6d\x80\xe9\x51\xfa\x03\xf6\x7c\x15\xdb\x81\x73\x03\x0e\x3e\xee\x0a\xfc\x85\x61\x12\xac\x33\x5e\x3f\xa5\x6a\xeb\x40\x7e\xa2\xea\xc3\x04\x82\x35\x2b\xfe\xb9\xa5\xa6\xc9\x1f\x20\xee\x56\x6b\x03\x7a\xf6\x03\xc6\x01\x26\x7e\x80\x3a\x4a\xf5\xce\x56\xa5\xe2\x92\x99\x3f\x30\x33\xa8\x6a\x08\xa3\xab\xb0\xd9\xff\x45\x1b\x5a\x16\x37\xeb\x41\xfe\x90\x28\x62\xc9\x51\x08\x3a\x7f\x30\x06\xde\x25\x0b\x89\xb7\xec\xe8\xc9\xc8\xe1\x58\x22\x10\x95\x25\x25\xa6\x39\x04\x60\x4b\x2c\xe3\x47\xb2\xd5\x4d\x5f\xe8\x38\xf5\x9f\x0d\x42\xf3\xa0\x7a\xcb\xa7\x49\x83\x43\xfd\x69\xfe\x7c\x04\x43\xd1\x12\x38\x37\x5c\xbb\xf3\xda\x0a\xcf\x6c\x76\xda\xab\xac\xba\xf8\x36\xbb\xa1\x4b\x63\x42\xd4\x46\xd7\x70\x28\xb6\x48\x79\x79\xcd\x7d\x90\xbd\x81\x45\xd2\xa3\x05\x80\x15\xb2\x05\x97\x9d\x9a\x45\x48\xab\x0e\x9d\xad\x63\xb2\x3e\xb0\xc6\xe2\x99\x3a\x04\xd2\x01\xf0\x68\xde\x36\x8a\x44\x32\x0f\x9b\x4f\xe5\xff\x72\xff\x48\x46\x64\x2d\x60\x1c\xb0\x2c\x08\x6b\x9e\xae\xd0\xb0\x5c\x8a\xe2\xe5\xa5\xf7\xfb\xdc\x2b\x6c\xc4\x20\x74\x11\x9c\x33\x74\x20\xce\xad\xf3\xf2\xf9\x0c\x19\x1e\xb5\xbd\xb5\x7d\xdc\x4f\xbd\x6c\xd6\x98\x88\x90\x8a\x01\xd6\x51\xda\x51\x54\xa0\x25\xb4\x95\x48\xb8\xc0\xb1\x3f\x42\x70\xd5\x71\xf9\xc9\xfc\x8c\x86\x1f\x5b\xb0\x38\x5c",
+ data: RefCell::new(SimpleProducer::new(&b"\xb9\xfd\x4d\x5a\x23\x35\x0c\x12\x19\xbd\x91\xef\xc2\x6f\x63\xf5\xcf\x72\x23\xf9\x7a\x3d\x30\xb9\xc9\xb9\xd1\x11\x25\xd5\x14\xfc\xc0\x05\xb8\xb0\x58\x1b\xe7\x54\x09\xce\x68\x79\x1c\xac\xd0\x16\x55\xbf\xd5\xfd\x24\xed\x05\xa7\x3c\xa7\x24\x7a\x16\x44\x8e\xfe\xff\x08\xf8\xea\xd7\x16\x76\x19\xe3\x81\x84\xc9\x4f\x78\xf9\xcc\xb1\xdf\xd6\x6e\xaf\xec\xe2\x66\x75\x42\x24\x9d\x10\x91\xe0\xac\x21\x50\x46\x71\x14\x00\xac\xfa\xe8\xa2\x8e\x3a\xea\x6f\x12\x81\x81\x4b\xf8\xa6\x53\x67\xb2\xc6\x20\x5b\x76\x40\x72\x87\x17\x68\x11\x3c\xdd\x5a\xab\xf8\x6d\xdf\x4d\x44\x7a\x97\x12\x44\x64\xf8\x55\x26\x73\x6d\x80\xe9\x51\xfa\x03\xf6\x7c\x15\xdb\x81\x73\x03\x0e\x3e\xee\x0a\xfc\x85\x61\x12\xac\x33\x5e\x3f\xa5\x6a\xeb\x40\x7e\xa2\xea\xc3\x04\x82\x35\x2b\xfe\xb9\xa5\xa6\xc9\x1f\x20\xee\x56\x6b\x03\x7a\xf6\x03\xc6\x01\x26\x7e\x80\x3a\x4a\xf5\xce\x56\xa5\xe2\x92\x99\x3f\x30\x33\xa8\x6a\x08\xa3\xab\xb0\xd9\xff\x45\x1b\x5a\x16\x37\xeb\x41\xfe\x90\x28\x62\xc9\x51\x08\x3a\x7f\x30\x06\xde\x25\x0b\x89\xb7\xec\xe8\xc9\xc8\xe1\x58\x22\x10\x95\x25\x25\xa6\x39\x04\x60\x4b\x2c\xe3\x47\xb2\xd5\x4d\x5f\xe8\x38\xf5\x9f\x0d\x42\xf3\xa0\x7a\xcb\xa7\x49\x83\x43\xfd\x69\xfe\x7c\x04\x43\xd1\x12\x38\x37\x5c\xbb\xf3\xda\x0a\xcf\x6c\x76\xda\xab\xac\xba\xf8\x36\xbb\xa1\x4b\x63\x42\xd4\x46\xd7\x70\x28\xb6\x48\x79\x79\xcd\x7d\x90\xbd\x81\x45\xd2\xa3\x05\x80\x15\xb2\x05\x97\x9d\x9a\x45\x48\xab\x0e\x9d\xad\x63\xb2\x3e\xb0\xc6\xe2\x99\x3a\x04\xd2\x01\xf0\x68\xde\x36\x8a\x44\x32\x0f\x9b\x4f\xe5\xff\x72\xff\x48\x46\x64\x2d\x60\x1c\xb0\x2c\x08\x6b\x9e\xae\xd0\xb0\x5c\x8a\xe2\xe5\xa5\xf7\xfb\xdc\x2b\x6c\xc4\x20\x74\x11\x9c\x33\x74\x20\xce\xad\xf3\xf2\xf9\x0c\x19\x1e\xb5\xbd\xb5\x7d\xdc\x4f\xbd\x6c\xd6\x98\x88\x90\x8a\x01\xd6\x51\xda\x51\x54\xa0\x25\xb4\x95\x48\xb8\xc0\xb1\x3f\x42\x70\xd5\x71\xf9\xc9\xfc\x8c\x86\x1f\x5b\xb0\x38\x5c"[..])),
},
expected_sighash: *b"\xc3\xe1\x79\x1d\xf1\xd2\xac\x3e\xee\x40\x4c\xa0\xfb\xe4\xe0\xad\xa6\xde\x91\xf6\x9d\x21\x4e\xba\x54\x2a\xe4\x7e\x10\x3d\x6c\xa5",
},
@@ -872,7 +955,7 @@ mod tests {
gas_limit: b"\xf6\x31\x09\x73\x2a\xab\x73\x84",
recipient: b"\xab\xc6\x0c\x72\xb6\x79\xc2\x21\x59\x2c\xfc\x8b\x75\x33\xa9\xf8\xee\xc1\x1d\x92",
value: b"\xa1\x9a\x89\xbf",
- data: b"\xcb\x76\x6b\xd7\x55\x7d\xec\x66\x95\xe9\x19\x4e\x04\xab\x62\x6a\xb1\x8d\x4d\xd9\x93\xaf\x05\xc9\x93\x9d\xc1\x9f\xa2\xd4\x3e\xa3\x57\xf9\x13\x70\x89\xe4\xc3\x3d\xd0\xaf\xde\x0a\x7d\xcd\x2b\x35\xd0\x56\xf5\x87\x9a\xc1\x02\x19\x6a\xf6\x2b\x11\x64\xa6\x0f\x6e\xd7\x46\x69\x6d\x5f\xb5\xe5\xcd\x30\x86\x28\xa2\xbd\x03\xf9\xfc\xb0\x72\x22\x8c\xd0\xee\x7b\x44\xf2\x41\xcb\x7a\x90\xa0\x35\xde\x00\x95\xf5\x59\x60\x7b\x45\x90\xb1\xa8\x0b\xa8\xeb\x81\x01\xf2\x0e\x46\xf7\x2e\x8f\x2a\x17\x7e\x3d\xd6\x75\x47\xab\xb3\xbe\x60\xb3\xce\x65\x25\xa0\x37\xb8\x79\xcb\x3b\x79\xac\x7c\x5f\x18\x88\x03\xd7\x3e\x69\x8f\x01\xc3\x27\x61\xdb\xc3\x5d\xf7\xf6\x9a\x27\x7c\x3e\xee\xb3\x9d\x29\xab\x63\x94\x25\x16\xab\xd9\x2a\x00\x58\xd9\x1a\x13\x32\x27\x3f\x6f\x04\x8d\x41\x09\xdb\xc0\xbf\xaf\x21\xb3\xdf\x2d\xfc\x06\xa0\x76\xa2\xee\xca\xc7\xd0\xf9\xaa\x8f\xa6\x43\x82\x86\xa2\xef\x7d\xb4\x53\x2c\x6f\x7d\x7f\xb5\xa2\x2e\x2e\x8a\x13\x89\x44\x71\x25\xd5\x67\xc4\xf0\x25\x98\x63\xef\x9d\x77\x46\xb9\xfb\x9d\xb8\x5c\xfd\x74\xc8\x29\xcc\xd4\xc1\x25\x0f\x8d\x13\xb9\x2c\xf1\xb9\x8f\xdc\x36\xef\x62\xaa\x6c\x91\x13\x65\x83\xfd\xaa\x8c\x3f\x49\x39\x67\x90\x9e\xdd\xf1\x55\xee\x59\x9a\x36\x83\x94\x68\x3f\xf9\x66\x7e\x09\xff\xcf\x4c\x0e\xa2\xaa\x45\x4d\x83\xb8\xc8\xe7\x96\xca\x3a\x2b\x87\x2b\xef\xa4\x24\x03\x7e\xa2\x61\x9c\x16\x85\xb3\x2f\x46\x75\xea\xc3\xf3\xeb\xab\x7d\x12\xb6\x9e\x63\x16\x4d\x5f\x96\xbc\x1c\xd3\x62\x66\x02\xfd\xc0\x56\xf1\xde\x14\x85\x8e\x46\x17\x7e\xa2\x80\x4b\x2c\xa7\xc7\x71\x9b\xeb\xa7\xea\x62\x86\xf0\x6f\xc0\x7e\x00\x44\xbc\x59\xa4\xcc\xbb\xd5\x1d\x3f\xac\xe6\x07\xcb\xa8\x0f\xa2\x4b\x6d\x25\xdf\x30\xac\xf7\x42\x7a\xab\x7b\x7f\x77\x09\xa6\xaa\x62\x9b\xc3\xc5\xb3\x51\x85\xc1\x8e\xfb\x4d\x30\xe3\xb1\xee\xc5\xc4\xca\x5e\x6a\x91\x2f\xaf\x66\x8e\xc8\x7e\x1e\x50\xe5\x38\x10\x93\x61\x16\xd7\xfc\xd5\x1f\x81\x2b\x68\x9f\xb2\x28\x40\x37\xc1\xa7\xa5\xbb\x7d\x3c\xa2\xe7\x7b\xa1\x7e\x4e\x76\x26\x60\x74\x9c\xe2\x4e",
+ data: RefCell::new(SimpleProducer::new(&b"\xcb\x76\x6b\xd7\x55\x7d\xec\x66\x95\xe9\x19\x4e\x04\xab\x62\x6a\xb1\x8d\x4d\xd9\x93\xaf\x05\xc9\x93\x9d\xc1\x9f\xa2\xd4\x3e\xa3\x57\xf9\x13\x70\x89\xe4\xc3\x3d\xd0\xaf\xde\x0a\x7d\xcd\x2b\x35\xd0\x56\xf5\x87\x9a\xc1\x02\x19\x6a\xf6\x2b\x11\x64\xa6\x0f\x6e\xd7\x46\x69\x6d\x5f\xb5\xe5\xcd\x30\x86\x28\xa2\xbd\x03\xf9\xfc\xb0\x72\x22\x8c\xd0\xee\x7b\x44\xf2\x41\xcb\x7a\x90\xa0\x35\xde\x00\x95\xf5\x59\x60\x7b\x45\x90\xb1\xa8\x0b\xa8\xeb\x81\x01\xf2\x0e\x46\xf7\x2e\x8f\x2a\x17\x7e\x3d\xd6\x75\x47\xab\xb3\xbe\x60\xb3\xce\x65\x25\xa0\x37\xb8\x79\xcb\x3b\x79\xac\x7c\x5f\x18\x88\x03\xd7\x3e\x69\x8f\x01\xc3\x27\x61\xdb\xc3\x5d\xf7\xf6\x9a\x27\x7c\x3e\xee\xb3\x9d\x29\xab\x63\x94\x25\x16\xab\xd9\x2a\x00\x58\xd9\x1a\x13\x32\x27\x3f\x6f\x04\x8d\x41\x09\xdb\xc0\xbf\xaf\x21\xb3\xdf\x2d\xfc\x06\xa0\x76\xa2\xee\xca\xc7\xd0\xf9\xaa\x8f\xa6\x43\x82\x86\xa2\xef\x7d\xb4\x53\x2c\x6f\x7d\x7f\xb5\xa2\x2e\x2e\x8a\x13\x89\x44\x71\x25\xd5\x67\xc4\xf0\x25\x98\x63\xef\x9d\x77\x46\xb9\xfb\x9d\xb8\x5c\xfd\x74\xc8\x29\xcc\xd4\xc1\x25\x0f\x8d\x13\xb9\x2c\xf1\xb9\x8f\xdc\x36\xef\x62\xaa\x6c\x91\x13\x65\x83\xfd\xaa\x8c\x3f\x49\x39\x67\x90\x9e\xdd\xf1\x55\xee\x59\x9a\x36\x83\x94\x68\x3f\xf9\x66\x7e\x09\xff\xcf\x4c\x0e\xa2\xaa\x45\x4d\x83\xb8\xc8\xe7\x96\xca\x3a\x2b\x87\x2b\xef\xa4\x24\x03\x7e\xa2\x61\x9c\x16\x85\xb3\x2f\x46\x75\xea\xc3\xf3\xeb\xab\x7d\x12\xb6\x9e\x63\x16\x4d\x5f\x96\xbc\x1c\xd3\x62\x66\x02\xfd\xc0\x56\xf1\xde\x14\x85\x8e\x46\x17\x7e\xa2\x80\x4b\x2c\xa7\xc7\x71\x9b\xeb\xa7\xea\x62\x86\xf0\x6f\xc0\x7e\x00\x44\xbc\x59\xa4\xcc\xbb\xd5\x1d\x3f\xac\xe6\x07\xcb\xa8\x0f\xa2\x4b\x6d\x25\xdf\x30\xac\xf7\x42\x7a\xab\x7b\x7f\x77\x09\xa6\xaa\x62\x9b\xc3\xc5\xb3\x51\x85\xc1\x8e\xfb\x4d\x30\xe3\xb1\xee\xc5\xc4\xca\x5e\x6a\x91\x2f\xaf\x66\x8e\xc8\x7e\x1e\x50\xe5\x38\x10\x93\x61\x16\xd7\xfc\xd5\x1f\x81\x2b\x68\x9f\xb2\x28\x40\x37\xc1\xa7\xa5\xbb\x7d\x3c\xa2\xe7\x7b\xa1\x7e\x4e\x76\x26\x60\x74\x9c\xe2\x4e"[..])),
},
expected_sighash: *b"\x69\x35\x4f\xc4\xa7\x35\xea\xa7\xf5\xe0\x56\x0e\xd4\xfe\x6d\xb8\x03\xa4\xd7\x7f\x87\x84\x8b\x47\x90\x05\x73\xc7\x84\xff\xb4\x74",
},
@@ -885,7 +968,7 @@ mod tests {
gas_limit: b"\x94\xd2\x45\xb4\x4c\x5a\xd3\x72",
recipient: b"\xa3\xbe\x75\x94\xed\x14\x06\xbd\xe4\x40\xb1\x1f\x12\x25\x63\x2f\xbb\x97\xa6\x53",
value: b"\x1e\xa4\x5c\x2b\xef\x89\x5e\x8e\x31\xb5",
- data: b"\x8c\x1e\x39\x4c\xc1\xa3\x6f\xc3\x7d\x77\x5b\x39\x11\x93\x8e\x7c\x93\xf5\x54\xaa\xe7\x04\xbe\x35\xa7\xc6\xba\x28\x7c\x34\xb4\xb0\x4c\x05\x2c\x0b\x3a\x18\x33\xc5\xe0\x10\x33\x17\xf7\xd7\x4e\x09\x42\x5a\xbc\x52\x92\x80\x0e\xef\x5d\x8b\x6d\xd2\x1d\x1b\xdf\x1f\x00\x42\x58\xd6\xcd\x17\xc6\x91\x73\x95\x72\x94\x36\x23\xa5\xec\xb8\x06\xfd\xbb\xeb\x2d\x63\xd3\xf8\xf6\xb8\xed\x29\x9c\xc6\x40\xe2\xc0\x96\xbc\x50\x07\x70\x40\xaf\xd9\x68\x01\x07\xac\x28\xb9\xc8\xda\x46\x5e\xee\x5f\x7e\xea\x49\x46\xf2\x64\x76\xc9\xd6\x4e\x78\x0b\x76\x1b\xf1\xc2\x57\xdd\x26\x07\xe5\xce\x03\xfa\x9d\x04\xa9\xb4\xb2\xa3\x8c\x7e\x00\x34\xd8\x99\x65\xe7\x31\xbe\x59\xe0\x8f\x09\x50\xad\x93\xb4\x39\x04\xbb\xf4\x23\xde\x1b\x16\xd8\xe2\xaf\x8d\x6d\xdf\xd3\x2f\x28\xf9\x70\xa9\xeb\xf9\x3e\xa0\x9f\x58\x39\x16\xce\x7c\x0f\x05\x58\xf0\xd6\xc4\x24\xc0\x36\xd5\x3b\xf5\x48\x71\x65\xf7\xed\x7d\x5e\xfd\x33\x67\xb8\x29\x1e\x6f\x82\x61\x18\x2c\x54\x5c\x09\xd7\x52\xde\x4a\xb5\x26\x5e\x6e\x69\x0a\x3c\x53\x7c\x8e\xcf\x7c\xa3\x03\x87\x74\x7e\x3d\xcc\x15\x94\x05\x46\xfb\xb6\xe9\x3d\xda\x09\x80\x48\xad\xbb\x04\xfc\x96\x2a\xd7\x45\x0a\x3c\x8f\x6f\xc2\xef\xcd\xc1\xf3\xba\x08\xd0\x6c\xf2\xae\x9c\x14\xbc\x0b\x9f\x84\x68\x57\x45\xa4\x75\x13\x48\x3c\x51\xce\x70\x6f\x07\x56\xda\x30\xf5\x82\xac\xfb\x84\xe7\x42\x75\xea\x56\x07\xfb\x05\x6b\xa1\x36\x24\x1c\x96\xdf\x17\x16\xed\xf1\x96\xee\x8c\xb1\xfc\x70\x25\xb5\xf7\x32\x8d\xf0\xb2\x1a\x92\x0d\x99\x5f\x09\x7d\x6a\x5d\xc9\x30\xed\x06\x94\x2d\x72\x35\xf3\x44\x4a\x59\x99\xf2\xd2\x41\x8d\x64\x4c\xd4\x8a\x4f\x33\xd4\x99\xf2\xd7\x89\x39\x7b\xe5\x30\x18\x20\xd8\x2d\xd8\xca\xc7\x4c\xa3\xb1\x20\x07\x51\x67\x20\xe0\x46\xf7\x36\xe2\x8f\x1d\xb1\xdf\x68\x42\x17\xcb\x32\x79\x2e\xac\x9c\xc1\x93\x7b\x3e\x0d\x4a\xd5\x28\x8e\xb5\x41\x26\x2c\x57\x24\x7a\x0d\x3f\x01\x54\x8c\xa2\xc4\x75\x06\x59\xe2\xe3\xcd\x5d\xa3\x10\x17\x76\x67\xf9\xc7\x50\x99\x64\xca\xed\x17\x08\x9b\x25\x4e\x13\x1f\x34\xf1\xf7\xe4\x63\x7a\x5e\x21\x9f\x41\x1d\xda\xa2\xdd\x14\xbe\xde\xbd\x6f\x43\x0a\x93\x60\xb8\x7c\x73\xd6\x7f\x4a\x1a\x0f\x9f\xcc\x0b\xeb\xf9\x4b\x4e\x61\x0f\xd6\x27\x95\x42\xf3\x64\xa0\x01\xc4\x8a\x29\xf4\x05\xdd\x34\x8f\xee\xa6\x24\x98\xdf\x3c\x0e\xba\x7a\xf7\x92\xdc\x22\xa1\x5d\x0a\xf8\x39\x8f\xa5\x7f\x1d\xd9\x6e\x9e\x01\xb1\x70\xf2\x8c\xa5\xf8\xf1\xcc\x06\x88\x3a\x6f\xec\x31\xbf\xe0\xd9\xab\x3b\xa1\xb4\x49\x57\xd5\x9c\x4f\x7b\x4d\xd0\xe2\xce\xdb\xe4\x26\xac\xe6\x91\x12\xeb\xa8\xeb\x5d\x7a\x68\xcb\x85\x45\x97\xae\x61\x00\x9e\x19\x07\x5a\x05\x4e\xae\x4b\x83\xce\x29\xb7\x73\xe4\xb0\x83\x09\x8b\xdd\x75\x34\xd9\x61\xed\xb9\xe6\x46\xa2\x3b\xcd\x09\xbc\xd5\x02\xca\x15\xf6\xe4\x6b\x2f\x27\x89\x43\x8a\x26\x71\x5d\xea\x99\x0c\xc7\xdd\x56\x1c\x68\x1a\xce\xd7\x01\x27\xed\xe7\xb5\x9e\x87\xd1\xfc\x95\x40\xcd\x0a\x27\x10\x24\x82\x13\x19\xc9\x4d\x9b\x6c\xbf\x1c\xfa\xf1\xe8\x49\xb7\x27\x48\xe7\x7c\x53\xa8\x97\x3d\x2f\xbc\xfc\xca\xeb\x73\xe5\x6e\x27\x8f\x94\x88\x44\xfd\xa5\xee\x38\xc4\x8c\x90\x75\xc0\x53\xc9\x1b\x3f\x93\x7b\x6c\x55\x0d\x64\x3f\x98\x3a\xd4\xc4\xf3\xc5\xf9\x2a\xfc\x66\x8c\x73\x6c\x62\xe0\x73\xb6\x47\xbc\xf4\x77\xce\xc3\x72\x90\xec\x52\x01\xc2\xc1\x7e\xdd\x08\xf6\x89\xf0\xcd\xdb\xbb\x16\x9a\x1f\xaf\xe5\x08\xec\x65\x60\xe1\xad\x17\x16\x18\x3f\xba\x37\x3f\xc6\x88\x46\x3f\xbe\x2e\x0c\x46\x7d\xb8\xc8\xfd\x89\x5c\x4a\x0e\x16\x77\x76\x6c\x9b\x5f\xf7\xde\x82\x28\xfd\x4c\x4e\x9e\x17\x75\x0a\xd7\xb1\xd0\x27\x5f\x00\x9d\x9f\x63\xb4\x65\x0c\xa7\xdd\xb3\x2c\x91\x11\xe0\x49\x3a\xa1\xed\x16\xc7\x3d\xc7\x26\x21\x00\xbf\xcb\x99\x20\xa9",
+ data: RefCell::new(SimpleProducer::new(&b"\x8c\x1e\x39\x4c\xc1\xa3\x6f\xc3\x7d\x77\x5b\x39\x11\x93\x8e\x7c\x93\xf5\x54\xaa\xe7\x04\xbe\x35\xa7\xc6\xba\x28\x7c\x34\xb4\xb0\x4c\x05\x2c\x0b\x3a\x18\x33\xc5\xe0\x10\x33\x17\xf7\xd7\x4e\x09\x42\x5a\xbc\x52\x92\x80\x0e\xef\x5d\x8b\x6d\xd2\x1d\x1b\xdf\x1f\x00\x42\x58\xd6\xcd\x17\xc6\x91\x73\x95\x72\x94\x36\x23\xa5\xec\xb8\x06\xfd\xbb\xeb\x2d\x63\xd3\xf8\xf6\xb8\xed\x29\x9c\xc6\x40\xe2\xc0\x96\xbc\x50\x07\x70\x40\xaf\xd9\x68\x01\x07\xac\x28\xb9\xc8\xda\x46\x5e\xee\x5f\x7e\xea\x49\x46\xf2\x64\x76\xc9\xd6\x4e\x78\x0b\x76\x1b\xf1\xc2\x57\xdd\x26\x07\xe5\xce\x03\xfa\x9d\x04\xa9\xb4\xb2\xa3\x8c\x7e\x00\x34\xd8\x99\x65\xe7\x31\xbe\x59\xe0\x8f\x09\x50\xad\x93\xb4\x39\x04\xbb\xf4\x23\xde\x1b\x16\xd8\xe2\xaf\x8d\x6d\xdf\xd3\x2f\x28\xf9\x70\xa9\xeb\xf9\x3e\xa0\x9f\x58\x39\x16\xce\x7c\x0f\x05\x58\xf0\xd6\xc4\x24\xc0\x36\xd5\x3b\xf5\x48\x71\x65\xf7\xed\x7d\x5e\xfd\x33\x67\xb8\x29\x1e\x6f\x82\x61\x18\x2c\x54\x5c\x09\xd7\x52\xde\x4a\xb5\x26\x5e\x6e\x69\x0a\x3c\x53\x7c\x8e\xcf\x7c\xa3\x03\x87\x74\x7e\x3d\xcc\x15\x94\x05\x46\xfb\xb6\xe9\x3d\xda\x09\x80\x48\xad\xbb\x04\xfc\x96\x2a\xd7\x45\x0a\x3c\x8f\x6f\xc2\xef\xcd\xc1\xf3\xba\x08\xd0\x6c\xf2\xae\x9c\x14\xbc\x0b\x9f\x84\x68\x57\x45\xa4\x75\x13\x48\x3c\x51\xce\x70\x6f\x07\x56\xda\x30\xf5\x82\xac\xfb\x84\xe7\x42\x75\xea\x56\x07\xfb\x05\x6b\xa1\x36\x24\x1c\x96\xdf\x17\x16\xed\xf1\x96\xee\x8c\xb1\xfc\x70\x25\xb5\xf7\x32\x8d\xf0\xb2\x1a\x92\x0d\x99\x5f\x09\x7d\x6a\x5d\xc9\x30\xed\x06\x94\x2d\x72\x35\xf3\x44\x4a\x59\x99\xf2\xd2\x41\x8d\x64\x4c\xd4\x8a\x4f\x33\xd4\x99\xf2\xd7\x89\x39\x7b\xe5\x30\x18\x20\xd8\x2d\xd8\xca\xc7\x4c\xa3\xb1\x20\x07\x51\x67\x20\xe0\x46\xf7\x36\xe2\x8f\x1d\xb1\xdf\x68\x42\x17\xcb\x32\x79\x2e\xac\x9c\xc1\x93\x7b\x3e\x0d\x4a\xd5\x28\x8e\xb5\x41\x26\x2c\x57\x24\x7a\x0d\x3f\x01\x54\x8c\xa2\xc4\x75\x06\x59\xe2\xe3\xcd\x5d\xa3\x10\x17\x76\x67\xf9\xc7\x50\x99\x64\xca\xed\x17\x08\x9b\x25\x4e\x13\x1f\x34\xf1\xf7\xe4\x63\x7a\x5e\x21\x9f\x41\x1d\xda\xa2\xdd\x14\xbe\xde\xbd\x6f\x43\x0a\x93\x60\xb8\x7c\x73\xd6\x7f\x4a\x1a\x0f\x9f\xcc\x0b\xeb\xf9\x4b\x4e\x61\x0f\xd6\x27\x95\x42\xf3\x64\xa0\x01\xc4\x8a\x29\xf4\x05\xdd\x34\x8f\xee\xa6\x24\x98\xdf\x3c\x0e\xba\x7a\xf7\x92\xdc\x22\xa1\x5d\x0a\xf8\x39\x8f\xa5\x7f\x1d\xd9\x6e\x9e\x01\xb1\x70\xf2\x8c\xa5\xf8\xf1\xcc\x06\x88\x3a\x6f\xec\x31\xbf\xe0\xd9\xab\x3b\xa1\xb4\x49\x57\xd5\x9c\x4f\x7b\x4d\xd0\xe2\xce\xdb\xe4\x26\xac\xe6\x91\x12\xeb\xa8\xeb\x5d\x7a\x68\xcb\x85\x45\x97\xae\x61\x00\x9e\x19\x07\x5a\x05\x4e\xae\x4b\x83\xce\x29\xb7\x73\xe4\xb0\x83\x09\x8b\xdd\x75\x34\xd9\x61\xed\xb9\xe6\x46\xa2\x3b\xcd\x09\xbc\xd5\x02\xca\x15\xf6\xe4\x6b\x2f\x27\x89\x43\x8a\x26\x71\x5d\xea\x99\x0c\xc7\xdd\x56\x1c\x68\x1a\xce\xd7\x01\x27\xed\xe7\xb5\x9e\x87\xd1\xfc\x95\x40\xcd\x0a\x27\x10\x24\x82\x13\x19\xc9\x4d\x9b\x6c\xbf\x1c\xfa\xf1\xe8\x49\xb7\x27\x48\xe7\x7c\x53\xa8\x97\x3d\x2f\xbc\xfc\xca\xeb\x73\xe5\x6e\x27\x8f\x94\x88\x44\xfd\xa5\xee\x38\xc4\x8c\x90\x75\xc0\x53\xc9\x1b\x3f\x93\x7b\x6c\x55\x0d\x64\x3f\x98\x3a\xd4\xc4\xf3\xc5\xf9\x2a\xfc\x66\x8c\x73\x6c\x62\xe0\x73\xb6\x47\xbc\xf4\x77\xce\xc3\x72\x90\xec\x52\x01\xc2\xc1\x7e\xdd\x08\xf6\x89\xf0\xcd\xdb\xbb\x16\x9a\x1f\xaf\xe5\x08\xec\x65\x60\xe1\xad\x17\x16\x18\x3f\xba\x37\x3f\xc6\x88\x46\x3f\xbe\x2e\x0c\x46\x7d\xb8\xc8\xfd\x89\x5c\x4a\x0e\x16\x77\x76\x6c\x9b\x5f\xf7\xde\x82\x28\xfd\x4c\x4e\x9e\x17\x75\x0a\xd7\xb1\xd0\x27\x5f\x00\x9d\x9f\x63\xb4\x65\x0c\xa7\xdd\xb3\x2c\x91\x11\xe0\x49\x3a\xa1\xed\x16\xc7\x3d\xc7\x26\x21\x00\xbf\xcb\x99\x20\xa9"[..])),
},
expected_sighash: *b"\xd2\xf4\x0f\x55\x69\x10\xc7\x68\x58\x74\x9f\xe6\x4a\x20\x55\x94\x46\x62\x2a\xf0\x96\xae\x85\x01\xc3\xd0\x8e\x41\xd4\x5f\x9d\x9e",
},
@@ -898,7 +981,7 @@ mod tests {
gas_limit: b"\x75\x7d\x37\x37\x96\x2a\x97\xfd",
recipient: b"\x98\xe8\x58\x4e\x45\xb4\xac\x34\x91\x71\x84\x0b\x8f\x40\x5e\xfb\xe7\xad\x30\x93",
value: b"\xc8\x34\x5c\x2a\x6a\xa5\x90\xf6\x14\xd5\x32",
- data: b"\xcf\x0f\xa1\x5a\xcf\xbf\x64\xa8\x71\x59\x2e\xfd\x94\x5e\x70\x06\x88\x4c\x1f\x6a\xdc\xd1\x09\xdc\x4f\x81\x44\x4c\xc5\x9e\x8d\xaf\x3a\x6d\x79\xa8\xcc\xf1\x23\xaf\x1a\x81\x6f\x38\x3d\xa9\x17\x95\x93\xd7\x48\xa1\x98\x87\xdc\x71\xe5\xb1\x05\x25\xa8\xa9\xea\x6d\x69\x0b\x9e\xbe\xdd\x3e\xbe\xf6\xca\x57\x67\x03\x9e\xda\xef\xd9\x87\xb8\xfe\xff\x4a\x8f\xd3\xb3\x76\x27\x84\x01\x7d\xa1\xab\x2f\xd9\xfd\x2a\xc6\xe3\xfd\x94\x86\x13\xc6\x14\x37\x32\x0c\x78\x8c\x64\x10\x78\xfd\x1b\x99\xf8\x04\x09\xc6\x82\xdb\x25\x9b\xaa\x55\x7c\xa1\x5f\x01\x39\x5c\x33\xfc\x60\x02\x62\x0d\xaa\x47\xdc\xc0\xf5\xb9\x99\x3e\x45\x0a\xb1\xe7\xef\x46\xff\x8a\x08\x9e\x22\x6c\x71\x71\xf6\x32\xdb\x20\x6b\xb3\xc0\xd5\x0f\x29\xce\xe7\xba\x64\x67\xe2\xb2\xbc\x9d\x08\x1a\x5b\x7c\xb5\xe1\x2a\x08\x9a\xf8\xa5\x8b\x0e\x4d\xc8\xb5\xf8\x6c\xb8\x88\x02\xf2\x9a\x02\x8d\x75\xc3\xec\x1a\x21\x62\xdb\xfb\x61\x28\x69\x6c\x74\x2a\x80\xfb\x67\xe3\xa1\x67\xa5\x51\x0d\x03\xcb\xa4\x9f\x7d\xbb\xa8\xb3\xb6\xd3\xb1\x86\x4b\x4c\xb6\x64\xff\x3a\xa5\xee\x4b\x2e\x7f\x8d\x82\x05\xfe\x76\xe5\xb7\xce\x81\xfb\x88\x24\xab\x37\x83\x99\x15\x44\x7f\x01\x02\x3c\xd5\x79\xa4\xc5\xd6\x2e\x86\x3b\xfc\xe4\x2e\x7b\x70\x5f\x18\xc6\xc7\x54\x75\x02\x67\x70\xbc\xfd\x1f\xc0\xa1\x82\x39\x91\x2c\x18\x32\xd4\xf2\x5b\x82\x87\x56\x5c\x0d\x4d\xb4\x66\x39\xb3\xef\xe9\x59\x07\x5a\xce\x99\x31\xd8\x3a\x1e\x0a\x5f\xb7\xcf\x4e\x4a\x2d\x12\x91\xa8\x42\x3f\xa9\x21\xf8\x2d\x44\x41\xfe\x1c\x76\x82\xcc\xe2\x32\xb3\xec\xa4\xc7\x1e\x90\xf7\xb0\x48\x59\x95\xd1\x95\xb5\xc7\x15\x78\x23\x19\xe0\xa7\xd0\xb7\x8d",
+ data: RefCell::new(SimpleProducer::new(&b"\xcf\x0f\xa1\x5a\xcf\xbf\x64\xa8\x71\x59\x2e\xfd\x94\x5e\x70\x06\x88\x4c\x1f\x6a\xdc\xd1\x09\xdc\x4f\x81\x44\x4c\xc5\x9e\x8d\xaf\x3a\x6d\x79\xa8\xcc\xf1\x23\xaf\x1a\x81\x6f\x38\x3d\xa9\x17\x95\x93\xd7\x48\xa1\x98\x87\xdc\x71\xe5\xb1\x05\x25\xa8\xa9\xea\x6d\x69\x0b\x9e\xbe\xdd\x3e\xbe\xf6\xca\x57\x67\x03\x9e\xda\xef\xd9\x87\xb8\xfe\xff\x4a\x8f\xd3\xb3\x76\x27\x84\x01\x7d\xa1\xab\x2f\xd9\xfd\x2a\xc6\xe3\xfd\x94\x86\x13\xc6\x14\x37\x32\x0c\x78\x8c\x64\x10\x78\xfd\x1b\x99\xf8\x04\x09\xc6\x82\xdb\x25\x9b\xaa\x55\x7c\xa1\x5f\x01\x39\x5c\x33\xfc\x60\x02\x62\x0d\xaa\x47\xdc\xc0\xf5\xb9\x99\x3e\x45\x0a\xb1\xe7\xef\x46\xff\x8a\x08\x9e\x22\x6c\x71\x71\xf6\x32\xdb\x20\x6b\xb3\xc0\xd5\x0f\x29\xce\xe7\xba\x64\x67\xe2\xb2\xbc\x9d\x08\x1a\x5b\x7c\xb5\xe1\x2a\x08\x9a\xf8\xa5\x8b\x0e\x4d\xc8\xb5\xf8\x6c\xb8\x88\x02\xf2\x9a\x02\x8d\x75\xc3\xec\x1a\x21\x62\xdb\xfb\x61\x28\x69\x6c\x74\x2a\x80\xfb\x67\xe3\xa1\x67\xa5\x51\x0d\x03\xcb\xa4\x9f\x7d\xbb\xa8\xb3\xb6\xd3\xb1\x86\x4b\x4c\xb6\x64\xff\x3a\xa5\xee\x4b\x2e\x7f\x8d\x82\x05\xfe\x76\xe5\xb7\xce\x81\xfb\x88\x24\xab\x37\x83\x99\x15\x44\x7f\x01\x02\x3c\xd5\x79\xa4\xc5\xd6\x2e\x86\x3b\xfc\xe4\x2e\x7b\x70\x5f\x18\xc6\xc7\x54\x75\x02\x67\x70\xbc\xfd\x1f\xc0\xa1\x82\x39\x91\x2c\x18\x32\xd4\xf2\x5b\x82\x87\x56\x5c\x0d\x4d\xb4\x66\x39\xb3\xef\xe9\x59\x07\x5a\xce\x99\x31\xd8\x3a\x1e\x0a\x5f\xb7\xcf\x4e\x4a\x2d\x12\x91\xa8\x42\x3f\xa9\x21\xf8\x2d\x44\x41\xfe\x1c\x76\x82\xcc\xe2\x32\xb3\xec\xa4\xc7\x1e\x90\xf7\xb0\x48\x59\x95\xd1\x95\xb5\xc7\x15\x78\x23\x19\xe0\xa7\xd0\xb7\x8d"[..])),
},
expected_sighash: *b"\x4c\x57\x40\x85\xc6\x53\xc2\x05\x89\xca\x2e\x2b\xd3\x43\x5d\xbf\x60\xad\xf0\x7e\x17\xf1\xec\x9a\x7e\x8d\x99\x41\x6f\x4d\xca\x36",
},
@@ -911,7 +994,7 @@ mod tests {
gas_limit: b"\x3f\x7d\xd3\x00\x91\x5c\x05\x96",
recipient: b"\x65\x50\x97\x44\xb1\x2e\x3f\x0f\x85\x0a\xe2\x75\x6c\x81\x42\x9d\xe6\x23\x39\xd4",
value: b"\x20\x33\xec\x85\x89\xe1\x7d\xa3\x90\x62\xc4\x3a\xf6\x3b",
- data: b"\xd4\xee\xf3\xc9\x53\x7d\x06\x84\x7f\xff\x48\x72\xb5\xa3\xc5\x3c\x2b\x75\x1c\x83\xd3\xbf\xd7\xcb\x3d\x4a\xd5\x31\xe9\x51\xa3\x33\x16\x98\x40\x88\x46\x22\xc7\x7a\x3c\x5e\xa8\x1e\x14\x64\xf9\x0b\x5a\xc8\x60\x14\xaa\x9e\x0b\x1f\x3c\xe2\xe2\x8f\xfa\x62\x4a\x3b\x79\xfb\xaa\x57\x4f\x1d\x96\x36\x73\xde\x90\xe1\x9e\x3b\xbc\x68\x4c\x0c\x32\x05\xa2\xa2\x34\xe1\x17\x2f\xb8\x5a\x71\x43\x14\xaa\xe6\xc4\x38\xb1\x48\xa6\x56\x88\xde\x38\x1a\x07\x81\x04\x1f\xbc\xbe\x07\x2a\x1a\x9d\x5c\x3f\xcb\x57\xf1\x52\xc7\x1d\x29\x4e\x55\x56\x75\xda\x0d\x86\xc5\xd8\x64\x8f\x6b\xd0\x00\x01\xfa\xc8\x99\x8d\xb7\xe6\x51\xd1\x58\x4a\x3f\xde\x3f\x89\x2a\xbc\x7b\x20\x65\x54\x84\x90\x4b\xd3\x57\x99\xed\x95\xbf\x3b\x83\xa5\x1e\xf8\xe1\xe0\x66\x5c\xa4\x1d\x59\x0e\x16\xb6\xba\x2f\x1c\xd5\x3b\xc0\x4a\x93\xa7\x22\xff\xf8\x9a\x74\x4e\xd0\x92\x1d\xae\x4a\x01\x87\xc8\x77\xf5\xe0\x93\xed\x56\xe3\xbc\xcb\x30\x60\x35\x61\x7f\xc1\x8b\x1e\x26\x09\xee\x44\x5d\x41\xec\xe7\xb7\xe2\x46\x1a\xbb\x3b\x92\x6f\xdd\x1b\xd2\x91\x74\x6d\x47\x40\x3b\x01\xf3\x9e\xe8\xce\xc9\x41\x70\x01\x2a\x67\xb0\x8b\xe5\x2a\x49\xc6\x65\x03\x72\xa9\xdc\x47\x39\xc4\xf4\x37\x50\xca\xdf\x75\xd1\x6d\x4e\x59\xa9\x09\x1c\x73\xe0\x04\x6d\x8e\x7c\x8f\xfd\x8f\x8d\x5a\x8e\x05\x0d\x23\x0e\x4e\x50\x3b\x46\x8b\x93\x8e\x4a\x41\xc6\xd8\xdd\x1d\x5c\xc3\xae\x93\x05\x2c\x36\xf0\xa5\xf8\xc6\x69\xf4\x43\xbf\xf8\x77\xf8\x79\x08\x7f\x98\xc1\xbb\x0d\x67\x8b\xdd\x49\x2c\x74\x46\x71\xbf\x1e\x19\x21\xa5\xf8\x8c\x61\x45\x3f\x42\x27\xe6\xfd\x3a\x1b\x26\x9a\x62\x21\x79\xde\xea\x3a\xcd\xa6\x9b\x35\xa7\x5f\xf1\x51\x2e\xe3\x9d\x09\x0f\x28\x46\x27\x8a\x3c\xb8",
+ data: RefCell::new(SimpleProducer::new(&b"\xd4\xee\xf3\xc9\x53\x7d\x06\x84\x7f\xff\x48\x72\xb5\xa3\xc5\x3c\x2b\x75\x1c\x83\xd3\xbf\xd7\xcb\x3d\x4a\xd5\x31\xe9\x51\xa3\x33\x16\x98\x40\x88\x46\x22\xc7\x7a\x3c\x5e\xa8\x1e\x14\x64\xf9\x0b\x5a\xc8\x60\x14\xaa\x9e\x0b\x1f\x3c\xe2\xe2\x8f\xfa\x62\x4a\x3b\x79\xfb\xaa\x57\x4f\x1d\x96\x36\x73\xde\x90\xe1\x9e\x3b\xbc\x68\x4c\x0c\x32\x05\xa2\xa2\x34\xe1\x17\x2f\xb8\x5a\x71\x43\x14\xaa\xe6\xc4\x38\xb1\x48\xa6\x56\x88\xde\x38\x1a\x07\x81\x04\x1f\xbc\xbe\x07\x2a\x1a\x9d\x5c\x3f\xcb\x57\xf1\x52\xc7\x1d\x29\x4e\x55\x56\x75\xda\x0d\x86\xc5\xd8\x64\x8f\x6b\xd0\x00\x01\xfa\xc8\x99\x8d\xb7\xe6\x51\xd1\x58\x4a\x3f\xde\x3f\x89\x2a\xbc\x7b\x20\x65\x54\x84\x90\x4b\xd3\x57\x99\xed\x95\xbf\x3b\x83\xa5\x1e\xf8\xe1\xe0\x66\x5c\xa4\x1d\x59\x0e\x16\xb6\xba\x2f\x1c\xd5\x3b\xc0\x4a\x93\xa7\x22\xff\xf8\x9a\x74\x4e\xd0\x92\x1d\xae\x4a\x01\x87\xc8\x77\xf5\xe0\x93\xed\x56\xe3\xbc\xcb\x30\x60\x35\x61\x7f\xc1\x8b\x1e\x26\x09\xee\x44\x5d\x41\xec\xe7\xb7\xe2\x46\x1a\xbb\x3b\x92\x6f\xdd\x1b\xd2\x91\x74\x6d\x47\x40\x3b\x01\xf3\x9e\xe8\xce\xc9\x41\x70\x01\x2a\x67\xb0\x8b\xe5\x2a\x49\xc6\x65\x03\x72\xa9\xdc\x47\x39\xc4\xf4\x37\x50\xca\xdf\x75\xd1\x6d\x4e\x59\xa9\x09\x1c\x73\xe0\x04\x6d\x8e\x7c\x8f\xfd\x8f\x8d\x5a\x8e\x05\x0d\x23\x0e\x4e\x50\x3b\x46\x8b\x93\x8e\x4a\x41\xc6\xd8\xdd\x1d\x5c\xc3\xae\x93\x05\x2c\x36\xf0\xa5\xf8\xc6\x69\xf4\x43\xbf\xf8\x77\xf8\x79\x08\x7f\x98\xc1\xbb\x0d\x67\x8b\xdd\x49\x2c\x74\x46\x71\xbf\x1e\x19\x21\xa5\xf8\x8c\x61\x45\x3f\x42\x27\xe6\xfd\x3a\x1b\x26\x9a\x62\x21\x79\xde\xea\x3a\xcd\xa6\x9b\x35\xa7\x5f\xf1\x51\x2e\xe3\x9d\x09\x0f\x28\x46\x27\x8a\x3c\xb8"[..])),
},
expected_sighash: *b"\x75\xfa\x70\x45\x6f\xbb\x4d\xc4\x25\xa8\xf8\xf5\xf2\xff\xbf\xf5\xb3\x7c\x3c\xb4\xcb\x0a\x2c\x2e\x50\xf3\x0c\x75\xce\x5f\x76\x4b",
},
@@ -924,7 +1007,7 @@ mod tests {
gas_limit: b"\x04\xa4\x38\x81\x04\x79\x88\x65",
recipient: b"\x29\x1f\xa4\xd3\x3f\xd1\x33\x99\xe1\x36\x7d\x14\xae\xe7\x0d\x11\xcc\x9d\x63\x12",
value: b"\x9e\xbd\x43\x21\x64\x41\x0b\x9c\x5c\xf1\x46\x8d",
- data: b"\xe4\x5e\xda\x47\x70\x1f\xcd\x73\x68\x91\x8b\x1f\xc1\x58\x5a\x8a\x1a\x80\xd5\xe1\x76\xca\x67\x76\xe2\x37\x34\xd5\x48\x37\x2e\x89\xef\xd4\x6c\x89\xe6\x99\xa1\x06\x96\x22\xe3\xa3\xec\x1a\x1c\x54\x6e\x3b\xbd\xcd\xe7\xc7\x41\x8c\xa6\x38\x7b\xdf\xaf\x59\x0f\x56\xc4\x17\x2c\xfd\x8a\xcd\x85\x47\x2a\xfa\xd3\x92\x05\x5a\xf0\x3c\x81\xb8\x09\x81\x00\xe8\x62\x78\x63\x22\x02\xc8\x7a\xa5\x45\x62\xb8\xb6\x32\xcd\x38\x85\xd3\x17\xf6\x56\x0e\xd4\xb2\xe4\xb3\x99\xf5\xf9\x81\xda\xf0\xa4\x37\xb2\x5b\x76\xb1\x8b\x30\x41\x38\x01\xce\x05\x5e\x1e\xff\x24\x6e\x33\xc8\xb2\xce\x82\x3a\x5f\x50\x21\x45\xcb\xe6\xe6\xb0\x7d\xda\x8e\x0a\x97\x0d\x56\x31\x75\xce\xcb\x7d\x18\x06\xf3\x93\xa6\x3d\x56\xb4\xe0\x2e\x56\xc1\xb6\xad\xc6\x02\xb5\x86\xfd\x54\xaf\xaf\x5f\x5c\xd9\x0b\x23\x2e\x5d\x3d\xce\x8c\xe8\x31\x9f\x5c\x56\xc3\x0e\x80\xa9\x06\x9a\xef\x54\xf4\xf3\x12\xe4\xb7\x40\xee\xe5\x8b\x65\x9b\x5b\x73\xa4\x0b\x2c\x01\xb8\x0f\x05\x71\x5d\x05\x0a\x6d\xd2\xf8\xdd\x58\x5e\x81\x74\x30\x15\x45\x3b\xfd\xe2\x47\x05\x49\xb7\xfa\xa8\x43\x75\x39\x80\x6d\x2b\x34\xb6\x83\x29\x14\x8b\xde\xca\xb3\x1e\x9a\x41\xf7\x15\x6e\x94\xdf\xe9\x32\x24\x33\xbd\xa0\xb8\x2e\xb6\xc4\x21\x22\xfe\x1e\xb2\x6f\xf7\x7f\xeb\xd5\x9e\xee\xdf\x8b\xdb\x25\x1a\x12\x8f\x05\x94\x2e\x9b\x91\x66\x9b\xc0\x68\xb5\x33\x08\x02\x21\xd5\xc8\x2a\xed\xa6\x0b\xe5\x13\xdb\x86\x05\xb0\x06\x2b\x7d\xd4\x70\xbe\x01\x8c\x37\x29\xcf\xd2\x2a\x0e\x57\x7e\xc2\x33\xb7\x34\x67\x99\xa8\x6e\x58\x11\x02\x56\x90\x8b\x43\x71\xb6\x61\x43\xec\x3a\x0a\x57\x59\x1e\xcf\x52\xcc\x17\x89\x6d\xa6\xa9\xec\x93\x65\x81\xf3\x5c\x56\xad\x7d\x0a\x50\xea\xd4\xa1\xc0\x8f\xe6\x5f\x4d\x0b\xdf\x67\x8d\x13\x74\x6a\x51\x22\x3b\x14\xf1\x41\x37\xa8\x7d\x1b\x07\xc4\x03\x53\xf4\xbd\xff\x67\xfe\xb8\xaa\x8a\x9c\x1a\x77\x04\x14\x07\x54\x81\x49\x6d\xbc\x31\xb1\xc7\x64\xc8\x5d\xdb\x44\x81\xe7\xbe\xc1\xf7\x04\x4b\xcd\xcb\xbe\x91\xf3\x25\x05\xbe\x56\x6d\xba\xb1\x91\x55\x68\x81\x02\xdf\xe6\xa3\xed\x12\x32\xc0\x38\x87\x98\xc2\xf7\x8f\xee\x2c\xb4\xc8\x05\xc6\x13\x7a\x63\x8b\xb6\xf4\x17\x14\x48\xb7\x64\x64\xc6\x26\x32\x67\x48\x0d\x12\x34\xff\x78\x75\xc0\xd1\x22\x64\xdc\x91\x02\x7a\x99\x66\x93\x71\xaa\x7e\xb8\xf2\x99\x45\x2b\x5e\x48\x68\x05\xbf\xbd\xb5\xba\x49\x06\xae\xa2\xc8\xac\x2c\x0d\x03\xc6\x94\xd1\x3a\x9f\x85\x6c\x65\x05\xab\x57\x74\xe0\xfc\x3c\x36\xf6\x84\xd3\xf5\xc6\xaa\x69\x96\x30\x1e\xb7\x29\xc8\x49\x71\xd4\x88\x30\x63\xc3\xab\xc4\x6e\x46\x76\x8d\xcd\x15\x13\xb5\xb8\x4d\x61\xd9\xfc\x57\x74\xe2\xc8\x5a\xed\xa2\xbb\xb3\xf7\xa8\x2d\x2f\x19\x36\x75\xc5\x2f\x53\xde\x3e\x97\xc8\x0b\xc4\x49\xde\x8e\x3b\xec\xce\x0e\xd7\x8f\x69\x85\xc9\xe3\xa9\x50\x0c\x97\xb9\xdc\xcd\xe8\xb7\xd6\x41\xfb\x25\xf5\xfe\x95\xd5\x54\xf8\x8b\x2b\x61\xd2\xab\x63\x15\x45\x35\x74\x34\x0e\x8e\x4d\xd2\xdf\x08\x4e\xf6\x97\xb3\x1c\x9f\x16\xea\xc5\x23\x21\x41\xcd\x40\x4e\xce\x1b\xf2\x14\xf3\xe5\x1e\x7b\xb4\xf6\x29\x61\xf9\xf4\xe8\x65\xa2\x9f",
+ data: RefCell::new(SimpleProducer::new(&b"\xe4\x5e\xda\x47\x70\x1f\xcd\x73\x68\x91\x8b\x1f\xc1\x58\x5a\x8a\x1a\x80\xd5\xe1\x76\xca\x67\x76\xe2\x37\x34\xd5\x48\x37\x2e\x89\xef\xd4\x6c\x89\xe6\x99\xa1\x06\x96\x22\xe3\xa3\xec\x1a\x1c\x54\x6e\x3b\xbd\xcd\xe7\xc7\x41\x8c\xa6\x38\x7b\xdf\xaf\x59\x0f\x56\xc4\x17\x2c\xfd\x8a\xcd\x85\x47\x2a\xfa\xd3\x92\x05\x5a\xf0\x3c\x81\xb8\x09\x81\x00\xe8\x62\x78\x63\x22\x02\xc8\x7a\xa5\x45\x62\xb8\xb6\x32\xcd\x38\x85\xd3\x17\xf6\x56\x0e\xd4\xb2\xe4\xb3\x99\xf5\xf9\x81\xda\xf0\xa4\x37\xb2\x5b\x76\xb1\x8b\x30\x41\x38\x01\xce\x05\x5e\x1e\xff\x24\x6e\x33\xc8\xb2\xce\x82\x3a\x5f\x50\x21\x45\xcb\xe6\xe6\xb0\x7d\xda\x8e\x0a\x97\x0d\x56\x31\x75\xce\xcb\x7d\x18\x06\xf3\x93\xa6\x3d\x56\xb4\xe0\x2e\x56\xc1\xb6\xad\xc6\x02\xb5\x86\xfd\x54\xaf\xaf\x5f\x5c\xd9\x0b\x23\x2e\x5d\x3d\xce\x8c\xe8\x31\x9f\x5c\x56\xc3\x0e\x80\xa9\x06\x9a\xef\x54\xf4\xf3\x12\xe4\xb7\x40\xee\xe5\x8b\x65\x9b\x5b\x73\xa4\x0b\x2c\x01\xb8\x0f\x05\x71\x5d\x05\x0a\x6d\xd2\xf8\xdd\x58\x5e\x81\x74\x30\x15\x45\x3b\xfd\xe2\x47\x05\x49\xb7\xfa\xa8\x43\x75\x39\x80\x6d\x2b\x34\xb6\x83\x29\x14\x8b\xde\xca\xb3\x1e\x9a\x41\xf7\x15\x6e\x94\xdf\xe9\x32\x24\x33\xbd\xa0\xb8\x2e\xb6\xc4\x21\x22\xfe\x1e\xb2\x6f\xf7\x7f\xeb\xd5\x9e\xee\xdf\x8b\xdb\x25\x1a\x12\x8f\x05\x94\x2e\x9b\x91\x66\x9b\xc0\x68\xb5\x33\x08\x02\x21\xd5\xc8\x2a\xed\xa6\x0b\xe5\x13\xdb\x86\x05\xb0\x06\x2b\x7d\xd4\x70\xbe\x01\x8c\x37\x29\xcf\xd2\x2a\x0e\x57\x7e\xc2\x33\xb7\x34\x67\x99\xa8\x6e\x58\x11\x02\x56\x90\x8b\x43\x71\xb6\x61\x43\xec\x3a\x0a\x57\x59\x1e\xcf\x52\xcc\x17\x89\x6d\xa6\xa9\xec\x93\x65\x81\xf3\x5c\x56\xad\x7d\x0a\x50\xea\xd4\xa1\xc0\x8f\xe6\x5f\x4d\x0b\xdf\x67\x8d\x13\x74\x6a\x51\x22\x3b\x14\xf1\x41\x37\xa8\x7d\x1b\x07\xc4\x03\x53\xf4\xbd\xff\x67\xfe\xb8\xaa\x8a\x9c\x1a\x77\x04\x14\x07\x54\x81\x49\x6d\xbc\x31\xb1\xc7\x64\xc8\x5d\xdb\x44\x81\xe7\xbe\xc1\xf7\x04\x4b\xcd\xcb\xbe\x91\xf3\x25\x05\xbe\x56\x6d\xba\xb1\x91\x55\x68\x81\x02\xdf\xe6\xa3\xed\x12\x32\xc0\x38\x87\x98\xc2\xf7\x8f\xee\x2c\xb4\xc8\x05\xc6\x13\x7a\x63\x8b\xb6\xf4\x17\x14\x48\xb7\x64\x64\xc6\x26\x32\x67\x48\x0d\x12\x34\xff\x78\x75\xc0\xd1\x22\x64\xdc\x91\x02\x7a\x99\x66\x93\x71\xaa\x7e\xb8\xf2\x99\x45\x2b\x5e\x48\x68\x05\xbf\xbd\xb5\xba\x49\x06\xae\xa2\xc8\xac\x2c\x0d\x03\xc6\x94\xd1\x3a\x9f\x85\x6c\x65\x05\xab\x57\x74\xe0\xfc\x3c\x36\xf6\x84\xd3\xf5\xc6\xaa\x69\x96\x30\x1e\xb7\x29\xc8\x49\x71\xd4\x88\x30\x63\xc3\xab\xc4\x6e\x46\x76\x8d\xcd\x15\x13\xb5\xb8\x4d\x61\xd9\xfc\x57\x74\xe2\xc8\x5a\xed\xa2\xbb\xb3\xf7\xa8\x2d\x2f\x19\x36\x75\xc5\x2f\x53\xde\x3e\x97\xc8\x0b\xc4\x49\xde\x8e\x3b\xec\xce\x0e\xd7\x8f\x69\x85\xc9\xe3\xa9\x50\x0c\x97\xb9\xdc\xcd\xe8\xb7\xd6\x41\xfb\x25\xf5\xfe\x95\xd5\x54\xf8\x8b\x2b\x61\xd2\xab\x63\x15\x45\x35\x74\x34\x0e\x8e\x4d\xd2\xdf\x08\x4e\xf6\x97\xb3\x1c\x9f\x16\xea\xc5\x23\x21\x41\xcd\x40\x4e\xce\x1b\xf2\x14\xf3\xe5\x1e\x7b\xb4\xf6\x29\x61\xf9\xf4\xe8\x65\xa2\x9f"[..])),
},
expected_sighash: *b"\x34\x1b\x63\x02\x79\xce\xa5\x73\xd7\x06\xf1\x9b\x59\xac\xa8\xc2\xb5\x6b\x7a\x01\x73\xc3\xb1\xfa\x86\xee\xdd\xae\x64\xa4\x46\x28",
},
@@ -937,7 +1020,7 @@ mod tests {
gas_limit: b"\xc7\xf0\x60\x01\x84\x62\x20\x51",
recipient: b"\x92\x2b\xe1\x39\x57\xe8\xc5\x18\x43\xd4\xbf\x1c\xd7\x4b\x9b\xf7\xd6\x9c\xcd\x13",
value: b"\xef\x4f\xcd\x80\x0c\x6d\xaa\xa0\x7b\xf3\x33\x89\x59\xa2\xcb",
- data: b"\x14\x7d\x94\x2e\xe2\x98\x10\x63\xf9\x48\x2f\x31\xcf\x3a\x93\xc3\x77\x09\xe8\x8e\x83\xc2\xe7\x12\x72\x73\x6e\x6c\xc2\xae\xf5\xfa\x98\xa7\x45\x88\x89\xb0\xe0\x89\x42\x00\xf1\x4f\x91\xaf\xa5\x0d\x89\x7f\x91\xdf\xa9\x4a\xe6\x35\x6d\x14\x96\x3b\xc4\xa1\xcf\x8b\xc1\x66\x22\xa3\x95\xea\xc5\x73\xdb\x76\x70\x72\x07\x5b\x74\x07\xa9\xf4\x61\x1e\x74\x92\xe9\x64\x9a\x51\xd7\xc1\x9f\x16\x61\xe1\xc8\x42\x01\x76\x7f\x19\x3d\x0b\x9f\x46\x52\x30\xcf\xec\x5e\x64\x5a\xaf\xe5\xf1\xa1\x8a\xb0\xed\x51\xf8\x9a\x5f\x0d\x84\xd5\x44\x87\x80\xf7\x75\xdb\x1d\x2c\x1d\xf9\x7f\x81\x07\x5b\x37\x45\xc0\xa3\x52\xaf\xd9\x5a\xbd\xf4\x4b\x33\x84\xeb\x72\xd1\x38\x06\x22\x69\x3f\x03\x97\x7e\x8e\x7f\x67\xf3\x3c\x5a\xea\x68\x94\xcf\x42\x1a\x1d\xae\xfd\xb7\xf9\xe6\xb8\x27\x0a\x4f\x25\x9b\xb8\x2f\xde\x7f\xa2\xb2\x6f\x78\xbd\x04\xdf\x39\xa5\x67\xaa\x3d\x60\x62\x6f\x0c\x7a\x8e\x90\x33\x52\x28\x90\x2f\xa5\x41\xe8\x2e\xfc\xfc\xf8\x12\xd5\x54\xdd\x8d\x45\xf0\x1f\x3d\x12\x46\xc6\xe4\xdb\xf2\xc7\x48\x64\xf9\x73\x14\x6c\x81\x29\xe2\x95\x03\xf8\x60\xa4\x6a\xa8\xb6\x17\x98\xbc\x8d\xf2\xe7\x5f\x24\xca",
+ data: RefCell::new(SimpleProducer::new(&b"\x14\x7d\x94\x2e\xe2\x98\x10\x63\xf9\x48\x2f\x31\xcf\x3a\x93\xc3\x77\x09\xe8\x8e\x83\xc2\xe7\x12\x72\x73\x6e\x6c\xc2\xae\xf5\xfa\x98\xa7\x45\x88\x89\xb0\xe0\x89\x42\x00\xf1\x4f\x91\xaf\xa5\x0d\x89\x7f\x91\xdf\xa9\x4a\xe6\x35\x6d\x14\x96\x3b\xc4\xa1\xcf\x8b\xc1\x66\x22\xa3\x95\xea\xc5\x73\xdb\x76\x70\x72\x07\x5b\x74\x07\xa9\xf4\x61\x1e\x74\x92\xe9\x64\x9a\x51\xd7\xc1\x9f\x16\x61\xe1\xc8\x42\x01\x76\x7f\x19\x3d\x0b\x9f\x46\x52\x30\xcf\xec\x5e\x64\x5a\xaf\xe5\xf1\xa1\x8a\xb0\xed\x51\xf8\x9a\x5f\x0d\x84\xd5\x44\x87\x80\xf7\x75\xdb\x1d\x2c\x1d\xf9\x7f\x81\x07\x5b\x37\x45\xc0\xa3\x52\xaf\xd9\x5a\xbd\xf4\x4b\x33\x84\xeb\x72\xd1\x38\x06\x22\x69\x3f\x03\x97\x7e\x8e\x7f\x67\xf3\x3c\x5a\xea\x68\x94\xcf\x42\x1a\x1d\xae\xfd\xb7\xf9\xe6\xb8\x27\x0a\x4f\x25\x9b\xb8\x2f\xde\x7f\xa2\xb2\x6f\x78\xbd\x04\xdf\x39\xa5\x67\xaa\x3d\x60\x62\x6f\x0c\x7a\x8e\x90\x33\x52\x28\x90\x2f\xa5\x41\xe8\x2e\xfc\xfc\xf8\x12\xd5\x54\xdd\x8d\x45\xf0\x1f\x3d\x12\x46\xc6\xe4\xdb\xf2\xc7\x48\x64\xf9\x73\x14\x6c\x81\x29\xe2\x95\x03\xf8\x60\xa4\x6a\xa8\xb6\x17\x98\xbc\x8d\xf2\xe7\x5f\x24\xca"[..])),
},
expected_sighash: *b"\x88\x83\x29\xf6\xcc\xa4\xed\xc4\x16\x48\x6d\xe3\x21\x3e\x03\x42\xe5\x0e\x85\xa9\x06\xfa\xdc\x4a\xfa\x3f\x70\xec\x2b\x4a\xac\xa1",
},
@@ -950,7 +1033,7 @@ mod tests {
gas_limit: b"\x8b\x16\xfa\x01\x04\x1f\x14\x1e",
recipient: b"\x9e\xb6\xee\x8a\x42\x4e\xb8\x4b\x32\xe1\xd2\x5e\x7e\xbe\x5c\x41\x85\x99\x05\xac",
value: b"\x51\x34\x8c\x24\xd2\x41\x7a\xaf\xa0\x7d",
- data: b"\x37\x77\x13\xc2\x83\x5d\xe7\xcc\x7e\x0c\x91\x5c\xe8\xce\x62\x29\x20\x41\x82\xed\x91\xb2\x8a\x06\x2b\x67\xb1\x28\x4d\x9c\x71\xd6\xc8\x6e\xe2\x28\x7a\xc2\x19\x47\x25\x5d\xed\x37\x6b\xf2\x32\x37\x85\x7e\xb0\x97\xcc\x91\x3f\x0b\x27\xc8\x8a\x09\xbe\x45\x55\xe5\x91\x9a\x06\x3c\x12\xe4\xfb\x6d\x6e\x10\x18\x0a\x55\x67\xd4\x0c\x56\xef\x52\x3f\x43\x7e\x73\x23\xe7\xf6\xc9\x1f\x6c\xa0\x8c\xde\x26\x67\x1e\x47\x30\xaa\x6e\x7c\x36\x28\xa1\xf4\x50\xd7\xde\x4d\xa2\xc9\xe0\x73\xce\x5e\xf0\xc5\x46\xbb\xbd\x75\xea\x27\x7b\xf3\xb5\x04\x54\x1e\x23\x46\xbd\xfb\x0d\xc6\x1e\xb7\xc0\x09\x08\xd9\x83\x19\xd4\xa6\x5f\x4e\x93\x15\xb5\x05\xad\x7b\xd1\x2f\x22\x4d\xca\x00\x7a\x3e\x66\xac\x60\xd7\x9b\x45\xc5\x08\xa7\xeb\xf6\x1c\x3e\xfd\x26\xa8\xad\x41\x03\xda\xf4\xff\x07\x14\xe6\xe3\xa2\xcd\x17\x54\xa5\xe1\xfd\xe5\xf4\x99\x19\x04\xca\x8b\x9a\x4b\xac\xcf\x98\x74\xde\x73\x4f\xcd\xae\x6d\x46\x9b\x78\xd2\x5c\xec\x8f\x8e\x67\xa7\xde\xa7\xd9\xaf\x77\x05\x7c\xc6\xb0\x27\x33\xd9\xf8\x5a\x74\x92\x18\xe3\x09\x10\x09\x2d\x3e\xe2\xf1\xe9\x15\x37\xf3\xf0\xcd\x0f\x42\x27\xac\xd7\x71\xe7\x7d\xda\x39\xf8\x27\x99\x1c\x60\xdb\x93\xc3\x1e\x32\x1c\xe0\x27\x88\xe5\xb2\xa6\xe4\x57\x17\x39\x57\x1d\xb5\xd5\x5a\x5a\xfe\x3b\x5b\x32\x1a\x44\x7f\x4e\x86\x06\x0e\xb8\x75\x3b\xf2\x98\xf6\x55\x85\xfc\x00\x88\x75\x7c\x5e\x4d\x37\x16\xc9\x4a\x69\x63\x27\x7f\x58\x21\xea\x77\x71\xa8\x14\xd6\x53\x3d\xe4\xb1\xb8\x82\x03\x8d\xc8\x57\xf2\x78\xf6\x03\x4f\xe8\x33\x84\xe7\x62\xc5\xcb\xda\x0a\xae\x64\x0d\x45\xba\x62\x1d\xda\xef\x31\xa0\xe0\x5b\x8e\x44\x97\x7f\x50\x3e\xa1\x7b\x81\x3c\x92\x77\x3b\x02\x84\xa6\x22\x69\xf0\xe3\xa0\xc5\x09\x7a\xf8\x09\x63\xab\xc2\x44\xb0\xc4\xe9\x43\x3a\x00\x93\x3f\x52\xa6\x1a\x73\x29\x91\x99\x44\xe1\x64\x41\x2e\x7a\xe8\x88\x22\x13\x0a\xc7\xa0\x26\x06\x61\x43\xf5\x63\xb7\xcd\xae\x00\x91\x80\xae\x12\xaf\xcd\x69\xff\x76\xcd\xdc\x5e\xca\x1e\x89\x2d\x14\x3e\x1a\xe9\x0e\xf6\xa0\x96\x27\xcd\x1f\x4c\xbb\x4b\xed\x1e\xbb\xdb\xc1\xdc\x96\xac\xab\x5b\x67\x71\x5b\xae\xe4\xec\x61\x9f\x9e\xe0\xb9\xbb\x3a\x45\xce\xda\xd2\x5d\xe5\xd8\xef\xcd\x0d\x96\x48\xd8\x00\x0f\x43\xe3\x90\xe4\x3b\x8b\x9a\x79\xe5\x49\x72\x24\xe1\x27\xef\xda\xcb\xaf\x1a\x61\xf2\xc0\xd3\x64\x8a\x36\x4e\x61\x0d\x6d\xf4\x52\x56\x91\x17\xcb\x17\xc6\x74\x55\x83\x13\xce\x6d\xa0\xd9\x0b\x61\xaf\x12\x8f\xd2\x5c\xef\x97\xef\x63\xf3\x23\x74\xc9\xa9\x9a\xe8\xfe\x43\x42\x53\x2f\x16\xb3\xdf\xc1\x54\x7f\x39\x26\x1c\xb9\xc7\x25\x0e\x74\x0d\x3f\x51\xd4\x33\x92\x44\xaf\xfe\x51\x01\xf7\x59\x8a\xe7\x14\x24\x68\xd3\x46\xaa\x04\x20\x77\x45\x91\xbd\xb0\x5a\xe7\x29\x2f\x64\x48\xae\x02\xd3\x47\x48\xe9\x5b\x20\x76\xd7\xa1\xda\xf0\x96\x63\xee\xde\x32\xac\x2a\x5f\xce\x2d\xc4\xeb\xfe\x88\x74\x9f\x7d\x77\xea\x81\x40\x72\x4d\xa1\x84\x01\x95\xee\x37\x31\xe9\x03\x8f\xdc\xb5\xaf\x59\x2e\x98\x03\xf0\xa1\x82\x80\x23\xea\x28\x54\x80\x79\x79\xf6\x56\x08\xe1\x64\xa5\x32\x8e\x1f\x25\xd2\xd8\xb1\x3a\x2b\xef\x18\x73\xed\x1a\x3a\x40\x6f\x59\x57\xff\x55\xa2\xe3\x76\xb8\xcc\xea\x92\x1c\xf9\x59\xc8\xfd\x34\x8e\xd9\xfd\xae\xe2\x55\xa5\x39\x51\x8f\x99\x5a\xda\x92\x36\xb2\x4b\x2d\xa8\x25\x12\x8e\x1d\x7f\xa3\xe3\xcc\x7f\xfd\x72\x29\xef\xc4\xa9\xa5\xe3\x88\xdd\xfe\x60\xf2\x7d\xbe\xe8\xc1\x35\x08\x29\x51\x1c\x13\xeb\xaf\x27\x0e\x4b\x5d\x88\x51",
+ data: RefCell::new(SimpleProducer::new(&b"\x37\x77\x13\xc2\x83\x5d\xe7\xcc\x7e\x0c\x91\x5c\xe8\xce\x62\x29\x20\x41\x82\xed\x91\xb2\x8a\x06\x2b\x67\xb1\x28\x4d\x9c\x71\xd6\xc8\x6e\xe2\x28\x7a\xc2\x19\x47\x25\x5d\xed\x37\x6b\xf2\x32\x37\x85\x7e\xb0\x97\xcc\x91\x3f\x0b\x27\xc8\x8a\x09\xbe\x45\x55\xe5\x91\x9a\x06\x3c\x12\xe4\xfb\x6d\x6e\x10\x18\x0a\x55\x67\xd4\x0c\x56\xef\x52\x3f\x43\x7e\x73\x23\xe7\xf6\xc9\x1f\x6c\xa0\x8c\xde\x26\x67\x1e\x47\x30\xaa\x6e\x7c\x36\x28\xa1\xf4\x50\xd7\xde\x4d\xa2\xc9\xe0\x73\xce\x5e\xf0\xc5\x46\xbb\xbd\x75\xea\x27\x7b\xf3\xb5\x04\x54\x1e\x23\x46\xbd\xfb\x0d\xc6\x1e\xb7\xc0\x09\x08\xd9\x83\x19\xd4\xa6\x5f\x4e\x93\x15\xb5\x05\xad\x7b\xd1\x2f\x22\x4d\xca\x00\x7a\x3e\x66\xac\x60\xd7\x9b\x45\xc5\x08\xa7\xeb\xf6\x1c\x3e\xfd\x26\xa8\xad\x41\x03\xda\xf4\xff\x07\x14\xe6\xe3\xa2\xcd\x17\x54\xa5\xe1\xfd\xe5\xf4\x99\x19\x04\xca\x8b\x9a\x4b\xac\xcf\x98\x74\xde\x73\x4f\xcd\xae\x6d\x46\x9b\x78\xd2\x5c\xec\x8f\x8e\x67\xa7\xde\xa7\xd9\xaf\x77\x05\x7c\xc6\xb0\x27\x33\xd9\xf8\x5a\x74\x92\x18\xe3\x09\x10\x09\x2d\x3e\xe2\xf1\xe9\x15\x37\xf3\xf0\xcd\x0f\x42\x27\xac\xd7\x71\xe7\x7d\xda\x39\xf8\x27\x99\x1c\x60\xdb\x93\xc3\x1e\x32\x1c\xe0\x27\x88\xe5\xb2\xa6\xe4\x57\x17\x39\x57\x1d\xb5\xd5\x5a\x5a\xfe\x3b\x5b\x32\x1a\x44\x7f\x4e\x86\x06\x0e\xb8\x75\x3b\xf2\x98\xf6\x55\x85\xfc\x00\x88\x75\x7c\x5e\x4d\x37\x16\xc9\x4a\x69\x63\x27\x7f\x58\x21\xea\x77\x71\xa8\x14\xd6\x53\x3d\xe4\xb1\xb8\x82\x03\x8d\xc8\x57\xf2\x78\xf6\x03\x4f\xe8\x33\x84\xe7\x62\xc5\xcb\xda\x0a\xae\x64\x0d\x45\xba\x62\x1d\xda\xef\x31\xa0\xe0\x5b\x8e\x44\x97\x7f\x50\x3e\xa1\x7b\x81\x3c\x92\x77\x3b\x02\x84\xa6\x22\x69\xf0\xe3\xa0\xc5\x09\x7a\xf8\x09\x63\xab\xc2\x44\xb0\xc4\xe9\x43\x3a\x00\x93\x3f\x52\xa6\x1a\x73\x29\x91\x99\x44\xe1\x64\x41\x2e\x7a\xe8\x88\x22\x13\x0a\xc7\xa0\x26\x06\x61\x43\xf5\x63\xb7\xcd\xae\x00\x91\x80\xae\x12\xaf\xcd\x69\xff\x76\xcd\xdc\x5e\xca\x1e\x89\x2d\x14\x3e\x1a\xe9\x0e\xf6\xa0\x96\x27\xcd\x1f\x4c\xbb\x4b\xed\x1e\xbb\xdb\xc1\xdc\x96\xac\xab\x5b\x67\x71\x5b\xae\xe4\xec\x61\x9f\x9e\xe0\xb9\xbb\x3a\x45\xce\xda\xd2\x5d\xe5\xd8\xef\xcd\x0d\x96\x48\xd8\x00\x0f\x43\xe3\x90\xe4\x3b\x8b\x9a\x79\xe5\x49\x72\x24\xe1\x27\xef\xda\xcb\xaf\x1a\x61\xf2\xc0\xd3\x64\x8a\x36\x4e\x61\x0d\x6d\xf4\x52\x56\x91\x17\xcb\x17\xc6\x74\x55\x83\x13\xce\x6d\xa0\xd9\x0b\x61\xaf\x12\x8f\xd2\x5c\xef\x97\xef\x63\xf3\x23\x74\xc9\xa9\x9a\xe8\xfe\x43\x42\x53\x2f\x16\xb3\xdf\xc1\x54\x7f\x39\x26\x1c\xb9\xc7\x25\x0e\x74\x0d\x3f\x51\xd4\x33\x92\x44\xaf\xfe\x51\x01\xf7\x59\x8a\xe7\x14\x24\x68\xd3\x46\xaa\x04\x20\x77\x45\x91\xbd\xb0\x5a\xe7\x29\x2f\x64\x48\xae\x02\xd3\x47\x48\xe9\x5b\x20\x76\xd7\xa1\xda\xf0\x96\x63\xee\xde\x32\xac\x2a\x5f\xce\x2d\xc4\xeb\xfe\x88\x74\x9f\x7d\x77\xea\x81\x40\x72\x4d\xa1\x84\x01\x95\xee\x37\x31\xe9\x03\x8f\xdc\xb5\xaf\x59\x2e\x98\x03\xf0\xa1\x82\x80\x23\xea\x28\x54\x80\x79\x79\xf6\x56\x08\xe1\x64\xa5\x32\x8e\x1f\x25\xd2\xd8\xb1\x3a\x2b\xef\x18\x73\xed\x1a\x3a\x40\x6f\x59\x57\xff\x55\xa2\xe3\x76\xb8\xcc\xea\x92\x1c\xf9\x59\xc8\xfd\x34\x8e\xd9\xfd\xae\xe2\x55\xa5\x39\x51\x8f\x99\x5a\xda\x92\x36\xb2\x4b\x2d\xa8\x25\x12\x8e\x1d\x7f\xa3\xe3\xcc\x7f\xfd\x72\x29\xef\xc4\xa9\xa5\xe3\x88\xdd\xfe\x60\xf2\x7d\xbe\xe8\xc1\x35\x08\x29\x51\x1c\x13\xeb\xaf\x27\x0e\x4b\x5d\x88\x51"[..])),
},
expected_sighash: *b"\xa2\x90\x26\x0f\x1c\x52\x68\x5f\x65\xac\x60\x72\x56\x23\xc1\xed\x52\x6e\x6d\x0f\x56\x82\xf5\x88\xfc\xae\xdd\x2c\x8d\xa2\xc0\xcc",
},
@@ -963,7 +1046,7 @@ mod tests {
gas_limit: b"\xdc\xb3\x98\xc7\x65\xdf\xae\x9b",
recipient: b"\x4c\xbf\x41\x3e\x4e\x86\xc3\xc0\xa4\x26\x31\xd1\x8d\x69\x60\xdc\xba\x73\xb7\x06",
value: b"\x4d\x5f\x3f\xa8\x3b\x79\x1b\x05\xca\x67\x81\x10\xe3\x9b",
- data: b"\x13\x1a\x8a\xb7\xd2\x26\xd7\xe5\xac\x66\x81\xda\xb7\x6c\xf9\xfc\x9e\x7a\xb5\xad\x43\x85\xa0\xc5\x5c\x77\x47\x26\x30\x10\xca\xdd\xfa\xad\xc0\xed\xa3\xfc\x33\xe8\x31\x88\x69\xdf\x58\x9d\x1a\x93\x72\x60\xf7\xb3\x10\xe3\x42\x2c\xa0\xac\x1b\x93\xeb\x07\x0b\xd6\x7f\xfd\x49\x90\xf1\x8c\xa5\x19\xac\xc0\x97\xf7\xe5\x90\x17\x1e\xb9\x6b\x23\x3e\xda\x67\x38\x84\xa8\xe1\xee\xf8\x98\xc3\x69\xaa\x00\x1f\xb3\x2b\x28\x27\x1f\xb5\x33\xc5\x95\xbc\x75\xfe\xb2\x05\x6a\x3c\x63\x96\x9e\x58\x31\x3b\xf9\xb6\xcd\x22\x30\xd5\x86\xfa\xcf\xfa\xd0\x25\xbb\x8d\xa7\xd2\xf9\x1b\x8f\x20\x02\x3f\x53\x43\x22\x75\x5f\xdc\x92\x57\xf1\x9b\x46\x5d\x52\xa8\x4d\xb7\xc5\x16\xd7\x9f\x82\x6a\xec\x8a\xa7\x61\x3e\x99\x19\x25\xe2\x31\xc0\x1a\x8d\x23\xbd\x35\x06\x7a\xd5\xda\x0e\x96\x43\x91\x27\xef\x34\xc5\x65\xde\x57\xc2\x7e\x2b\xcd\x9d\x2a\x82\x84\xf6\xaa\x34\xeb\xc7\x65\x7f\xb4\xe4\xc4\xda\x92\xd4\xe0\x46\x3c\xe8\x2c\x3d\xae\xac\x83\x70\x8c\xf0\xa0\xf8\x90\xa6\xa2\xd6\xd4\x35\x93\xb7\x19\x43\x99\x3b\x1d\x6c\x1d\x67\xd8\x35\x61\xf3\x8c\x75\xce\xa7\x6c\xc7\xc7\xc8\xaf\x7f\x6b\x2e\x31\x83\x81\xf8\x2a\xf6\x99\xf6\x98\x04\x93\xe0\xc5\xd4\x95\xc0\xb6\xcd\x6d\x96\xd7\xe3\xcc\x09\x60\x30\x48\xd0\xf7\x5c\x83\xa0\xe0\xd4\xa1\x43\xf5\xfc\x40\x01\x78\x55\xe0\x19\x14\xbc\x98\x36\xc7\xd4\x79\xdd\xc2\x09\xac\xa2\xe4\x92\xd2\xee\xaa\x82\x79\xe7\xe1\xd2\x71\x3b\x59\x05\x5f\xd0\x6e\x20\x34\xe9\x54\xb8\x73\x93\x6e\xd0\xeb\xec\x48\x6e\xb8\xfc\xd6\x1b\x64\xba\xf4\x5e\xdf\x9b\x61\x76\xbc\x55\x1d\x1f\x25\xdb\x91\xdc\x8f\xb9\x64\x55\x76\xfa\x76\xc3\xa6\xa0\x8a\x13\xb1\x90\xa9\x1b\x71\x98\x2b\x51\x74\x23\xe4\x80\x5e\xb0\x0a\x84\x49\x21\x29\x46\xdf\x70\x4c\xc8\xf8\x03\x6a\x90\xd1\x60\x4a\x9a\x0d\xee\x22\x67\x16\x70\x4d\x0e\xdb\x64\xbe\x98\xe4\x94\xfa\xa7\x55\xf1\xfc\x17\x51\xd5\x0d\x79\x65\x2b\xa0\xa0\x3e\xd3\xd6\x83\x47\x2e\xdf\x78\x42\xd9\xeb\x51\x19\xc6\x09\xc3\x50\xbd\x68\x02\x59\x64\x5c\xbe\x98\x81\x10\xa7",
+ data: RefCell::new(SimpleProducer::new(&b"\x13\x1a\x8a\xb7\xd2\x26\xd7\xe5\xac\x66\x81\xda\xb7\x6c\xf9\xfc\x9e\x7a\xb5\xad\x43\x85\xa0\xc5\x5c\x77\x47\x26\x30\x10\xca\xdd\xfa\xad\xc0\xed\xa3\xfc\x33\xe8\x31\x88\x69\xdf\x58\x9d\x1a\x93\x72\x60\xf7\xb3\x10\xe3\x42\x2c\xa0\xac\x1b\x93\xeb\x07\x0b\xd6\x7f\xfd\x49\x90\xf1\x8c\xa5\x19\xac\xc0\x97\xf7\xe5\x90\x17\x1e\xb9\x6b\x23\x3e\xda\x67\x38\x84\xa8\xe1\xee\xf8\x98\xc3\x69\xaa\x00\x1f\xb3\x2b\x28\x27\x1f\xb5\x33\xc5\x95\xbc\x75\xfe\xb2\x05\x6a\x3c\x63\x96\x9e\x58\x31\x3b\xf9\xb6\xcd\x22\x30\xd5\x86\xfa\xcf\xfa\xd0\x25\xbb\x8d\xa7\xd2\xf9\x1b\x8f\x20\x02\x3f\x53\x43\x22\x75\x5f\xdc\x92\x57\xf1\x9b\x46\x5d\x52\xa8\x4d\xb7\xc5\x16\xd7\x9f\x82\x6a\xec\x8a\xa7\x61\x3e\x99\x19\x25\xe2\x31\xc0\x1a\x8d\x23\xbd\x35\x06\x7a\xd5\xda\x0e\x96\x43\x91\x27\xef\x34\xc5\x65\xde\x57\xc2\x7e\x2b\xcd\x9d\x2a\x82\x84\xf6\xaa\x34\xeb\xc7\x65\x7f\xb4\xe4\xc4\xda\x92\xd4\xe0\x46\x3c\xe8\x2c\x3d\xae\xac\x83\x70\x8c\xf0\xa0\xf8\x90\xa6\xa2\xd6\xd4\x35\x93\xb7\x19\x43\x99\x3b\x1d\x6c\x1d\x67\xd8\x35\x61\xf3\x8c\x75\xce\xa7\x6c\xc7\xc7\xc8\xaf\x7f\x6b\x2e\x31\x83\x81\xf8\x2a\xf6\x99\xf6\x98\x04\x93\xe0\xc5\xd4\x95\xc0\xb6\xcd\x6d\x96\xd7\xe3\xcc\x09\x60\x30\x48\xd0\xf7\x5c\x83\xa0\xe0\xd4\xa1\x43\xf5\xfc\x40\x01\x78\x55\xe0\x19\x14\xbc\x98\x36\xc7\xd4\x79\xdd\xc2\x09\xac\xa2\xe4\x92\xd2\xee\xaa\x82\x79\xe7\xe1\xd2\x71\x3b\x59\x05\x5f\xd0\x6e\x20\x34\xe9\x54\xb8\x73\x93\x6e\xd0\xeb\xec\x48\x6e\xb8\xfc\xd6\x1b\x64\xba\xf4\x5e\xdf\x9b\x61\x76\xbc\x55\x1d\x1f\x25\xdb\x91\xdc\x8f\xb9\x64\x55\x76\xfa\x76\xc3\xa6\xa0\x8a\x13\xb1\x90\xa9\x1b\x71\x98\x2b\x51\x74\x23\xe4\x80\x5e\xb0\x0a\x84\x49\x21\x29\x46\xdf\x70\x4c\xc8\xf8\x03\x6a\x90\xd1\x60\x4a\x9a\x0d\xee\x22\x67\x16\x70\x4d\x0e\xdb\x64\xbe\x98\xe4\x94\xfa\xa7\x55\xf1\xfc\x17\x51\xd5\x0d\x79\x65\x2b\xa0\xa0\x3e\xd3\xd6\x83\x47\x2e\xdf\x78\x42\xd9\xeb\x51\x19\xc6\x09\xc3\x50\xbd\x68\x02\x59\x64\x5c\xbe\x98\x81\x10\xa7"[..])),
},
expected_sighash: *b"\x88\x30\x35\x9f\x1a\xbe\xab\x4b\xb7\x13\xdb\xdf\x5a\xba\xbc\x8d\x79\x0c\xec\x5e\x9f\xb1\x9a\x45\xea\x67\x61\xb9\x7d\x77\x93\x08",
},
@@ -976,7 +1059,7 @@ mod tests {
gas_limit: b"\x4a\xad\x95\xad\xbf\x71\xd2\x61",
recipient: b"\xed\x1a\xcc\xbf\xef\xd6\xe3\xcb\xd9\x01\x44\x30\x87\xb6\xd8\xfc\xaf\x3d\x82\xa2",
value: b"\xbe\x1e\x45\x3c\x7c\xa2\x6b\x22\x6f\x9c\x8c\x5b\x56\x96\xaa",
- data: b"\x71\x23\x1f\x66\xa8\xe8\x79\xe0\x24\x4a\x8d\x64\x0a\xd3\xb2\x0d\x09\xb5\x44\x43\x3f\x09\x19\x14\x8d\x94\x48\xc3\x57\x88\xf9\xf6\x5e\xbd\x50\x7d\x0a\x41\x47\x42\x27\x52\x07\xd5\x74\x16\x20\x52\x57\xcf\xac\xdb\x61\x6b\xe1\x89\x68\x95\x21\xc4\x5b\x1a\x34\xd7\x4d\xb2\x07\x6f\xe7\x18\x59\x06\xac\x54\x2e\x99\xcd\x1d\x89\xfd\xf6\x1a\x69\x71\xeb\x75\xe6\x57\x88\x07\x11\x96\xb3\xd7\xdf\x1b\x07\xea\x85\x39\xe2\xcf\xfa\x71\xc8\x27\x64\xf3\x21\x1b\x62\x15\xbd\x5d\x3b\x1b\x10\x82\x49\x0e\xba\x4e\x25\x78\xaa\xf4\x73\x14\x15\x06\x7b\x1b\x78\x9a\x99\x83\xcf\x34\x7f\x8f\x28\x47\x47\xbc\x2c\x29\xb2\x04\xbb\xe4\xff\xa8\x77\xdf\x45\xff\x63\x21\x87\x54\xbc\x8e\x5a\xa2\x24\xb0\xe5\x52\xe1\xcd\x90\xd6\x2d\x63\x85\x84\xf4\xef\x66\x22\x71\x64\x21\x37\xaf\x32\x0a\xf7\x63\xc9\x0f\x5e\x94\xa7\x14\xfb\xe1\x07\xd4\xad\x0a\x9d\xa1\xb3\x41\x38\xbf\xaa\x0c\x95\x0e\xfa\x5b\x82\xfe\xba\x89\x20\x47\x2a\x6f\x88\xa0\x08\x59\x78\xac\xfb\xbb\x2f\x22\x1c\xdb\xd0\x86\xdd\x53\x9c\x05\xf8\x7a\x14\xa6\x80\xdb\x3c\x16\x1c\x98\xef\xee\xa5\x84\x3d\x24\x83\x8a\x2e\x27\x6b\x4e\x55\x19\xec\x34\xa2\x84\xf2\x47\xd2\xa0\xbf\x01\x33\xd8\xab\xed\xd4\x27\x6e\xdc\x28\x3d\x2b\x69\x4e\xed\x2f\x5a\xa5\x63\x86\x19\xa6\x74\x93\x4c\x5e\x25\x62\x80\x64\x7d\xc9\x4c\x4c\xb5\xf0\x9c\xf8\x17\xc7\x98\xb2\xc4\x12\x04\x9b\x73\xfc\xc7\x05\x06\x15\xe5\xa5\xd4\x18\xbf\xc8\x69\x63\x99\x6d\x87\x72\xef\x50\x16\x31\x12\x6d\xcd\x41\x0c\xa3\x87\xc2\x81\x64\x89\x8c\x06\xf5\x32\xa1\x7a\xd4\xfa\x66\xb4\x8e\x20\xee\x82\x38\x53\x8a\xd4\xe3\x94\x4f\xec\x33\xe3\x00\x9d\x40\x0a\xbc\x41\x3f\x99\x14\xee\xc1\x7d\x53\x67\x13\x09\x5e\xd5\xb6\x3b\x09\xf1\x8e\xe9\xfa\x43\x61\x26\x0e\xb7\x03\x35\x4c\xf9\xf5\xbd\xe3\xc2\x2b\xa0\x2e\x91\x52\x8d\x77\xa8\xe7\xd0\x01\xc8\xd5\x87\x03\xb5\x84\x03\xa2\x93\x64\xbf\x1b\xb0\xa5\x05\x18\x28\x75\x9a\x4b\xc8\x18\x16\x88\x63\x1b\xa2\x36\xa0\xf8\x8e\x43\xc6\xd3\x27\xe0\xe9\x0e\x6c\x4e\x41\x8d\xf7\x99\x9f\x91\xe1\x99\x85\x84\xbc\xa1\x11\x1f\x41\xa4\x06\x7c\x0d",
+ data: RefCell::new(SimpleProducer::new(&b"\x71\x23\x1f\x66\xa8\xe8\x79\xe0\x24\x4a\x8d\x64\x0a\xd3\xb2\x0d\x09\xb5\x44\x43\x3f\x09\x19\x14\x8d\x94\x48\xc3\x57\x88\xf9\xf6\x5e\xbd\x50\x7d\x0a\x41\x47\x42\x27\x52\x07\xd5\x74\x16\x20\x52\x57\xcf\xac\xdb\x61\x6b\xe1\x89\x68\x95\x21\xc4\x5b\x1a\x34\xd7\x4d\xb2\x07\x6f\xe7\x18\x59\x06\xac\x54\x2e\x99\xcd\x1d\x89\xfd\xf6\x1a\x69\x71\xeb\x75\xe6\x57\x88\x07\x11\x96\xb3\xd7\xdf\x1b\x07\xea\x85\x39\xe2\xcf\xfa\x71\xc8\x27\x64\xf3\x21\x1b\x62\x15\xbd\x5d\x3b\x1b\x10\x82\x49\x0e\xba\x4e\x25\x78\xaa\xf4\x73\x14\x15\x06\x7b\x1b\x78\x9a\x99\x83\xcf\x34\x7f\x8f\x28\x47\x47\xbc\x2c\x29\xb2\x04\xbb\xe4\xff\xa8\x77\xdf\x45\xff\x63\x21\x87\x54\xbc\x8e\x5a\xa2\x24\xb0\xe5\x52\xe1\xcd\x90\xd6\x2d\x63\x85\x84\xf4\xef\x66\x22\x71\x64\x21\x37\xaf\x32\x0a\xf7\x63\xc9\x0f\x5e\x94\xa7\x14\xfb\xe1\x07\xd4\xad\x0a\x9d\xa1\xb3\x41\x38\xbf\xaa\x0c\x95\x0e\xfa\x5b\x82\xfe\xba\x89\x20\x47\x2a\x6f\x88\xa0\x08\x59\x78\xac\xfb\xbb\x2f\x22\x1c\xdb\xd0\x86\xdd\x53\x9c\x05\xf8\x7a\x14\xa6\x80\xdb\x3c\x16\x1c\x98\xef\xee\xa5\x84\x3d\x24\x83\x8a\x2e\x27\x6b\x4e\x55\x19\xec\x34\xa2\x84\xf2\x47\xd2\xa0\xbf\x01\x33\xd8\xab\xed\xd4\x27\x6e\xdc\x28\x3d\x2b\x69\x4e\xed\x2f\x5a\xa5\x63\x86\x19\xa6\x74\x93\x4c\x5e\x25\x62\x80\x64\x7d\xc9\x4c\x4c\xb5\xf0\x9c\xf8\x17\xc7\x98\xb2\xc4\x12\x04\x9b\x73\xfc\xc7\x05\x06\x15\xe5\xa5\xd4\x18\xbf\xc8\x69\x63\x99\x6d\x87\x72\xef\x50\x16\x31\x12\x6d\xcd\x41\x0c\xa3\x87\xc2\x81\x64\x89\x8c\x06\xf5\x32\xa1\x7a\xd4\xfa\x66\xb4\x8e\x20\xee\x82\x38\x53\x8a\xd4\xe3\x94\x4f\xec\x33\xe3\x00\x9d\x40\x0a\xbc\x41\x3f\x99\x14\xee\xc1\x7d\x53\x67\x13\x09\x5e\xd5\xb6\x3b\x09\xf1\x8e\xe9\xfa\x43\x61\x26\x0e\xb7\x03\x35\x4c\xf9\xf5\xbd\xe3\xc2\x2b\xa0\x2e\x91\x52\x8d\x77\xa8\xe7\xd0\x01\xc8\xd5\x87\x03\xb5\x84\x03\xa2\x93\x64\xbf\x1b\xb0\xa5\x05\x18\x28\x75\x9a\x4b\xc8\x18\x16\x88\x63\x1b\xa2\x36\xa0\xf8\x8e\x43\xc6\xd3\x27\xe0\xe9\x0e\x6c\x4e\x41\x8d\xf7\x99\x9f\x91\xe1\x99\x85\x84\xbc\xa1\x11\x1f\x41\xa4\x06\x7c\x0d"[..])),
},
expected_sighash: *b"\xaa\x1e\x91\x23\x39\xc8\x2b\xff\x93\x25\x69\xa4\xd0\x07\xd3\xd6\xe9\x8b\xc7\x01\x78\x3b\x93\x99\x06\x2d\x8c\xc1\x57\xc2\xde\x73",
},
@@ -989,7 +1072,7 @@ mod tests {
gas_limit: b"\x5e\x7b\xbb\x86\xfa\x5f\x5c\x42",
recipient: b"\x32\x99\x82\x24\x9f\xd0\x90\x1e\xd0\x80\xe7\x1b\x54\x25\xfd\xd8\xd0\x51\xe7\xa7",
value: b"\x6a\x7b\xaa\x51\xce\x60\x80",
- data: b"\xc2\x51\x33\x8c\x92\xfc\x8c\xdf\xdf\xe8\x28\x9d\x24\x39\xa0\xf8\x6c\x03\x04\x5d\x0b\xeb\xf6\x8d\x32\xab\xb5\x46\xd4\xaf\x0c\x07\xdc\x5e\xfa\x77\xad\x29\xed\x03\x3a\xf5\xc2\x82\x2a\x69\xc3\x75\xc4\x0b\x50\x7b\x01\xcf\x1f\x7f\x4f\xf0\xb4\x33\x9e\x3e\xd1\xbb\x12\x02\x53\x4b\x93\x46\x3a\xf9\xfe\x9a\x28\xd9\x3e\x03\x4c\xc4\x8b\x01\x52\x6c\xe6\x5a\x18\x87\x2e\x1e\x47\x61\x49\x9b\x57\xca\x17\xbc\x26\x29\x14\xa5\xaf\x3c\xee\xc0\x64\x80\xc2\x20\x9b\xc0\x1b\x71\x39\x62\xf4\x1d\x00\xde\x9f\x34\x73\xc3\x2a\x1b\xa9\x76\x48\x09\x55\x58\xdd\xe7\xc6\xb9\xc0\x12\x74\x77\x90\x32\xfe\x74\x9d\xa6\x5c\xe8\x5e\xb0\x1e\xad\x07\xa9\x23\x8a\x67\x14\x9f\x49\x8b\x39\xca\x9f\x19\xa9\xff\x27\x4d\xf8\x79\x13\x3d\x19\xa5\x3c\x22\x7f\x7f\xca\xee\x3c\x6e\x4f\x2f\x66\xe1\xa9\xa2\x08\x63\x59\x36\x29\x40\x82\x66\x49\x00\x88\x92\x85\x1a\x4a\x34\xcb\x60\x86\x88\x7a\x9c\xf6\x15\x88\x2a\xd6\x87\x52\x04\x3b\xd9\x7f\x48\x31\xc3\xfe\xa4\xcc\x79\x99\x2b\x79\xce\xa6\x4e\x06\xf4\x80\xf8\xba\x56\xa0\xc2\x82\xff\x4d\x1a\xfa\x87\x59\x62\x8c\x5b\xa3\xf0\x6c\x98\x66\x16\xd0\xb7\xb4\xf9\x19\x40\x9b\x87\x85\x3d\xb4\xa5\x62\xc3\xac\x64\x58\xd4\x8d\x16\x94\x01\x74\x33\x1d\x82\x07\xbe\x1d\x95\xaa\x16\x22\x9f\x10\x08\x50\x58\x8b\x72\x34\x90\x1e\xaf\xcd\x00\x5c\x9e\xe1\xa2\x72\xfd\x12\x29\x2e\x9e\x6a\x4b\x6f\x3e\xc0\xdb\x5f\x94\x78\xae\xd9\x16\xd4\x2b\xf3\xa6\xee\x28\x41\x02\x24\x34\x82\xc7\x67\x1d\xbb\xae\x90\x6d\x05\xeb\x4b\x93\x86\x23\x3f\x20\xf6\xc3\x5b\xcf\x7d\x62\x8e\x3e\x0f\xa0\x9b\xc4\x19\x2f\x85\x6b\xe0\xd0\xdb\x22\x03\x69\x72\x56\x78\x52",
+ data: RefCell::new(SimpleProducer::new(&b"\xc2\x51\x33\x8c\x92\xfc\x8c\xdf\xdf\xe8\x28\x9d\x24\x39\xa0\xf8\x6c\x03\x04\x5d\x0b\xeb\xf6\x8d\x32\xab\xb5\x46\xd4\xaf\x0c\x07\xdc\x5e\xfa\x77\xad\x29\xed\x03\x3a\xf5\xc2\x82\x2a\x69\xc3\x75\xc4\x0b\x50\x7b\x01\xcf\x1f\x7f\x4f\xf0\xb4\x33\x9e\x3e\xd1\xbb\x12\x02\x53\x4b\x93\x46\x3a\xf9\xfe\x9a\x28\xd9\x3e\x03\x4c\xc4\x8b\x01\x52\x6c\xe6\x5a\x18\x87\x2e\x1e\x47\x61\x49\x9b\x57\xca\x17\xbc\x26\x29\x14\xa5\xaf\x3c\xee\xc0\x64\x80\xc2\x20\x9b\xc0\x1b\x71\x39\x62\xf4\x1d\x00\xde\x9f\x34\x73\xc3\x2a\x1b\xa9\x76\x48\x09\x55\x58\xdd\xe7\xc6\xb9\xc0\x12\x74\x77\x90\x32\xfe\x74\x9d\xa6\x5c\xe8\x5e\xb0\x1e\xad\x07\xa9\x23\x8a\x67\x14\x9f\x49\x8b\x39\xca\x9f\x19\xa9\xff\x27\x4d\xf8\x79\x13\x3d\x19\xa5\x3c\x22\x7f\x7f\xca\xee\x3c\x6e\x4f\x2f\x66\xe1\xa9\xa2\x08\x63\x59\x36\x29\x40\x82\x66\x49\x00\x88\x92\x85\x1a\x4a\x34\xcb\x60\x86\x88\x7a\x9c\xf6\x15\x88\x2a\xd6\x87\x52\x04\x3b\xd9\x7f\x48\x31\xc3\xfe\xa4\xcc\x79\x99\x2b\x79\xce\xa6\x4e\x06\xf4\x80\xf8\xba\x56\xa0\xc2\x82\xff\x4d\x1a\xfa\x87\x59\x62\x8c\x5b\xa3\xf0\x6c\x98\x66\x16\xd0\xb7\xb4\xf9\x19\x40\x9b\x87\x85\x3d\xb4\xa5\x62\xc3\xac\x64\x58\xd4\x8d\x16\x94\x01\x74\x33\x1d\x82\x07\xbe\x1d\x95\xaa\x16\x22\x9f\x10\x08\x50\x58\x8b\x72\x34\x90\x1e\xaf\xcd\x00\x5c\x9e\xe1\xa2\x72\xfd\x12\x29\x2e\x9e\x6a\x4b\x6f\x3e\xc0\xdb\x5f\x94\x78\xae\xd9\x16\xd4\x2b\xf3\xa6\xee\x28\x41\x02\x24\x34\x82\xc7\x67\x1d\xbb\xae\x90\x6d\x05\xeb\x4b\x93\x86\x23\x3f\x20\xf6\xc3\x5b\xcf\x7d\x62\x8e\x3e\x0f\xa0\x9b\xc4\x19\x2f\x85\x6b\xe0\xd0\xdb\x22\x03\x69\x72\x56\x78\x52"[..])),
},
expected_sighash: *b"\x81\x97\x78\x35\x6c\xe2\x33\x8d\xa1\x2f\x94\x38\xc9\x8d\x84\x63\x1c\x75\xc4\x36\x6f\xea\xae\xc4\xb7\x78\x04\x5d\x89\x49\x81\xdf",
},
@@ -1002,7 +1085,7 @@ mod tests {
gas_limit: b"\x01\xe7\xda\x03\xe5\x9a\x3b\x74",
recipient: b"\xfd\xdd\xe0\x40\xd3\x6f\x82\x0e\xa0\xe4\x3e\x51\x4d\x96\xd0\xbd\x70\x97\x8c\xee",
value: b"\x55\x6a\x88\xad\x33\x19\xdc\xee\xef\xdb\x7a\x3c\x4f\x4e\xb0\xdb",
- data: b"\xb8\xd4\x84\x15\x0a\xca\xce\x41\x1e\x13\x60\xc3\x0b\xea\x3b\x1e\x1f\x9d\x4f\x6e\x00\x40\x73\xef\xb7\x35\x18\x53\x81\x97\x6b\xfa\x0e\x14\x4a\xad\x64\xd0\x1a\x8c\x05\x3b\x6d\x45\x34\x99\x58\x58\x5b\xc5\xf3\xbb\xbf\x4f\x42\x72\x32\xfe\x79\x53\x6a\xa4\x57\x22\x66\xf3\x99\x90\x4a\x27\x92\x8c\xef",
+ data: RefCell::new(SimpleProducer::new(&b"\xb8\xd4\x84\x15\x0a\xca\xce\x41\x1e\x13\x60\xc3\x0b\xea\x3b\x1e\x1f\x9d\x4f\x6e\x00\x40\x73\xef\xb7\x35\x18\x53\x81\x97\x6b\xfa\x0e\x14\x4a\xad\x64\xd0\x1a\x8c\x05\x3b\x6d\x45\x34\x99\x58\x58\x5b\xc5\xf3\xbb\xbf\x4f\x42\x72\x32\xfe\x79\x53\x6a\xa4\x57\x22\x66\xf3\x99\x90\x4a\x27\x92\x8c\xef"[..])),
},
expected_sighash: *b"\x4c\x3e\x46\x8a\x98\x1c\x76\x7b\x90\x34\xaf\xe9\xcc\xaa\xe2\x41\x4e\xff\x0f\x21\xce\x3d\x33\xc5\x82\x2b\xaa\x09\x23\x2f\x95\xab",
},
@@ -1015,7 +1098,7 @@ mod tests {
gas_limit: b"\xe7\x35\xe5\xe4\xc2\xa5\xaf\x77",
recipient: b"\xa2\x54\x47\x4e\x2f\x56\xc4\xf9\x33\xca\x34\x35\xb9\x15\x50\x2d\xab\x2d\x23\x77",
value: b"\xc3\xb4\xd8\x60\x60\x19\x36\x20\x74\x2a\x3d",
- data: b"\x70\x95\xec\x93\x20\x07\xc0\xc9\x50\x30\x1e\xcf\x5b\xef\xa7\x95\x35\x70\x7b\xf5\xe0\x33\x50\x03\xd2\x23\x82\xa3\x51\x2c\xc8\x21\xcb\xc2\x26\x2b\x44\x60\x5e\x12\x36\xfb\xbd\xe2\x4b\xeb\x4e\xb9\x92\x9b\x26\xb6\x8c\x57\xc9\xb0\x73\xc4\xf5\x92\xf7\x86\xbc\xf3\x96\xa0\x7a\xc4\xe0\xaf\x3c\x72\x66\xd1\x6f\x30\x77\xe4\xbb\x81\xd6\xab\x71\x32\xf0\xb5\x4c\x2b\x90\x04\xcd\xc2\x2f\x4a\x81\x85\x17\x1d\x3c\x77\x8a\x8f\x2d\x14\xd8\x46\x53\x49\xfa\x3a\x42\x89\xba\x67\x24\xfa\xee\xf3\x22\x56\x7d\x53\x09\x51\xa9\xdb\x42\x9a\x4a\xfc\x71\xed\xcc\x87\x59\x6b\xa2\x7a\xe3\x3b\x78\xd6\xc2\x0b\x67\x69\xc2\xd8\xd5\xbf\xee\xc8\xc6\xb0\x2f\xd6\x44\x53\x1f\xbe\xf6\xea\xf0\x21\xd9\xf2\xee\x46\x3e\xf7\x8f\x0a\x7e\x49\xa0\xaf\x1f\xbd\x37\x7e\xbf\xcb\x19\x96\xab\x82\x27\x5b\xf6\xd5\x12\x97\x09\x31\x11\x30\xcf\xe0\x13\xc6\xcf\x05\x61\xa0\xcc\xb8\xcf\x84\x63\x90\x8c\x4f\xe1\x77\xf5\x0e\x58\x4a\xaf\x47\x9c\xb7\xfe\xa3\x8a\x65\x2b\x99\x47\x90\xe1\xbb\x9a\x28\x84\xca\xfe\xd0\x58\x69\x81\x86\xad\x99\x17\x7b\xb4\xb0\xc1\x77\x53\x1a\xeb\xe4\xc9\xf8\x8d\x41\x72\xed\x3e\x2f\xe5\x80\x7b\x4c\xf1\x1a\xda\xee\xbd\x97\x04\x3b\x87\xc4\x39\x03\x04\xb6\x39\xb4\xf8\x08\x25\x32\x60\xe0\xc8\x32\x65\x60\x67\x59\x08\x5b\x1e\x4d\x60\xd3\x6c\x7a\x02\x02\xc7\x6b\xc7\x31\x6c\x59\xff\x77\x10\xc1\x91\x7b\x1e\x68\xf8\x05\x38\xf6\x08\xd5\xd9\xe1\xa5\xdd\x44\x20\xa5\xdc\xac\xa5\x78\x3a\xdb\xe2\xa7\xc9\x2c\xa8\x6f\x23\xf8\x98\xf8\xaa\x7f\x80\xe4\x99\x7f\x01\x11\xff\x3b\x3c\x58\x90\xe3\x78\x84\x5e\x56\x50\x3b\x87\xaa\x65\x5f\xe6\x8f\xeb\x81\x88\x7e\x17\x3c\xac\xf0\x73\x03\xde\xfb\x37\xcd\x6c\xa8\x81\x27\x6f\x64\x94\xa9\xbe\x8b\xb2\x8a\x03\x1a\x09\x85\x8d\x11\xa2\xdc\x2e\xec\xc0\xa2\x8a\x8d\x4b\x4f\xba\x70\xe7\x5d\xa7\x1a\x17\xb1\x86\x32\x1a\x57\x90\x4d\x16\x65\x0b\x70\xd7\x13\xeb\x88\xee\x57\x2e\xf9\xd9\xa6\x0d\x0a\x59\x6e\x9e\x49\x87\xb1\xa7\x8d\x95\x0d\xec\xad\xc5\xb8\xc1\xd4\x78\x95\x27\x73\x20\xa6\xd5\xdc\xd6\x33\xbd\x15\x26\x3d\xee\x2a\xe0\x59\xfc\x48\x65\x92\xbd\xfe\x56\x2d\x29\xe4\xaf\x6c\xd8\x52\xec\x8d\x15\x44\xd3\x19\xfe\x1f\xb8\xdf\xa6\x40\x8e\xa7\x0c\x56\xb1\xab\xcf\xe3\x3b\x44\x54\x7e\xd4\x8d\x79\x54\x31\xa6\x7e\x3a\xca\x40\x55\x66\xc9\xec\x9e\x8d\x51\xf4\x6d\x12\xc0\x65\x7f\x8e\xd0\xde\x5c\x94\x18\xca\x3c\xc2\x6d\xb7\x9d\xab\xc5\x6f\xdf\xd3\xe8\x1e\x5c\xeb\x25\x0c\x05\xe9\x85\x63\xf9\x7a\x38\x9c\xa3\x88\x78\xc5\x83\xd0\xef\xd7\xfb\x5a\x1e\x2d\x12\x48\x13\xa4\x97\x28\x57\x8f\xdb\x4c\x21\x11\x48\xb7\xfc\x6f\xd0\x96\x42\x7a\x09\x8b\x40\x46\x9e\xb0\x73\xb8\x34\x2a\xe5\x57\xfa\x12\x93\x11\x38\xd3\x6d\x2c\x0a\x6b\x40\x75\xac\x33\x1a\x8e\x89\xa5\x94\xbf\x66\x87\x6e\xc5\x3b\x44\x65\xc0\x09\xd7\xcb\xb8\x25\x78\xc0\xba\x64\x89\xbb\xd7\xb3\xb7\x89\x5e\x99\xe8\x30\x80\xe0\x2d\x5b\x34\x6e\x5c\xe5\xdc\x97\xd7\x96\x2d\xa9\xce\x49\x22\x81\xa6\x0e\x99\x74\x74\x34\x93\x02\x85\x93\x2b\x36\xdb\x4f\x53\xb5\x13\x16\xcb\x3c\x26\xb4\x41\x1b\x75\x08\x4b\xfc\x4b\x91\x63\x5d\x95\xb2\xfb\x9a\x4f\xda\xaf\x8a\x72\xe7\xbb\x31\x06\xe5\xc7\x2a\x92\xa9\x38\xdf\x98\x09\x89\x89\xa4\x55\x4c\xd9\x02\xa3\xeb\xe5\x7e\x03\xc8\x52\x44\xb2\x27\x8a\x44\x52\xd0\x0e\x36\xd8\xbd\xfc\xd7\xf5\x24\x2b\x15\x40\x7a\x91\x95\x1f\x12\xf6\x45\xec\x48\xcc\x8a\x84\xb4\x31\x41\x02\xd1\x0e\x1f\x0c\x99\xb8\x1e\x5a\x43\xe6\x59\x38\xe6\x46\x45\x32\xf3\x44\x85\x07\x39\x92\x87\x7a\x48\xab\x5c\x23\x1d\x2c\x92\xac\xcf\x0c\xac\xde\x9b\x8b\x90\x09\x32\x6b\x7c\x02\xcd\xc2\x12\xcf\x99\x14\x69\xd5\xaa\x77\xf3\xa4\x38\x64\xe0\x1c\xee\x4c\xe6\x2c\x0e\x46\x1e\xd9\xc7\xd0\xed\x05\x5a\xdf\x43\x9d\xe2\x6c\x26\x08\xd1\xab\x03\xde\x0a\x3a\x31\x78\x6b\xca\x32\x9e\xa0\xda\xfb\x7b\x7e\x1c\x44\x52\xa6\x52\x63\x73\xab\x80\x57\x7e\xdd\x01\x3a\x99\xaa\x8c\xf9\x51\xa5\xe2\xc7\x2d\xde\xe1\x0c\xca\x12\x98\x68\x5a\xb8\x44\xac\x78\x12\x79\xe6\xda\x87\x12\x6b\x8d\x13\xb1\x88\x65\x13\x63\xe0\xc0\x7e\x38\xa7\xb7\x18\xb8\x55\x3f\x13\x2c\x55\x02\xcb\x2b\x0d\x4a\x63\x82\xe7\xfb\x8b\xab\x56\x47\x61\x00\x5e\xc3\x79\xc7\x7a\xc0\x15\x42\xe0\x8e\xdd\x4a\x0d\x4e\x97\x4d\xe3\x95\xa8\x5f\xc2\xe0\x03\x2f\xca\xaf\x26\x2d\x1d\x00\x1c\x13\x79\x5a\xdb\x33\x54\x1b\x2d\x66\x97\x2d\x3b\xe7\x5f\xe6\xe8\x76\x66\x97\x9e\xd2\x1f\x3c\x6f\x7b\xee\x5c\x3c\xa4\xde\x0e\xbf\x52\xbe\x81\xf5\x88",
+ data: RefCell::new(SimpleProducer::new(&b"\x70\x95\xec\x93\x20\x07\xc0\xc9\x50\x30\x1e\xcf\x5b\xef\xa7\x95\x35\x70\x7b\xf5\xe0\x33\x50\x03\xd2\x23\x82\xa3\x51\x2c\xc8\x21\xcb\xc2\x26\x2b\x44\x60\x5e\x12\x36\xfb\xbd\xe2\x4b\xeb\x4e\xb9\x92\x9b\x26\xb6\x8c\x57\xc9\xb0\x73\xc4\xf5\x92\xf7\x86\xbc\xf3\x96\xa0\x7a\xc4\xe0\xaf\x3c\x72\x66\xd1\x6f\x30\x77\xe4\xbb\x81\xd6\xab\x71\x32\xf0\xb5\x4c\x2b\x90\x04\xcd\xc2\x2f\x4a\x81\x85\x17\x1d\x3c\x77\x8a\x8f\x2d\x14\xd8\x46\x53\x49\xfa\x3a\x42\x89\xba\x67\x24\xfa\xee\xf3\x22\x56\x7d\x53\x09\x51\xa9\xdb\x42\x9a\x4a\xfc\x71\xed\xcc\x87\x59\x6b\xa2\x7a\xe3\x3b\x78\xd6\xc2\x0b\x67\x69\xc2\xd8\xd5\xbf\xee\xc8\xc6\xb0\x2f\xd6\x44\x53\x1f\xbe\xf6\xea\xf0\x21\xd9\xf2\xee\x46\x3e\xf7\x8f\x0a\x7e\x49\xa0\xaf\x1f\xbd\x37\x7e\xbf\xcb\x19\x96\xab\x82\x27\x5b\xf6\xd5\x12\x97\x09\x31\x11\x30\xcf\xe0\x13\xc6\xcf\x05\x61\xa0\xcc\xb8\xcf\x84\x63\x90\x8c\x4f\xe1\x77\xf5\x0e\x58\x4a\xaf\x47\x9c\xb7\xfe\xa3\x8a\x65\x2b\x99\x47\x90\xe1\xbb\x9a\x28\x84\xca\xfe\xd0\x58\x69\x81\x86\xad\x99\x17\x7b\xb4\xb0\xc1\x77\x53\x1a\xeb\xe4\xc9\xf8\x8d\x41\x72\xed\x3e\x2f\xe5\x80\x7b\x4c\xf1\x1a\xda\xee\xbd\x97\x04\x3b\x87\xc4\x39\x03\x04\xb6\x39\xb4\xf8\x08\x25\x32\x60\xe0\xc8\x32\x65\x60\x67\x59\x08\x5b\x1e\x4d\x60\xd3\x6c\x7a\x02\x02\xc7\x6b\xc7\x31\x6c\x59\xff\x77\x10\xc1\x91\x7b\x1e\x68\xf8\x05\x38\xf6\x08\xd5\xd9\xe1\xa5\xdd\x44\x20\xa5\xdc\xac\xa5\x78\x3a\xdb\xe2\xa7\xc9\x2c\xa8\x6f\x23\xf8\x98\xf8\xaa\x7f\x80\xe4\x99\x7f\x01\x11\xff\x3b\x3c\x58\x90\xe3\x78\x84\x5e\x56\x50\x3b\x87\xaa\x65\x5f\xe6\x8f\xeb\x81\x88\x7e\x17\x3c\xac\xf0\x73\x03\xde\xfb\x37\xcd\x6c\xa8\x81\x27\x6f\x64\x94\xa9\xbe\x8b\xb2\x8a\x03\x1a\x09\x85\x8d\x11\xa2\xdc\x2e\xec\xc0\xa2\x8a\x8d\x4b\x4f\xba\x70\xe7\x5d\xa7\x1a\x17\xb1\x86\x32\x1a\x57\x90\x4d\x16\x65\x0b\x70\xd7\x13\xeb\x88\xee\x57\x2e\xf9\xd9\xa6\x0d\x0a\x59\x6e\x9e\x49\x87\xb1\xa7\x8d\x95\x0d\xec\xad\xc5\xb8\xc1\xd4\x78\x95\x27\x73\x20\xa6\xd5\xdc\xd6\x33\xbd\x15\x26\x3d\xee\x2a\xe0\x59\xfc\x48\x65\x92\xbd\xfe\x56\x2d\x29\xe4\xaf\x6c\xd8\x52\xec\x8d\x15\x44\xd3\x19\xfe\x1f\xb8\xdf\xa6\x40\x8e\xa7\x0c\x56\xb1\xab\xcf\xe3\x3b\x44\x54\x7e\xd4\x8d\x79\x54\x31\xa6\x7e\x3a\xca\x40\x55\x66\xc9\xec\x9e\x8d\x51\xf4\x6d\x12\xc0\x65\x7f\x8e\xd0\xde\x5c\x94\x18\xca\x3c\xc2\x6d\xb7\x9d\xab\xc5\x6f\xdf\xd3\xe8\x1e\x5c\xeb\x25\x0c\x05\xe9\x85\x63\xf9\x7a\x38\x9c\xa3\x88\x78\xc5\x83\xd0\xef\xd7\xfb\x5a\x1e\x2d\x12\x48\x13\xa4\x97\x28\x57\x8f\xdb\x4c\x21\x11\x48\xb7\xfc\x6f\xd0\x96\x42\x7a\x09\x8b\x40\x46\x9e\xb0\x73\xb8\x34\x2a\xe5\x57\xfa\x12\x93\x11\x38\xd3\x6d\x2c\x0a\x6b\x40\x75\xac\x33\x1a\x8e\x89\xa5\x94\xbf\x66\x87\x6e\xc5\x3b\x44\x65\xc0\x09\xd7\xcb\xb8\x25\x78\xc0\xba\x64\x89\xbb\xd7\xb3\xb7\x89\x5e\x99\xe8\x30\x80\xe0\x2d\x5b\x34\x6e\x5c\xe5\xdc\x97\xd7\x96\x2d\xa9\xce\x49\x22\x81\xa6\x0e\x99\x74\x74\x34\x93\x02\x85\x93\x2b\x36\xdb\x4f\x53\xb5\x13\x16\xcb\x3c\x26\xb4\x41\x1b\x75\x08\x4b\xfc\x4b\x91\x63\x5d\x95\xb2\xfb\x9a\x4f\xda\xaf\x8a\x72\xe7\xbb\x31\x06\xe5\xc7\x2a\x92\xa9\x38\xdf\x98\x09\x89\x89\xa4\x55\x4c\xd9\x02\xa3\xeb\xe5\x7e\x03\xc8\x52\x44\xb2\x27\x8a\x44\x52\xd0\x0e\x36\xd8\xbd\xfc\xd7\xf5\x24\x2b\x15\x40\x7a\x91\x95\x1f\x12\xf6\x45\xec\x48\xcc\x8a\x84\xb4\x31\x41\x02\xd1\x0e\x1f\x0c\x99\xb8\x1e\x5a\x43\xe6\x59\x38\xe6\x46\x45\x32\xf3\x44\x85\x07\x39\x92\x87\x7a\x48\xab\x5c\x23\x1d\x2c\x92\xac\xcf\x0c\xac\xde\x9b\x8b\x90\x09\x32\x6b\x7c\x02\xcd\xc2\x12\xcf\x99\x14\x69\xd5\xaa\x77\xf3\xa4\x38\x64\xe0\x1c\xee\x4c\xe6\x2c\x0e\x46\x1e\xd9\xc7\xd0\xed\x05\x5a\xdf\x43\x9d\xe2\x6c\x26\x08\xd1\xab\x03\xde\x0a\x3a\x31\x78\x6b\xca\x32\x9e\xa0\xda\xfb\x7b\x7e\x1c\x44\x52\xa6\x52\x63\x73\xab\x80\x57\x7e\xdd\x01\x3a\x99\xaa\x8c\xf9\x51\xa5\xe2\xc7\x2d\xde\xe1\x0c\xca\x12\x98\x68\x5a\xb8\x44\xac\x78\x12\x79\xe6\xda\x87\x12\x6b\x8d\x13\xb1\x88\x65\x13\x63\xe0\xc0\x7e\x38\xa7\xb7\x18\xb8\x55\x3f\x13\x2c\x55\x02\xcb\x2b\x0d\x4a\x63\x82\xe7\xfb\x8b\xab\x56\x47\x61\x00\x5e\xc3\x79\xc7\x7a\xc0\x15\x42\xe0\x8e\xdd\x4a\x0d\x4e\x97\x4d\xe3\x95\xa8\x5f\xc2\xe0\x03\x2f\xca\xaf\x26\x2d\x1d\x00\x1c\x13\x79\x5a\xdb\x33\x54\x1b\x2d\x66\x97\x2d\x3b\xe7\x5f\xe6\xe8\x76\x66\x97\x9e\xd2\x1f\x3c\x6f\x7b\xee\x5c\x3c\xa4\xde\x0e\xbf\x52\xbe\x81\xf5\x88"[..])),
},
expected_sighash: *b"\x81\x57\x0b\x3e\x8d\x59\xb7\xc7\x4e\xcd\xdd\xaf\x6d\x9c\x9e\xb7\x3f\x1a\x9f\xb0\xbd\xa9\x95\xda\xab\xc7\x7c\x0d\x62\xca\xc4\x6e",
},
@@ -1028,7 +1111,7 @@ mod tests {
gas_limit: b"\x1a\x4e\x0d\xbb\x14\xce\x24\x84",
recipient: b"\x83\xaf\x25\x47\x9b\x04\x08\x33\x78\xab\xa2\xd3\xa5\x79\xaa\x2c\xd3\xfd\xda\x7d",
value: b"\x63\xad\xbb\x98\x4b\x08",
- data: b"\x43\x22\xf7\x2d\xad\x77\xf5\x36\x42\x41\x1d\xdb\xb3\xc8\x2c\x43\x5c\x3c\x14\x4e\x04\x15\xb5\xd7\xc7\x89\x7f\x4d\xf5\x1c\x8e\x93\x9e\xd1\xc2\xd9\x67\x33\xcf\xc2\x59\x0b\x5f\x3b\x44\x4e\xea\xe2\xf6\xf6\xc6\x6a\x5d\x58\xad\x10\x2f\x03\x65\x10\x23\x31\xf5\xda\x79\x4c\x36\x03\xe8\x1d\xa8\x21\x64\x7e\xfb\xce\xbe\xd5\xb6\xe2\x54\x67\xe7\x14\xf5\x20\x37\xdd\x87\x40\x56\x80\xdd\xb7\x1a\x46\xd8\xc3\xe6\x7d\xb0\x8a\x77\xc1\xe0\xb2\xf5\xcf\xc7\x37\x09\xd6\xa9\xf3\xec\x6c\x4d\x21\xad\x1f\x83\x3c\x31\xf4\xc0\xe5\xfb\x16\xa0\xb5\xe5\x72\x2b\xd1\xf6\xb1\x83\x17\xf9\x3b\x1b\x5f\x5a\x9f\x33\xba\xa3\x92\xc7\x1d\x1c\x76\x6d\x5e\x32\xbf\x52\x2b\xdb\x60\xd3\x7a\x7e\x1f\x1f\x68\xb4\xd7\x25\x4b\x99\xc3\x66\xeb\x2f\xb4\x00\x00\x3e\xed\x51\x62\x6d\x57\xc6\x76\x5a\x5e\xfa\xf7\xd5\xef\x8b\x45\xbc\x10\xaf\x23\xbb\x60\x9c\x42\x88\x87\xf0\xc5\xeb\x6f\x7d\x5e\x65\xfa\xf4\x59\xab\x41\x6d\x57\x52\x8f\x65\x0f\xdb\x01\xf0\x29\xde\x53\xcb\xa4\x68\x90\xb3\xe8\x54\x55\x6e\x56\x36\xb1\x6e\xe3\xb5\xba\x13\x92\x84\xbe\x5f\xa5\xf3\x5e\xa8\xec\x18\xbf\x6e\xbd\xaa\x6b\x06\xf5\x9c\xe0\xe7\xf7\xad\xe2\xff\x93\x3b\xd1\x80\xac\xef\x48\xce\x34\xa8\x42\x12\xde\x58\x40\x97\xd5\x63\x34\xb3\xeb\x01\x6d\xbd\xad\xc3\xe4\x1c\xd0\x80\xb2\xbd\xfb\xe9\x4f\x46\x16\x9b\x3d\xad\xb8\x48\x08\xb2\x9b\xa0\xec\x23\x26\x81\x75\xd6\x67\x48\xc1\x1b\x4a\xb9\x37\x34\x85\xad\x4d\xf8\x63\x51\x34\x92\x34\x09\x20\xd9\xe1\x29\xac\xd0\x53\xa2\xe0\x09\xc8\x49\x07\x0c\xe6\x59\x12\xb6\x8c\x49\x55\x57\x36\x53\x3a\xda\x78\x65\x83\x16\x47\xbd\x74\xca\x1e\x11\x88\x22\xab\x15\xc9\xae\xe6\x44\x61\xa0\xee\x67\x32\xd0\xe5\x7c\xb9\x40\x45\xee\x16\xbc\xcc\xc4\x86\x45\x2d\x6c\xbe\xb6\x4e\x01\x34\xeb\x54\x9d\x0e\x51\x44\x95\xeb\xb6\xab\x71\x3f\xb3\x82\x40\xce\x3c\xe5\xf1\x2e\x6b\x0c\x44\xac\xe1\xe3\x1d\xf2\xe7\xfd\xcc\x34\x12\xbb\x88\x28\x26\x59\xfe\x2f\xdc\x7e\xdb\x1c\xa9\xcc\xfd\x02\x60\x0e\x2f\x2f\x44\x20\x15\x7f\x09\xef\x41\x96\x16\xfe\x2b\xa5\xab\x01\x5a\x6b\xc8\x48\x34\x36\xbe\x14\x09\x4a\x6f\x41\x61\xbf\xd2\x6c\x67\x19\x32\x3d\x71\x40\x21\x31\x5a\x53\xae\xc7\xa3\x16\x9d\xa3\x07\x28\x96\xe2\xdd\x79\x1d\x65\x3b\xa6\x6d\x6d\x56\x8f\xa5\x78\x79\x37\xf6\x05\x25\x36\xd7\x16\x2f\x4a\x40\x0f\xd2\x18\x12\x93\xb4\x9b\x08\xc4\x26\x85\xef\xbe\xe4\x7b\xcf\xc1\x2a\xa2\xef\x80\xe0\xad\xb8\x7c\x42\xb2\xeb\x71\x4b\x9b\xd0\x3a\x6c\x1c\xdf\xa1\x4e\x0f\x67\x5e\xb6\xc8\x3e\xc8\xff\xcc\x7a\xdf\x41\x7e\x0f\xec\x32\xe3\x3a\x06\x55\xa1\x47\xb8\x69\xea\x4c\x32\xf9\x4b\x4f\x51\xeb\x79\xc9\xa2\x6e\xf2\x59\xc9\x3a\xc1\x51\x1e\x58\x62\x38\x44\x5f\xf0\x29\x11\x24\x6b\x15\x7b\x8f\xe5\x96\x39\xe0\xca\x8b\x92\x29\xa2\x84\xf0\xba\x3b\x92\xa5\x5b\xb0\x1d\xad\xa0\xa1\xff\x8f\x42\x8b\xf4\x69\x95\x71\x87\x3c\x32\xb7\xed\x14\xff\x19\x21\x26\xe2\xc2\xaa\x45\x26\xf8\x20\x69\x42\xa7\x9f\xc1\x82\xcd\xea\x1d\x00\xfd\x68\x9b\x1c\x5c\xde\x4a\x27\xa3\x36\xc7\xec\xdc\xd6\xb2\x0a\x3d\x40\x44\x4e\x78\x03\xf1\xe2\x67\xfd\x83\x75\x0c\xf3\x79\x5b\x7e\x8a\x3b\xc5\x33\x0b\xee\x35\x2b\x25\x78\x81\x89\x1a\xf4\x87\x56\x50\x8a\xff\xf8\x5c\xb9\x80\x83\x76\x28\x4e\x95\xd1\xdc\x74\xc7\xe0\xe1\x69\xf1\x89\x49\x33\xef\x27\xdf\xee\xb4\x21\x89\x95\x0d\x69\x2f\xbd\x54\xa8\x5c\x4d\x18\xc2\x25\x59\x5a\xe9\x0f\x15\x60\xd9\xeb\xcb\x51\x2e\x29\x00\x81\x88\xe2\xeb\xb0\x52\x10\x5a\x6c\x52\xd6\x8c\xf5\x6c\xe7",
+ data: RefCell::new(SimpleProducer::new(&b"\x43\x22\xf7\x2d\xad\x77\xf5\x36\x42\x41\x1d\xdb\xb3\xc8\x2c\x43\x5c\x3c\x14\x4e\x04\x15\xb5\xd7\xc7\x89\x7f\x4d\xf5\x1c\x8e\x93\x9e\xd1\xc2\xd9\x67\x33\xcf\xc2\x59\x0b\x5f\x3b\x44\x4e\xea\xe2\xf6\xf6\xc6\x6a\x5d\x58\xad\x10\x2f\x03\x65\x10\x23\x31\xf5\xda\x79\x4c\x36\x03\xe8\x1d\xa8\x21\x64\x7e\xfb\xce\xbe\xd5\xb6\xe2\x54\x67\xe7\x14\xf5\x20\x37\xdd\x87\x40\x56\x80\xdd\xb7\x1a\x46\xd8\xc3\xe6\x7d\xb0\x8a\x77\xc1\xe0\xb2\xf5\xcf\xc7\x37\x09\xd6\xa9\xf3\xec\x6c\x4d\x21\xad\x1f\x83\x3c\x31\xf4\xc0\xe5\xfb\x16\xa0\xb5\xe5\x72\x2b\xd1\xf6\xb1\x83\x17\xf9\x3b\x1b\x5f\x5a\x9f\x33\xba\xa3\x92\xc7\x1d\x1c\x76\x6d\x5e\x32\xbf\x52\x2b\xdb\x60\xd3\x7a\x7e\x1f\x1f\x68\xb4\xd7\x25\x4b\x99\xc3\x66\xeb\x2f\xb4\x00\x00\x3e\xed\x51\x62\x6d\x57\xc6\x76\x5a\x5e\xfa\xf7\xd5\xef\x8b\x45\xbc\x10\xaf\x23\xbb\x60\x9c\x42\x88\x87\xf0\xc5\xeb\x6f\x7d\x5e\x65\xfa\xf4\x59\xab\x41\x6d\x57\x52\x8f\x65\x0f\xdb\x01\xf0\x29\xde\x53\xcb\xa4\x68\x90\xb3\xe8\x54\x55\x6e\x56\x36\xb1\x6e\xe3\xb5\xba\x13\x92\x84\xbe\x5f\xa5\xf3\x5e\xa8\xec\x18\xbf\x6e\xbd\xaa\x6b\x06\xf5\x9c\xe0\xe7\xf7\xad\xe2\xff\x93\x3b\xd1\x80\xac\xef\x48\xce\x34\xa8\x42\x12\xde\x58\x40\x97\xd5\x63\x34\xb3\xeb\x01\x6d\xbd\xad\xc3\xe4\x1c\xd0\x80\xb2\xbd\xfb\xe9\x4f\x46\x16\x9b\x3d\xad\xb8\x48\x08\xb2\x9b\xa0\xec\x23\x26\x81\x75\xd6\x67\x48\xc1\x1b\x4a\xb9\x37\x34\x85\xad\x4d\xf8\x63\x51\x34\x92\x34\x09\x20\xd9\xe1\x29\xac\xd0\x53\xa2\xe0\x09\xc8\x49\x07\x0c\xe6\x59\x12\xb6\x8c\x49\x55\x57\x36\x53\x3a\xda\x78\x65\x83\x16\x47\xbd\x74\xca\x1e\x11\x88\x22\xab\x15\xc9\xae\xe6\x44\x61\xa0\xee\x67\x32\xd0\xe5\x7c\xb9\x40\x45\xee\x16\xbc\xcc\xc4\x86\x45\x2d\x6c\xbe\xb6\x4e\x01\x34\xeb\x54\x9d\x0e\x51\x4Why this scored 33/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.