From c8aabe6c5c379b4390efa2a960f61dce76cfd11f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 8 Nov 2024 12:07:41 +1030 Subject: [PATCH 01/70] script: val64 implementation. Not a generic 64-bit access wrapper, but a very bitcoin-specific one. TODO: This was developed in pieces, and I should deconstruct it into separate commits, with tests, for easy review. Signed-off-by: Rusty Russell --- src/script/val64.cpp | 948 +++++++++++++++++++++++++++++++++++++++++++ src/script/val64.h | 181 +++++++++ 2 files changed, 1129 insertions(+) create mode 100644 src/script/val64.cpp create mode 100644 src/script/val64.h diff --git a/src/script/val64.cpp b/src/script/val64.cpp new file mode 100644 index 000000000000..fdf21714c9e0 --- /dev/null +++ b/src/script/val64.cpp @@ -0,0 +1,948 @@ +// Copyright (c) 2024 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include