@bsv/message-box-client 1.4.3 → 1.4.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/message-box-client",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -78,7 +78,7 @@ export interface IncomingPayment {
78
78
  export class PeerPayClient extends MessageBoxClient {
79
79
  private readonly peerPayWalletClient: WalletInterface
80
80
  private _authFetchInstance?: AuthFetch
81
- private messageBox: string
81
+ private readonly messageBox: string
82
82
 
83
83
  constructor(config: PeerPayClientConfig) {
84
84
  const { messageBoxHost = 'https://messagebox.babbage.systems', walletClient, enableLogging = false, originator } = config
@@ -116,8 +116,8 @@ export class PeerPayClient extends MessageBoxClient {
116
116
  };
117
117
 
118
118
  // Generate derivation paths using correct nonce function
119
- const derivationPrefix = await createNonce(this.peerPayWalletClient)
120
- const derivationSuffix = await createNonce(this.peerPayWalletClient)
119
+ const derivationPrefix = await createNonce(this.peerPayWalletClient, 'self', this.originator)
120
+ const derivationSuffix = await createNonce(this.peerPayWalletClient, 'self', this.originator)
121
121
 
122
122
  Logger.log(`[PP CLIENT] Derivation Prefix: ${derivationPrefix}`)
123
123
  Logger.log(`[PP CLIENT] Derivation Suffix: ${derivationSuffix}`)
@@ -118,4 +118,4 @@ export interface MessageBoxMultiQuote {
118
118
  * If all recipients resolve to one host, you’ll just have one entry.
119
119
  */
120
120
  deliveryAgentIdentityKeyByHost: Record<string, string>
121
- }
121
+ }