Documentation ¶
Index ¶
- func Sign(input string, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func SignBytes(input []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func SignedGet(endpoint string, privateKey *ecdsa.PrivateKey, selfHost string) (*http.Request, error)
- func SignedPost(endpoint string, contentType string, r io.Reader, privateKey *ecdsa.PrivateKey, ...) *http.Request
- type ListenTSSignature
- type RecoveredSignature
- type SignatureData
- type SignatureEnvelope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
func Sign(input string, privateKey *ecdsa.PrivateKey) ([]byte, error)
From https://github.com/AudiusProject/sig/blob/main/go/index.go
Types ¶
type ListenTSSignature ¶
func GenerateListenTimestampAndSignature ¶
func GenerateListenTimestampAndSignature(privateKey *ecdsa.PrivateKey) (*ListenTSSignature, error)
type RecoveredSignature ¶
type RecoveredSignature struct { DataHash common.Hash Data SignatureData SignerWallet string }
func ParseFromQueryString ¶
func ParseFromQueryString(queryStringValue string) (*RecoveredSignature, error)
func (*RecoveredSignature) String ¶
func (r *RecoveredSignature) String() string
type SignatureData ¶
type SignatureEnvelope ¶
Click to show internal directories.
Click to hide internal directories.