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
parent 26218bb08a
commit a6c232defb

View File

@ -45,7 +45,7 @@ export class HandshakeResult {
rs: bytes32 = new Uint8Array(); rs: bytes32 = new Uint8Array();
h: bytes32 = new Uint8Array(); h: bytes32 = new Uint8Array();
constructor(private csOutbound: CipherState, private csInbound: CipherState) {} constructor(protected csOutbound: CipherState, protected csInbound: CipherState) {}
getCSOutbound(): CipherState { getCSOutbound(): CipherState {
return this.csOutbound; return this.csOutbound;