Bitcoin Core 28.99.0
P2P Digital Currency
|
Namespaces | |
namespace | internal |
Classes | |
struct | Node |
A node in a miniscript expression. More... | |
class | Type |
This type encapsulates the miniscript type system properties. More... | |
Typedefs | |
using | Opcode = std::pair< opcodetype, std::vector< unsigned char > > |
template<typename Key > | |
using | NodeRef = std::shared_ptr< const Node< Key > > |
Enumerations | |
enum class | Fragment { JUST_0 , JUST_1 , PK_K , PK_H , OLDER , AFTER , SHA256 , HASH256 , RIPEMD160 , HASH160 , WRAP_A , WRAP_S , WRAP_C , WRAP_D , WRAP_V , WRAP_J , WRAP_N , AND_V , AND_B , OR_B , OR_C , OR_D , OR_I , ANDOR , THRESH , MULTI , MULTI_A } |
The different node types in miniscript. More... | |
enum class | Availability { NO , YES , MAYBE } |
enum class | MiniscriptContext { P2WSH , TAPSCRIPT } |
Functions | |
consteval Type | operator""_mst (const char *c, size_t l) |
Literal operator to construct Type objects. More... | |
template<typename Key , typename... Args> | |
NodeRef< Key > | MakeNodeRef (Args &&... args) |
Construct a miniscript node as a shared_ptr. More... | |
constexpr bool | IsTapscript (MiniscriptContext ms_ctx) |
Whether the context Tapscript, ensuring the only other possibility is P2WSH. More... | |
template<typename Ctx > | |
NodeRef< typename Ctx::Key > | FromString (const std::string &str, const Ctx &ctx) |
template<typename Ctx > | |
NodeRef< typename Ctx::Key > | FromScript (const CScript &script, const Ctx &ctx) |
using miniscript::NodeRef = typedef std::shared_ptr<const Node<Key> > |
Definition at line 192 of file miniscript.h.
using miniscript::Opcode = typedef std::pair<opcodetype, std::vector<unsigned char> > |
Definition at line 189 of file miniscript.h.
|
strong |
Enumerator | |
---|---|
NO | |
YES | |
MAYBE |
Definition at line 233 of file miniscript.h.
|
strong |
The different node types in miniscript.
Definition at line 199 of file miniscript.h.
|
strong |
Enumerator | |
---|---|
P2WSH | |
TAPSCRIPT |
Definition at line 239 of file miniscript.h.
|
inline |
Definition at line 2622 of file miniscript.h.
|
inline |
|
constexpr |
Whether the context Tapscript, ensuring the only other possibility is P2WSH.
Definition at line 245 of file miniscript.h.
NodeRef< Key > miniscript::MakeNodeRef | ( | Args &&... | args | ) |
Construct a miniscript node as a shared_ptr.
Definition at line 196 of file miniscript.h.
|
inline |
Literal operator to construct Type objects.
Definition at line 157 of file miniscript.h.