diff options
author | Pieter Wuille <pieter@wuille.net> | 2023-04-17 14:25:41 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-06-23 14:22:33 -0400 |
commit | eff72a0dff8fa83af873ad9b15dbac50b8d4eca3 (patch) | |
tree | 65c1e1f011f3817350c84d4f30a9fdfa57ea6a71 /src/span.h | |
parent | 42239f839081bba9a426ebb9f1b7a56e35a2d428 (diff) | |
download | bitcoin-eff72a0dff8fa83af873ad9b15dbac50b8d4eca3.tar.xz |
Add ElligatorSwift key creation and ECDH logic
Co-authored-by: Dhruv Mehta <856960+dhruv@users.noreply.github.com>
Diffstat (limited to 'src/span.h')
-rw-r--r-- | src/span.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/span.h b/src/span.h index 4692eca7fb..c98784aee4 100644 --- a/src/span.h +++ b/src/span.h @@ -274,6 +274,7 @@ Span<std::byte> MakeWritableByteSpan(V&& v) noexcept // Helper functions to safely cast to unsigned char pointers. inline unsigned char* UCharCast(char* c) { return (unsigned char*)c; } inline unsigned char* UCharCast(unsigned char* c) { return c; } +inline unsigned char* UCharCast(std::byte* c) { return (unsigned char*)c; } inline const unsigned char* UCharCast(const char* c) { return (unsigned char*)c; } inline const unsigned char* UCharCast(const unsigned char* c) { return c; } inline const unsigned char* UCharCast(const std::byte* c) { return reinterpret_cast<const unsigned char*>(c); } |