Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrAddKey ¶
func CreateOrAddKey(cs signed.CryptoService, role data.RoleName, gun data.GUN, keyAlgorithm string) (pubKey data.PublicKey, err error)
CreateOrAddKey creates a new key in case of ECDSA or ED25519 inside the cryptoservice with the given role and gun while in the case of RSA, it takes a key from the map that includes multiple pre-existing RSA keys and adds them to the keystore, returning the public key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.