Rename JSDescription's serials to nullifiers.
This commit is contained in:
@@ -29,7 +29,7 @@ JSDescription::JSDescription(ZCJoinSplit& params,
|
||||
pubKeyHash,
|
||||
randomSeed,
|
||||
macs,
|
||||
serials,
|
||||
nullifiers,
|
||||
commitments,
|
||||
vpub_old,
|
||||
vpub_new,
|
||||
@@ -46,7 +46,7 @@ bool JSDescription::Verify(
|
||||
pubKeyHash,
|
||||
randomSeed,
|
||||
macs,
|
||||
serials,
|
||||
nullifiers,
|
||||
commitments,
|
||||
vpub_old,
|
||||
vpub_new,
|
||||
@@ -56,7 +56,7 @@ bool JSDescription::Verify(
|
||||
|
||||
uint256 JSDescription::h_sig(ZCJoinSplit& params, const uint256& pubKeyHash) const
|
||||
{
|
||||
return params.h_sig(randomSeed, serials, pubKeyHash);
|
||||
return params.h_sig(randomSeed, nullifiers, pubKeyHash);
|
||||
}
|
||||
|
||||
std::string COutPoint::ToString() const
|
||||
|
||||
@@ -31,11 +31,11 @@ public:
|
||||
// transaction.
|
||||
uint256 anchor;
|
||||
|
||||
// Serials are used to prevent double-spends. They
|
||||
// Nullifiers are used to prevent double-spends. They
|
||||
// are derived from the secrets placed in the bucket
|
||||
// and the secret spend-authority key known by the
|
||||
// spender.
|
||||
boost::array<uint256, ZC_NUM_JS_INPUTS> serials;
|
||||
boost::array<uint256, ZC_NUM_JS_INPUTS> nullifiers;
|
||||
|
||||
// Bucket commitments are introduced into the commitment
|
||||
// tree, blinding the public about the values and
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
READWRITE(vpub_old);
|
||||
READWRITE(vpub_new);
|
||||
READWRITE(anchor);
|
||||
READWRITE(serials);
|
||||
READWRITE(nullifiers);
|
||||
READWRITE(commitments);
|
||||
READWRITE(ephemeralKey);
|
||||
READWRITE(ciphertexts);
|
||||
@@ -104,7 +104,7 @@ public:
|
||||
a.vpub_old == b.vpub_old &&
|
||||
a.vpub_new == b.vpub_new &&
|
||||
a.anchor == b.anchor &&
|
||||
a.serials == b.serials &&
|
||||
a.nullifiers == b.nullifiers &&
|
||||
a.commitments == b.commitments &&
|
||||
a.ephemeralKey == b.ephemeralKey &&
|
||||
a.ciphertexts == b.ciphertexts &&
|
||||
|
||||
Reference in New Issue
Block a user