Documentation ¶
Overview ¶
Package keygen provides functions for generating Upspin key pairs and writing them to files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSecret ¶
FromSecret generates a key pair with the given curve and secret seed.
func SaveKeys ¶
SaveKeys writes the provided public and private keys to the given directory, rotating them if requested by appending the old secret to secret2.upspinkey. If secretStr is non-empty it is appended as a comment to the private key. If rotate is false and there are existing keys, SaveKeys returns an error. If rotate is true and there are no existing keys, SaveKeys returns an error.
func ValidSecretSeed ¶
ValidSecretSeed reports whether a seed conforms to the proquint format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.