@interop/was-client 0.95.0 → 0.96.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.
package/README.md
CHANGED
|
@@ -170,7 +170,9 @@ The derivation is deterministic and permanent: the same secret, on any client,
|
|
|
170
170
|
derives the same `did:key` and joins the same account. `agents.keyAgreementKey`
|
|
171
171
|
and `agents.keyResolver` are the key-agreement key and resolver the `./edv`
|
|
172
172
|
cipher takes, so a caller building an encrypted collection has both halves from
|
|
173
|
-
one call.
|
|
173
|
+
one call. The key is a `ProfileKeyAgreementKey`, which also carries its
|
|
174
|
+
`publicKeyMultibase`, the value a caller publishes as the key's verification
|
|
175
|
+
method.
|
|
174
176
|
|
|
175
177
|
### The delegation-proof suite
|
|
176
178
|
|
|
@@ -26,6 +26,15 @@ import type { IKeyAgreementKey, IKeyResolver } from '@interop/data-integrity-cor
|
|
|
26
26
|
*/
|
|
27
27
|
export declare const BOOTSTRAP_HANDLE = "bootstrap";
|
|
28
28
|
export declare const BOOTSTRAP_KEY_NAME = "bootstrap-key";
|
|
29
|
+
/**
|
|
30
|
+
* The key-agreement key a profile derivation hands out: the EDV cipher's
|
|
31
|
+
* `IKeyAgreementKey` contract plus the X25519 public key multibase
|
|
32
|
+
* (`z6LS...`) a caller publishes as the key's verification method, so a
|
|
33
|
+
* consumer reads the multibase off the key with no cast.
|
|
34
|
+
*/
|
|
35
|
+
export type ProfileKeyAgreementKey = IKeyAgreementKey & {
|
|
36
|
+
publicKeyMultibase: string;
|
|
37
|
+
};
|
|
29
38
|
/**
|
|
30
39
|
* The agents derived from a controller secret or seed: the signing
|
|
31
40
|
* CapabilityAgent / did:key, a ZcapClient for signing storage requests, and
|
|
@@ -35,7 +44,7 @@ export interface ProfileAgents {
|
|
|
35
44
|
controllerDid: string;
|
|
36
45
|
keyAgent: CapabilityAgent;
|
|
37
46
|
zcapClient: ZcapClient;
|
|
38
|
-
keyAgreementKey:
|
|
47
|
+
keyAgreementKey: ProfileKeyAgreementKey;
|
|
39
48
|
keyResolver: IKeyResolver;
|
|
40
49
|
}
|
|
41
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","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,CAAA;AAE3C,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,8BAA8B,CAAA;AAKrC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,cAAc,CAAA;AAC3C,eAAO,MAAM,kBAAkB,kBAAkB,CAAA;AAEjD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,eAAe,CAAA;IACzB,UAAU,EAAE,UAAU,CAAA;IACtB,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"agents.d.ts","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,CAAA;AAE3C,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,8BAA8B,CAAA;AAKrC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,cAAc,CAAA;AAC3C,eAAO,MAAM,kBAAkB,kBAAkB,CAAA;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG;IACtD,kBAAkB,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,eAAe,CAAA;IACzB,UAAU,EAAE,UAAU,CAAA;IACtB,eAAe,EAAE,sBAAsB,CAAA;IACvC,WAAW,EAAE,YAAY,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,EACnC,IAAI,EACL,EAAE;IACD,IAAI,EAAE,UAAU,CAAA;CACjB,GAAG,OAAO,CAAC,aAAa,CAAC,CAYzB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,MAAM,EACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,aAAa,CAAC,CAazB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACT,EAAE;IACD,QAAQ,EAAE,eAAe,CAAA;CAC1B,GAAG,aAAa,CAqBhB"}
|
package/dist/identity/agents.js
CHANGED
|
@@ -106,7 +106,8 @@ export function agentsFromKeyAgent({ keyAgent }) {
|
|
|
106
106
|
keyAgent,
|
|
107
107
|
zcapClient,
|
|
108
108
|
// `id` is always set on the KAK here (a controller was supplied at
|
|
109
|
-
// derivation), so it satisfies IKeyAgreementKey's required `id
|
|
109
|
+
// derivation), so it satisfies IKeyAgreementKey's required `id`; the
|
|
110
|
+
// conversion always sets `publicKeyMultibase`.
|
|
110
111
|
keyAgreementKey: keyAgreementKey,
|
|
111
112
|
keyResolver
|
|
112
113
|
};
|
|
@@ -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,CAAA;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAK7E,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9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,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACrC,MAAM,EAGP;IACC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,CAAA;IAC7B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,eAAe,CACvB,iFAAiF,CAClF,CAAA;IACH,CAAC;IACD,MAAM,QAAQ,GAAG,MAAM,eAAe,CAAC,UAAU,CAAC;QAChD,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE,kBAAkB;KAC5B,CAAC,CAAA;IACF,OAAO,kBAAkB,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;AACzC,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,QAAQ,EAGT;IACC,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAA;IACnC,sEAAsE;IACtE,WAAW;IACX,MAAM,UAAU,GAAG,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IAElD,MAAM,eAAe,GAAG,yBAAyB,CAAC,WAAW,CAC3D,QAAQ,CAAC,sBAAsB,EAAE,CAClC,CAAA;IACD,MAAM,WAAW,GAAG,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC,CAAA;IAE1D,OAAO;QACL,aAAa,EAAE,QAAQ,CAAC,EAAE;QAC1B,QAAQ;QACR,UAAU;QACV,mEAAmE;QACnE,qEAAqE;QACrE,+CAA+C;QAC/C,eAAe,EAAE,eAAyC;QAC1D,WAAW;KACZ,CAAA;AACH,CAAC"}
|
package/dist/identity/index.d.ts
CHANGED
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
* root.
|
|
11
11
|
*/
|
|
12
12
|
export { BOOTSTRAP_HANDLE, BOOTSTRAP_KEY_NAME, agentsFromKeyAgent, agentsFromSecret, agentsFromSeed } from './agents.js';
|
|
13
|
-
export type { ProfileAgents } from './agents.js';
|
|
13
|
+
export type { ProfileAgents, ProfileKeyAgreementKey } from './agents.js';
|
|
14
14
|
export { singleKeyResolver } from './keyResolver.js';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;GAOG;AACH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACf,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;GAOG;AACH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACf,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
|
package/package.json
CHANGED