aboutsummaryrefslogtreecommitdiff
path: root/src/span.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2023-04-17 14:25:41 -0400
committerPieter Wuille <pieter@wuille.net>2023-06-23 14:22:33 -0400
commiteff72a0dff8fa83af873ad9b15dbac50b8d4eca3 (patch)
tree65c1e1f011f3817350c84d4f30a9fdfa57ea6a71 /src/span.h
parent42239f839081bba9a426ebb9f1b7a56e35a2d428 (diff)
downloadbitcoin-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.h1
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); }