Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RingSize is the default size of the anonymity set DefaultRingSize = 16 // SignatureSize is the size of a Ringtail signature in bytes SignatureSize = 32 * DefaultRingSize )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct{}
Factory implements a factory for Ringtail keys
func (*Factory) NewPrivateKey ¶
func (*Factory) NewPrivateKey() (*PrivateKey, error)
NewPrivateKey generates a new private key
func (*Factory) ToPublicKey ¶
func (*Factory) ToPublicKey(privKey *PrivateKey) (*PublicKey, error)
ToPublicKey converts a private key to its corresponding public key
type PrivateKey ¶
PrivateKey represents a Ringtail private key
func (*PrivateKey) PublicKey ¶
func (priv *PrivateKey) PublicKey() *PublicKey
PublicKey returns the public key corresponding to the private key
func (*PrivateKey) Sign ¶
func (priv *PrivateKey) Sign(message []byte, ring []*PublicKey) (*RingSignature, error)
Sign creates a ring signature
Click to show internal directories.
Click to hide internal directories.