FEIP26V1_Homepage(en-US)



  • FEIP26: Homepage
    Version: 1
    Language: en-US
    Author: C_armX
    Status: draft
    Created date: 2021-04-26
    Last modified date:2021-04-26
    File hash: unknown
    Txid: Unpublished
    

    FEIP26V1_Homepage(en-US)

    Contents

    Introduction

    General rules of FEIP type protocols

    Rules specific to this protocol

    Register

    Unregister

    Introduction

    
    Protocol type: FEIP
    Serial number: 26
    Protocol name: Homepage
    Version: 1
    Description : Register homepage path on the freecash blockchain for an address.
    Author: C_armX
    Language: en-US
    Tags: FEIP, homepage
    PreVersion hash:
    
    

    General rules of FEIP type protocols

    1. Write important data in OP_RETURN for public witness under FEIP type protocols.

    2. The max size of OP_RETURN : 4096 bytes

    3. Format : Json

    4. Encoding : utf-8

    Rules specific to this protocol

    1. An address can register the homepage path by writing in the url format in op_return.

    2. When there are multiple inputs, the registered homepage belongs to the address of the first input.

    3. When a new homepage path is registered, the old one is automatically cancelled.

    register

    The OP_RETURN of which contains the data as follows:

    field number field name type length content required
    1 type String 4 Fixed: "FEIP"<br>Case insensitive Y
    2 sn int 2 Serial number<br>Fixed: 26 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 8 Fixed: "Homepage"<br>Case insensitive N
    5 hash hex 32 Sha256 value of this protocol file N
    6 data.op string 7 operation: "register" Y
    7 data.url string 512 url of the homepage Y

    Example

    
    {
        "type": "FEIP",
        "sn": 26,
        "ver": 1,
        "name": "Homepage",
        "hash": "",
        "data":{
            "op": "register",
            "url": "https://cid.cash/html/others/cid.html?cid=CY_vpAv"
            }
    }
    

    Unregister

    The OP_RETURN of which contains the data as follows:

    field number field name type length content required
    1 type String 4 Fixed: "FEIP"<br>Case insensitive Y
    2 sn int 2 Serial number<br>Fixed: 26 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 8 Fixed: "Homepage"<br>Case insensitive N
    5 hash hex 32 Sha256 value of this protocol file N
    6 data.op string 9 operation: "unregister" Y

    Example

    {
        "type": "FEIP",
        "sn": 26,
        "ver": 1,
        "name": "Homepage",
        "hash": "",
        "data":{
            "op": "unregister"
            }
    }
    

Log in to reply