@@ -40,7 +40,7 @@ export class Noise implements INoiseConnection {
4040
4141 /**
4242 *
43- * @param {bytes } staticNoiseKey x25519 private key, reuse for faster handshakes
43+ * @param {bytes } staticNoiseKey - x25519 private key, reuse for faster handshakes
4444 * @param {bytes } earlyData
4545 */
4646 constructor ( staticNoiseKey ?: bytes , earlyData ?: bytes ) {
@@ -61,6 +61,7 @@ export class Noise implements INoiseConnection {
6161
6262 /**
6363 * Encrypt outgoing data to the remote party (handshake as initiator)
64+ *
6465 * @param {PeerId } localPeer - PeerId of the receiving peer
6566 * @param {any } connection - streaming iterable duplex that will be encrypted
6667 * @param {PeerId } remotePeer - PeerId of the remote peer. Used to validate the integrity of the remote peer.
@@ -95,6 +96,7 @@ export class Noise implements INoiseConnection {
9596
9697 /**
9798 * Decrypt incoming data (handshake as responder).
99+ *
98100 * @param {PeerId } localPeer - PeerId of the receiving peer.
99101 * @param {any } connection - streaming iterable duplex that will be encryption.
100102 * @param {PeerId } remotePeer - optional PeerId of the initiating peer, if known. This may only exist during transport upgrades.
@@ -130,6 +132,7 @@ export class Noise implements INoiseConnection {
130132 /**
131133 * If Noise pipes supported, tries IK handshake first with XX as fallback if it fails.
132134 * If noise pipes disabled or remote peer static key is unknown, use XX.
135+ *
133136 * @param {HandshakeParams } params
134137 */
135138 private async performHandshake ( params : HandshakeParams ) : Promise < IHandshake > {
0 commit comments