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

Function build_brc20_reveal_script

rust/basic_bitcoin/src/brc20.rs:28–48  ·  view source on GitHub ↗

Builds the BRC-20 reveal script that contains the JSON token deployment data. The reveal script follows the same Ordinals protocol format as text inscriptions, but uses "application/json" as the content type and structures the data according to the BRC-20 specification for fungible tokens. The script has two execution paths: 1. Normal path: Verify signature against internal_key (for spending aut

(internal_key: &XOnlyPublicKey, brc20_json: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

inscribe_brc20Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected