refactor: Make `csOutbound` & `csInbound` fields of `HandshakeResult` protected

With this change we can extend the `HandshakeResult` class and use them
in the subclass
This commit is contained in:
Emil Ivanichkov 2024-01-26 17:42:04 +02:00 committed by richΛrd
parent e436becaf7
commit a19e968c85
1 changed files with 1 additions and 1 deletions

View File

@ -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;