Skip to main content

derive_seed

Function derive_seed 

Source
pub fn derive_seed(root: u64, parts: &[&str]) -> [u8; 32]
Expand description

Derive a 32-byte seed from a root value and an ordered list of identity parts.

The hash is over the domain prefix, the little-endian root, then each part’s length (as a little-endian u64) followed by its bytes. Length prefixing prevents ambiguity between e.g. ["ab", "c"] and ["a", "bc"].