Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyMessage is returned when trying to sign an empty message. ErrEmptyMessage = errors.New("you should provide a message to sign") // ErrInvalidSignerIndex is returned when an invalid signer index is provided to Sign. ErrInvalidSignerIndex = errors.New("the index of the signer should be in the ring") // ErrRingTooSmall is returned when the ring contains less than two participants. ErrRingTooSmall = errors.New("the ring is too small: you need at least two participants") )
Functions ¶
func ConfigDecodeKey ¶
ConfigDecodeKey decodes a key from its friendly string format.
func ConfigEncodeKey ¶
ConfigEncodeKey encodes a key to a friendly string format that can be stored in configuration files.
func Generate ¶
func Generate(rand io.Reader) (PublicKey, PrivateKey)
Generate generates a new public-private key pair. If no random generator is provided, Generate will use go's default cryptographic random generator. The private key should be safely stored. The public key can be shared with anyone.
Types ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
Signature is the struct representing a ring signature.
Click to show internal directories.
Click to hide internal directories.