notary: Index | Files

package keys

import ""


Package Files


func CreateOrAddKey Uses

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.

func GetRSAKey Uses

func GetRSAKey(size int) (data.PrivateKey, error)

GetRSAKey returns a parsed RSA key based on the given size

Package keys imports 6 packages (graph) and is imported by 17 packages. Updated 2017-10-27. Refresh now. Tools for package owners.