22 lines
386 B
Go
22 lines
386 B
Go
|
package ap
|
||
|
|
||
|
import "net/url"
|
||
|
|
||
|
type PublicKey struct {
|
||
|
ID url.URL `json:"id"` // ID of the key
|
||
|
Owner url.URL `json:"owner"` // Who this key belongs to
|
||
|
Content string `json:"publicKeyPem"` // Actual content of the key, example below
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
|
||
|
Example for a public key
|
||
|
|
||
|
"""
|
||
|
-----BEGIN PUBLIC KEY-----
|
||
|
Big blob of random characters
|
||
|
-----END PUBLIC KEY-----
|
||
|
|
||
|
"""
|
||
|
*/
|