pub struct BlindKeypair { /* fields omitted */ }
An elliptic curve cryptography keypair. The private key (Xs) is used by the
signer for creating the blind signature on the blinded hash(msg||R), and the
public key (Qs) is usable by anyone for verifying the authenticity of the
unblinded signature on the unblinded hash(msg||R).
Generates an ECC keypair for use with the blind signature protocol.
The private key is a random scalar, and the public key is an elliptic
curve point equal to this scalar multiplied by the Ristretto generator
point. This is based on the wikipedia description of ECDSA key
generation seeing as the whitepaper doesn't specify key generation.
-
Ok(BlindKeypair) on success.
-
Err(::Error) on error, which can only be the failure to initiate the
internal RNG.
- Xs = a randomly generated scalar
- Qs = Xs * P
- P = The ECC generator point
Creates a new BlindKeypair object from the provided private and public
key components (in wired form).
-
Ok(BlindKeypair) on success.
-
Err(::Error) on failure, which can indicate either that the private
or public key inputs were malformed.
Returns the private key in Scalar form
Returns the public key in RistrettoPoint form
Returns the public key in wired form
Returns the private key in wired form
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more