From a6c232defb3052aa1e9efd136ba76c1decc0c690 Mon Sep 17 00:00:00 2001 From: Emil Ivanichkov Date: Fri, 26 Jan 2024 17:42:04 +0200 Subject: [PATCH] refactor: Make `csOutbound` & `csInbound` fields of `HandshakeResult` protected With this change we can extend the `HandshakeResult` class and use them in the subclass --- src/handshake.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handshake.ts b/src/handshake.ts index 0580081..1b60f66 100644 --- a/src/handshake.ts +++ b/src/handshake.ts @@ -45,7 +45,7 @@ export class HandshakeResult { rs: bytes32 = new Uint8Array(); h: bytes32 = new Uint8Array(); - constructor(private csOutbound: CipherState, private csInbound: CipherState) {} + constructor(protected csOutbound: CipherState, protected csInbound: CipherState) {} getCSOutbound(): CipherState { return this.csOutbound;