package
0.0.1
Repository: https://github.com/libonomy/libonomy-p2p.git
Documentation: pkg.go.dev

# Functions

ExtractPubkey extracts a public key from the beginning of a byte array.
GenerateKeyPair generates ed25519 private key and a public key derived from it.
GenerateSharedSecret creates a key derived from a private and a public key.
NewPrivateKeyFromBase58 creates a private key from a base58 string.
NewPubkeyFromBytes creates a public key from a byte array.
NewPublicKeyFromBase58 creates a public key from a base58 string.
NewRandomPubkey reads random bytes and creates a public key from them.
PrependPubkey adds a public key at the beginning on a byte array.
PublicKeyFromArray creates a public key using a fixed sized byte array.

# Interfaces

Key represents a 32 bit cryptographic key, public or private.
PrivateKey is a private key of 32 byte.
PublicKey is a public key of 32 byte.
SharedSecret is created using two participants key to enable Sealing and Opening of messages (NaCL).