aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uint256.h')
-rw-r--r--src/uint256.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/uint256.h b/src/uint256.h
index abd0b71e6f..eb0066fa27 100644
--- a/src/uint256.h
+++ b/src/uint256.h
@@ -344,7 +344,17 @@ public:
return (unsigned char*)&pn[WIDTH];
}
- unsigned int size()
+ const unsigned char* begin() const
+ {
+ return (unsigned char*)&pn[0];
+ }
+
+ const unsigned char* end() const
+ {
+ return (unsigned char*)&pn[WIDTH];
+ }
+
+ unsigned int size() const
{
return sizeof(pn);
}