Skip to main content

arete_hash/
lib.rs

1//! Versioned, typed, domain-separated artifact identities for Arete.
2//!
3//! This crate is additive. Existing bare SHA-256 values in other Arete crates
4//! retain their legacy definitions until an explicit migration names them.
5
6mod canonical;
7mod error;
8mod fixture;
9mod id;
10mod identifier;
11mod idl;
12mod kind;
13mod projection;
14mod tree;
15mod vectors;
16
17pub use canonical::*;
18pub use error::*;
19pub use fixture::*;
20pub use id::*;
21pub use identifier::ProgramReadBindingId;
22pub use idl::*;
23pub use kind::*;
24pub use projection::*;
25pub use tree::*;
26pub use vectors::*;
27
28#[doc(hidden)]
29pub mod internal {
30    pub use crate::identifier::{DecoderBindingId, DecoderEngineId};
31}
32
33pub const HASH_PROTOCOL_VERSION: u32 = 1;
34pub const HASH_PROTOCOL_LABEL: &str = "arete-hash";
35pub const HASH_ALGORITHM: &str = "sha256";