Versions in this module Expand all Collapse all v0 v0.1.0 Jul 19, 2018 Changes in this version + const BSTypeBliss + const BlissPrivKeyLen + const BlissPubKeyLen + const BlissVersion + var Bliss = newBlissDSA() + func SignCompact(key hxcrypto.PrivateKey, hash []byte) ([]byte, error) + func VerifyCompact(key hxcrypto.PublicKey, messageHash, sign []byte) (bool, error) + type DSA interface + GenerateKey func(rand io.Reader) (dcrcrypto.PrivateKey, dcrcrypto.PublicKey, error) + NewPrivateKey func(s1, s2, a *poly.PolyArray) dcrcrypto.PrivateKey + NewPublicKey func(a *poly.PolyArray) dcrcrypto.PublicKey + NewSignature func(z1, z2 *poly.PolyArray, c []uint32) dcrcrypto.Signature + ParseDERSignature func(sigStr []byte) (dcrcrypto.Signature, error) + ParsePubKey func(pubKeyStr []byte) (dcrcrypto.PublicKey, error) + ParseSignature func(sigStr []byte) (dcrcrypto.Signature, error) + PrivKeyBytesLen func() int + PrivKeyFromBytes func(pk []byte) (dcrcrypto.PrivateKey, dcrcrypto.PublicKey) + PubKeyBytesLen func() int + RecoverCompact func(signature, hash []byte) (dcrcrypto.PublicKey, bool, error) + Sign func(priv dcrcrypto.PrivateKey, hash []byte) (dcrcrypto.Signature, error) + Verify func(pub dcrcrypto.PublicKey, hash []byte, sig dcrcrypto.Signature) bool + type PrivateKey struct + func (p PrivateKey) GetType() int + func (p PrivateKey) PublicKey() dcrcrypto.PublicKey + func (p PrivateKey) Serialize() []byte + type PublicKey struct + func (p PublicKey) GetType() int + func (p PublicKey) Serialize() []byte + func (p PublicKey) SerializeCompressed() []byte + func (p PublicKey) SerializeUnCompressed() []byte + type Signature struct + func (s Signature) GetType() int + func (s Signature) Serialize() []byte