crypto: Spanify EllSwiftPubKey constructor

This commit is contained in:
Pieter Wuille
2023-08-31 10:00:05 -04:00
parent 5f4b2c6d79
commit dc2d7eb810
3 changed files with 9 additions and 10 deletions

View File

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