# Functions

BuildPrincipals takes a hostID, nodeName, clusterName, and role and builds a list of principals to insert into a certificate.
GenerateKeyPair returns fresh priv/pub keypair, takes about 300ms to execute.
New returns a new key generator.
PrecomputeKeys sets up a number of private keys to pre-compute in background, 0 disables the process.

# Variables

PrecomputedNum is the number of keys to precompute and keep cached.

# Structs

keygen is a key generator that precomputes keys to provide quick access to public/private key pairs.

# Type aliases

KeygenOption is a functional optional argument for key generator.