@bsv/sdk 1.3.28 → 1.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,13 @@
1
1
  import { SessionManager } from './SessionManager.js';
2
- import { AuthMessage, PeerSession, RequestedCertificateSet, Transport } from './types.js';
2
+ import { PeerSession, RequestedCertificateSet, Transport } from './types.js';
3
3
  import { VerifiableCertificate } from './certificates/VerifiableCertificate.js';
4
4
  import { WalletInterface } from '../../mod.js';
5
5
  /**
6
6
  * Represents a peer capable of performing mutual authentication.
7
7
  * Manages sessions, handles authentication handshakes, certificate requests and responses,
8
8
  * and sending and receiving general messages over a transport layer.
9
+ *
10
+ * This version supports multiple concurrent sessions per peer identityKey.
9
11
  */
10
12
  export declare class Peer {
11
13
  sessionManager: SessionManager;
@@ -33,7 +35,8 @@ export declare class Peer {
33
35
  * Sends a general message to a peer, and initiates a handshake if necessary.
34
36
  *
35
37
  * @param {number[]} message - The message payload to send.
36
- * @param {string} [identityKey] - The identity public key of the peer. If not provided, a handshake will be initiated.
38
+ * @param {string} [identityKey] - The identity public key of the peer. If not provided, uses lastInteractedWithPeer (if any).
39
+ * @param {number} [maxWaitTime] - optional max wait time in ms
37
40
  * @returns {Promise<void>}
38
41
  * @throws Will throw an error if the message fails to send.
39
42
  */
@@ -44,7 +47,7 @@ export declare class Peer {
44
47
  * an initial handshake or message has been exchanged.
45
48
  *
46
49
  * @param {RequestedCertificateSet} certificatesToRequest - Specifies the certifiers and types of certificates required from the peer.
47
- * @param {string} [identityKey] - The identity public key of the peer. If not provided, the current session identity is used.
50
+ * @param {string} [identityKey] - The identity public key of the peer. If not provided, the current or last session identity is used.
48
51
  * @param {number} [maxWaitTime=10000] - Maximum time in milliseconds to wait for the peer session to be authenticated.
49
52
  * @returns {Promise<void>} Resolves if the certificate request message is successfully sent.
50
53
  * @throws Will throw an error if the peer session is not authenticated or if sending the request fails.
@@ -54,12 +57,13 @@ export declare class Peer {
54
57
  * Retrieves an authenticated session for a given peer identity. If no session exists
55
58
  * or the session is not authenticated, initiates a handshake to create or authenticate the session.
56
59
  *
57
- * @param {string} [identityKey] - The identity public key of the peer. If provided, it attempts
58
- * to retrieve an existing session associated with this identity.
59
- * @param {number} [maxWaitTime] - The maximum time in milliseconds to wait for the handshake
60
- * to complete if a new session is required. Defaults to a pre-defined timeout if not specified.
60
+ * - If `identityKey` is provided, we look up any existing session for that identity key.
61
+ * - If none is found or not authenticated, we do a new handshake.
62
+ * - If `identityKey` is not provided, but we have a `lastInteractedWithPeer`, we try that key.
63
+ *
64
+ * @param {string} [identityKey] - The identity public key of the peer.
65
+ * @param {number} [maxWaitTime] - The maximum time in milliseconds to wait for the handshake.
61
66
  * @returns {Promise<PeerSession>} - A promise that resolves with an authenticated `PeerSession`.
62
- * @throws {Error} - Throws an error if the transport is not connected or if the handshake fails.
63
67
  */
64
68
  getAuthenticatedSession(identityKey?: string, maxWaitTime?: number): Promise<PeerSession>;
65
69
  /**
@@ -78,7 +82,7 @@ export declare class Peer {
78
82
  /**
79
83
  * Registers a callback to listen for certificates received from peers.
80
84
  *
81
- * @param {(certs: VerifiableCertificate[]) => void} callback - The function to call when certificates are received.
85
+ * @param {(senderPublicKey: string, certs: VerifiableCertificate[]) => void} callback - The function to call when certificates are received.
82
86
  * @returns {number} The ID of the callback listener.
83
87
  */
84
88
  listenForCertificatesReceived(callback: (senderPublicKey: string, certs: VerifiableCertificate[]) => void): number;
@@ -106,6 +110,7 @@ export declare class Peer {
106
110
  *
107
111
  * @private
108
112
  * @param {string} [identityKey] - The identity public key of the peer.
113
+ * @param {number} [maxWaitTime=10000] - how long to wait for handshake
109
114
  * @returns {Promise<string>} A promise that resolves to the session nonce.
110
115
  */
111
116
  private initiateHandshake;
@@ -143,35 +148,30 @@ export declare class Peer {
143
148
  * Processes an initial request message from a peer.
144
149
  *
145
150
  * @param {AuthMessage} message - The incoming initial request message.
146
- * @returns {Promise<void>}
147
151
  */
148
- processInitialRequest(message: AuthMessage): Promise<void>;
152
+ private processInitialRequest;
149
153
  /**
150
154
  * Processes an initial response message from a peer.
151
155
  *
152
156
  * @private
153
157
  * @param {AuthMessage} message - The incoming initial response message.
154
- * @returns {Promise<void>}
155
- * @throws Will throw an error if nonce verification or signature verification fails.
158
+ * @throws Will throw an error if nonce or signature verification fails.
156
159
  */
157
160
  private processInitialResponse;
158
161
  /**
159
162
  * Processes an incoming certificate request message from a peer.
160
- * Verifies the nonce and signature to ensure the authenticity of the request,
161
- * then initiates a response with any requested certificates that are available.
163
+ * Verifies nonce/signature and then possibly sends a certificateResponse.
162
164
  *
163
165
  * @param {AuthMessage} message - The certificate request message received from the peer.
164
- * @throws {Error} Throws an error if nonce verification fails, or the message signature is invalid.
166
+ * @throws {Error} if nonce or signature is invalid.
165
167
  */
166
168
  private processCertificateRequest;
167
169
  /**
168
170
  * Sends a certificate response message containing the specified certificates to a peer.
169
171
  *
170
172
  * @param {string} verifierIdentityKey - The identity key of the peer requesting the certificates.
171
- * @param {VerifiableCertificate[]} certificates - The list of certificates to be included in the response.
172
- * @returns {Promise<void>} - A promise that resolves once the certificate response has been sent successfully.
173
- *
174
- * @throws {Error} Throws an error if the peer session could not be authenticated or if message signing fails.
173
+ * @param {VerifiableCertificate[]} certificates - The list of certificates to include in the response.
174
+ * @throws Will throw an error if the transport fails to send the message.
175
175
  */
176
176
  sendCertificateResponse(verifierIdentityKey: string, certificates: VerifiableCertificate[]): Promise<void>;
177
177
  /**
@@ -179,7 +179,6 @@ export declare class Peer {
179
179
  *
180
180
  * @private
181
181
  * @param {AuthMessage} message - The incoming certificate response message.
182
- * @returns {Promise<void>}
183
182
  * @throws Will throw an error if nonce verification or signature verification fails.
184
183
  */
185
184
  private processCertificateResponse;
@@ -188,8 +187,7 @@ export declare class Peer {
188
187
  *
189
188
  * @private
190
189
  * @param {AuthMessage} message - The incoming general message.
191
- * @returns {Promise<void>}
192
- * @throws Will throw an error if nonce verification or signature verification fails.
190
+ * @throws Will throw an error if nonce or signature verification fails.
193
191
  */
194
192
  private processGeneralMessage;
195
193
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Peer.d.ts","sourceRoot":"","sources":["../../../../src/auth/Peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAOpD,OAAO,EACL,WAAW,EACX,WAAW,EACX,uBAAuB,EACvB,SAAS,EACV,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,EAAiB,eAAe,EAAE,MAAM,cAAc,CAAA;AAI7D;;;;GAIG;AACH,qBAAa,IAAI;IACR,cAAc,EAAE,cAAc,CAAA;IACrC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IACxC,qBAAqB,EAAE,uBAAuB,CAAA;IAC9C,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAGrC;IAEb,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAGnC;IAEb,OAAO,CAAC,QAAQ,CAAC,qCAAqC,CAMzC;IAEb,OAAO,CAAC,QAAQ,CAAC,kCAAkC,CAGtC;IAGb,OAAO,CAAC,iBAAiB,CAAY;IAGrC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAgB;IAGvD,OAAO,CAAC,sBAAsB,CAAoB;IAElD;;;;;;;;OAQG;gBAED,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,SAAS,EACpB,qBAAqB,CAAC,EAAE,uBAAuB,EAC/C,cAAc,CAAC,EAAE,cAAc,EAC/B,sBAAsB,CAAC,EAAE,OAAO;IAiBlC;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC;IA6ChB;;;;;;;;;;OAUG;IACG,mBAAmB,CAC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AE,MAAM,EAC3B,YAAY,EAAE,qBAAqB,EAAE,GACpC,OAAO,CAAC,IAAI,CAAC;IAqChB;;;;;;OAMG;YACW,0BAA0B;IA2CxC;;;;;;OAMG;YACW,qBAAqB;CAsCpC"}
@@ -1,25 +1,43 @@
1
1
  import { PeerSession } from './types.js';
2
2
  /**
3
- * Manages sessions for peers, allowing sessions to be added, retrieved, updated, and removed
4
- * by relevant identifiers (sessionNonce and peerIdentityKey).
3
+ * Manages sessions for peers, allowing multiple concurrent sessions
4
+ * per identity key. Primary lookup is always by `sessionNonce`.
5
5
  */
6
6
  export declare class SessionManager {
7
- private readonly identifierToSession;
7
+ /**
8
+ * Maps sessionNonce -> PeerSession
9
+ */
10
+ private readonly sessionNonceToSession;
11
+ /**
12
+ * Maps identityKey -> Set of sessionNonces
13
+ */
14
+ private readonly identityKeyToNonces;
8
15
  constructor();
9
16
  /**
10
- * Adds a session to the manager, associating it with relevant identifiers for retrieval.
17
+ * Adds a session to the manager, associating it with its sessionNonce,
18
+ * and also with its peerIdentityKey (if any).
19
+ *
20
+ * This does NOT overwrite existing sessions for the same peerIdentityKey,
21
+ * allowing multiple concurrent sessions for the same peer.
11
22
  *
12
23
  * @param {PeerSession} session - The peer session to add.
13
24
  */
14
25
  addSession(session: PeerSession): void;
15
26
  /**
16
- * Updates a session in the manager, ensuring that all identifiers are correctly associated.
27
+ * Updates a session in the manager (primarily by re-adding it),
28
+ * ensuring we record the latest data (e.g., isAuthenticated, lastUpdate, etc.).
17
29
  *
18
30
  * @param {PeerSession} session - The peer session to update.
19
31
  */
20
32
  updateSession(session: PeerSession): void;
21
33
  /**
22
- * Retrieves a session based on a given identifier.
34
+ * Retrieves a session based on a given identifier, which can be:
35
+ * - A sessionNonce, or
36
+ * - A peerIdentityKey.
37
+ *
38
+ * If it is a `sessionNonce`, returns that exact session.
39
+ * If it is a `peerIdentityKey`, returns the "best" (e.g. most recently updated,
40
+ * authenticated) session associated with that peer, if any.
23
41
  *
24
42
  * @param {string} identifier - The identifier for the session (sessionNonce or peerIdentityKey).
25
43
  * @returns {PeerSession | undefined} - The matching peer session, or undefined if not found.
@@ -32,7 +50,7 @@ export declare class SessionManager {
32
50
  */
33
51
  removeSession(session: PeerSession): void;
34
52
  /**
35
- * Checks if a session exists based on a given identifier.
53
+ * Checks if a session exists for a given identifier (either sessionNonce or identityKey).
36
54
  *
37
55
  * @param {string} identifier - The identifier to check.
38
56
  * @returns {boolean} - True if the session exists, false otherwise.
@@ -1 +1 @@
1
- {"version":3,"file":"SessionManager.d.ts","sourceRoot":"","sources":["../../../../src/auth/SessionManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC;;;GAGG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA0B;;IAM9D;;;;OAIG;IACH,UAAU,CAAE,OAAO,EAAE,WAAW,GAAG,IAAI;IAgBvC;;;;OAIG;IACH,aAAa,CAAE,OAAO,EAAE,WAAW,GAAG,IAAI;IAK1C;;;;;OAKG;IACH,UAAU,CAAE,UAAU,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAIxD;;;;OAIG;IACH,aAAa,CAAE,OAAO,EAAE,WAAW,GAAG,IAAI;IAS1C;;;;;OAKG;IACH,UAAU,CAAE,UAAU,EAAE,MAAM,GAAG,OAAO;CAGzC"}
1
+ {"version":3,"file":"SessionManager.d.ts","sourceRoot":"","sources":["../../../../src/auth/SessionManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC;;;GAGG;AACH,qBAAa,cAAc;IACzB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAA0B;IAEhE;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA0B;;IAO9D;;;;;;;;OAQG;IACH,UAAU,CAAE,OAAO,EAAE,WAAW,GAAG,IAAI;IAqBvC;;;;;OAKG;IACH,aAAa,CAAE,OAAO,EAAE,WAAW,GAAG,IAAI;IAM1C;;;;;;;;;;;OAWG;IACH,UAAU,CAAE,UAAU,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAmCxD;;;;OAIG;IACH,aAAa,CAAE,OAAO,EAAE,WAAW,GAAG,IAAI;IAe1C;;;;;OAKG;IACH,UAAU,CAAE,UAAU,EAAE,MAAM,GAAG,OAAO;CAOzC"}
@@ -27,5 +27,6 @@ export interface PeerSession {
27
27
  sessionNonce?: string;
28
28
  peerNonce?: string;
29
29
  peerIdentityKey?: string;
30
+ lastUpdate: number;
30
31
  }
31
32
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/auth/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAE/E,MAAM,WAAW,sCAAsC;IACrD,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACtC;AAGD,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,KAAK,EAAE,sCAAsC,CAAA;CAC9C;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EACT,gBAAgB,GAChB,iBAAiB,GACjB,oBAAoB,GACpB,qBAAqB,GACrB,SAAS,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACtC,qBAAqB,CAAC,EAAE,uBAAuB,CAAA;IAC/C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,IAA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