Skip to main content

Module derive

Module derive 

Source
Expand description

The SDK’s one address derivation.

An address is the truncated hash of an identity key, so anything carrying both is self-certifying: a recipient re-derives and compares rather than consulting a directory. Every trust gate in the protocol is that comparison, which is why there is exactly one implementation of it and why it lives where both a phone and a leaf node can reach it.

Constants§

ED25519_PUBLIC_KEY_LEN
Length of an Ed25519 public key, in bytes.

Functions§

derive_address
Derives the canonical self-certifying address of an Ed25519 identity key: off1…, the bech32m encoding of 0x01 ‖ SHA-256(public_key)[..20].