Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = "0.1.0"
description = "Zcash test vectors"
authors = [
"Jack Grigg <jack@z.cash>",
"Daira Hopwood <daira@jacaranda.org>",
"ying tong <yingtong@z.cash>",
"Daira-Emma Hopwood <daira@jacaranda.org>",
"Ying Tong Lai <yingtong@ethereum.org>",
"Taylor Hornby <taylor@defuse.ca>",
"Kris Nuttycombe <kris@electriccoin.co>",
"Simon <simon@bitcartel.com>",
Expand Down Expand Up @@ -41,6 +41,7 @@ f4jumble_long = "zcash_test_vectors.f4jumble:long_test_vectors"
unified_address = "zcash_test_vectors.unified_address:main"
unified_full_viewing_keys = "zcash_test_vectors.unified_full_viewing_keys:main"
unified_incoming_viewing_keys = "zcash_test_vectors.unified_incoming_viewing_keys:main"
zip_0032_registered = "zcash_test_vectors.zip_0032:registered_key_derivation_tvs"
zip_0032_arbitrary = "zcash_test_vectors.zip_0032:arbitrary_key_derivation_tvs"
zip_0143 = "zcash_test_vectors.zip_0143:main"
zip_0243 = "zcash_test_vectors.zip_0243:main"
Expand Down
1 change: 1 addition & 0 deletions regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ case "$2" in
unified_address
unified_full_viewing_keys
unified_incoming_viewing_keys
zip_0032_registered
zip_0032_arbitrary
zip_0143
zip_0243
Expand Down
7 changes: 7 additions & 0 deletions test-vectors/json/zip_0032_registered.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
["From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/zip_0032_registered.py"],
["context_string, seed, zip_number, subpath, sk, c, full_width"],
["5a63617368207465737420766563746f7273", "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f", 1, [], "53a71507e6dfda588bc1e138c2657c9269e55f5d9b99e3887c134008193a2f47", "08bb26aae21d4efdc3249b9557fcd9131e8b9827241d9f61d0d774bb4fed3de6", null],
["5a63617368207465737420766563746f7273", "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f", 1, [[2147483650, "7472616e7320726967687473206172652068756d616e20726967687473"]], "02dc25cc40310eed08b028e07fae9adbee2fbe56a4694def0401e656dfae0211", "d8f9d8a1f81d1b5d5506b5ff942d2ff3dae7a63f57d6b8c7fbe58149823cc6ec", "255d75b5f97dd880a14460ab0a28938e7ba497ceb1457fff2992e9015a8403f8c08112b7a94cf539c21c9da7ee99897be9476b6813532ee22c8947d753b72bdf"],
["5a63617368207465737420766563746f7273", "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f", 1, [[2147483650, "7472616e7320726967687473206172652068756d616e20726967687473"], [2147483651, ""]], "a127db66628b256e5b664d54050c1e6b028963aea22b04d1bc6f48123674ed82", "340084033605edca11463ffec56bf0cac425c410e953628671cec6a6514c32a8", "7f853eef001b1bc5a1a5e67f5dfd0e90427596d4842f5b10a111e97c4073203cedf6b80a85145e5061acd29bc5a4e349b14f8557a7033e23b066b7ce2409d973"]
]
4 changes: 2 additions & 2 deletions test-vectors/rust/bip_0032.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
external_ovk: [u8; 32],
internal_ovk: [u8; 32],
account: u32,
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/bip_0032.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
c: [
0x9b, 0xa0, 0x43, 0x9c, 0x6a, 0x2d, 0x3d, 0x90, 0x38, 0x83, 0xd4, 0x53, 0x7c, 0x36, 0x22, 0x88, 0x62, 0x6d, 0xa6, 0x2c, 0x62, 0x99, 0x01, 0x2e, 0x36, 0x2d, 0x8f, 0xb6, 0xef, 0xeb, 0xab, 0x47
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/f4jumble.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
struct TestVector {
normal: Vec<u8>,
jumbled: Vec<u8>,
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/f4jumble.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
normal: vec![
0x5d, 0x7a, 0x8f, 0x73, 0x9a, 0x2d, 0x9e, 0x94, 0x5b, 0x0c, 0xe1, 0x52, 0xa8, 0x04, 0x9e, 0x29, 0x4c, 0x4d, 0x6e, 0x66, 0xb1, 0x64, 0x93, 0x9d, 0xaf, 0xfa, 0x2e, 0xf6, 0xee, 0x69, 0x21, 0x48, 0x1c, 0xdd, 0x86, 0xb3, 0xcc, 0x43, 0x18, 0xd9, 0x61, 0x4f, 0xc8, 0x20, 0x90, 0x5d, 0x04, 0x2b
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/f4jumble_long.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
struct TestVector {
length: usize,
jumbled_hash: [u8; 64],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/f4jumble_long.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
length: 3246395,
jumbled_hash: [
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_empty_roots.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
struct TestVector {
empty_roots: [[u8; 32]; 33],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_empty_roots.py
let test_vector = TestVector {
const TEST_VECTOR: TestVector = TestVector {
empty_roots: [
[0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
[0xd1, 0xab, 0x25, 0x07, 0xc8, 0x09, 0xc2, 0x71, 0x3c, 0x00, 0x0f, 0x52, 0x5e, 0x9f, 0xbd, 0xcb, 0x06, 0xc9, 0x58, 0x38, 0x4e, 0x51, 0xb9, 0xcc, 0x7f, 0x79, 0x2d, 0xde, 0x6c, 0x97, 0xf4, 0x11],
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
ivkb: [u8; 32],
ivkq: [u8; 32],
mcq: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_generators.py
let test_vector = TestVector {
const TEST_VECTOR: TestVector = TestVector {
skb: [
0x63, 0xc9, 0x75, 0xb8, 0x84, 0x72, 0x1a, 0x8d, 0x0c, 0xa1, 0x70, 0x7b, 0xe3, 0x0c, 0x7f, 0x0c, 0x5f, 0x44, 0x5f, 0x3e, 0x7c, 0x18, 0x8d, 0x3b, 0x06, 0xd6, 0xf1, 0x28, 0xb3, 0x23, 0x55, 0xb7
],
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_group_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
domain: Vec<u8>,
msg: Vec<u8>,
point: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_group_hash.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
domain: vec![
0x7a, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x3a, 0x74, 0x65, 0x73, 0x74
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_key_components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
note_rseed: [u8; 32],
note_cmx: [u8; 32],
note_nf: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_key_components.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
sk: [
0x5d, 0x7a, 0x8f, 0x73, 0x9a, 0x2d, 0x9e, 0x94, 0x5b, 0x0c, 0xe1, 0x52, 0xa8, 0x04, 0x9e, 0x29, 0x4c, 0x4d, 0x6e, 0x66, 0xb1, 0x64, 0x93, 0x9d, 0xaf, 0xfa, 0x2e, 0xf6, 0xee, 0x69, 0x21, 0x48
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_map_to_curve.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
struct TestVector {
u: [u8; 32],
point: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_map_to_curve.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
u: [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
leaves: [[u8; 32]; 16],
paths: [[[u8; 32]; 4]; 16],
root: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_merkle_tree.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
leaves: [
[0x3d, 0xc1, 0x66, 0xd5, 0x6a, 0x1d, 0x62, 0xf5, 0xa8, 0xd7, 0x55, 0x1d, 0xb5, 0xfd, 0x93, 0x13, 0xe8, 0xc7, 0x20, 0x3d, 0x99, 0x6a, 0xf7, 0xd4, 0x77, 0x08, 0x37, 0x56, 0xd5, 0x9a, 0xf8, 0x0d],
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_note_encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
ock: [u8; 32],
op: [u8; 64],
c_out: [u8; 80],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_note_encryption.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
incoming_viewing_key: [
0x10, 0x39, 0xd8, 0xe6, 0x4a, 0x80, 0x90, 0x2e, 0x10, 0x59, 0x47, 0x81, 0x7d, 0xf3, 0xbd, 0xfb, 0x7d, 0xf7, 0x03, 0x0e, 0x68, 0x73, 0x9f, 0x9c, 0x53, 0x3a, 0x36, 0xbf, 0x5a, 0x6a, 0x80, 0x72, 0x43, 0x10, 0x6d, 0xe9, 0xa7, 0xec, 0x54, 0xdd, 0x36, 0xdf, 0xa7, 0x0b, 0xdb, 0xd9, 0x07, 0x2d, 0xbd, 0xda, 0xb5, 0xe0, 0x66, 0xaa, 0xef, 0xfc, 0xf9, 0xbb, 0xa3, 0x20, 0xd4, 0xff, 0xf7, 0x12
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_poseidon.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
struct TestVector {
initial_state: [[u8; 32]; 3],
final_state: [[u8; 32]; 3],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_poseidon.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
initial_state: [
[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_poseidon_hash.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
struct TestVector {
input: [[u8; 32]; 2],
output: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_poseidon_hash.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
input: [
[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_sinsemilla.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
msg: Vec<bool>,
point: [u8; 32],
hash: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_sinsemilla.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
domain: vec![
0x7a, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x2d, 0x53, 0x69, 0x6e, 0x73, 0x65, 0x6d, 0x69, 0x6c, 0x6c, 0x61
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/orchard_zip32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
c: [u8; 32],
xsk: [u8; 73],
fp: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_zip32.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
sk: [
0x7e, 0xee, 0x3c, 0x10, 0x17, 0x87, 0x09, 0x90, 0xa3, 0xdd, 0x68, 0x91, 0xb8, 0x2f, 0x80, 0xbe, 0x89, 0x76, 0xc1, 0xe7, 0xdc, 0x20, 0xd6, 0x08, 0x17, 0xa5, 0xe8, 0x8e, 0x8b, 0x2c, 0xd4, 0xb8
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/sapling_generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
pb1: [u8; 32],
pb2: [u8; 32],
pb3: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_generators.py
let test_vector = TestVector {
const TEST_VECTOR: TestVector = TestVector {
skb: [
0x30, 0xb5, 0xf2, 0xaa, 0xad, 0x32, 0x56, 0x30, 0xbc, 0xdd, 0xdb, 0xce, 0x4d, 0x67, 0x65, 0x6d, 0x05, 0xfd, 0x1c, 0xc2, 0xd0, 0x37, 0xbb, 0x53, 0x75, 0xb6, 0xe9, 0x6d, 0x9e, 0x01, 0xa1, 0xd7
],
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/sapling_key_components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
note_cmu: [u8; 32],
note_pos: u64,
note_nf: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_key_components.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
sk: [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/sapling_note_encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
ock: [u8; 32],
op: [u8; 64],
c_out: [u8; 80],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_note_encryption.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
ovk: [
0x98, 0xd1, 0x69, 0x13, 0xd9, 0x9b, 0x04, 0x17, 0x7c, 0xab, 0xa4, 0x4f, 0x6e, 0x4d, 0x22, 0x4e, 0x03, 0xb5, 0xac, 0x03, 0x1d, 0x7c, 0xe4, 0x5e, 0x86, 0x51, 0x38, 0xe1, 0xb9, 0x96, 0xd6, 0x3b
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/sapling_signatures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
m: [u8; 32],
sig: [u8; 64],
rsig: [u8; 64],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_signatures.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
sk: [
0x18, 0xe2, 0x8d, 0xea, 0x5c, 0x11, 0x81, 0x7a, 0xee, 0xb2, 0x1a, 0x19, 0x98, 0x1d, 0x28, 0x36, 0x8e, 0xc4, 0x38, 0xaf, 0xc2, 0x5a, 0x8d, 0xb9, 0x4e, 0xbe, 0x08, 0xd7, 0xa0, 0x28, 0x8e, 0x09
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/sapling_zip32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
internal_xsk: Option<[u8; 169]>,
internal_xfvk: [u8; 169],
internal_fp: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_zip32.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
ask: Some([
0xb6, 0xc0, 0x0c, 0x93, 0xd3, 0x60, 0x32, 0xb9, 0xa2, 0x68, 0xe9, 0x9e, 0x86, 0xa8, 0x60, 0x77, 0x65, 0x60, 0xbf, 0x0e, 0x83, 0xc1, 0xa1, 0x0b, 0x51, 0xf6, 0x07, 0xc9, 0x54, 0x74, 0x25, 0x06
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/sapling_zip32_hard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
internal_xsk: Option<[u8; 169]>,
internal_xfvk: [u8; 169],
internal_fp: [u8; 32],
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_zip32.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
ask: Some([
0xb6, 0xc0, 0x0c, 0x93, 0xd3, 0x60, 0x32, 0xb9, 0xa2, 0x68, 0xe9, 0x9e, 0x86, 0xa8, 0x60, 0x77, 0x65, 0x60, 0xbf, 0x0e, 0x83, 0xc1, 0xa1, 0x0b, 0x51, 0xf6, 0x07, 0xc9, 0x54, 0x74, 0x25, 0x06
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/unified_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
root_seed: Vec<u8>,
account: u32,
diversifier_index: u32,
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/unified_address.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
p2pkh_bytes: Some([
0x7b, 0xb8, 0x35, 0x70, 0xb8, 0xfa, 0xe1, 0x46, 0xe0, 0x3c, 0x53, 0x31, 0xa0, 0x20, 0xb1, 0xe0, 0x89, 0x2f, 0x63, 0x1d
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/unified_full_viewing_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
unified_fvk: Vec<u8>,
root_seed: Vec<u8>,
account: u32,
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/unified_full_viewing_keys.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
t_key_bytes: Some([
0x9b, 0xa0, 0x43, 0x9c, 0x6a, 0x2d, 0x3d, 0x90, 0x38, 0x83, 0xd4, 0x53, 0x7c, 0x36, 0x22, 0x88, 0x62, 0x6d, 0xa6, 0x2c, 0x62, 0x99, 0x01, 0x2e, 0x36, 0x2d, 0x8f, 0xb6, 0xef, 0xeb, 0xab, 0x47, 0x02, 0xed, 0x63, 0x85, 0x32, 0xc4, 0x75, 0xf6, 0x74, 0x00, 0x35, 0x0f, 0xb1, 0xd6, 0xed, 0xa5, 0x59, 0xcd, 0xc2, 0x89, 0xa1, 0x9b, 0x43, 0x19, 0xeb, 0x17, 0x51, 0x40, 0xaa, 0x86, 0x89, 0x38, 0x36
Expand Down
4 changes: 2 additions & 2 deletions test-vectors/rust/unified_incoming_viewing_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
unified_ivk: Vec<u8>,
root_seed: Vec<u8>,
account: u32,
};
}

// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/unified_incoming_viewing_keys.py
let test_vectors = vec![
const TEST_VECTORS: &[TestVector] = &[
TestVector {
t_key_bytes: Some([
0x42, 0xd6, 0x7b, 0x57, 0x0a, 0x66, 0x4b, 0x8d, 0xc3, 0xce, 0xbb, 0x8f, 0x0a, 0xf4, 0x24, 0x3f, 0xf9, 0xe7, 0xe6, 0xe8, 0xd0, 0x86, 0x08, 0x4e, 0x23, 0x25, 0x67, 0x88, 0x03, 0xb1, 0x42, 0xd1, 0x03, 0x87, 0xeb, 0xa0, 0x4d, 0xbf, 0xb4, 0x06, 0xb2, 0xb2, 0xf0, 0x46, 0xe6, 0x61, 0x40, 0x84, 0x59, 0xbc, 0x3d, 0x1e, 0x0e, 0x7a, 0xa0, 0xf1, 0x47, 0x04, 0x3b, 0x07, 0x6d, 0x00, 0xd5, 0xe1, 0x11
Expand Down
Loading