Skip to content

Commit 2a2182c

Browse files
committed
Make script/standard's BaseHash Span-convertible
1 parent e63dcc3 commit 2a2182c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/script/standard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ class BaseHash
7979
{
8080
return m_hash.size();
8181
}
82+
83+
unsigned char* data() { return m_hash.data(); }
84+
const unsigned char* data() const { return m_hash.data(); }
8285
};
8386

8487
/** A reference to a CScript: the Hash160 of its serialization (see script.h) */

0 commit comments

Comments
 (0)