Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPublicKeyFromFile ¶
GetPublicKeyFromFile reads private/public keys pair from json file and return public key
Types ¶
type KeyPair ¶
type KeyPair struct { Private crypto.PrivateKey Public crypto.PublicKey }
KeyPair holds private/public keys pair.
func GenerateKeyPair ¶
GenerateKeyPair generates private/public keys pair. It uses default platform policy.
func ReadKeys ¶
ReadKeysFile reads and parses json from reader, returns parsed private/public keys pair.
func ReadKeysFile ¶
ReadKeysFile reads private/public keys pair from json file.
func ReadKeysFromDir ¶
ReadKeysFromDir reads directory, tries to parse every file in it as json with private/public keys pair returns list of parsed private/public keys pairs.
Click to show internal directories.
Click to hide internal directories.