Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair() (PrivateKey, PublicKey, error)
func PrependPubkey ¶
Types ¶
type PrivateKey ¶
type PrivateKey interface { Key }
func NewPrivateKeyFromBase58 ¶
func NewPrivateKeyFromBase58(s string) (PrivateKey, error)
type PublicKey ¶
type PublicKey interface { Key }
func NewPubkeyFromBytes ¶
func NewPublicKeyFromBase58 ¶
func NewRandomPubkey ¶
func NewRandomPubkey() PublicKey
func PublicKeyFromArray ¶
type SharedSecret ¶
type SharedSecret interface { Key }
func GenerateSharedSecret ¶
func GenerateSharedSecret(privkey PrivateKey, peerPubkey PublicKey) SharedSecret
Click to show internal directories.
Click to hide internal directories.