Documentation ¶
Index ¶
- func ToKeystore(k *Key, password string) ([]byte, error)
- type Key
- type PublicKey
- type SecretKey
- type Signature
- func (s *Signature) Deserialize(buf []byte) error
- func (s *Signature) HashTreeRootWith(hh *ssz.Hasher) error
- func (s *Signature) MarshalSSZTo(dst []byte) ([]byte, error)
- func (s *Signature) Serialize() []byte
- func (s *Signature) SizeSSZ() int
- func (s *Signature) UnmarshalSSZ(buf []byte) error
- func (s *Signature) VerifyByte(pub *PublicKey, msg []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Key ¶
Key is a reference to a key in the keymanager
func NewKeyFromPriv ¶
func NewRandomKey ¶
func NewRandomKey() *Key
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey is a Bls public key
func (*PublicKey) Deserialize ¶
func (*PublicKey) HashTreeRootWith ¶
HashTreeRootWith implements the fastssz.HashRoot interface
func (*PublicKey) MarshalSSZTo ¶
MarshalSSZTo implements the fastssz.MarshalSSZTo interface
func (*PublicKey) UnmarshalSSZ ¶
UnmarshalSSZ implements the fastssz.Unmarshaler interface
type SecretKey ¶
type SecretKey struct {
// contains filtered or unexported fields
}
SecretKey is a Bls secret key
func (*SecretKey) GetPublicKey ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
Signature is a Bls signature
func (*Signature) Deserialize ¶
func (*Signature) HashTreeRootWith ¶
HashTreeRootWith implements the fastssz.HashRoot interface
func (*Signature) MarshalSSZTo ¶
MarshalSSZTo implements the fastssz.MarshalSSZTo interface
func (*Signature) UnmarshalSSZ ¶
UnmarshalSSZ implements the fastssz.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.