2024-01-30 11:26:41 +00:00
|
|
|
package ap
|
|
|
|
|
|
|
|
import "net/url"
|
|
|
|
|
2024-01-31 16:56:07 +00:00
|
|
|
// The public key associated with an account
|
2024-01-30 11:26:41 +00:00
|
|
|
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-----
|
|
|
|
|
|
|
|
"""
|
|
|
|
*/
|