Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedPrivateKey ¶
type EncryptedPrivateKey struct {
keystore.CryptoJSON
}
func NewEncryptedPrivateKey ¶
func NewEncryptedPrivateKey(data []byte, passphrase string, scryptParams utils.ScryptParams) (*EncryptedPrivateKey, error)
func (EncryptedPrivateKey) Decrypt ¶
func (k EncryptedPrivateKey) Decrypt(passphrase string) (privkey []byte, err error)
Decrypt returns the PrivateKey decrypted via auth, or an error
func (*EncryptedPrivateKey) Scan ¶
func (k *EncryptedPrivateKey) Scan(value interface{}) error
type PublicKey ¶
type PublicKey []byte
PublicKey defines a type which can be used for JSON and SQL.
func PublicKeyFromHex ¶
PublicKeyFromHex generates a public key from a hex string
func (PublicKey) MarshalJSON ¶
func (*PublicKey) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.