Documentation
¶
Index ¶
- Constants
- func SignRequest(req *http.Request, sharedKey []byte, body []byte, now time.Time)
- func VerifyRequest(r *http.Request, sharedKey []byte, maxSkew time.Duration) ([]byte, bool, error)
- func VerifyRequestWithReplay(r *http.Request, sharedKey []byte, maxSkew time.Duration, replay *ReplayCache) ([]byte, bool, error)
- type Client
- type ReplayCache
Constants ¶
View Source
const ( HeaderTimestamp = "X-Ironhand-MPC-Timestamp" HeaderNonce = "X-Ironhand-MPC-Nonce" HeaderBodyHash = "X-Ironhand-MPC-Body-SHA256" HeaderSignature = "X-Ironhand-MPC-Signature" )
Variables ¶
This section is empty.
Functions ¶
func SignRequest ¶
func VerifyRequest ¶
Types ¶
type ReplayCache ¶
type ReplayCache struct {
// contains filtered or unexported fields
}
func NewReplayCache ¶
func NewReplayCache(maxSkew time.Duration) *ReplayCache
Click to show internal directories.
Click to hide internal directories.