mirror of https://github.com/waku-org/js-noise.git
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:
parent
e436becaf7
commit
a19e968c85
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue