Documentation ¶
Index ¶
Constants ¶
const PrivateKeySize = ed25519.PrivateKeySize
PrivateKeySize size of the private key in bytes.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EDVerifier ¶
type EDVerifier struct{}
EDVerifier is a verifier for ED purposes.
type EdSigner ¶
type EdSigner struct {
// contains filtered or unexported fields
}
EdSigner represents an ED25519 signer.
func NewEdSignerFromBuffer ¶
NewEdSignerFromBuffer builds a signer from a private key as byte buffer.
func NewEdSignerFromRand ¶
NewEdSignerFromRand generate signer using predictable randomness source.
func (*EdSigner) LittleEndian ¶
LittleEndian indicates whether byte order in a signature is little-endian.
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey is the type describing a public key.
func NewPublicKey ¶
NewPublicKey constructs a new public key instance from a byte array.
func (*PublicKey) Field ¶ added in v0.1.15
Field returns a log field. Implements the LoggableField interface.
func (*PublicKey) ShortString ¶
ShortString returns a representative sub string.
type VRFSigner ¶ added in v0.1.34
type VRFSigner struct {
// contains filtered or unexported fields
}
VRFSigner is a signer for VRF purposes.
func (VRFSigner) LittleEndian ¶ added in v1.0.0
LittleEndian indicates whether byte order in a signature is little-endian.
type VRFVerifier ¶ added in v1.0.0
type VRFVerifier struct{}
VRFVerifier is a verifier for VRF purposes.