@tinycloud/node-sdk 2.2.1-beta.1 → 2.3.0-beta.2

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/dist/core.cjs CHANGED
@@ -2342,8 +2342,8 @@ var _TinyCloudNode = class _TinyCloudNode {
2342
2342
  fetchByNetworkId: (networkId) => this.getEncryptionNetwork(networkId)
2343
2343
  },
2344
2344
  wellKnown: {
2345
- fetchWellKnown: async (principal, discoveryKey) => {
2346
- if (!this._address || principal !== this.did) {
2345
+ fetchWellKnown: async (ownerDid, discoveryKey) => {
2346
+ if (!this._address || ownerDid !== this.did) {
2347
2347
  return null;
2348
2348
  }
2349
2349
  if (!this.config.host) {
@@ -2805,11 +2805,11 @@ var _TinyCloudNode = class _TinyCloudNode {
2805
2805
  }
2806
2806
  async createEncryptionNetwork(name = DEFAULT_ENCRYPTION_NETWORK_NAME) {
2807
2807
  const targetNode = await this.fetchNodeId();
2808
- const principal = this.did;
2808
+ const ownerDid = this.did;
2809
2809
  const networkId = this.getDefaultEncryptionNetworkId(name);
2810
2810
  const body = {
2811
2811
  name,
2812
- principal,
2812
+ ownerDid,
2813
2813
  threshold: { n: 1, t: 1 }
2814
2814
  };
2815
2815
  const crypto = this.createEncryptionCrypto();