1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//! 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");
}