Documentation ¶
Index ¶
- func DecodeKeypair(pkeystr string, skeySeedstr string) (ed25519.PublicKey, ed25519.PrivateKey)
- func EncodeKeypair(pkey ed25519.PublicKey, skey ed25519.PrivateKey) (string, string)
- func GenerateKeypair() (ed25519.PublicKey, ed25519.PrivateKey)
- func ValidateKeypairsEquality(pair1 Keypair, pair2 Keypair)
- func ValidateSigningPublicKey(pkey ed25519.PublicKey, skey ed25519.PrivateKey)
- func ValidateSigningRandomMessage(pkey ed25519.PublicKey, skey ed25519.PrivateKey)
- type Keypair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeKeypair ¶
DecodeKeypair decodes base64 encoded pkey and skey
func EncodeKeypair ¶
EncodeKeypair encodes both pkey and skey using base64 and returns two strings
func GenerateKeypair ¶
func GenerateKeypair() (ed25519.PublicKey, ed25519.PrivateKey)
GenerateKeypair generates ed25519 keypair, created it to be some higher level of abstraction
func ValidateKeypairsEquality ¶
ValidateKeypairsEquality checks if key are equal, key means pkey or skey, it must have Equal() property which returns boolean
func ValidateSigningPublicKey ¶
func ValidateSigningPublicKey(pkey ed25519.PublicKey, skey ed25519.PrivateKey)
ValidateSigningPublicKey signs public key using private key and validates signature using public key
func ValidateSigningRandomMessage ¶
func ValidateSigningRandomMessage(pkey ed25519.PublicKey, skey ed25519.PrivateKey)
ValidateSigningRandomMessage signs public key using private key and validates signature using public key
Types ¶
Click to show internal directories.
Click to hide internal directories.