Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.23 KB

File metadata and controls

35 lines (28 loc) · 1.23 KB

SIP-01

Music Track

draft author:michaelhall923 author:bndw author:samsamskies

The purpose of this SIP is to define kind for music tracks.

Event format

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_url the url to download the file.
  • stream_url the url to stream the file.
  • x SHA-256 hash of the file at download_url
  • waveform a 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>
}