Skip to content

Commit

Permalink
refactor: Make csOutbound & csInbound fields of HandshakeResult
Browse files Browse the repository at this point in the history
… protected

With this change we can extend the `HandshakeResult` class and use them
in the subclass
  • Loading branch information
EmilIvanichkovv authored and richard-ramos committed Jan 30, 2024
1 parent e436bec commit a19e968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handshake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a19e968

Please sign in to comment.