Skip to content

Commit f76f943

Browse files
committed
docs: comments about invariant for CBLSSecretKey for bls scheme
1 parent 5c36bb2 commit f76f943

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bls/bls.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ class CBLSId : public CBLSWrapper<CBLSIdImplicit, BLS_CURVE_ID_SIZE, CBLSId>
249249
explicit CBLSId(const uint256& nHash);
250250
};
251251

252+
//! CBLSSecretKey is invariant to BLS scheme for Creation / Serialization / Deserialization
252253
class CBLSSecretKey : public CBLSWrapper<bls::PrivateKey, BLS_CURVE_SECKEY_SIZE, CBLSSecretKey>
253254
{
254255
public:
@@ -270,10 +271,13 @@ class CBLSSecretKey : public CBLSWrapper<bls::PrivateKey, BLS_CURVE_SECKEY_SIZE,
270271
static CBLSSecretKey AggregateInsecure(Span<CBLSSecretKey> sks);
271272

272273
#ifndef BUILD_BITCOIN_INTERNAL
274+
//! MakeNewKey() is invariant to BLS scheme
273275
void MakeNewKey();
274276
#endif
277+
//! SecretKeyShare() is invariant to BLS scheme
275278
bool SecretKeyShare(Span<CBLSSecretKey> msk, const CBLSId& id);
276279

280+
//! GetPublicKey() is invariant to BLS scheme
277281
[[nodiscard]] CBLSPublicKey GetPublicKey() const;
278282
[[nodiscard]] CBLSSignature Sign(const uint256& hash, const bool specificLegacyScheme) const;
279283
};

0 commit comments

Comments
 (0)