Difference between revisions of "Blockchain Messages Format and Schemae"

From OIP Wiki
Jump to: navigation, search
m
(Artifact Publish)
Line 27: Line 27:
  
 
=== Artifact Publish ===
 
=== Artifact Publish ===
You can view the schema information for Artifact Publishing here: [[Artifact Publish Message Format]]
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
You can view the schema information for Artifact Publishing below (Click Expand ->):  
 +
<div class="mw-collapsible-content">
 +
{
 +
    "oip-041":{
 +
        "artifact":{
 +
            "[[Specification#Publisher_Address|publisher]]": "string",
 +
            "timestamp": 10 digit int,
 +
            "[[Variable Definitions#type|type]]": "string",
 +
            "info":{
 +
                "[[Variable Definitions#title|title]]": "string",
 +
                "[[Variable Definitions#description|description]]": "string",
 +
                "[[Variable Definitions#year|year]]": 4 digit int,
 +
                "extraInfo":{
 +
                    "[[Variable Definitions#artist|artist]]": "string",
 +
                    "[[Variable Definitions#company|company]]": "string",
 +
                    "[[Variable Definitions#tags|tags]]":[
 +
                        "string",
 +
                        "string"
 +
                        ]
 +
                    }
 +
                },
 +
            "payment":{
 +
                "[[Variable Definitions#fiat|fiat]]": "string",
 +
                "[[Variable Definitions#scale|scale]]": int,
 +
                "[[Variable Definitions#sugTip|sugTip]]":[
 +
                    int,
 +
                    int,
 +
                    int
 +
                    ],
 +
                "[[Variable Definitions#addresses|addresses]]": {
 +
                    "three letter string":"string",
 +
                    "three letter string":"string"
 +
                },
 +
                "[[Variable Definitions#tokens|tokens]]": {
 +
                    "STRING": int,
 +
                    "STRING": int
 +
                }
 +
                },
 +
            "storage":{
 +
                "[[Variable Definitions#network|network]]": "string",
 +
                "[[Variable Definitions#location|location]]": "string,
 +
                "files":[
 +
                    {
 +
                        "[[Variable Definitions#disBuy|disBuy]]": boolean,
 +
                        "[[Variable Definitions#disPlay|disPlay]]": boolean,
 +
                        "[[Variable Definitions#dName|dName]]": "string",
 +
                        "[[Variable Definitions#duration|duration]]": int,
 +
                        "[[Variable Definitions#fName|fName]]": "string",
 +
                        "[[Variable Definitions#fSize|fSize]]": int,
 +
                        "[[Variable Definitions#sugPlay|sugPlay]]": "int",
 +
                        "[[Variable Definitions#minPlay|minPlay]]": "int",
 +
                        "[[Variable Definitions#sugBuy|sugBuy]]": "int",
 +
                        "[[Variable Definitions#minBuy|minBuy]]": "int",
 +
                        "[[Variable Definitions#disPer|disPer]]": "int",
 +
                        "[[Variable Definitions#promo|promo]]": "int",
 +
                        "[[Variable Definitions#retail|retail]]": "int",
 +
                        "[[Variable Definitions#ptpFT|ptpFT]]": int,
 +
                        "[[Variable Definitions#ptpDT|ptpDT]]": int,
 +
                        "[[Variable Definitions#ptpDA|ptpDA]]": int,
 +
                        "type": "string",
 +
                        "tokenlyID": "string"
 +
                    }
 +
                },
 +
            "[[Variable Definitions#signature_2|signature]]": "string"
 +
        }
 +
}
 +
</div>
 +
</div>
  
 
=== Artifact Edit ===
 
=== Artifact Edit ===

Revision as of 22:37, 2 January 2018

Multipart Messages

If any of the messages created below are larger than the 528 byte tx-comments currently supported by Florincoin, then the message will be split up into a Multipart message.

You can find information on how Multipart messages are formed here.

Registration Messages

Register Publisher

You can view information about the Register Publish Schema here

Edit Publisher

You can view information about the Edit Publish Schema here

Register Promoter

You can view information about the Register Promoter Schema here

Register Autominer

You can view information about the Register Autominer Schema here

Register Autominer Pool

You can view information about the Register Autominer Pool Schema here

Register Retailer

You can view information about the Register Retailer Schema here

Artifact Messages

Artifact Publish

You can view the schema information for Artifact Publishing below (Click Expand ->):

{
    "oip-041":{
        "artifact":{
            "publisher": "string",
            "timestamp": 10 digit int,
            "type": "string",
            "info":{
                "title": "string",
                "description": "string",
                "year": 4 digit int,
                "extraInfo":{
                    "artist": "string",
                    "company": "string",
                    "tags":[
                        "string",
                        "string"
                        ]
                    }
                },
            "payment":{
                "fiat": "string",
                "scale": int,
                "sugTip":[
                    int,
                    int,
                    int
                    ],
                "addresses": {
                    "three letter string":"string",
                    "three letter string":"string"
                },
                "tokens": {
                    "STRING": int,
                    "STRING": int
                }
                },
            "storage":{
                "network": "string",
                "location": "string,
                "files":[
                    {
                        "disBuy": boolean,
                        "disPlay": boolean,
                        "dName": "string",
                        "duration": int,
                        "fName": "string",
                        "fSize": int,
                        "sugPlay": "int",
                        "minPlay": "int",
                        "sugBuy": "int",
                        "minBuy": "int",
                        "disPer": "int",
                        "promo": "int",
                        "retail": "int",
                        "ptpFT": int,
                        "ptpDT": int,
                        "ptpDA": int,
                        "type": "string",
                        "tokenlyID": "string"
                    }
                },
            "signature": "string"
        }
}

Artifact Edit

You can view the schema information for Artifact Edits here: Artifact Edit Message Format

Artifact Transfer

You can view the Schema for Artifact Transfers here: Artifact Transfer Message Format

Artifact Deactivate

You can view the Schema for Artifact Deactivations here: Artifact Deactivation Message Format

Historian Messages

Historian Datapoint

Plaintext data, stored in the block reward (coinbase) transaction comment. Historian Datapoint Message Format

Historian Block Reward

Plaintext data, stored the transaction comments. Historian Block Reward Message Format

Historian Summary