🆔
MetaID
English
English
  • â„šī¸Overview
    • Overview
    • Terms
  • 📑MetaID Specification
    • Protocol Spec
    • MetaID Tree
      • MetaID Tree
      • Info Node
      • File Node
      • FT Node
      • NFT Node
      • Protocols Node
      • Follow Node
    • MetaID Envelope
    • Privacy Model
    • About PIN
    • About PoP
    • Host
    • MetaAccess
    • MetaName
    • Examples
  • đŸ’ģMetaID App Node
    • Introduction
    • Compile and Run
    • JSON API
    • Browser
    • MetaID PIN Conventions
    • PIN Data Structure
  • âš™ī¸MetaID SDK
    • Get Started
    • Core API
    • Quick Example
  • â›“ī¸Cross-chain
    • Cross-chain
    • Unified UTXO Chain
  • đŸĒĒAbout MetaID
    • History About MetaID
    • FAQ
    • MetaID Philosophy
    • MetaID Resources
  • 📃FT & NFT Protocols
    • MRC-20
    • MRC-721
Powered by GitBook
On this page
  • Info Node Overview
  • Basic Information about the Info Node
  • Data Format
  • Info Node Path
  1. MetaID Specification
  2. MetaID Tree

Info Node

Info Node Overview

The Info node is specifically designed to store users' personal information. Through the Info node, users can securely store and manage their personal information on the blockchain.

Basic Information about the Info Node

The protocol stipulates that the Info node must include the following five sub-nodes:

  • name: User name, recommended not to be encrypted. The format is fixed as text/plain.

  • avatar: User image, recommended not to be encrypted. The format is binary, with the payload part storing the image's binary stream.

  • bio: User personal bio, recommended not to be encrypted. The format is fixed as text/plain.

Data Format

The personal information of users is stored in the following format:

OP_FALSE
OP_IF
   metaid                
   create                
   /info/name            
   0                    
   OP_0                
   text/plain           
   Alice                 // Example user name
OP_ENDIF

Info Node Path

The path for the Info node uses /info as the base path and distinguishes different types of personal information through subsequent paths. For example, /info/name can be used to store the user's name, while /info/avatar can be used to store the user's avatar information. By storing personal information under different type paths, users can clearly organize and manage their personal profiles.

If the application needs to add user information, it can add child nodes after the /info node. For example, /info/email represents the user's email information.

PreviousMetaID TreeNextFile Node

Last updated 1 year ago

📑