navcoin / development

Navcoin Development
0 stars 0 forks source link

Private NFTs: ownership proofs #7

Open aguycalled opened 2 years ago

aguycalled commented 2 years ago

We need to implement the ability to prove ownership of specific private NFTs.

An NFT owner should be able to create a cryptographic proof which can be verified to confirm its correctness.

A valid cryptographic proof could be a message "OWNERSHIP_PROOF_NFT"||OUTPOINT||TOKENID signed with the NFT's spending key where:

A validator would receive this proof together with the TOKENID and would check the latest OUTPOINT of the NFT from a full node. Then will verify the signature with the spending key of that outpoint to confirm or reject the ownership claim.

Changes needed in navcoin-core:

Changes needed in electrumx:

Changes needed in navcoin-js: