hydria

1.0.2 • Public • Published

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);
});

Readme

Keywords

none

Package Sidebar

Install

npm i hydria

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.3 kB

Total Files

5

Last publish

Collaborators

  • igi-111