Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct { Type string `json:"keytype"` Value PrivateKeyValue `json:"keyval"` }
func GenerateEd25519Key ¶
func GenerateEd25519Key() (*PrivateKey, error)
func (*PrivateKey) PublicData ¶
func (k *PrivateKey) PublicData() *data.Key
func (*PrivateKey) Signer ¶
func (k *PrivateKey) Signer() Signer
type PrivateKeyValue ¶
type Signer ¶
type Signer interface { // ID returns the TUF key id ID() string // Type returns the TUF key type Type() string // Signer is used to sign messages and provides access to the public key. // The signer is expected to do its own hashing, so the full message will be // provided as the message to Sign with a zero opts.HashFunc(). crypto.Signer }
Click to show internal directories.
Click to hide internal directories.