Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedCSAKeyExport ¶ added in v1.10.17
type EncryptedCSAKeyExport struct { KeyType string `json:"keyType"` PublicKey string `json:"publicKey"` Crypto keystore.CryptoJSON `json:"crypto"` }
type Key ¶
type Key struct { ID uint PublicKey crypto.PublicKey EncryptedPrivateKey crypto.EncryptedPrivateKey CreatedAt time.Time UpdatedAt time.Time // contains filtered or unexported fields }
func New ¶
func New(passphrase string, scryptParams utils.ScryptParams) (*Key, error)
New creates a new CSA key consisting of an ed25519 key. It encrypts the Key with the passphrase.
func (*Key) Unsafe_GetPrivateKey ¶
type KeyV2 ¶ added in v1.10.17
type KeyV2 struct { PublicKey ed25519.PublicKey Version int // contains filtered or unexported fields }
func FromEncryptedJSON ¶ added in v1.10.17
func MustNewV2XXXTestingOnly ¶ added in v1.10.17
func (KeyV2) PublicKeyString ¶ added in v1.10.17
func (KeyV2) ToEncryptedJSON ¶ added in v1.10.17
Click to show internal directories.
Click to hide internal directories.