![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
A Signature of knowledge on the hash of metadata attesting that the signer knows the values necessary to open a commitment which contains a coin(which it self is of course a commitment) with a given serial number. More...
#include <SerialNumberSignatureOfKnowledge.h>
Public Member Functions | |
SerialNumberSignatureOfKnowledge (const Params *p) | |
SerialNumberSignatureOfKnowledge (const Params *p, const PrivateCoin &coin, const Commitment &commitmentToCoin, uint256 msghash) | |
Creates a Signature of knowledge object that a commitment to a coin contains a coin with serial number x. More... | |
bool | Verify (const Bignum &coinSerialNumber, const Bignum &valueOfCommitmentToCoin, const uint256 msghash) const |
Verifies the Signature of knowledge. More... | |
Bignum | challengeCalculation (const Bignum &a_exp, const Bignum &b_exp, const Bignum &h_exp, const Bignum &a, const Bignum &b) const |
Public Attributes | |
IMPLEMENT_SERIALIZE(READWRITE(s_notprime);READWRITE(sprime);READWRITE(hash);) private uint256 | hash |
vector< Bignum > | s_notprime |
vector< Bignum > | sprime |
A Signature of knowledge on the hash of metadata attesting that the signer knows the values necessary to open a commitment which contains a coin(which it self is of course a commitment) with a given serial number.
Definition at line 34 of file SerialNumberSignatureOfKnowledge.h.
libzerocoin::SerialNumberSignatureOfKnowledge::SerialNumberSignatureOfKnowledge | ( | const Params * | p | ) |
Definition at line 17 of file SerialNumberSignatureOfKnowledge.cpp.
libzerocoin::SerialNumberSignatureOfKnowledge::SerialNumberSignatureOfKnowledge | ( | const Params * | p, |
const PrivateCoin & | coin, | ||
const Commitment & | commitmentToCoin, | ||
uint256 | msghash | ||
) |
Creates a Signature of knowledge object that a commitment to a coin contains a coin with serial number x.
p | params |
coin | the coin we are going to prove the serial number of. |
commitmentToCoin | the commitment to the coin |
msghash | hash of meta data to create a signature of knowledge on. |
Definition at line 19 of file SerialNumberSignatureOfKnowledge.cpp.
|
inline |
Definition at line 92 of file SerialNumberSignatureOfKnowledge.cpp.
bool libzerocoin::SerialNumberSignatureOfKnowledge::Verify | ( | const Bignum & | coinSerialNumber, |
const Bignum & | valueOfCommitmentToCoin, | ||
const uint256 | msghash | ||
) | const |
Verifies the Signature of knowledge.
msghash | hash of meta data to create a signature of knowledge on. |
Definition at line 104 of file SerialNumberSignatureOfKnowledge.cpp.
IMPLEMENT_SERIALIZE ( READWRITE(s_notprime); READWRITE(sprime); READWRITE(hash); ) private uint256 libzerocoin::SerialNumberSignatureOfKnowledge::hash |
Definition at line 54 of file SerialNumberSignatureOfKnowledge.h.
vector<Bignum> libzerocoin::SerialNumberSignatureOfKnowledge::s_notprime |
Definition at line 68 of file SerialNumberSignatureOfKnowledge.h.
vector<Bignum> libzerocoin::SerialNumberSignatureOfKnowledge::sprime |
Definition at line 69 of file SerialNumberSignatureOfKnowledge.h.