package
0.0.0-20241001140320-1cfc79ecf30e
Repository: https://github.com/nix-community/go-nix.git
Documentation: pkg.go.dev
# Functions
GenerateKeypair creates a new nix-store compatible keypair
rand: uses crypto/rand.Reader if nil name: key identifier used by Nix.
LoadSecretKey decodes a <keyname>:<base64> pair into a SecretKey.
ParsePublicKey decodes a serialized string, and returns a PublicKey struct, or an error.
ParseSignature decodes a <keyname>:<base64-signature-data> and returns a *Signature, or an error.
VerifyFirst returns the result of the first signature that matches a public key.