Documentation ¶
Index ¶
- func Sign(input string, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func SignBytes(input []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func SignCoreBytes(input proto.Message, privateKey *ecdsa.PrivateKey) (string, 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, error)
- 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
func SignCoreBytes ¶
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.