kappa-db / multifeed

Multi-writer hypercore.
135 stars 27 forks source link

new replication header #5

Closed hackergrrl closed 5 years ago

hackergrrl commented 5 years ago

Adds a more explicit multifeed replication header for exchanging keys, as well as protocol version checking.

hackergrrl commented 5 years ago

The header is length-prefixed JSON (<LEN-UINT32><JSON-BUFFER>) and looks like

  "version": "1.0.0",
  "keys": ["hexkey1", "hexkey2"]