Browse Source

Reorder fields of CPourTx to reflect the spec.

pull/4/head
Sean Bowe 8 years ago
parent
commit
3ebca007f3
  1. 10
      src/primitives/transaction.h

10
src/primitives/transaction.h

@ -44,15 +44,15 @@ public:
// to spend it.
boost::array<uint256, ZC_NUM_JS_OUTPUTS> commitments;
// Ephemeral key
uint256 ephemeralKey;
// Ciphertexts
// These contain trapdoors, values and other information
// that the recipient needs, including a memo field. It
// is encrypted using the scheme implemented in crypto/NoteEncryption.cpp
boost::array<ZCNoteEncryption::Ciphertext, ZC_NUM_JS_OUTPUTS> ciphertexts;
// Ephemeral key
uint256 ephemeralKey;
// Random seed
uint256 randomSeed;
@ -91,8 +91,8 @@ public:
READWRITE(anchor);
READWRITE(serials);
READWRITE(commitments);
READWRITE(ciphertexts);
READWRITE(ephemeralKey);
READWRITE(ciphertexts);
READWRITE(randomSeed);
READWRITE(macs);
READWRITE(proof);
@ -106,8 +106,8 @@ public:
a.anchor == b.anchor &&
a.serials == b.serials &&
a.commitments == b.commitments &&
a.ciphertexts == b.ciphertexts &&
a.ephemeralKey == b.ephemeralKey &&
a.ciphertexts == b.ciphertexts &&
a.randomSeed == b.randomSeed &&
a.macs == b.macs &&
a.proof == b.proof

Loading…
Cancel
Save