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