FIPA4_CoinDays(en-US)



  • FIPA4: CoinDays
    Version: 1
    Language: en-US
    Author: Deisler-JJ_Sboy
    Status: draft
    Created date: 2021-03-08
    LastModifiedDate:2021-03-08
    File hash: "unknown"
    TXid: 
    

    FIPA4_CoinDays(en-US)

    Contents

    Introduction

    General rules of FIPA type protocols

    Rules specific to this protocol

    CoinDays of an UTXO

    CoinDays of an CID

    The consumption of CoinDays

    Introduction

    
    ProtocolType: FIPA
    SerialNumber: 4
    ProtocolName: CoinDays
    VersionNumber: 1
    Description : CoinDays is an indicator for FCH holders.
    Author: Deisler-JJ_Sboy
    Language: en-US
    Tags: FIPA, CoinDays
    PreVersionHash:"unknown"
    
    

    General rules of FIPA protocols

    Rules specific to this protocol

    1. CoinDays can be simply understood as: (quantity of coins) multiplied by (holding time).
    2. Exact calculation. The precision of FCH is 0.00000001 FCH, or 1 Satoshi.
        # e.g. : 987654321 Satoshi = 9.87 Coins
        Coins = (SatoshiOfUTXO / 1000000) /100.0
    

    The Timestamp in the blockheader is seconds from Unix Epoch, and we need to format it to Days. We define the calculation as follows:

        Days =  (generatedTimestamp - spentTimestamp) / (24 * 3600)
        generatedTimestamp = Timestamp of blockHeader when UTXO is generated
        spentTimestamp = Timestamp of blockHeader when the UTXO is spent
    

    CoinDays of a UTXO

        CoinDays of a UTXO =  CoinsOfUTXO * DaysOfUTXO
    

    CoinDays of an CID

    An CID may has more than one UTXOs. The CoinDays of an CID is the sum of all its UTXO's CoinDays.

        sum(CoinDays of a UTXO)
    

    The consumption of CoinDays


Log in to reply