holepunchto / pear

combined Peer-to-Peer (P2P) Runtime, Development & Deployment tool
https://docs.pears.com/
Apache License 2.0
101 stars 9 forks source link

key format in Pear API update messages #117

Closed ruy-dan closed 4 months ago

ruy-dan commented 5 months ago

According to docs, 1- Pear.updates should send a version object with a key that takes the format <String(hex)> link to docs 2- Pear.versions should send a key with format <Buffer> link to docs 3- Pear.config should send a key as an object with format { z32: <String>, hex: <String>}, link to docs

At the moment, 1- Pear.updates sends a key with different format depending on if it's an App update or a Platform update:

2- Pear.versions sends an object that contains a key with format:

davidmarkclements commented 4 months ago

closing for backlog