hydria
v1.0.2
Published
Hydria is a simple encrypted distributed container to share confidential data among trusted peers without a central point.
Downloads
5
Readme
Hydria
Hydria is a simple encrypted distributed container to share confidential data among trusted peers without a central point.
Usage
Listen to state updates:
const secretKey = 'top-secret-key';
new Hydria(secretKey).await(hydria => {
hydria.listen(state => {
console.log(state);
});
});
Publish state updates:
const secretKey = 'top-secret-key';
new Hydria(secretKey).await(hydria => {
const state = { someObject: "with values" };
hydria.send(state);
});