Documentation ¶
Index ¶
- type Key
- type KeyV2
- func (k KeyV2) GoString() string
- func (k KeyV2) ID() string
- func (k KeyV2) PublicKeyString() string
- func (k KeyV2) Raw() Raw
- func (k KeyV2) StaticSizedPublicKey() (sspk credentials.StaticSizedPublicKey)
- func (k KeyV2) String() string
- func (k KeyV2) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
- type Raw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
type KeyV2 struct { PublicKey ed25519.PublicKey Version int // contains filtered or unexported fields }
func MustNewV2XXXTestingOnly ¶
func (KeyV2) PublicKeyString ¶
func (KeyV2) StaticSizedPublicKey ¶
func (k KeyV2) StaticSizedPublicKey() (sspk credentials.StaticSizedPublicKey)
func (KeyV2) ToEncryptedJSON ¶
Click to show internal directories.
Click to hide internal directories.