MCPcopy Create free account
hub / github.com/ElementsProject/elements / jetNode

Function jetNode

src/simplicity/bitcoin/primitive.c:83–89  ·  view source on GitHub ↗

Return a copy of the Simplicity node corresponding to the given Bitcoin specific jet 'name'. */

Source from the content-addressed store, hash-verified

81
82/* Return a copy of the Simplicity node corresponding to the given Bitcoin specific jet 'name'. */
83static dag_node jetNode(jetName name) {
84 static const dag_node jet_node[] = {
85 #include "primitiveJetNode.inc"
86 };
87
88 return jet_node[name];
89}
90
91/* Decode a Bitcoin specific jet from 'stream' into 'node'.
92 * All jets begin with a bit prefix of '1' which needs to have already been consumed from the 'stream'.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected