NFT Gen 2 Tech Doc
  • Introduction
  • Overview
    • NFT Data Chain
    • Cosmos SDK
    • Modules
      • Core Module
      • Oracle
  • Integration
    • Creating Schema
    • System Mode
      • Minting
      • Sending Action
    • User Mode
      • Minting
      • Sending Action
  • Data-chain Base URI
  • Getting Started
    • Installation (Golang)
    • Getting Started
      • Download Binary
      • Developer Resources
      • Binary Overview
      • Create Account
      • Faucet
      • Deploy NFT Gen2
      • Perform Action of NFT Gen2
      • Update NFT Schema
      • Script
    • SDK Package for NodeJs
      • Example Resources
      • Deploy NFT Gen2
      • Perform Action of NFT Gen2
      • Update NFT Schema
    • SDK for GO
      • Requirements
      • Installation
      • Usage
      • Preparing Key for Authentication
      • Supported Messages and Queries
      • Examples
    • Six Protocol Developer Community
Powered by GitBook
On this page
  • Explanation
  • Creator Backend System
  1. Integration
  2. System Mode

Sending Action

PreviousMintingNextUser Mode

Last updated 2 years ago

Explanation

There are many ways to get the signature signed by users. No matter which way NFT Data Chain will need the signature with a signed message, as shown below.

# Message used to sign
nft_schema_code: <schema_code> # required
token_id: <token_id> # optional, first one will be pick in case holder holds more than one
action: <action_name>
timestamp: <expired_datetime> # the expired time in epoch format. NFT Data Chain will validate at the runtime whether the signed message is expired or not.

This is the protection to the users to ensure that no one can make a call on their behalf or use a signature on another action. But anyway, in this mode, the creator has complete control of the NFT, so the creator must verify this message by themselves.

Creator Backend System

Cause in this mode, the creator has complete control of NFT Data. The creator needs to verify incoming data by themselves. Needed verifications are:

  • Verify that the signer is the same as the NFT holder

  • Verify that the metadata on NFT Data Chain is up to date with origin data

  • Verify that action is correct

  • Verify that signature is not expired.

Sending Action on System Mode