Skip to Content
oxcrypto

Pedersen

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

from oxcrypto.secret_sharing.pedersen import PEDERSEN

secret = bytes(31) + b"\x2a"
shares, blinders, verifiers = PEDERSEN.SECP256K1.split(secret, threshold=2, shares=3)
assert PEDERSEN.SECP256K1.verify(shares[0], blinders[0], verifiers)
assert PEDERSEN.SECP256K1.combine(shares[:2]) == secret

The secret is a non-zero 32-byte big-endian scalar below the group order of PEDERSEN.P256 or PEDERSEN.SECP256K1. Each share is a 32-byte identifier followed by a 32-byte value. split returns the secret shares, the blinder shares and the public verifiers: the two generators followed by one hiding commitment per coefficient, as compressed SEC1 points. Each shareholder receives a share and the blinder share with the same index. verify(share, blinder_share, verifiers) returns whether both lie on the committed polynomials. The commitments hide the secret information-theoretically. The second generator is a random point that vsss-rs draws for each split from the dealer's random source, so verifiers trust that the dealer does not know its discrete logarithm. 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.

StandardPedersen, "Non-Interactive and Information-Theoretic Secure Verifiable Secret Sharing" (1991); 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.