Crate akd_client
source ·Expand description
Overview
This crate contains a “lean” client to verify AKD proofs which doesn’t depend on any crates other than the native hashing implementations and VRF functionality through the akd_core crate. This makes it suitable for embedded applications, e.g. inside limited clients (Android, iPhone, WebAssembly, etc) which may not have a large dependency library they can pull upon.
Features
The features of this library are
- default blake3: Blake3 256-bit hashing
- sha256: SHA2 256-bit hashing
- sha512: SHA3 512-bit hashing
- sha3_256: SHA3 256-bit hashing
- sha3_512: SHA3 512-bit hashing
which dictate which hashing function is used by the verification components. Blake3 256-bit hashing is the default
implementation and utilizes the blake3 crate. Features sha256 and sha512 both utilize SHA2 cryptographic functions
from the sha2 crate. Lastly sha3_256 and sha3_512 features utilize the
sha3 crate for their hashing implementations.
To utilize a hash implementation other than blake3, you should compile with
// [disable blake3] [enable other hash]
cargo build --no-default-features --features sha3_256
Modules
Structs
UpdateProofs.NodeLabel with a particular hash
value in the tree at a given epochNodeLabel in the tree
at a given epoch.