Documentation
¶
Index ¶
- type PrivateKey
- func (k *PrivateKey) Bytes() []byte
- func (k *PrivateKey) FromBytes(bts []byte) error
- func (k *PrivateKey) MarshalJSON() ([]byte, error)
- func (k *PrivateKey) PublicKey() *PublicKey
- func (k *PrivateKey) Sign(msg []byte) *Signature
- func (k *PrivateKey) String() string
- func (k *PrivateKey) UnmarshalJSON(b []byte) error
- type PublicKey
- type Signature
- func (s *Signature) Bytes() []byte
- func (s *Signature) FromBytes(bts []byte) error
- func (s *Signature) MarshalBinary() (data []byte, err error)
- func (s *Signature) MarshalJSON() ([]byte, error)
- func (s *Signature) String() string
- func (s *Signature) UnmarshalBinary(data []byte) error
- func (s *Signature) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
For minimal-signature-size operations
func GenerateKey ¶
func GenerateKey() *PrivateKey
func (*PrivateKey) Bytes ¶
func (k *PrivateKey) Bytes() []byte
func (*PrivateKey) FromBytes ¶
func (k *PrivateKey) FromBytes(bts []byte) error
func (*PrivateKey) MarshalJSON ¶
func (k *PrivateKey) MarshalJSON() ([]byte, error)
func (*PrivateKey) PublicKey ¶
func (k *PrivateKey) PublicKey() *PublicKey
func (*PrivateKey) Sign ¶
func (k *PrivateKey) Sign(msg []byte) *Signature
func (*PrivateKey) String ¶
func (k *PrivateKey) String() string
func (*PrivateKey) UnmarshalJSON ¶
func (k *PrivateKey) UnmarshalJSON(b []byte) error
type PublicKey ¶
func AggregatePublicKeys ¶
func (*PublicKey) MarshalJSON ¶
func (*PublicKey) UnmarshalJSON ¶
type Signature ¶
func AggregateSignatures ¶
func (*Signature) MarshalBinary ¶ added in v0.0.2
func (*Signature) MarshalJSON ¶
func (*Signature) UnmarshalBinary ¶ added in v0.0.2
func (*Signature) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.