Closed ghost closed 12 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
merged into scuttlebutt@4.1.0
it's used in crdt@3.1.4
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.