Skip to content

feat(nft): emit canonical URN alongside https url in NFT mint uris - #24

Merged
MichaelTaylor3d merged 3 commits into
mainfrom
feat/mint-urn-plus-url
Jul 17, 2026
Merged

feat(nft): emit canonical URN alongside https url in NFT mint uris#24
MichaelTaylor3d merged 3 commits into
mainfrom
feat/mint-urn-plus-url

Conversation

@MichaelTaylor3d

Copy link
Copy Markdown
Contributor

Closes DIG-Network/dig_ecosystem#663 (super-repo tracking).

What

dig-store NFT mint now emits BOTH the canonical bare root-pinned URN urn:dig:chia:<storeId>:<root>/<key> (first, primary) AND an https:// gateway url (second, fallback) in the NFT1 data_uris/metadata_uris arrays — the NFT1 multi-url backup pattern. DIG-aware wallets use the URN; legacy wallets (Sage) use the https fallback.

Also fixes the #686 double-scheme bug: the primary entry was a dig://-prefixed URN, which is NOT the canonical resource-identifier form. It is now the bare urn:dig:chia:… per the canonical #686 rule (coheres with chip35 #688 / hub #690 / create-dig-app #689).

Blast radius

Contained in digstore-cli: assets::dig_uri (renamed assets::urn) called only from commands/nft.rs (2 sites) + its own unit test. No cross-crate consumers.

Version

MINOR 0.14.0 -> 0.15.0 (additive new capability; §5.1 additive — old readers still parse the arrays).

WIP — draft.

MichaelTaylor3d and others added 3 commits July 17, 2026 04:43
Emit the canonical bare root-pinned URN alongside the https gateway url
in NFT data_uris/metadata_uris (NFT1 multi-url backup, #663).

Co-Authored-By: Claude <noreply@anthropic.com>
The NFT mint now sets the on-chain NFT1 data_uris/metadata_uris to BOTH
the canonical bare root-pinned URN urn:dig:chia:<storeId>:<root>/<key>
(primary) AND an https gateway url (fallback) — the NFT1 multi-url backup
pattern (#663). DIG-aware wallets resolve the URN natively; legacy wallets
(Sage) use the https url. Fixes the #686 double-scheme bug: the primary
entry was a dig://-prefixed URN, now the canonical bare form (coheres with
chip35 #688 / hub #690 / create-dig-app #689).

- assets: rename dig_uri -> urn (bare canonical via digstore_core::Urn);
  add media_uris returning [urn, https gateway url]
- nft: always emit both; --gateway overrides the default https://rpc.dig.net
- SPEC 11.4 documents the mint media-uri contract
- version 0.14.0 -> 0.15.0 (MINOR, additive)

Refs DIG-Network/dig_ecosystem#663

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@MichaelTaylor3d
MichaelTaylor3d marked this pull request as ready for review July 17, 2026 12:46
@MichaelTaylor3d
MichaelTaylor3d merged commit cae14e9 into main Jul 17, 2026
10 checks passed
@MichaelTaylor3d
MichaelTaylor3d deleted the feat/mint-urn-plus-url branch July 17, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant