89 typedef std::vector<key>
keyV;
90 typedef std::vector<keyV>
keyM;
213 A({}),
S({}), T1({}), T2({}), taux({}), mu({}),
a({}),
b({}),
t({}) {}
214 Bulletproof(
const rct::key &V,
const rct::key &A,
const rct::key &
S,
const rct::key &T1,
const rct::key &T2,
const rct::key &taux,
const rct::key &mu,
const rct::keyV &
L,
const rct::keyV &R,
const rct::key &
a,
const rct::key &
b,
const rct::key &t):
215 V({V}), A(A),
S(
S), T1(T1), T2(T2), taux(taux), mu(mu),
L(
L), R(R),
a(
a),
b(
b), t(t) {}
216 Bulletproof(
const rct::keyV &V,
const rct::key &A,
const rct::key &
S,
const rct::key &T1,
const rct::key &T2,
const rct::key &taux,
const rct::key &mu,
const rct::keyV &
L,
const rct::keyV &R,
const rct::key &
a,
const rct::key &
b,
const rct::key &t):
217 V(V), A(A),
S(
S), T1(T1), T2(T2), taux(taux), mu(mu),
L(
L), R(R),
a(
a),
b(
b), t(t) {}
219 bool operator==(
const Bulletproof &other)
const {
return V == other.
V && A == other.
A &&
S == other.
S && T1 == other.
T1 && T2 == other.
T2 && taux == other.
taux && mu == other.
mu &&
L == other.
L && R == other.
R &&
a == other.
a &&
b == other.
b && t == other.
t; }
236 if (
L.empty() ||
L.size() != R.size())
250 V({V}), A(A), A1(A1), B(B), r1(r1), s1(s1), d1(d1),
L(
L), R(R) {}
252 V(V), A(A), A1(A1), B(B), r1(r1), s1(s1), d1(d1),
L(
L), R(R) {}
254 bool operator==(
const BulletproofPlus &other)
const {
return V == other.
V && A == other.
A && A1 == other.
A1 && B == other.
B && r1 == other.
r1 && s1 == other.
s1 && d1 == other.
d1 &&
L == other.
L && R == other.
R; }
268 if (
L.empty() ||
L.size() != R.size())
320 template<
bool W,
template <
bool>
class Archive>
334 ar.
tag(
"pseudoOuts");
337 if (pseudoOuts.size() != inputs)
339 for (
size_t i = 0; i < inputs; ++i)
351 if (ecdhInfo.size() !=
outputs)
353 for (
size_t i = 0; i <
outputs; ++i)
358 if (!
typename Archive<W>::is_saving())
359 memset(ecdhInfo[i].amount.
bytes, 0,
sizeof(ecdhInfo[i].amount.bytes));
378 for (
size_t i = 0; i <
outputs; ++i)
407 template<
bool W,
template <
bool>
class Archive>
410 if (inputs >= 0xffffffff)
414 if (mixin >= 0xffffffff)
422 uint32_t nbp = bulletproofs_plus.size();
429 for (
size_t i = 0; i < nbp; ++i)
431 FIELDS(bulletproofs_plus[i])
451 for (
size_t i = 0; i < nbp; ++i)
466 if (rangeSigs.size() !=
outputs)
468 for (
size_t i = 0; i <
outputs; ++i)
482 if (CLSAGs.size() != inputs)
484 for (
size_t i = 0; i < inputs; ++i)
493 if (CLSAGs[i].
s.size() != mixin + 1)
495 for (
size_t j = 0; j <= mixin; ++j)
498 if (mixin + 1 - j > 1)
525 if (MGs.size() != mg_elements)
527 for (
size_t i = 0; i < mg_elements; ++i)
536 if (MGs[i].ss.size() != mixin + 1)
538 for (
size_t j = 0; j < mixin + 1; ++j)
543 if (MGs[i].ss[j].size() != mg_ss2_elements)
545 for (
size_t k = 0; k < mg_ss2_elements; ++k)
548 if (mg_ss2_elements - k > 1)
553 if (mixin + 1 - j > 1)
563 if (mg_elements - i > 1)
570 ar.
tag(
"pseudoOuts");
573 if (pseudoOuts.size() != inputs)
575 for (
size_t i = 0; i < inputs; ++i)
589 FIELD(bulletproofs_plus)
615 static
const key H = { {0x8b, 0x65, 0x59, 0x70, 0x15, 0x37, 0x99, 0xaf, 0x2a, 0xea, 0xdc, 0x9f, 0xf1, 0xad, 0xd0, 0xea, 0x6c, 0x72, 0x51, 0xd5, 0x41, 0x54, 0xcf, 0xa9, 0x2c, 0x17, 0x3a, 0x0d, 0xd3, 0x9c, 0x1f, 0x94} };
620 static const key64 H2 = {{{0x8b, 0x65, 0x59, 0x70, 0x15, 0x37, 0x99, 0xaf, 0x2a, 0xea, 0xdc, 0x9f, 0xf1, 0xad, 0xd0, 0xea, 0x6c, 0x72, 0x51, 0xd5, 0x41, 0x54, 0xcf, 0xa9, 0x2c, 0x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e9, 0x3e, 0x33}},
660 {{0xd5, 0x0a, 0xc7, 0xbd, 0x5c, 0xa5, 0x93, 0xc6, 0x56, 0x92, 0x8f, 0x38, 0x42, 0x80, 0x17, 0xfc, 0x7b, 0xa5, 0x02, 0x85, 0x4c, 0x43, 0xd8, 0x41, 0x49, 0x50, 0xe9, 0x6e, 0xcb, 0x40, 0x5d, 0xc3}},
661 {{0x07, 0x73, 0xe1, 0x8e, 0xa1, 0xbe, 0x44, 0xfe, 0x1a, 0x97, 0xe2, 0x39, 0x57, 0x3c, 0xfa, 0xe3, 0xe4, 0xe9, 0x5e, 0xf9, 0xaa, 0x9f, 0xaa, 0xbe, 0xac, 0x12, 0x74, 0xd3, 0xad, 0x26, 0x16, 0x04}},
662 {{0xe9, 0xaf, 0x0e, 0x7c, 0xa8, 0x93, 0x30, 0xd2, 0xb8, 0x61, 0x5d, 0x1b, 0x41, 0x37, 0xca, 0x61, 0x7e, 0x21, 0x29, 0x7f, 0x2f, 0x0d, 0xed, 0x8e, 0x31, 0xb7, 0xd2, 0xea, 0xd8, 0x71, 0x46, 0x60}},
663 {{0x7b, 0x12, 0x45, 0x83, 0x09, 0x7f, 0x10, 0x29, 0xa0, 0xc7, 0x41, 0x91, 0xfe, 0x73, 0x78, 0xc9, 0x10, 0x5a, 0xcc, 0x70, 0x66, 0x95, 0xed, 0x14, 0x93, 0xbb, 0x76, 0x03, 0x42, 0x26, 0xa5, 0x7b}},
664 {{0xec, 0x40, 0x05, 0x7b, 0x99, 0x54, 0x76, 0x65, 0x0b, 0x3d, 0xb9, 0x8e, 0x9d, 0xb7, 0x57, 0x38, 0xa8, 0xcd, 0x2f, 0x94, 0xd8, 0x63, 0xb9, 0x06, 0x15, 0x0c, 0x56, 0xaa, 0xc1, 0x9c, 0xaa, 0x6b}},
665 {{0x01, 0xd9, 0xff, 0x72, 0x9e, 0xfd, 0x39, 0xd8, 0x37, 0x84, 0xc0, 0xfe, 0x59, 0xc4, 0xae, 0x81, 0xa6, 0x70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0xa5, 0xe8, 0x95, 0xe5, 0xc5, 0xba, 0x15, 0x3c, 0xbb, 0x62, 0xdd, 0x56, 0x1a, 0x42, 0x7b, 0xad, 0x0f, 0xfd, 0x41, 0x92, 0x31, 0x99}},
683 {{0xf8, 0xfe, 0xf0, 0x5a, 0x3f, 0xa5, 0xc9, 0xf3, 0xeb, 0xa4, 0x16, 0x38, 0xb2, 0x47, 0xb7, 0x11, 0xa9, 0x9f, 0x96, 0x0f, 0xe7, 0x3a, 0xa2, 0xf9, 0x01, 0x36, 0xae, 0xb2, 0x03, 0x29, 0xb8, 0x88}}};
689 void dp(
const char *
a,
int l);
692 void dp(xmr_amount vali);
694 void dp(bits amountb);
695 void dp(
const char * st);
700 void d2h(
key & amounth, xmr_amount val);
701 key d2h(xmr_amount val);
703 void d2b(bits amountb, xmr_amount val);
707 xmr_amount h2d(
const key &
test);
709 void h2b(bits amountb2,
const key &
test);
711 void b2h(
key & amountdh, bits amountb2);
713 xmr_amount b2d(bits amountb);
715 bool is_rct_simple(
int type);
716 bool is_rct_bulletproof(
int type);
717 bool is_rct_bulletproof_plus(
int type);
718 bool is_rct_borromean(
int type);
719 bool is_rct_clsag(
int type);
750 template<>
struct hash<
rct::
key> { std::size_t
operator()(
const rct::key &k)
const {
return reinterpret_cast<const std::size_t&
>(k); } };
#define s(x, c)
Definition: aesb.c:47
std::ostream & operator<<(std::ostream &os, const Student &s)
Definition: archivertest.cpp:30
cryptonote::block b
Definition: block.cpp:40
static uint64_t h
Definition: blockchain_stats.cpp:55
rct::Bulletproof proof
Definition: bulletproof.cpp:41
binary_archive< false > ar
Definition: cold-outputs.cpp:54
std::tuple< uint64_t, uint64_t, std::vector< tools::wallet2::transfer_details > > outputs
Definition: cold-outputs.cpp:53
ge_cached ge_dsmp[8]
Definition: crypto-ops.h:78
int crypto_verify_32(const unsigned char *, const unsigned char *)
Definition: verify.c:3
bool operator!=(expect< T > const &lhs, expect< U > const &rhs) noexcept(noexcept(lhs.equal(rhs)))
Definition: expect.h:423
bool operator==(expect< T > const &lhs, expect< U > const &rhs) noexcept(noexcept(lhs.equal(rhs)))
Definition: expect.h:402
const char * key
Definition: hmac_keccak.cpp:40
#define const
Definition: ipfrdr.c:80
#define L(m0, m1, m2, m3, m4, m5, m6, m7)
Definition: jh.c:116
#define S(s)
Definition: mdb_load.c:52
void * memwipe(void *src, size_t n)
Definition: memwipe.c:107
urllib t
Definition: console.py:33
POD_CLASS hash8
Definition: hash.h:51
POD_CLASS public_key
Definition: crypto.h:64
POD_CLASS key_image
Definition: crypto.h:95
POD_CLASS hash
Definition: hash.h:48
Holds cryptonote related classes and helpers.
Definition: blockchain_db.cpp:45
span< const std::uint8_t > as_byte_span(const T &src) noexcept
Definition: span.h:152
Definition: bulletproofs.cc:64
static const crypto::key_image & rct2ki(const rct::key &k)
Definition: rctTypes.h:727
static const rct::key & hash2rct(const crypto::hash &h)
Definition: rctTypes.h:724
std::vector< key > keyV
Definition: rctTypes.h:89
std::vector< keyV > keyM
Definition: rctTypes.h:90
std::vector< ctkeyV > ctkeyM
Definition: rctTypes.h:102
@ RCTTypeFull
Definition: rctTypes.h:292
@ RCTTypeSimple
Definition: rctTypes.h:293
@ RCTTypeCLSAG
Definition: rctTypes.h:296
@ RCTTypeBulletproof2
Definition: rctTypes.h:295
@ RCTTypeBulletproof
Definition: rctTypes.h:294
@ RCTTypeNull
Definition: rctTypes.h:291
@ RCTTypeBulletproofPlus
Definition: rctTypes.h:297
key key64[64]
Definition: rctTypes.h:145
unsigned int bits[ATOMS]
Definition: rctTypes.h:144
size_t n_bulletproof_plus_max_amounts(const BulletproofPlus &proof)
Definition: rctTypes.cpp:308
std::vector< ctkey > ctkeyV
Definition: rctTypes.h:101
static const crypto::hash & rct2hash(const rct::key &k)
Definition: rctTypes.h:728
static const rct::key & ki2rct(const crypto::key_image &ki)
Definition: rctTypes.h:723
static const crypto::secret_key & rct2sk(const rct::key &k)
Definition: rctTypes.h:726
uint64_t xmr_amount
Definition: rctTypes.h:143
static const rct::key & sk2rct(const crypto::secret_key &sk)
Definition: rctTypes.h:722
RangeProofType
Definition: rctTypes.h:299
@ RangeProofBorromean
Definition: rctTypes.h:299
@ RangeProofMultiOutputBulletproof
Definition: rctTypes.h:299
@ RangeProofBulletproof
Definition: rctTypes.h:299
@ RangeProofPaddedBulletproof
Definition: rctTypes.h:299
static const crypto::public_key & rct2pk(const rct::key &k)
Definition: rctTypes.h:725
size_t n_bulletproof_max_amounts(const Bulletproof &proof)
Definition: rctTypes.cpp:307
unsigned char * Bytes
Definition: rctTypes.h:73
static const rct::key & pk2rct(const crypto::public_key &pk)
Definition: rctTypes.h:721
static const key64 H2
Definition: rctTypes.h:620
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124
#define ATOMS
Definition: rctTypes.h:66
#define BEGIN_SERIALIZE_OBJECT()
begins the environment of the DSL \detailed for described the serialization of an object
Definition: serialization.h:184
#define BLOB_SERIALIZER(T)
makes the type have a blob serializer trait defined
Definition: serialization.h:141
#define FIELD(f)
tags the field with the variable name and then serializes it
Definition: serialization.h:237
#define PREPARE_CUSTOM_VECTOR_SERIALIZATION(size, vec)
Definition: serialization.h:197
#define VERSION_FIELD(v)
Definition: serialization.h:288
#define FIELDS(f)
does not add a tag to the serialized value
Definition: serialization.h:248
#define END_SERIALIZE()
self-explanatory
Definition: serialization.h:208
#define VARIANT_TAG(Archive, Type, Tag)
Adds the tag \tag to the Archive of Type.
Definition: serialization.h:161
#define VARINT_FIELD(f)
tags and serializes the varint f
Definition: serialization.h:257
if(!cryptonote::get_account_address_from_str_or_url(info, cryptonote::TESTNET, "9uVsvEryzpN8WH2t1WWhFFCG5tS8cBNdmJYNRuckLENFimfauV5pZKeS1P2CbxGkSDTUPHXWwiYE5ZGSXDAGbaZgDxobqDN"))
Definition: signature.cpp:53
#define false
Definition: stdbool.h:37
unsigned int uint32_t
Definition: stdint.h:126
unsigned char uint8_t
Definition: stdint.h:124
unsigned __int64 uint64_t
Definition: stdint.h:136
bool good() const noexcept
Definition: binary_archive.h:99
void begin_array(size_t &s)
Definition: binary_archive.h:153
void delimit_array()
Definition: binary_archive.h:159
void end_array()
Definition: binary_archive.h:160
void begin_object()
Definition: binary_archive.h:72
void end_object()
Definition: binary_archive.h:73
void tag(const char *)
Definition: binary_archive.h:71
Definition: binary_archive.h:89
Definition: debug_archive.h:37
static void formatted(std::ostream &out, const span< const std::uint8_t > src)
Append < + src + > as hex to out.
Definition: hex.cpp:77
a archive using the JSON standard
Definition: json_archive.h:116
Definition: rctTypes.h:242
rct::keyV L
Definition: rctTypes.h:246
rct::key B
Definition: rctTypes.h:244
rct::key A
Definition: rctTypes.h:244
rct::key r1
Definition: rctTypes.h:245
bool operator==(const BulletproofPlus &other) const
Definition: rctTypes.h:254
rct::keyV R
Definition: rctTypes.h:246
BulletproofPlus(const rct::key &V, const rct::key &A, const rct::key &A1, const rct::key &B, const rct::key &r1, const rct::key &s1, const rct::key &d1, const rct::keyV &L, const rct::keyV &R)
Definition: rctTypes.h:249
rct::key s1
Definition: rctTypes.h:245
BulletproofPlus()
Definition: rctTypes.h:248
rct::keyV V
Definition: rctTypes.h:243
rct::key A1
Definition: rctTypes.h:244
rct::key d1
Definition: rctTypes.h:245
BulletproofPlus(const rct::keyV &V, const rct::key &A, const rct::key &A1, const rct::key &B, const rct::key &r1, const rct::key &s1, const rct::key &d1, const rct::keyV &L, const rct::keyV &R)
Definition: rctTypes.h:251
Definition: rctTypes.h:205
rct::key T2
Definition: rctTypes.h:207
Bulletproof(const rct::keyV &V, const rct::key &A, const rct::key &S, const rct::key &T1, const rct::key &T2, const rct::key &taux, const rct::key &mu, const rct::keyV &L, const rct::keyV &R, const rct::key &a, const rct::key &b, const rct::key &t)
Definition: rctTypes.h:216
rct::key t
Definition: rctTypes.h:210
rct::key T1
Definition: rctTypes.h:207
Bulletproof()
Definition: rctTypes.h:212
rct::key S
Definition: rctTypes.h:207
rct::key a
Definition: rctTypes.h:210
rct::keyV L
Definition: rctTypes.h:209
rct::key taux
Definition: rctTypes.h:208
rct::keyV V
Definition: rctTypes.h:206
Bulletproof(const rct::key &V, const rct::key &A, const rct::key &S, const rct::key &T1, const rct::key &T2, const rct::key &taux, const rct::key &mu, const rct::keyV &L, const rct::keyV &R, const rct::key &a, const rct::key &b, const rct::key &t)
Definition: rctTypes.h:214
rct::keyV R
Definition: rctTypes.h:209
rct::key b
Definition: rctTypes.h:210
rct::key A
Definition: rctTypes.h:207
rct::key mu
Definition: rctTypes.h:208
bool operator==(const Bulletproof &other) const
Definition: rctTypes.h:219
Definition: rctTypes.h:300
int bp_version
Definition: rctTypes.h:302
RangeProofType range_proof_type
Definition: rctTypes.h:301
Definition: rctTypes.h:147
key64 s1
Definition: rctTypes.h:149
key ee
Definition: rctTypes.h:150
key64 s0
Definition: rctTypes.h:148
Definition: rctTypes.h:173
key D
Definition: rctTypes.h:178
key c1
Definition: rctTypes.h:175
keyV s
Definition: rctTypes.h:174
key I
Definition: rctTypes.h:177
Definition: rctTypes.h:97
key dest
Definition: rctTypes.h:98
key mask
Definition: rctTypes.h:99
Definition: rctTypes.h:132
key amount
Definition: rctTypes.h:134
key mask
Definition: rctTypes.h:133
Definition: rctTypes.h:154
ge_dsmp k
Definition: rctTypes.h:155
Definition: rctTypes.h:79
bool operator==(const key &k) const
Definition: rctTypes.h:86
unsigned char & operator[](int i)
Definition: rctTypes.h:80
unsigned char bytes[32]
Definition: rctTypes.h:87
unsigned char operator[](int i) const
Definition: rctTypes.h:83
Definition: rctTypes.h:160
keyM ss
Definition: rctTypes.h:161
keyV II
Definition: rctTypes.h:163
key cc
Definition: rctTypes.h:162
Definition: rctTypes.h:105
key ki
Definition: rctTypes.h:109
~multisig_kLRki()
Definition: rctTypes.h:111
key L
Definition: rctTypes.h:107
key k
Definition: rctTypes.h:106
key R
Definition: rctTypes.h:108
Definition: rctTypes.h:114
std::vector< key > c
Definition: rctTypes.h:115
std::vector< key > mu_p
Definition: rctTypes.h:116
if(!mu_p.empty() &&mu_p.size() !=c.size()) return false
std::vector< key > c0
Definition: rctTypes.h:117
Definition: rctTypes.h:194
boroSig asig
Definition: rctTypes.h:195
key64 Ci
Definition: rctTypes.h:196
Definition: rctTypes.h:310
xmr_amount txnFee
Definition: rctTypes.h:318
std::vector< ecdhTuple > ecdhInfo
Definition: rctTypes.h:316
uint8_t type
Definition: rctTypes.h:311
key message
Definition: rctTypes.h:312
bool serialize_rctsig_base(Archive< W > &ar, size_t inputs, size_t outputs)
Definition: rctTypes.h:321
ctkeyM mixRing
Definition: rctTypes.h:313
keyV pseudoOuts
Definition: rctTypes.h:315
ctkeyV outPk
Definition: rctTypes.h:317
Definition: rctTypes.h:398
bool serialize_rctsig_prunable(Archive< W > &ar, uint8_t type, size_t inputs, size_t outputs, size_t mixin)
Definition: rctTypes.h:408
std::vector< clsag > CLSAGs
Definition: rctTypes.h:403
keyV pseudoOuts
Definition: rctTypes.h:404
std::vector< mgSig > MGs
Definition: rctTypes.h:402
std::vector< BulletproofPlus > bulletproofs_plus
Definition: rctTypes.h:401
std::vector< rangeSig > rangeSigs
Definition: rctTypes.h:399
std::vector< Bulletproof > bulletproofs
Definition: rctTypes.h:400
Definition: rctTypes.h:595
keyV const & get_pseudo_outs() const
Definition: rctTypes.h:603
rctSigPrunable p
Definition: rctTypes.h:596
keyV & get_pseudo_outs()
Definition: rctTypes.h:598
std::size_t operator()(const rct::key &k) const
Definition: rctTypes.h:750