Documentation ¶
Index ¶
- Constants
- Variables
- type PrivKey
- func (sk PrivKey) Bytes() []byte
- func (sk PrivKey) Equals(key crypto.PrivKey) bool
- func (sk PrivKey) Identity() crypto.PrivKey
- func (sk PrivKey) PubKey() crypto.PubKey
- func (sk PrivKey) Sign(msg []byte) ([]byte, error)
- func (sk PrivKey) Type() string
- func (sk PrivKey) VRFProve(message []byte) (crypto.Proof, error)
- type PubKey
- func (pk PubKey) Address() crypto.Address
- func (pk PubKey) Bytes() []byte
- func (pk PubKey) Equals(key crypto.PubKey) bool
- func (pk *PubKey) Identity() crypto.PubKey
- func (pk PubKey) Type() string
- func (pk PubKey) VRFVerify(proof crypto.Proof, seed []byte) (crypto.Output, error)
- func (pk PubKey) VerifySignature(msg []byte, sig []byte) bool
Constants ¶
Variables ¶
View Source
var MaxSignatureSize = math.MaxInt(ed25519.SignatureSize, bls.SignatureSize)
Functions ¶
This section is empty.
Types ¶
type PrivKey ¶
func GenPrivKey ¶
func GenPrivKey() *PrivKey
func NewPrivKeyComposite ¶
func PrivKeyFromBytes ¶ added in v1.0.2
PrivKeyFromBytes depends on PrivKey.Bytes See PrivKey.Bytes
Click to show internal directories.
Click to hide internal directories.