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; };