diff options
author | Pieter Wuille <pieter@wuille.net> | 2023-08-31 10:00:05 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-09-07 08:53:45 -0400 |
commit | dc2d7eb810ef95b06620f334c198687579916435 (patch) | |
tree | 785006d10a3cde8d9663ac7d2a11272b01893f44 /src/pubkey.cpp | |
parent | 5f4b2c6d79e81ee0445752ad558fcc17831f4b2f (diff) | |
download | bitcoin-dc2d7eb810ef95b06620f334c198687579916435.tar.xz |
crypto: Spanify EllSwiftPubKey constructor
Diffstat (limited to 'src/pubkey.cpp')
-rw-r--r-- | src/pubkey.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pubkey.cpp b/src/pubkey.cpp index 4866feed67..05808e4c22 100644 --- a/src/pubkey.cpp +++ b/src/pubkey.cpp @@ -336,6 +336,12 @@ bool CPubKey::Derive(CPubKey& pubkeyChild, ChainCode &ccChild, unsigned int nChi return true; } +EllSwiftPubKey::EllSwiftPubKey(Span<const std::byte> ellswift) noexcept +{ + assert(ellswift.size() == SIZE); + std::copy(ellswift.begin(), ellswift.end(), m_pubkey.begin()); +} + CPubKey EllSwiftPubKey::Decode() const { secp256k1_pubkey pubkey; |