Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
libzerocoin::SerialNumberSignatureOfKnowledge Class Reference

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>

Collaboration diagram for libzerocoin::SerialNumberSignatureOfKnowledge:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Parameters
pparams
cointhe coin we are going to prove the serial number of.
commitmentToCointhe commitment to the coin
msghashhash of meta data to create a signature of knowledge on.

Definition at line 19 of file SerialNumberSignatureOfKnowledge.cpp.

Here is the call graph for this function:

Member Function Documentation

Bignum libzerocoin::SerialNumberSignatureOfKnowledge::challengeCalculation ( const Bignum &  a_exp,
const Bignum &  b_exp,
const Bignum &  h_exp,
const Bignum &  a,
const Bignum &  b 
) const
inline

Definition at line 92 of file SerialNumberSignatureOfKnowledge.cpp.

Here is the caller graph for this function:

bool libzerocoin::SerialNumberSignatureOfKnowledge::Verify ( const Bignum &  coinSerialNumber,
const Bignum &  valueOfCommitmentToCoin,
const uint256  msghash 
) const

Verifies the Signature of knowledge.

Parameters
msghashhash of meta data to create a signature of knowledge on.
Returns

Definition at line 104 of file SerialNumberSignatureOfKnowledge.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

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.


The documentation for this class was generated from the following files: