Skip to content

Function signed::claimed_genesis

zaun_community_protocol::signed::claimed_genesis · Function

pub fn claimed_genesis(descriptor_bytes: &[u8], chain: &[SignedRootRotation]) -> Result<PublicKey, DecodeError>

The claimed genesis key: the first rotation’s old_root, or the descriptor’s root_public_key when the chain is empty.

The key is read from unverified bytes at a fixed offset. It is authenticated only by verify_chain, which checks that it derives the expected community id, and then by the signatures it verifies.

DecodeError when the bytes are too short or the key has an unknown suite.

Full rustdoc page