From dc2d7eb810ef95b06620f334c198687579916435 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 31 Aug 2023 10:00:05 -0400 Subject: crypto: Spanify EllSwiftPubKey constructor --- src/pubkey.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pubkey.cpp') 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 ellswift) noexcept +{ + assert(ellswift.size() == SIZE); + std::copy(ellswift.begin(), ellswift.end(), m_pubkey.begin()); +} + CPubKey EllSwiftPubKey::Decode() const { secp256k1_pubkey pubkey; -- cgit v1.2.3