Milestone 2 - Cross Mint/Swap for NFT with Metadata in Ancon

IFESA
1 min readSep 19, 2021

Notes

NFT Creator

Creates on behalf of a recipient, for lazy mint use cases

NFT Owner

Both creator and did owner / recipient needs to be the same

Cross Mint/Swap

In this scenario, we just want to create an NFT token clone. For swap, we assume NFT owner to burn origin token, but not metadata.

How it works

From Chain A - either smart contract or protocol

  • NFT Creator/Owner Signs Voucher message offchain with did-web or did-key using Ed25519 or secp256k1 algorithms
  • Calls MintSwap, in Ancon, MintSwap calls internal RequestLazyMint and stores the voucher as JSON, then calls InitiateSwap. Requires creator/owner has mint role.
  • Returns the Relay message

Relay

  • Verifies Chain A is whitelisted (prefix)
  • Trusted to send voucher and proof to Chain B
  • Client then calls ancon-relayer , which verifies prefix and calls next destination

To Chain B - either smart contract or protocol

  • Verifies relayer
  • Verifies ics23 commitment proof
  • Verifies sender voucher signatures
  • Mint

Burn

Relay can listen for events to handle burn requests

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

IFESA
IFESA

Written by IFESA

Industrias de Firmas Electrónicas, S.A. (IFESA) es la primera empresa panameña dedicada a tecnologías basadas en algoritmos criptográficos, firmas electrónicas,

No responses yet

Write a response