mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 01:32:30 +00:00
Remove SymmetricState log
This commit is contained in:
parent
f406bcfa6d
commit
55b906cd02
@ -14,7 +14,7 @@ import {
|
||||
logRemoteStaticKey,
|
||||
logLocalEphemeralKeys,
|
||||
logRemoteEphemeralKey,
|
||||
logSymmetricCipherState, logCipherState
|
||||
logCipherState
|
||||
} from "./logger";
|
||||
import PeerId from "peer-id";
|
||||
|
||||
@ -81,7 +81,6 @@ export class IKHandshake implements IHandshake {
|
||||
throw new FailedIKError(receivedMsg, `Error occurred while verifying initiator's signed payload: ${e.message}`);
|
||||
}
|
||||
}
|
||||
logSymmetricCipherState(this.session.hs.ss)
|
||||
}
|
||||
|
||||
public async stage1(): Promise<void> {
|
||||
|
@ -17,7 +17,6 @@ import {
|
||||
logRemoteEphemeralKey,
|
||||
logRemoteStaticKey,
|
||||
logCipherState,
|
||||
logSymmetricCipherState
|
||||
} from "./logger";
|
||||
import {decode0, decode1, decode2, encode0, encode1, encode2} from "./encoder";
|
||||
import { WrappedConnection } from "./noise";
|
||||
@ -132,7 +131,6 @@ export class XXHandshake implements IHandshake {
|
||||
throw new Error(`Error occurred while verifying signed payload: ${e.message}`);
|
||||
}
|
||||
}
|
||||
logSymmetricCipherState(this.session.hs.ss)
|
||||
logCipherState(this.session)
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,3 @@ export function logCipherState(session: NoiseSession): void {
|
||||
keyLogger('Missing cipher state.')
|
||||
}
|
||||
}
|
||||
|
||||
export function logSymmetricCipherState(ss: SymmetricState): void {
|
||||
keyLogger(`SYMMETRIC_CIPHER_STATE ${ss.cs.n} ${ss.cs.k.toString('hex')}`)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user