Skip to content

Latest commit

 

History

History
75 lines (57 loc) · 2.46 KB

README.md

File metadata and controls

75 lines (57 loc) · 2.46 KB

Cypherpunk Toolkit

Cryptographic primitives for Cypherpunks that don't subscribe to "trust me bro" security assumptions.

Note: The implementations in this repo shouldn't be used in a production environment as they are neither optimized (e.g. to combat constant-time attacks), nor audited.

Setup

  1. git clone <url>
  2. asdf install
  3. make test

Primitives

Useful Commands

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

go test [<package-path>][/...] [-v] [-cover] [-race] [-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 doc [<package-path>]
go fmt [<package-path>]
go vet [<package-path>]

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

go work init [<module-path-1> [<module-path-2>] [...]]
go work use [<module-path-1> [<module-path-2>] [...]]
go work sync

# Adjust dependencies in `go.mod`.
go get <package-path>[@<version>]

# Build and install commands.
go install <package-path>[@<version>]

go list -m [all]

Useful Resources