Documentation
¶
Index ¶
Constants ¶
View Source
const SM2PrivateKeySize = 32
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignatureData ¶
SignatureData represents a signature consisting of the components v, r, and s.
func ParseSignatureData ¶
func ParseSignatureData(data []byte) (*SignatureData, error)
ParseSignatureData parses a signature from the provided bytes.
func (*SignatureData) IsCanonical ¶
func (sig *SignatureData) IsCanonical() bool
IsCanonical checks if the signature is canonical.
func (*SignatureData) ToBytes ¶
func (sig *SignatureData) ToBytes() []byte
ToBytes converts the signature to bytes.
Click to show internal directories.
Click to hide internal directories.