Documentation ¶
Index ¶
- Constants
- func AccountHash(pubKey []byte) string
- func AccountHex(publicKey []byte) string
- func Ed25519FromSeed(seed []byte) keypair.KeyPair
- func Ed25519Random() (keypair.KeyPair, error)
- func ExportPrivateKeyInPem(privateKey string) []byte
- func ExportPublicKeyInPem(publicKey string) []byte
- func ParseKey(bytes []byte, from int, to int) ([]byte, error)
- func ParseKeyFiles(pubKeyPath, privKeyPath string) (keypair.KeyPair, error)
- func ParseKeyPair(publicKey []byte, privateKey []byte) keypair.KeyPair
- func ParsePrivateKey(bytes []byte) ([]byte, error)
- func ParsePrivateKeyFile(path string) ([]byte, error)
- func ParsePublicKey(bytes []byte) ([]byte, error)
- func ParsePublicKeyFile(path string) ([]byte, error)
Constants ¶
View Source
const ED25519_PEM_PUBLIC_KEY_TAG = "PUBLIC KEY"
View Source
const ED25519_PEM_SECRET_KEY_TAG = "PRIVATE KEY"
Variables ¶
This section is empty.
Functions ¶
func AccountHash ¶
AccountHex generates the accountHex for the Ed25519 public key
func AccountHex ¶
AccountHex generates the accountHex for the Ed25519 public key
func Ed25519FromSeed ¶
Ed25519FromSeed creates a new keypair from the provided Ed25519 seed
func Ed25519Random ¶
Ed25519Random creates a random Ed25519 keypair
func ExportPrivateKeyInPem ¶
ExportPrivateKeyInPem expects the private key encoded in pem
func ExportPublicKeyInPem ¶
ExportPublicKeyInPem exports the public key encoded in pem
func ParseKeyFiles ¶
ParseKeyFiles parses the key pair from publicKey file and privateKey file
func ParseKeyPair ¶
ParseKeyPair constructs keyPair from a public key and private key
func ParsePrivateKey ¶
func ParsePrivateKeyFile ¶
func ParsePublicKey ¶
func ParsePublicKeyFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.