Skip to main content

split_seed_2of3

Function split_seed_2of3 

Source
pub fn split_seed_2of3(seed: &[u8; 32]) -> Vec<Vec<u8>>
Expand description

Split a 32-byte recovery seed into 3 Shamir shares; any 2 reconstruct it, 1 reveals nothing. The default scheme from Backup — Opt-in: Shamir Secret Sharing.

Each share is x ‖ y (SHAMIR_SHARE_LEN bytes), the encoding fixed by Backup — Share Wire Format; shares issued before the sharks → blahaj swap use the same encoding and recover unchanged.