mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-05-10 10:37:17 +00:00
18 lines
316 B
TypeScript
18 lines
316 B
TypeScript
|
import { bytes } from "./types/basic";
|
||
|
import { Connection } from "./types/libp2p";
|
||
|
|
||
|
export class Noise {
|
||
|
constructor(privateKey: bytes, staticNoiseKey?: bytes, earlyData?: bytes) {
|
||
|
|
||
|
}
|
||
|
|
||
|
public tag() {
|
||
|
return '/noise';
|
||
|
}
|
||
|
|
||
|
public encrypt(InsecureConnection: Connection, remotePublicKey: bytes) {
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|