linstrom/ap/public_key.go
2024-01-30 11:26:41 +00:00

21 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-----
"""
*/