Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.22 KB

File metadata and controls

40 lines (28 loc) · 1.22 KB

Shamir's Secret Sharing

Implementation of the Shamir's Secret Sharing scheme which allows one to split a secret into multiple shares such that a threshold number of shares are required to reconstruct it.

To accomplish this, Shamir's Secret Sharing uses Lagrange Interpolation under the hood.

Setup

  1. git clone <url>
  2. asdf install (optional)
  3. go test -count 1 -race ./...

Useful Commands

go run <package-path>
go build [<package-path>]

go test [<package-path>][/...] [-v] [-cover] [-race] [-short] [-parallel <number>]
go test -bench=. [<package-path>] [-count <number>] [-benchmem] [-benchtime 2s] [-memprofile <name>]

go test -coverprofile <name> [<package-path>]
go tool cover -html <name>
go tool cover -func <name>

go fmt [<package-path>]

go mod init [<module-path>]
go mod tidy

Useful Resources