1.0.9 • Published 6 years ago

@netrunner/registry-log v1.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago