sss

package
v0.0.0-...-d238806 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: GPL-2.0, GPL-3.0 Imports: 8 Imported by: 2

README

Recovery

Recovery is a package based on the 2 of 3 Shamir Secret Sharing Algorithm. If an entity holds 2 out of the 3 shares it has, it can then proceed to recover the seed. Can be used in case the user forgets the seedpwd which is going to likely happen in some cases.

Documentation

Index

Constants

View Source
const (
	DefaultPrimeStr = "115792089237316195423570985008687907853269984665640564039457584007913129639747"
)

Variables

This section is empty.

Functions

func Combine

func Combine(shares []string) (string, error)

Combine combines a set of shares

func Create

func Create(minimum int, shares int, raw string) ([]string, error)

Create creates a new set of shares

func IsValidShare

func IsValidShare(candidate string) bool

IsValidShare checks whether a given share is valid or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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