Versions in this module Expand all Collapse all v0 v0.2.0 Apr 1, 2024 Changes in this version + const SuiteECDSA + const Uint160Size + const Uint256Size + func Generate(r io.Reader) (dbft.PrivateKey, dbft.PublicKey) + func GenerateWith(t suiteType, r io.Reader) (dbft.PrivateKey, dbft.PublicKey) + func NewECDSAPrivateKey(key *ecdsa.PrivateKey) dbft.PrivateKey + func NewECDSAPublicKey(pub *ecdsa.PublicKey) dbft.PublicKey + type ECDSAPriv struct + func (e ECDSAPriv) Sign(msg []byte) ([]byte, error) + type ECDSAPub struct + func (e *ECDSAPub) UnmarshalBinary(data []byte) error + func (e ECDSAPub) MarshalBinary() ([]byte, error) + func (e ECDSAPub) Verify(msg, sig []byte) error + type Uint160 [Uint160Size]byte + func Hash160(data []byte) Uint160 + func (h Uint160) String() string + type Uint256 [Uint256Size]byte + func Hash256(data []byte) Uint256 + func (h Uint256) String() string