Difference between revisions of "Blockchain Messages Format and Schemae"

From OIP Wiki
Jump to: navigation, search
(Register Publisher)
(Artifact Publish)
Line 83: Line 83:
 
::::::"[[Variable Definitions#disBuy|disBuy]]": boolean,
 
::::::"[[Variable Definitions#disBuy|disBuy]]": boolean,
 
::::::"[[Variable Definitions#disPlay|disPlay]]": boolean,
 
::::::"[[Variable Definitions#disPlay|disPlay]]": boolean,
::::::"dname": "$DisplayName",
+
::::::"[[Variable Definitions#dName|dName]]": "string",
::::::"duration": $DurationInt,
+
::::::"[[Variable Definitions#duration|duration]]": int,
::::::"fname": "$FileName",
+
::::::"[[Variable Definitions#fName:fName]]": "string",
::::::"fsize": $fileSizeInBytes,
+
::::::"[[Variable Definitions#fSize|fSize]]": int,
::::::"sugPlay": "$suggestedPlayPriceUSD",
+
::::::"[[Variable Definitions#sugPlay|sugPlay]]": "int",
::::::"minPlay": "$minPlayPriceUSD",
+
::::::"[[Variable Definitions#minPlay|minPlay]]": "int",
::::::"sugBuy": "$suggestedBuyPriceUSD",
+
::::::"[[Variable Definitions#sugBuy|sugBuy]]": "int",
::::::"minBuy": "$minBuyyPriceUSD",
+
::::::"[[Variable Definitions#minBuy|minBuy]]": "int",
::::::"disPer": "$disPer",
+
::::::"[[Variable Definitions#disPer|disPer]]": "int",
::::::"promo": "$PromoterCut",
+
::::::"[[Variable Definitions#promo|promo]]": "int",
::::::"retail": "$RetailerCut",
+
::::::"[[Variable Definitions#retail|retail]]": "int",
::::::"ptpFT": $pinToPlayFreeThreshold,
+
::::::"[[Variable Definitions#ptpFT|ptpFT]]": int,
::::::"ptpDT": $pinToPlayDiscountThreshold,
+
::::::"[[Variable Definitions#ptpDT|ptpDT]]": int,
::::::"ptpDA": $pinToPlayDiscountAmount,
+
::::::"[[Variable Definitions#ptpDA|ptpDA]]": int,
::::::"type": "$MediaType",
+
::::::"type": "string",
::::::"tokenlyID": "$SongTokenlyID"
+
::::::"tokenlyID": "string"
 
:::::}
 
:::::}
 
::::},
 
::::},
:::"signature": "$IPFSAddress-$PublisherAddress-$timestamp"
+
:::"[[Variable Definitions#signature_2]]": "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"
}
},
"Variable Definitions#signature_2": "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