Documentation
¶
Index ¶
- Constants
- func CanonicalRequest(method, target, timestamp, nonce, bodySHA256 string) string
- func CanonicalTarget(target string) (string, error)
- func CanonicalWebhookRequestV2(method, target, timestamp, nonce, messageID, bodySHA256 string) string
- func EncodeQueryComponent(value string) string
- func NewMAC(key []byte) hash.Hash
- func SHA256HexBytes(body []byte) string
- func SignCanonical(signer *Signer, method, target, timestamp, nonce, bodySHA256 string) (string, error)
- func SignHash(mac hash.Hash, canonical string) string
- type Signer
Constants ¶
View Source
const ( HeaderIrisTimestamp = "X-Iris-Timestamp" HeaderIrisNonce = "X-Iris-Nonce" HeaderIrisSignature = "X-Iris-Signature" HeaderIrisBodySHA256 = "X-Iris-Body-Sha256" HeaderIrisMessageID = "X-Iris-Message-Id" HeaderIrisSignatureVersion = "X-Iris-Signature-Version" SignatureVersionV2 = "v2" )
View Source
const EmptyBodySHA256Hex = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
Variables ¶
This section is empty.
Functions ¶
func CanonicalRequest ¶
func CanonicalTarget ¶
func CanonicalWebhookRequestV2 ¶ added in v0.32.0
func EncodeQueryComponent ¶
func SHA256HexBytes ¶
func SignCanonical ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.