35 lines
1.6 KiB
Rust
35 lines
1.6 KiB
Rust
//! Orchard shielded data (with Actions) test vectors
|
|
//!
|
|
//! Generated by `zebra_chain::primitives::halo2::tests::generate_test_vectors()`
|
|
//!
|
|
//! These are artificial/incomplete `zebra_chain::orchard::ShieldedData`
|
|
//! instances, care should be used when using them to test functionality beyond
|
|
//! verifying a standalone Orchard Acton Halo2 proof.
|
|
|
|
#![allow(missing_docs)]
|
|
|
|
use hex::FromHex;
|
|
use lazy_static::lazy_static;
|
|
|
|
lazy_static! {
|
|
pub static ref ORCHARD_SHIELDED_DATA: Vec<&'static [u8]> = [
|
|
ORCHARD_SHIELDED_DATA_1_BYTES.as_ref(),
|
|
ORCHARD_SHIELDED_DATA_3_BYTES.as_ref(),
|
|
ORCHARD_SHIELDED_DATA_3_BYTES.as_ref(),
|
|
ORCHARD_SHIELDED_DATA_4_BYTES.as_ref(),
|
|
]
|
|
.to_vec();
|
|
pub static ref ORCHARD_SHIELDED_DATA_1_BYTES: Vec<u8> =
|
|
<Vec<u8>>::from_hex(include_str!("orchard-shielded-data-1.txt").trim())
|
|
.expect("Orchard shielded data bytes are in valid hex representation");
|
|
pub static ref ORCHARD_SHIELDED_DATA_2_BYTES: Vec<u8> =
|
|
<Vec<u8>>::from_hex(include_str!("orchard-shielded-data-2.txt").trim())
|
|
.expect("Orchard shielded data bytes are in valid hex representation");
|
|
pub static ref ORCHARD_SHIELDED_DATA_3_BYTES: Vec<u8> =
|
|
<Vec<u8>>::from_hex(include_str!("orchard-shielded-data-3.txt").trim())
|
|
.expect("Orchard shielded data bytes are in valid hex representation");
|
|
pub static ref ORCHARD_SHIELDED_DATA_4_BYTES: Vec<u8> =
|
|
<Vec<u8>>::from_hex(include_str!("orchard-shielded-data-4.txt").trim())
|
|
.expect("Orchard shielded data bytes are in valid hex representation");
|
|
}
|