# multifeed-sigrid

> multifeed plugin providing signature based replication

Latest version **1.0.3** (published 2019-01-06) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install multifeed-sigrid
pnpm add multifeed-sigrid
yarn add multifeed-sigrid
bun add multifeed-sigrid
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-01-06 |
| First published | 2019-01-01 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 45.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Tony Ivanov |
| Maintainers | telamon |
| Keywords | hypercore, multifeed, signature, replication, rule, policy |

## Links

- npm: https://www.npmjs.com/package/multifeed-sigrid
- Repository: https://github.com/telamon/multifeed-sigrid
- Homepage: https://github.com/telamon/multifeed-sigrid#readme
- Issues: https://github.com/telamon/multifeed-sigrid/issues
- npm.io page: https://npm.io/package/multifeed-sigrid

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.1.0
- [hypercore-crypto](https://npm.io/package/hypercore-crypto.md) ^1.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-01-06
- 1.0.1 — 2019-01-05
- 1.0.0 — 2019-01-01

## README

multifeed-sigrid
================

Provides signature-based replication rules for [multifeed](https://github.com/noffle/multifeed)
that lets anybody who has the 'public' signing key replicate all feeds freely.
Only nodes that possess the 'secret' key can create new writers or append
feeds to the multifeed.

**Usage:**

```js
var hypercore = require('hypercore')
var storage = require('random-access-file')
var crypto = require('hypercore-crypto')
var sigrid = require('multifeed-sigrid')

// generate a signing pair
var {publicKey, secretKey} = crypto.keyPair()
// publicKey can be shared freely to help replicating your feeds
// secretKey should be distributed safely to trusted sources

// A multifeed that can create writers
var sig = sigrid(publicKey, storage, secretKey)
var myDevice = multifeed(hypercore, storage)
myDevice.use(sig)
laptop.writer('hylog', function(err, writer) {
  writer.append({ entry: 'Today i took a stroll on the beach' })
})

// A multifeed that cannot create replicating writers
var sig = sigrid(publicKey, storage)
var paidHosting = multifeed(hypercore, storage)
```


**developers-note**

This module is not available through npm yet as it depends on
an experimental multifeed api, but feel free to start experimenting
using this fork: [telamon/multifeed/feature/repl-api](https://github.com/telamon/multifeed/tree/feature/repl-api)

The Sigrid API can be considered stable for `v1.0.0`

Planned features:

* (`v1`) optional 'feed-control-feed' that let's a secretKey owner mark previously
  signed feeds for deletion/removal from the swarm. (There's no guarantee that
  a node you don't control actually will stop replicating killed feeds but for
  devices you control this can be considered law)

* (`v2`) let sigrid manage multiple public-keys to create a 'friend' network
  where each individual replicate's the entire groups signed feeds but remains
  in full control over his own feeds.

---
_Source: https://npm.io/package/multifeed-sigrid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
