Versions in this module Expand all Collapse all v1 v1.0.4 Jan 22, 2019 Changes in this version + func GetHash(scheme SignatureScheme) hash.Hash + func Serialize(sig *Signature) ([]byte, error) + func Verify(pub crypto.PublicKey, msg []byte, sig *Signature) bool + type DSASignature struct + Curve elliptic.Curve + R *big.Int + S *big.Int + type SM2Signature struct + ID string + type Signature struct + Scheme SignatureScheme + Value interface{} + func Deserialize(buf []byte) (*Signature, error) + func Sign(scheme SignatureScheme, pri crypto.PrivateKey, msg []byte, opt interface{}) (sig *Signature, err error) + type SignatureScheme byte + const RIPEMD160withECDSA + const SHA224withECDSA + const SHA256withECDSA + const SHA384withECDSA + const SHA3_224withECDSA + const SHA3_256withECDSA + const SHA3_384withECDSA + const SHA3_512withECDSA + const SHA512withECDSA + const SHA512withEDDSA + const SM3withSM2 + func GetScheme(name string) (SignatureScheme, error) + func (s SignatureScheme) Name() string