DID NFT Metadata Ownership
Requires
Previously migrated / created onchain metadata in Ancon
How it works
Alice changes metadata ownership in Ancon. It also creates a
SendMetadataOwnership
packet and stores it.Proofs for both
UpdataMetadataOwnership
andSendMetadataOwnership
are requested.A Relay updates the latest roots in Chain B
Chain B has the following contracts
AguaclaraRouter (EVM) / AtlanticoRouter (Flow)
AnconVerifier
NFT
Alice sends claim to Chain B
AguaclaraRouter
callsAnconVerifier
, verifies Chain A metadata and packet proof with latest roots from Chain APacket is read send to NFT when safeTransferFrom is called
NFT
onERC721Received
or equivalent receives and verifies operator is whitelisted and applies metadata uri change.
Code
Requires
Deployment
Deploy Ethereum smart contracts in /ethereum both in Ancon and destination chain
Request metadata
Use AnconJS or call with JSON RPC
ancon-sendRawTransaction
AnconJS will sign with CosmJS
MsgChangeMetadataOwnership
as a metatransaction inside an Ethereum transaction.
Register VC Permit with owner change and new metadata hash / cid
Create proof and send to verifier
Execute ownership transfer
Backend subscription to destination chain confirmation
Backend IPFS DAG duplication
Last updated