FEIP16V1_Reputation(en-US)



  • FEIP16: Reputation
    Version: 1
    Language: en-US
    Author: Deisler-JJ_Sboy, C_armX
    Status: draft
    Created date: 2021-02-5
    Last modified date:2022-10-02
    PID: ""
    TXID: 
    

    FEIP16V1_Reputation(en-US)

    Contents

    Introduction

    General rules of FEIP type protocols

    Rules specific to this protocol

    Example of positive rating

    Example of negative rating

    Introduction

    Protocol type: FEIP
    Serial number: 16
    Protocol name: Reputation
    Version: 1
    Description : Evaluate an CID to increase/decrease its reputation.
    Author: Deisler-JJ_Sboy,C_armX
    Language: en-US
    

    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. FEIP16 provides a way for an CID to evaluate other CIDs.
    2. Rating someone on chain consumes CoinDays.
    3. The rating can be Positive(“+”) or Negative("-"), and The measure unit of an rating is CoinDays.
    4. The quantity of an rating is all the CoinDays Destoryed(CDD) in the transaction.For example: "100 CoinDays Negative rating" can be marked as "-100cd", and "88 CoinDays positive rating" can be marked as "88cd" or "+88cd".
    5. The evaluator is the first input address,and the evaluatee is the addrsee of the first output other than OP_RETURN output.

    OP_RETURN

    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: 16 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 10 Fixed: "Reputation" N
    5 pid hex 32 Sha256 value of this protocol file N
    6 data.sign string 1 must be "+" or "-" Y

    Example of positive rating

    
    First Input address: FPL44YJRwPdd2ipziFvqq6y2tw4VnVvpAv
    First output address: FS2AWq1dgdhCpNTwqfBbMBBJGNNj1LSboy
    
    OP_RETURN content:
    {
        "type": "FEIP",
        "sn": 16,
        "ver": 1,
        "name": "Reputation",
        "pid": "",
        "data":{
            "sign": "+"
            }
    }
    
    

    Example of negative rating

    
    First Input address: FPL44YJRwPdd2ipziFvqq6y2tw4VnVvpAv
    First output address: FS2AWq1dgdhCpNTwqfBbMBBJGNNj1LSboy
    
    OP_RETURN content:
    
    {
        "type": "FEIP",
        "sn": 3,
        "ver": 4,
        "name": "Reputation",
        "pid": "",
        "data":{
            "sign": "-"
            }
    }
    
    


  • FEIP16: Reputation
    Version: 1
    Language: zh-CN
    Author: Deisler-JJ_Sboy, C_armX
    Status: draft
    Created date: 2021-02-5
    Last modified date:2022-10-02
    PID: ""
    TXID: 
    

    FEIP16V1_Reputation(en-US)

    Contents

    Introduction

    General rules of FEIP type protocols

    Rules specific to this protocol

    Example of positive rating

    Example of negative rating

    Introduction

    Protocol type: FEIP
    Serial number: 16
    Protocol name: Reputation
    Version: 1
    Description : Evaluate an CID to increase/decrease its reputation.
    Author: Deisler-JJ_Sboy,C_armX
    Language: en-US
    

    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. 本协议界定一个地址或CID如何在链上评价另一个地址或CID。
    2. 在链上评价他人需要消耗币天。
    3. 评价以正值符号“+”表示好评,用负值符号“-”表示差评。
    4. 评价的量用评价交易的总币天销毁表示,单位为“cd”。比如:在销毁100币天的交易中给出的差评”表示为“-100cd”,销毁88币天的好评表示为“88cd”或“+88cd”.
    5. 第一个输入地址为评价者,除了op_return以外的第一个输出地址为被评价者。

    OP_RETURN

    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: 16 Y
    3 ver int 1 Fixed: 1 Y
    4 name String 10 Fixed: "Reputation" N
    5 pid hex 32 Sha256 value of this protocol file N
    6 data.sign string 1 must be "+" or "-" Y

    Example of positive rating

    
    First input address: FPL44YJRwPdd2ipziFvqq6y2tw4VnVvpAv
    First output address: FS2AWq1dgdhCpNTwqfBbMBBJGNNj1LSboy
    
    OP_RETURN content:
    {
        "type": "FEIP",
        "sn": 16,
        "ver": 1,
        "name": "Reputation",
        "pid": "",
        "data":{
            "sign": "+"
            }
    }
    
    

    Example of negative rating

    
    First Input address: FPL44YJRwPdd2ipziFvqq6y2tw4VnVvpAv
    First output address: FS2AWq1dgdhCpNTwqfBbMBBJGNNj1LSboy
    
    OP_RETURN content:
    
    {
        "type": "FEIP",
        "sn": 3,
        "ver": 4,
        "name": "Reputation",
        "pid": "",
        "data":{
            "sign": "-"
            }
    }
    
    

Log in to reply