Equity
Bitcoin Protocol Library
|
A transaction script. More...
#include <Script.h>
Public Member Functions | |
Script (std::vector< uint8_t > const &data) | |
std::string | toSource () const |
Returns the script in a human-readable ("source-code") format. | |
bool | valid () const |
Returns true if the script is well-formed. | |
std::vector< uint8_t > | data () const |
Returns the script in raw form. | |
Program | instructions () const |
Returns the parsed script. | |
Overrides Serializable | |
virtual void | serialize (std::vector< uint8_t > &out) const override |
virtual json | toJson () const override |
A transaction script.
A Script is processed by a node and if the result is not true, the transaction is rejected.
Script::Script | ( | std::vector< uint8_t > const & | data | ) |
data | script in raw form |