Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateKeyPair(opt crypto.KeyType) (crypto.PrivateKey, error)
- func IsSign(aggSign *bls.Sign, aggDataSign *bls.Sign, selfKey *bls.PublicKey) bool
- func UnmarshalPrivateKey(data []byte, opt crypto.KeyType) (crypto.PrivateKey, error)
- func Verify(opt crypto.KeyType, sig, digest []byte, from types.Address) (bool, error)
- type PrivateKey
- type PublicKey
- type Sign
Constants ¶
View Source
const BlsEth crypto.KeyType = 9
Variables ¶
View Source
var HashAndMapToSignature = bls.HashAndMapToSignature
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair(opt crypto.KeyType) (crypto.PrivateKey, error)
func UnmarshalPrivateKey ¶
Types ¶
type PrivateKey ¶
func (*PrivateKey) Bytes ¶
func (p *PrivateKey) Bytes() ([]byte, error)
func (*PrivateKey) PublicKey ¶
func (p *PrivateKey) PublicKey() crypto.PublicKey
func (*PrivateKey) Type ¶
func (p *PrivateKey) Type() crypto.KeyType
Click to show internal directories.
Click to hide internal directories.