Skip to Content
oxcrypto

Feldman

Feldman verifiable secret sharing of P-256 and secp256k1 scalars.

from oxcrypto.secret_sharing.feldman import FELDMAN

secret = bytes(31) + b"\x2a"
shares, verifiers = FELDMAN.SECP256K1.split(secret, threshold=2, shares=3)
assert all(FELDMAN.SECP256K1.verify(share, verifiers) for share in shares)
assert FELDMAN.SECP256K1.combine(shares[:2]) == secret

The secret is a non-zero 32-byte big-endian scalar below the group order of FELDMAN.P256 or FELDMAN.SECP256K1. Each share is a 32-byte identifier followed by a 32-byte value. split returns the shares and the public verifiers: the generator followed by one commitment per polynomial coefficient, as compressed SEC1 points. verify(share, verifiers) returns whether a share lies on the committed polynomial. The commitments reveal secret * G, so Feldman hides the secret only computationally. Malformed verifiers raise ValueError, including the identity point or a first verifier other than the standard generator; a share that does not match returns False.

StandardFeldman, "A Practical Scheme for Non-interactive Verifiable Secret Sharing" (1987); not standardized
Cratevsss-rs 6.0.1 on p256 0.14.0 and k256 0.14.0, stable
AuditNo published audit of vsss-rs
MSRVBuilds with the project MSRV 1.88
ExperimentalNo
Test vectorsNone published; tests verify every share, reject tampered shares and recover the secret from every threshold subset

The RustCrypto p256 and k256 crates are written to run scalar arithmetic in constant time; oxcrypto has not verified this independently.