Skip to content

Commit a77b874

Browse files
committed
Comments.
1 parent 7f02b6d commit a77b874

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • include/bitcoin/database/tables/caches

include/bitcoin/database/tables/caches/ecdsa.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ struct ecdsa
8585
header::integer header_fk{};
8686
};
8787

88+
/// Writer for one row single-sig (0|0 packed in one row, 1-of-1).
8889
struct put_single_ref
8990
: public schema::ecdsa
9091
{
@@ -106,19 +107,19 @@ struct ecdsa
106107
return sink;
107108
}
108109

109-
/// pair: m (row 0, for all), n (row 1, for n > 1).
110110
const system::hash_digest& digest;
111111
const system::ec_compressed& point;
112112
const system::ec_signature& signature;
113113
uint16_t group{};
114114
header::integer header_fk{};
115115
};
116116

117-
/// Writer for one row multisig, writes as if a single sig.
118-
/// Writer for multisig groups (denormalized m|n in first two rows).
117+
/// Writer for 1-of-1 multisig (0|0 packed in one row).
118+
/// Writer for multisig groups (sig|key packed in each row).
119119
struct put_multiple_ref
120120
: public schema::ecdsa
121121
{
122+
// Terminal count fails the write attempt, so to_data() is guarded.
122123
inline link count() const NOEXCEPT
123124
{
124125
using namespace system;
@@ -132,7 +133,6 @@ struct ecdsa
132133
if (is_multiply_overflow(m, sum))
133134
return {};
134135

135-
// Terminal count fails the write attempt, so to_data() is guarded.
136136
return possible_narrow_cast<link::integer>(m * sum);
137137
}
138138

0 commit comments

Comments
 (0)