Documentation ¶
Index ¶
- func ArmorInfoBytes(bz []byte) string
- func ArmorPrivateKey(privKey crypto.PrivKey) string
- func ArmorPubKeyBytes(bz []byte) string
- func EncryptArmorPrivKey(privKey crypto.PrivKey, passphrase string) string
- func UnarmorDecryptPrivKey(armorStr string, passphrase string) (crypto.PrivKey, error)
- func UnarmorInfoBytes(armorStr string) (bz []byte, err error)
- func UnarmorPrivateKey(armorStr string) (crypto.PrivKey, error)
- func UnarmorPubKeyBytes(armorStr string) (bz []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArmorPrivateKey ¶
ArmorPrivateKey generates unencrypted armor for the given private key
func EncryptArmorPrivKey ¶
Encrypt and armor the private key.
func UnarmorDecryptPrivKey ¶
Unarmor and decrypt the private key.
func UnarmorInfoBytes ¶
Unarmor the InfoBytes
func UnarmorPrivateKey ¶
UnarmorPrivateKey extracts the private key from the raw unencrypted armor
func UnarmorPubKeyBytes ¶
Unarmor the PubKeyBytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.