MCPcopy Create free account
hub / github.com/dfinity/examples / build_ordinal_reveal_script

Function build_ordinal_reveal_script

rust/basic_bitcoin/src/ordinals.rs:133–149  ·  view source on GitHub ↗

Builds the Ordinals reveal script that contains the inscription data. The reveal script follows the Ordinals protocol format: - Starts with key verification (internal_key + OP_CHECKSIG) - Contains inscription envelope (OP_FALSE OP_IF ... OP_ENDIF) - The envelope ensures data is in the witness but never executed

(
    internal_key: &XOnlyPublicKey,
    inscription_payload: &PushBytesBuf,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

inscribe_ordinalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected