Struct blindsign::keypair::BlindKeypair[][src]

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).

Methods

impl BlindKeypair
[src]

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.

Returns

  • Ok(BlindKeypair) on success.

  • Err(::Error) on error, which can only be the failure to initiate the internal RNG.

Mathematics

  • 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).

Returns

  • 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

Trait Implementations

impl Copy for BlindKeypair
[src]

impl Clone for BlindKeypair
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for BlindKeypair
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations