A Schnorr Signature on the hash of metadata attesting that the signer knows the randomness v necessary to open a public coin C (which is a pedersen commitment g^S h^v mod p) with given serial number S.
More...
#include <CoinRandomnessSchnorrSignature.h>
A Schnorr Signature on the hash of metadata attesting that the signer knows the randomness v necessary to open a public coin C (which is a pedersen commitment g^S h^v mod p) with given serial number S.
Definition at line 19 of file CoinRandomnessSchnorrSignature.h.
◆ CoinRandomnessSchnorrSignature() [1/3]
| libzerocoin::CoinRandomnessSchnorrSignature::CoinRandomnessSchnorrSignature |
( |
| ) |
|
|
inline |
◆ CoinRandomnessSchnorrSignature() [2/3]
template<typename Stream >
| libzerocoin::CoinRandomnessSchnorrSignature::CoinRandomnessSchnorrSignature |
( |
Stream & |
strm | ) |
|
|
inlineexplicit |
◆ CoinRandomnessSchnorrSignature() [3/3]
| libzerocoin::CoinRandomnessSchnorrSignature::CoinRandomnessSchnorrSignature |
( |
const ZerocoinParams * |
zcparams, |
|
|
const CBigNum |
randomness, |
|
|
const uint256 |
msghash |
|
) |
| |
Creates a Schnorr signature object using the randomness of a public coin as private key sk.
- Parameters
-
| zcparams | zerocoin params (group modulus, order and generators) |
| randomness | the coin we are going to use for the signature (sk := randomness, pk := h^sk mod p). |
| msghash | hash of meta data to create a signature on. |
Definition at line 9 of file CoinRandomnessSchnorrSignature.cpp.
◆ SERIALIZE_METHODS()
◆ Verify()
Verifies the Schnorr signature on message msghash with public key pk = Cg^-S mod p.
- Parameters
-
| zcparams | zerocoin params (group modulus, order and generators) |
| S | serial number of the coin used for the signature |
| C | value of the public coin (commitment to serial S and randomness v) used for the signature. |
| msghash | hash of meta data to verify the signature on. |
- Returns
Definition at line 36 of file CoinRandomnessSchnorrSignature.cpp.
◆ alpha
| CBigNum libzerocoin::CoinRandomnessSchnorrSignature::alpha |
|
private |
◆ beta
| CBigNum libzerocoin::CoinRandomnessSchnorrSignature::beta |
|
private |
The documentation for this class was generated from the following files: