dominictarr / scuttlebutt

peer-to-peer replicatable data structure
Other
1.32k stars 66 forks source link

opts.meta #12

Closed ghost closed 11 years ago

ghost commented 11 years ago

This patch lets you set an extra field, meta to send in the initial header. For my own purposes, I needed this patch to implement an authorized keys array in seaport since if the keys came in one-at-a-time I would only be able to trust the node mentioned in the first update I receive. With a bit more metadata I can send the whole authorized keys list on the initial connection and then use crdt.Set regularly for authorized keys updates at runtime.

dominictarr commented 11 years ago

okay, I'm gonna merge this, because being able to send metadata is cool, but I'm not sure that this is the right approach to security. I've opened an issue about that here https://github.com/substack/seaport/issues/16

dominictarr commented 11 years ago

merged into scuttlebutt@4.1.0

dominictarr commented 11 years ago

it's used in crdt@3.1.4