From f76f943c5f4a1e8f66262cda442fc6ce95c4e44a Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Mon, 23 Dec 2024 14:55:36 +0700 Subject: [PATCH] docs: comments about invariant for CBLSSecretKey for bls scheme --- src/bls/bls.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bls/bls.h b/src/bls/bls.h index 1c08240227..0e3671b5a0 100644 --- a/src/bls/bls.h +++ b/src/bls/bls.h @@ -249,6 +249,7 @@ class CBLSId : public CBLSWrapper explicit CBLSId(const uint256& nHash); }; +//! CBLSSecretKey is invariant to BLS scheme for Creation / Serialization / Deserialization class CBLSSecretKey : public CBLSWrapper { public: @@ -270,10 +271,13 @@ class CBLSSecretKey : public CBLSWrapper sks); #ifndef BUILD_BITCOIN_INTERNAL + //! MakeNewKey() is invariant to BLS scheme void MakeNewKey(); #endif + //! SecretKeyShare() is invariant to BLS scheme bool SecretKeyShare(Span msk, const CBLSId& id); + //! GetPublicKey() is invariant to BLS scheme [[nodiscard]] CBLSPublicKey GetPublicKey() const; [[nodiscard]] CBLSSignature Sign(const uint256& hash, const bool specificLegacyScheme) const; };