draft author:michaelhall923 author:bndw author:samsamskies
The purpose of this SIP is to define kind for music tracks.
This SIP specifies the use of the 1808 event type, having in content a comment or description of the track, and a list of tags described below:
download_urlthe url to download the file.stream_urlthe url to stream the file.xSHA-256 hash of the file atdownload_urlwaveforma stringified int[] (any length) of the waveform data, used for visualization of the track.
{
"id": <32-bytes lowercase hex-encoded sha256 of the the serialized event data>,
"pubkey": <32-bytes lowercase hex-encoded public key of the event creator>,
"created_at": <unix timestamp in seconds>,
"kind": 1808,
"tags": [
["download_url", <string with URI of file download>, <mimetype>],
["stream_url", <string with URI of file stream>, <mimetype>],
["x", "99c0a3e7f1aa1f50566bd147bb7aa094ee0b5a6bdb86bf5758b0128161f0326d"],
["waveform", "[1,2,3,5,8,13,21,34,55,etc.]"]
],
"content": <description>,
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
}