mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-27 19:41:37 +00:00
update docs
This commit is contained in:
@ -1 +1,7 @@
|
||||
import {Noise} from "./noise";
|
||||
export * from "./noise";
|
||||
|
||||
/**
|
||||
* Default configuration, it will generate new noise static key and enable noise pipes (IK handshake).
|
||||
*/
|
||||
export const NOISE = new Noise();
|
||||
|
@ -39,9 +39,9 @@ export class Noise implements INoiseConnection {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param staticNoiseKey
|
||||
* @param staticNoiseKey x25519 private key, reuse for faster handshakes
|
||||
* @param earlyData
|
||||
* @param useNoisePipes
|
||||
* @param useNoisePipes enable IK handshake if initiator static key is known
|
||||
*/
|
||||
constructor(staticNoiseKey?: bytes, earlyData?: bytes, useNoisePipes = true) {
|
||||
this.earlyData = earlyData || Buffer.alloc(0);
|
||||
|
Reference in New Issue
Block a user