aboutsummaryrefslogtreecommitdiff
path: root/src/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script.h')
-rw-r--r--src/script.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script.h b/src/script.h
index 5397a1972f..163ce057d6 100644
--- a/src/script.h
+++ b/src/script.h
@@ -320,6 +320,12 @@ public:
return *this;
}
+ CScript& operator<<(const CPubKey& key)
+ {
+ std::vector<unsigned char> vchKey = key.Raw();
+ return (*this) << vchKey;
+ }
+
CScript& operator<<(const CBigNum& b)
{
*this << b.getvch();