Question: Write functions to to split a secret into shares and reconstruct the secret using a threshold number of shares. Ensure the program accepts the following

Write functions to to split a secret into shares and reconstruct the secret using a threshold number of shares.
Ensure the program accepts the following inputs:
The secret to be shared.
The finite field size.
The total number of shares to generate.
The threshold number of shares required to reconstruct the secret.
Part 1: generate_shares(secret, field, shares, threshold) should return a List of points (x, y)
Part 2: reconstuct_secret(points, field) should return the reconstucted secret from a quorum of shares

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!