Difference between revisions of "Blockchain Messages Format and Schemae"

From OIP Wiki
Jump to: navigation, search
(Artifact Publish)
(Artifact Publish)
Line 101: Line 101:
 
:::::}
 
:::::}
 
::::},
 
::::},
:::"[[Variable Definitions#signature_2]]": "string"
+
:::"[[Variable Definitions#signature_2|signature]]": "string"
 
::}
 
::}
 
}
 
}

Revision as of 07:09, 23 November 2017

Registration Messages

Register Publisher

{
	"oip-pub": {
		"register": {
			"alias": "$PublisherAlias",
			"address": "$PublisherAddress",
			"timestamp": $UnixTime,
			"info": {
				"emailmd5": "$md5HashOfEmail",
				"avatarNetwork": "$IPFSorBittorrentorHTTP"
				"avatar": "$NetworkAddressOfAvatarImage
				"bitmessage": "$bitmessageAddress",
				},
			"verification": {
				"IMDB": "$IMDBArtistUrl",
				"MusicBrainz": "$MusicBrainzArtistURL",
				"Twitter": "$TwitterVerificationURL",
				"Facebook": $FacebookVerificationURL"
				}
			},
		"signature": "$RegisterPublisherSignature"
		},
}

deprecated register publisher

Register Promoter

Register Autominer

Register Autominer Pool

Register Retailer

Artifact Messages

Artifact Publish

{

"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,
"Variable Definitions#fName: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

{
	"oip-041":{
		"editArtifact":{
			"txid":"$artifactID",
			"timestamp":1234567890,
			"patch":{
				"add":[
					{
					"path":"/payment/tokens/mtcproducer",
					"value":""
					}
				],
				"replace":[
					{
					"path":"/storage/files/3/fname",
					"value":"birthdayepFirst.jpg"
					},
					{
					"path":"/storage/files/3/dname",
					"value":"Cover Art 2"
					},
					{
					"path":"/info/title",
					"value":"Happy Birthday"
					},
					{
					"path":"/timestamp",
					"value":1481420001
					}
				],
				"remove":[
					{
					"path":"/payment/tokens/mtmproducer"
					},
					{
					"path":"/storage/files/0/sugBuy"
					}
				]
			}
		}
	},
	"signature":"$txid-$MD5HashOfPatch-$timestamp"
}

Artifact Transfer

{
	"oip-041":{
		"transferArtifact":{
			"txid":"$artifactID",
			"to":"$newPublisherAddress",
			"from":"$oldPublisherAddress",
			"timestamp":1234567890
		},
	"signature":"$artifactID-$newPublisherAddress-$oldPublisherAddress-$timestamp"
	}
}

Artifact Deactivate

{
	"oip-041":{
		"deactivateArtifact":{
			"txid":"$artifactID",
			"timestamp":1234567890
		},
	"signature":"$txid-$publisher-$timestamp"
	}
}

Historian Messages

Historian Datapoint

Historian Summary