Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct { Type string `json:"keytype"` Scheme string `json:"scheme,omitempty"` Algorithms []string `json:"keyid_hash_algorithms,omitempty"` 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 { // IDs returns the TUF key ids IDs() []string // ContainsID returns if the signer contains the key id ContainsID(id string) bool // Type returns the TUF key type Type() string // Scheme returns the TUF key scheme Scheme() 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.