diff options
author | dhruv <856960+dhruv@users.noreply.github.com> | 2022-07-22 10:08:01 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-06-23 14:22:39 -0400 |
commit | 2e5a8a437cf9ac78548891e61797b394571e27ae (patch) | |
tree | 55df95ff33270e561892b1b8385f16f3006a0b31 /src/pubkey.h | |
parent | c3ac9f5cf413e263803aac668a90a4ddd7316924 (diff) | |
download | bitcoin-2e5a8a437cf9ac78548891e61797b394571e27ae.tar.xz |
Fuzz test for Ellswift ECDH
Co-authored-by: Pieter Wuille <bitcoin-dev@wuille.net>
Diffstat (limited to 'src/pubkey.h')
-rw-r--r-- | src/pubkey.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pubkey.h b/src/pubkey.h index 90b2204905..d8d5e3d85b 100644 --- a/src/pubkey.h +++ b/src/pubkey.h @@ -311,6 +311,16 @@ public: static constexpr size_t size() { return SIZE; } auto begin() const { return m_pubkey.cbegin(); } auto end() const { return m_pubkey.cend(); } + + bool friend operator==(const EllSwiftPubKey& a, const EllSwiftPubKey& b) + { + return a.m_pubkey == b.m_pubkey; + } + + bool friend operator!=(const EllSwiftPubKey& a, const EllSwiftPubKey& b) + { + return a.m_pubkey != b.m_pubkey; + } }; struct CExtPubKey { |