mirror of
https://github.com/waku-org/js-noise.git
synced 2025-02-23 08:28:17 +00:00
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…
x
Reference in New Issue
Block a user