1.0.9 • Published 7 years ago

@netrunner/registry-log v1.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

registry-log

The registry log is a secure distributed append-only log for domains.

npm install @netrunner/registry-log

registry-log requires the hypercore library and changes the encoding/decoding methods. The API is exactly the same as the hypercore API.

const ram = require("random-access-memory");
const { registryLog } = require("@netrunner/registry-log");

const feed = registryLog(filename => ram(filename));

feed.ready(() => {
    feed.append({
        key: Buffer.from("the public key"),
        sig: Buffer.from("fake sig"),
        created: Date.now(),
        name: "google",
        target: "http://www.google.com"
    }, (err) => {
        if (err) return console.log(err);
        feed.get(0, (err, entry) => {
            if (err) return console.log(err);
            console.log(entry);
        });
    });
});
1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago