@interop/was-client 0.91.0 → 0.92.0
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.
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* WAS account/Space.
|
|
9
9
|
*
|
|
10
10
|
* The derivation: secret or 32-byte seed enters `CapabilityAgent` under the
|
|
11
|
-
*
|
|
12
|
-
* every account's data identity derives through these exact strings, so
|
|
13
|
-
*
|
|
11
|
+
* pinned `'bootstrap'` / `'bootstrap-key'` names. Both are derivation inputs:
|
|
12
|
+
* every account's data identity derives through these exact strings, so a
|
|
13
|
+
* change to either renames every existing account. The resulting Ed25519
|
|
14
14
|
* signing key backs a did:key DID, a `ZcapClient` for signing storage
|
|
15
15
|
* requests, and -- via did:key's encryption-key derivation (the Montgomery
|
|
16
16
|
* form of the signing key) -- the X25519 key agreement key (KAK) the EDV
|
|
@@ -21,11 +21,11 @@ import { CapabilityAgent } from '@interop/capability-agent';
|
|
|
21
21
|
import { ZcapClient } from '@interop/ezcap';
|
|
22
22
|
import type { IKeyAgreementKey, IKeyResolver } from '@interop/data-integrity-core';
|
|
23
23
|
/**
|
|
24
|
-
* The
|
|
25
|
-
*
|
|
24
|
+
* The pinned `CapabilityAgent` derivation names (see the module doc: both are
|
|
25
|
+
* inputs to every account's key derivation).
|
|
26
26
|
*/
|
|
27
27
|
export declare const BOOTSTRAP_HANDLE = "bootstrap";
|
|
28
|
-
export declare const BOOTSTRAP_KEY_NAME = "
|
|
28
|
+
export declare const BOOTSTRAP_KEY_NAME = "bootstrap-key";
|
|
29
29
|
/**
|
|
30
30
|
* The agents derived from a controller secret or seed: the signing
|
|
31
31
|
* CapabilityAgent / did:key, a ZcapClient for signing storage requests, and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/identity/agents.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;GAeG;AACH,OAAO,E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aAAa,CAoBhB"}
|
package/dist/identity/agents.js
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* WAS account/Space.
|
|
9
9
|
*
|
|
10
10
|
* The derivation: secret or 32-byte seed enters `CapabilityAgent` under the
|
|
11
|
-
*
|
|
12
|
-
* every account's data identity derives through these exact strings, so
|
|
13
|
-
*
|
|
11
|
+
* pinned `'bootstrap'` / `'bootstrap-key'` names. Both are derivation inputs:
|
|
12
|
+
* every account's data identity derives through these exact strings, so a
|
|
13
|
+
* change to either renames every existing account. The resulting Ed25519
|
|
14
14
|
* signing key backs a did:key DID, a `ZcapClient` for signing storage
|
|
15
15
|
* requests, and -- via did:key's encryption-key derivation (the Montgomery
|
|
16
16
|
* form of the signing key) -- the X25519 key agreement key (KAK) the EDV
|
|
@@ -24,11 +24,11 @@ import { ValidationError } from '../errors.js';
|
|
|
24
24
|
import { zcapClientForSigner } from '../zcapClient.js';
|
|
25
25
|
import { singleKeyResolver } from './keyResolver.js';
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
28
|
-
*
|
|
27
|
+
* The pinned `CapabilityAgent` derivation names (see the module doc: both are
|
|
28
|
+
* inputs to every account's key derivation).
|
|
29
29
|
*/
|
|
30
30
|
export const BOOTSTRAP_HANDLE = 'bootstrap';
|
|
31
|
-
export const BOOTSTRAP_KEY_NAME = '
|
|
31
|
+
export const BOOTSTRAP_KEY_NAME = 'bootstrap-key';
|
|
32
32
|
/**
|
|
33
33
|
* Derives the WAS agents from an already-derived 32-byte seed, skipping the
|
|
34
34
|
* salted-hash step (`CapabilityAgent.fromSeed` semantics: a stored seed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/identity/agents.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,C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