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

Function build_etching_script

rust/basic_bitcoin/src/runes.rs:141–232  ·  view source on GitHub ↗

Builds a runestone script for etching a new rune token. The runestone is encoded as an OP_RETURN output with the format: OP_RETURN OP_13 [LEB128 encoded tag-value pairs...] All rune metadata is encoded as alternating tags and values using LEB128, creating a compact binary representation of the token parameters.

(etching: &Etching)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

etch_runeFunction · 0.85

Calls 4

encode_rune_nameFunction · 0.85
encode_leb128Function · 0.85
OkClass · 0.85
maskMethod · 0.80

Tested by

no test coverage detected