Skip to main content

uor_addr/composition/e7/
model.rs

1//! CS-E7 `PrismModel*` declarations, one per σ-axis.
2
3#![cfg(feature = "alloc")]
4
5use crate::composition::e7::value::E7Carrier;
6#[allow(unused_imports)]
7use crate::composition::e7::verbs::{
8    compose_e7_inference, compose_e7_inference_blake3, compose_e7_inference_keccak256,
9    compose_e7_inference_sha3_256, compose_e7_inference_sha512, VERB_TERMS_COMPOSE_E7_INFERENCE,
10    VERB_TERMS_COMPOSE_E7_INFERENCE_BLAKE3, VERB_TERMS_COMPOSE_E7_INFERENCE_KECCAK256,
11    VERB_TERMS_COMPOSE_E7_INFERENCE_SHA3_256, VERB_TERMS_COMPOSE_E7_INFERENCE_SHA512,
12};
13use crate::label::{
14    CompositionLabelE7Blake3, CompositionLabelE7Keccak256, CompositionLabelE7Sha256,
15    CompositionLabelE7Sha3_256, CompositionLabelE7Sha512,
16};
17
18addr_models! {
19    input: E7Carrier<'a>,
20    {
21        hasher: prism::crypto::Sha256Hasher,
22        bounds: crate::bounds::AddrBounds,
23        shape: CompositionLabelE7Sha256,
24        model: CompositionModelE7Sha256,
25        route: CompositionRouteE7Sha256,
26        verb: compose_e7_inference
27    },
28    {
29        hasher: prism::crypto::Blake3Hasher,
30        bounds: crate::bounds::AddrBounds,
31        shape: CompositionLabelE7Blake3,
32        model: CompositionModelE7Blake3,
33        route: CompositionRouteE7Blake3,
34        verb: compose_e7_inference_blake3
35    },
36    {
37        hasher: prism::crypto::Sha3_256Hasher,
38        bounds: crate::bounds::AddrBounds,
39        shape: CompositionLabelE7Sha3_256,
40        model: CompositionModelE7Sha3_256,
41        route: CompositionRouteE7Sha3_256,
42        verb: compose_e7_inference_sha3_256
43    },
44    {
45        hasher: prism::crypto::Keccak256Hasher,
46        bounds: crate::bounds::AddrBounds,
47        shape: CompositionLabelE7Keccak256,
48        model: CompositionModelE7Keccak256,
49        route: CompositionRouteE7Keccak256,
50        verb: compose_e7_inference_keccak256
51    },
52    {
53        hasher: prism::crypto::Sha512Hasher,
54        bounds: crate::bounds::AddrBounds64,
55        shape: CompositionLabelE7Sha512,
56        model: CompositionModelE7Sha512,
57        route: CompositionRouteE7Sha512,
58        verb: compose_e7_inference_sha512
59    },
60}