Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateHTTPRequestHash ¶
GenerateHTTPRequestHash retrieves a sha256 from the following message: request method + request url + timestamp + request body
func GenerateMessageHash ¶
GenerateMessageHash retrieves a sha256 from the following message: timestamp + message
func ReadRequestBody ¶
ReadRequestBody reads the request content into a byte array
func SignMessage ¶
func SignMessage(msg []byte, privKey *ecdsa.PrivateKey) ([]byte, error)
SignMessage sign msg using privKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.