mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-21 16:21:38 +00:00
Remove unused imports
This commit is contained in:
@ -3,3 +3,4 @@ export const NOISE_MSG_MAX_LENGTH_BYTES_WITHOUT_TAG = NOISE_MSG_MAX_LENGTH_BYTES
|
|||||||
|
|
||||||
export const DUMP_SESSION_KEYS = true;
|
export const DUMP_SESSION_KEYS = true;
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,8 +6,6 @@ import {KeyPair} from "./@types/libp2p";
|
|||||||
import {bytes, bytes32} from "./@types/basic";
|
import {bytes, bytes32} from "./@types/basic";
|
||||||
import {Hkdf, INoisePayload} from "./@types/handshake";
|
import {Hkdf, INoisePayload} from "./@types/handshake";
|
||||||
import {pb} from "./proto/payload";
|
import {pb} from "./proto/payload";
|
||||||
import {sessionKeyLogger} from "./logger"
|
|
||||||
import {DUMP_SESSION_KEYS} from "./constants"
|
|
||||||
|
|
||||||
const NoiseHandshakePayloadProto = pb.NoiseHandshakePayload;
|
const NoiseHandshakePayloadProto = pb.NoiseHandshakePayload;
|
||||||
|
|
||||||
@ -49,7 +47,7 @@ export async function createHandshakePayload(
|
|||||||
});
|
});
|
||||||
|
|
||||||
return Buffer.from(NoiseHandshakePayloadProto.encode(payloadInit).finish());
|
return Buffer.from(NoiseHandshakePayloadProto.encode(payloadInit).finish());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function signPayload(peerId: PeerId, payload: bytes): Promise<bytes> {
|
export async function signPayload(peerId: PeerId, payload: bytes): Promise<bytes> {
|
||||||
|
Reference in New Issue
Block a user