Difference between revisions of "Blockchain Messages Format and Schemae"

From OIP Wiki
Jump to: navigation, search
(Artifact Publish)
(Register Publisher)
Line 24: Line 24:
 
"signature": "$RegisterPublisherSignature"
 
"signature": "$RegisterPublisherSignature"
 
},
 
},
"txid": "$TXID",
 
"block": $Block
 
 
}
 
}
 
</pre>
 
</pre>

Revision as of 06:52, 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": "$DisplayName",
"duration": $DurationInt,
"fname": "$FileName",
"fsize": $fileSizeInBytes,
"sugPlay": "$suggestedPlayPriceUSD",
"minPlay": "$minPlayPriceUSD",
"sugBuy": "$suggestedBuyPriceUSD",
"minBuy": "$minBuyyPriceUSD",
"disPer": "$disPer",
"promo": "$PromoterCut",
"retail": "$RetailerCut",
"ptpFT": $pinToPlayFreeThreshold,
"ptpDT": $pinToPlayDiscountThreshold,
"ptpDA": $pinToPlayDiscountAmount,
"type": "$MediaType",
"tokenlyID": "$SongTokenlyID"
}
},
"signature": "$IPFSAddress-$PublisherAddress-$timestamp"
}

}

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