huginbeam

1.0.0 • Public • Published

huginbeam

A 1-1 end-to-end encrypted internet pipe powered by Hyperswarm-hugin and Noise

npm install huginbeam

Usage

const Huginbeam = require("huginbeam");


## API

#### `const stream = new Huginbeam([key][, options])`

Make a new Huginbeam duplex stream.

Will auto connect to another peer using the same key with an end to end encrypted tunnel.

When the other peer writes it's emitted as `data` on this stream.

Likewise when you write to this stream it's emitted as `data` on the other peers stream.

You will need to pass a `key` into the constructor (the passphrase)

`options(mandatory)` include:

- `upload`
- `dht_keys` A random keypair
- `base_keys` A base keypair generated from key
- `sig` A signature generated from base_keys

#### `beam.key`

The passphrase used by the stream for connection.

## License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i huginbeam

Weekly Downloads

53

Version

1.0.0

License

MIT

Unpacked Size

8.26 kB

Total Files

5

Last publish

Collaborators

  • n9lsjr