Combines SSKR shares to reconstruct the original secret.
This function matches the Rust sskr_combine API by accepting wrapped SSKRShare objects.
sskr_combine
Array of SSKRShare instances to combine
The reconstructed SSKRSecret
Error if shares cannot be combined (insufficient shares, mismatched IDs, etc.)
import { sskrGenerateShares, sskrCombineShares } from '@bcts/components';// Generate sharesconst shares = sskrGenerateShares(spec, secret);// Combine 2 shares from the first groupconst recoveredSecret = sskrCombineShares([shares[0][0], shares[0][1]]); Copy
import { sskrGenerateShares, sskrCombineShares } from '@bcts/components';// Generate sharesconst shares = sskrGenerateShares(spec, secret);// Combine 2 shares from the first groupconst recoveredSecret = sskrCombineShares([shares[0][0], shares[0][1]]);
Combines SSKR shares to reconstruct the original secret.
This function matches the Rust
sskr_combineAPI by accepting wrapped SSKRShare objects.