@unicitylabs/sphere-sdk 0.14.8-dev.1 → 0.14.9-dev.1

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.
@@ -487,7 +487,6 @@ interface WakeSource {
487
487
  interface DeliveryIdentity {
488
488
  privateKey: string;
489
489
  chainPubkey: string;
490
- nametag?: string;
491
490
  }
492
491
  interface WalletApiDeliveryPortConfig {
493
492
  client: DeliveryPortClient;
@@ -487,7 +487,6 @@ interface WakeSource {
487
487
  interface DeliveryIdentity {
488
488
  privateKey: string;
489
489
  chainPubkey: string;
490
- nametag?: string;
491
490
  }
492
491
  interface WalletApiDeliveryPortConfig {
493
492
  client: DeliveryPortClient;
@@ -4112,10 +4112,14 @@ var WalletApiDeliveryPort = class {
4112
4112
  sha: bytesToHex3(sha256(bytes))
4113
4113
  };
4114
4114
  }
4115
+ // sphere#487: the nametag is a per-call option and NOT port config — a
4116
+ // construction-time copy would silently go stale on registration, and only a
4117
+ // caller-supplied value is enforceable by the port contract suite (which any
4118
+ // swapped DeliveryPort must pass).
4115
4119
  buildEnvelope(recipientPubkey, options) {
4116
4120
  const key = deriveDeliveryEncryptionKey(this.identity.privateKey, recipientPubkey);
4117
4121
  return encryptDeliveryBundle(key, {
4118
- senderNametag: options.senderNametag ?? this.identity.nametag,
4122
+ senderNametag: options.senderNametag,
4119
4123
  memo: options.memo
4120
4124
  });
4121
4125
  }