Documentation ¶
Index ¶
- func GetHashData(data SignableData) []byte
- func GetHashForSigning(data SignableData) []byte
- func Sign(data SignableData, prikey []byte) ([]byte, error)
- func SignBySigner(data SignableData, signer Signer) ([]byte, error)
- func VerifySignableData(signableData SignableData) error
- func VerifySignature(signableData SignableData, pubKey, signature []byte) (bool, error)
- type SignableData
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHashData ¶
func GetHashData(data SignableData) []byte
func GetHashForSigning ¶
func GetHashForSigning(data SignableData) []byte
func SignBySigner ¶
func SignBySigner(data SignableData, signer Signer) ([]byte, error)
func VerifySignableData ¶
func VerifySignableData(signableData SignableData) error
func VerifySignature ¶
func VerifySignature(signableData SignableData, pubKey, signature []byte) (bool, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.