CScript(const uint8_t* pbegin, const uint8_t* pend) : std::vector<uint8_t>(pbegin, pend) { }
#endif
+ CScript& operator=(const CScript&) = default;
+
CScript& operator+=(const CScript& b)
{
insert(end(), b.begin(), b.end());
CScript& operator<<(const CPubKey& key)
{
- std::vector<uint8_t> vchKey = key.Raw();
+ std::vector<uint8_t> vchKey(key.begin(), key.end());
return (*this) << vchKey;
}
void SetDestination(const CTxDestination& address);
void SetAddress(const CBitcoinAddress& dest);
- void SetMultisig(int nRequired, const std::vector<CKey>& keys);
+ void SetMultisig(int nRequired, const std::vector<CPubKey>& keys);
void PrintHex() const