Skip to main content

deterministic_chaincode

Function deterministic_chaincode 

Source
pub fn deterministic_chaincode(group_pubkey: &[u8; 32]) -> [u8; 32]
Expand description

Derive the deterministic 32-byte chaincode for a FROST group key.

group_pubkey is the BIP-340 x-only 32-byte aggregated FROST group key. The result is a domain-separated sha256 hash so a chaincode collision implies a sha256 collision.