FEIP26V1_Homepage(en-US)



  • FEIP26: Homepage
    Version: 1
    Language: en-US
    Author: C_armX
    Status: draft
    Created date: 2022-10-02
    Last modified date:2022-10-02
    PID: 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
    Previous version PID:
    
    

    General consensus of FEIP type protocols

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

    2. The SIGHASH flag of all transaction inputs is ‘ALL’ (value 0x01).

    3. The max size of OP_RETURN : 4096 bytes.

    4. The format of the data in op_return: JSON.

    5. Encoding : utf-8.

    Consensus of this protocol

    1. An address can register one URL or more URLs as its homepag in op_return.

    2. The homepage is only registered for the address of the first input.

    3. When new homepage is registered, all the old ones are automatically unregistered.

    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" Y
    2 sn int 2 Serial number<br>Fixed: 26 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 8 Fixed: "Homepage"< N
    5 pid hex 32 Sha256 value of this protocol file N
    6 data.op string 7 operation: "register" Y
    7 data.url string array 512 URLs of the homepage Y

    Example

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

    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" Y
    2 sn int 2 Serial number<br>Fixed: 26 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 8 Fixed: "Homepage" N
    5 pid 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",
        "pid": "",
        "data":{
            "op": "unregister"
            }
    }
    


  • FEIP26: Homepage
    Version: 2
    Language: zh-CN
    Author: C_armX
    Status: draft
    Created date: 2022-10-02
    Last modified date:2022-10-02
    PID: 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
    Previous version PID:
    
    

    General consensus of FEIP type protocols

    1. FEIP类型协议将重要信息通过OP_RETURN写入FCH主链获得全网见证.

    2. FEIP类型协议的所有输入的SIGHASH必须是“ALL”(值为 0x01),以便签名包含OP_RETURN.

    3. OP_RETURN最大为4096字节。

    4. 数据写入OP_RETURN的格式为:JSON.

    5. 数据编码为: utf-8.

    Consensus of this protocol

    1. 通过本协议一个地址将一个URL或多个URL声明为自己的Homepage.

    2. 声明者为第一个输入地址。

    3. 新的Homepage被声明时,旧的自动注销。

    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" Y
    2 sn int 2 Serial number<br>Fixed: 26 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 8 Fixed: "Homepage"< N
    5 pid hex 32 Sha256 value of this protocol file N
    6 data.op string 7 operation: "register" Y
    7 data.url string array 512 URLs of the homepage Y

    Example

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

    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" Y
    2 sn int 2 Serial number<br>Fixed: 26 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 8 Fixed: "Homepage" N
    5 pid 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",
        "pid": "",
        "data":{
            "op": "unregister"
            }
    }
    

Log in to reply