Documentation ¶
Index ¶
- Constants
- func CalculateSha256ContentHash(ev interface{}) (string, error)
- func DecodeUnpaddedBase64String(val string) ([]byte, error)
- func EncodeCanonicalJson(obj map[string]interface{}) ([]byte, error)
- func EncodeUnpaddedBase64ToString(val []byte) string
- func GetSignatureOfObject(obj interface{}, key ed25519.PrivateKey) (string, error)
- func RedactObject(obj interface{}, algorithm RedactionAlgorithm) (map[string]interface{}, map[string]interface{}, error)
- func SignEvent(obj interface{}, domain string, keyId models.KeyID, key ed25519.PrivateKey) (map[string]interface{}, error)
- func SignObject(obj map[string]interface{}, domain string, keyId models.KeyID, ...) (map[string]interface{}, error)
- func VerifySignatures(obj interface{}, publicKeys map[string]map[string]ed25519.PublicKey) error
- type RedactionAlgorithm
Constants ¶
View Source
const RedactionV1 = RedactionAlgorithm("v1")
Variables ¶
This section is empty.
Functions ¶
func EncodeCanonicalJson ¶
func GetSignatureOfObject ¶
func GetSignatureOfObject(obj interface{}, key ed25519.PrivateKey) (string, error)
func RedactObject ¶
func RedactObject(obj interface{}, algorithm RedactionAlgorithm) (map[string]interface{}, map[string]interface{}, error)
func SignObject ¶
Types ¶
type RedactionAlgorithm ¶
type RedactionAlgorithm string
Click to show internal directories.
Click to hide internal directories.