shamir

package
v0.0.0-...-8ef2c5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message = curve25519.Scalar

Message is the value the dealer

func Reconstruct

func Reconstruct(shares []Share) (*Message, error)

Reconstruct takes in t shares and then does polynomial interpolation to obtain the original message

type Share

type Share struct {
	Index       int
	IndexScalar curve25519.Scalar
	S           curve25519.Scalar
}

Share is composed of values used in Pedersen VSS to reconstruct a secret

func GenerateShares

func GenerateShares(m Message, t int, n int) (shares []Share, err error)

GenerateShares creates shares of t-of-n Shamir secret sharing for some secret m

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL