Shamir's Secret Sharing: Split Your Seed Phrase
Shamir's scheme allows a cryptographic secret to be divided into N parts, requiring exactly M parts (threshold) to reconstruct it via polynomial interpolation. It's ideal for securing master seeds without a single point of failure.
1. Split Secret
Enter a hexadecimal secret (e.g., seed entropy) to split it.
2. Reconstruct Secret
Paste exactly M shares (one per line) to solve the polynomial equation.
Shamir Secret Sharing: splitting a secret into parts
Shamir's scheme lets you split a secret (such as a seed) into N shares so that at least K of them are needed to rebuild it. With fewer than K shares you learn nothing about the secret. It relies on a simple mathematical fact: a polynomial of degree K-1 is determined by K points.
To split the secret, a random polynomial is chosen whose constant term is the secret, and each share is a point on the polynomial. To recover it, Lagrange interpolation over K points is used and the polynomial is evaluated at zero.
How to use the lab
Enter a test secret in hexadecimal (a short string), choose the total number of shares (N) and the threshold (M) and generate the shares. Then paste M shares to rebuild the secret and check that it fails with fewer.
Uses and precautions
It is useful for spreading backups across people or places so that a single loss or theft does not compromise the funds. Keep in mind it is not the same as a multisig wallet: here the secret is reassembled in one place, which exposes it at that moment.
Note
Do not paste real seeds here. For real funds use audited implementations such as SLIP-39 and trusted devices.