Expand description
Wallet descriptor types for FROST group spending policies.
Structs§
- Device
Registration - Record of a hardware signer that has registered this wallet via NIP-46.
- KeyHealth
Status - Health status of a key share from a liveness check.
- Wallet
Descriptor - A finalized wallet descriptor associated with a FROST group.
Enums§
- Canonical
Hash Error - Error produced when
canonical_descriptor_hashis given invalid inputs.
Constants§
- INITIAL_
DESCRIPTOR_ VERSION - The version assigned to the initial wallet descriptor for a group. Subsequent migrations increment this monotonically.
- KEY_
HEALTH_ CRITICAL_ THRESHOLD_ SECS - 7 days - key not checked in this period is critically stale.
- KEY_
HEALTH_ STALE_ THRESHOLD_ SECS - 24 hours - key not checked in this period is considered stale.
Functions§
- canonical_
descriptor_ hash - Compute the canonical descriptor hash from its constituent parts.
Centralizing this avoids drift between sites that recompute the hash
(initiator, ack verifier, migrate verifier, persisted descriptor, mobile
completion handler). Must match
WalletDescriptor::canonical_hashand the on-wiredescriptor_hashused by the FROST PSBT coordination protocol. - default_
descriptor_ version - Default value for
WalletDescriptor::versionwhen deserializing legacy records that predate the versioning field. - fold_
descriptor_ version_ suffix - Domain-separated version suffix folded into the canonical descriptor hash for v2+ descriptors. v1 hashes intentionally omit this suffix to remain bit-identical to records written before descriptor versioning existed.