diff options
author | Hodlinator <172445034+hodlinator@users.noreply.github.com> | 2024-08-19 15:11:54 +0200 |
---|---|---|
committer | Hodlinator <172445034+hodlinator@users.noreply.github.com> | 2024-08-28 19:09:51 +0200 |
commit | 2b5e6eff36abe4c23b8789ef1babfafedc90b973 (patch) | |
tree | b7a956af0626972b989c09fafbca68f64aae5256 /src/pubkey.cpp | |
parent | 403d86f1ccf0b73f042d42a9722bb007ba8c7a31 (diff) |
refactor: Make XOnlyPubKey tolerate constexpr std::arrays
Length was already asserted inside of base_blob-ctor.
Diffstat (limited to 'src/pubkey.cpp')
-rw-r--r-- | src/pubkey.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pubkey.cpp b/src/pubkey.cpp index 13e3c2dbe0..148b268e2e 100644 --- a/src/pubkey.cpp +++ b/src/pubkey.cpp @@ -193,12 +193,6 @@ int ecdsa_signature_parse_der_lax(secp256k1_ecdsa_signature* sig, const unsigned static const std::vector<unsigned char> NUMS_H_DATA{ParseHex("50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0")}; const XOnlyPubKey XOnlyPubKey::NUMS_H{NUMS_H_DATA}; -XOnlyPubKey::XOnlyPubKey(Span<const unsigned char> bytes) -{ - assert(bytes.size() == 32); - std::copy(bytes.begin(), bytes.end(), m_keydata.begin()); -} - std::vector<CKeyID> XOnlyPubKey::GetKeyIDs() const { std::vector<CKeyID> out; |