Skip to main content

genesis

Function genesis 

Source
pub fn genesis(
    root: &SecretKey,
    owner_member_key: &PublicKey,
    content: DescriptorContent,
    host: &HostInfo,
    now_ms: u64,
) -> Result<Genesis, BuildError>
Expand description

Builds and signs the genesis pair: delegation epoch 1 to host (no expiry, ADR-0005), descriptor revision 1 naming it, with owner_member_key as the owner binding.

ยงErrors

BuildError::Signed for a field rule or a signing failure.