secretsharing

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dealer

type Dealer struct {
}

Shamir's secret sharing scheme

func NewDealer

func NewDealer() (*Dealer, error)

func (*Dealer) RecoverSecret

func (dealer *Dealer) RecoverSecret(points map[*big.Int]*big.Int, prime *big.Int) string

It takes threshold

func (*Dealer) SplitSecret

func (dealer *Dealer) SplitSecret(secret string, threshold int,
	numberOfShares int) (map[*big.Int]*big.Int, *big.Int, error)

Jump to

Keyboard shortcuts

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