pub struct CompositeDerivation {
pub aggregate_tweak: [u8; 32],
pub terminal_chaincode: [u8; 32],
pub child_pubkey: [u8; 32],
}Expand description
Result of walking a full BIP-32 path, with the aggregate scalar tweak needed to reproduce the terminal child key from the +even lift of the group key. Used by FROST signing so every co-signer applies one composite tweak to its share instead of walking the tree per signer.
BIP-32 unhardened tweaks compose additively over the group:
child_final = group_lifted + t_agg·G (mod n) where t_agg = sum(t_i)
with each t_i computed against the actual on-curve parent point at
its own depth. The stepwise tweaks are NOT interchangeable with the
aggregate at intermediate depths (the HMAC input at level i+1 depends
on level i’s real parity, not on any x-only summary), so callers that
want the aggregate must use this walker.
Fields§
§aggregate_tweak: [u8; 32]Aggregate BIP-32 scalar tweak: applying it once to every FROST
signing share (mod n) and the group verifying key produces a
tweaked signing set whose aggregate signature verifies under
Self::child_pubkey. This is the single scalar the composed
BIP-32 + BIP-341 sign path passes to KeyPackage.
terminal_chaincode: [u8; 32]Terminal chaincode. Callers walking children below the terminal node (e.g. a wallet exposing further sub-paths) use it as the parent chaincode for the next step.
child_pubkey: [u8; 32]Terminal x-only child public key: the address-forming key at the end of the path, and the key an aggregated signature must verify against.