Documentation
¶
Index ¶
- type Key
- func (k Key) Decrypt(ciphertext []byte) (plaintext []byte, err error)
- func (k Key) Encrypt(plaintext []byte) ([]byte, error)
- func (k Key) ID() string
- func (k Key) PublicKey() [curve25519.PointSize]byte
- func (k Key) PublicKeyString() string
- func (k Key) Raw() internal.Raw
- func (k Key) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func MustNewXXXTestingOnly ¶
func (Key) PublicKeyString ¶
func (Key) ToEncryptedJSON ¶
func (k Key) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
Click to show internal directories.
Click to hide internal directories.