FEIP27V1_NoticeFee(en-US)



  • FEIP27: NoticeFee
    Version: 1
    Language: en-US
    Author: C_armX
    Status: draft
    Created date: 2021-04-26
    Last modified date:2022-10-02
    PID: unknown
    TXID: Unpublished
    

    FEIP27V1_NoticeFee(en-US)

    Contents

    Introduction

    General rules of FEIP type protocols

    Rules specific to this protocol

    Declare

    Introduction

    
    Protocol type: FEIP
    Serial number: 27
    Protocol name: NoticeFee
    Version: 1
    Description : A identity declares the minimum payment amount with which it is willing to receive the on-chain message notifications.
    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. Notice fee is the minimum payment amount that an address is willing to receive on-chain message notifications. It is used to avoid spam message.

    2. When there are multiple inputs, the notice fee is for the address of the first input.

    3. When a new notice fee is declared, the old one is automatically cancelled.

    declare

    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: 27 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 8 Fixed: "NoticeFee" N
    5 pid hex 32 Sha256 value of this protocol file N
    6 data.noticeFee float64 8 Amout of fch<br>Up to 8 decimal places Y

    Example

    {
        "type": "FEIP",
        "sn": 27,
        "ver": 1,
        "name": "NoticeFee",
        "pid": "",
        "data":{"noticeFee":0.0001}
    }
    


  • FEIP27: NoticeFee
    Version: 1
    Language: en-US
    Author: C_armX
    Status: draft
    Created date: 2021-04-26
    Last modified date:2022-10-02
    PID: unknown
    TXID: Unpublished
    

    FEIP27V1_NoticeFee(en-US)

    Contents

    Introduction

    General rules of FEIP type protocols

    Rules specific to this protocol

    Declare

    Introduction

    
    Protocol type: FEIP
    Serial number: 27
    Protocol name: NoticeFee
    Version: 1
    Description : A identity declares the minimum payment amount with which it is willing to receive the on-chain message notifications.
    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. Notice fee 指的是一个地址愿意接受链上信息通知的最小FCH支付门槛,通过OP_RETURN发布用于过滤垃圾信息。

    2. Notice fee声明只针对交易的第一个输入地址。

    3. 当新的Notice fee声明时,旧的声明自动失效。

    declare

    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: 27 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 8 Fixed: "NoticeFee" N
    5 pid hex 32 Sha256 value of this protocol file N
    6 data.noticeFee float64 8 Amout of fch<br>Up to 8 decimal places Y

    Example

    {
        "type": "FEIP",
        "sn": 27,
        "ver": 1,
        "name": "NoticeFee",
        "pid": "",
        "data":{"noticeFee":0.0001}
    }
    

Log in to reply