Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicKey ¶
type PublicKey interface { Point() kyber.Point Equals(pubKey PublicKey) bool Bytes() ([]byte, error) }
PublicKey represents the public key
type PublicKeyAdapter ¶
PublicKeyAdapter represents a publicKey adapter
func NewPublicKeyAdapter ¶
func NewPublicKeyAdapter() PublicKeyAdapter
NewPublicKeyAdapter creates a new public key adapter
type Signature ¶
type Signature interface { PublicKey(msg []byte) (PublicKey, error) Verify() bool Bytes() ([]byte, error) }
Signature represents a signature
type SignatureAdapter ¶
SignatureAdapter represents a signature adapter
func NewSignatureAdapter ¶
func NewSignatureAdapter() SignatureAdapter
NewSignatureAdapter creates a new signature adapter
type Signer ¶
type Signer interface { PublicKey() PublicKey Sign(msg []byte) (Signature, error) Vote(msg []byte, ring []PublicKey) (Vote, error) Bytes() ([]byte, error) }
Signer represents a signer
Click to show internal directories.
Click to hide internal directories.