MCPcopy Create free account
hub / github.com/koding/kite / KeyPair

Struct KeyPair

kontrol/keypair.go:12–21  ·  view source on GitHub ↗

KeyPair defines a single key pair entity

Source from the content-addressed store, hash-verified

10
11// KeyPair defines a single key pair entity
12type KeyPair struct {
13 // ID is the unique id defining the key pair
14 ID string
15
16 // Public key is used to validate tokens
17 Public string
18
19 // Private key is used to sign/generate tokens
20 Private string
21}
22
23func (k *KeyPair) Validate() error {
24 if k.ID == "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected