@learncard/didkit-plugin 1.9.13 → 1.10.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
@@ -72,6 +72,29 @@ if (result.errors.length > 0) console.error('This presentation is not valid!', r
72
72
  else console.log('This presentation is valid!');
73
73
  ```
74
74
 
75
+ #### Final P-256 Data Integrity proofs
76
+
77
+ The native and WASM engines support explicit `ecdsa-rdfc-2019` proofs with P-256/ES256
78
+ keys. Verification accepts equivalent P-256 JWKs and validated compressed P-256
79
+ Multikeys. This suite is distinct from the legacy `ecdsa-2019` suite; omitted-suite
80
+ selection and existing EdDSA behavior are unchanged. P-384 is not supported by the
81
+ new suite.
82
+
83
+ For DIDAuth verification, supply the expected `proofPurpose: 'authentication'`,
84
+ `challenge`, and `domain`. The holder's DID document must authorize the verification
85
+ method for authentication. Final-suite proofs may omit `created`; a verification
86
+ date cutoff applies to timestamps that are present.
87
+
88
+ Low-level signing requires an explicit P-256 key and an appropriate document context.
89
+ An Ed25519 wallet does not gain P-256 key selection, and outgoing OpenID negotiation
90
+ does not advertise this suite.
91
+
92
+ Inbox claims additionally require a supported X25519 key-agreement method for encrypted
93
+ delivery and recovery. Use separate authentication and encryption keys in a `did:web`
94
+ document. Signing-only P-256 `did:key` holders can use generic claim links, but not inbox
95
+ claims; an unsupported delivery key leaves the pending credential and challenge available
96
+ for retry.
97
+
75
98
  ### Storing/Retrieving/Sending Credentials
76
99
 
77
100
  #### Ceramic/IDX
@@ -85,9 +85,9 @@ export interface InitOutput {
85
85
  readonly __wbindgen_export_5: WebAssembly.Table;
86
86
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
87
87
  readonly __externref_table_dealloc: (a: number) => void;
88
- readonly closure4278_externref_shim: (a: number, b: number, c: any) => void;
89
88
  readonly wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______: (a: number, b: number) => void;
90
- readonly closure4664_externref_shim: (a: number, b: number, c: any, d: any) => void;
89
+ readonly closure4277_externref_shim: (a: number, b: number, c: any) => void;
90
+ readonly closure4663_externref_shim: (a: number, b: number, c: any, d: any) => void;
91
91
  readonly __wbindgen_start: () => void;
92
92
  }
93
93
 
@@ -822,16 +822,16 @@ export function decryptDagJwe(jwe, jwks) {
822
822
  return ret;
823
823
  }
824
824
 
825
- function __wbg_adapter_6(arg0, arg1, arg2) {
826
- wasm.closure4278_externref_shim(arg0, arg1, arg2);
825
+ function __wbg_adapter_14(arg0, arg1) {
826
+ wasm.wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______(arg0, arg1);
827
827
  }
828
828
 
829
- function __wbg_adapter_15(arg0, arg1) {
830
- wasm.wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______(arg0, arg1);
829
+ function __wbg_adapter_21(arg0, arg1, arg2) {
830
+ wasm.closure4277_externref_shim(arg0, arg1, arg2);
831
831
  }
832
832
 
833
833
  function __wbg_adapter_165(arg0, arg1, arg2, arg3) {
834
- wasm.closure4664_externref_shim(arg0, arg1, arg2, arg3);
834
+ wasm.closure4663_externref_shim(arg0, arg1, arg2, arg3);
835
835
  }
836
836
 
837
837
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -1332,14 +1332,19 @@ function __wbg_get_imports() {
1332
1332
  const ret = BigInt.asUintN(64, arg0);
1333
1333
  return ret;
1334
1334
  };
1335
+ imports.wbg.__wbindgen_cast_71be6b9810665d03 = function(arg0, arg1) {
1336
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4276, function: Function { arguments: [Externref], shim_idx: 4277, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1337
+ const ret = makeMutClosure(arg0, arg1, 4276, __wbg_adapter_21);
1338
+ return ret;
1339
+ };
1335
1340
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
1336
1341
  // Cast intrinsic for `I64 -> Externref`.
1337
1342
  const ret = arg0;
1338
1343
  return ret;
1339
1344
  };
1340
- imports.wbg.__wbindgen_cast_a80d8bd71297895c = function(arg0, arg1) {
1341
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4277, function: Function { arguments: [Externref], shim_idx: 4278, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1342
- const ret = makeMutClosure(arg0, arg1, 4277, __wbg_adapter_6);
1345
+ imports.wbg.__wbindgen_cast_c4ad6e01c6e9da76 = function(arg0, arg1) {
1346
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4242, function: Function { arguments: [], shim_idx: 4243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1347
+ const ret = makeMutClosure(arg0, arg1, 4242, __wbg_adapter_14);
1343
1348
  return ret;
1344
1349
  };
1345
1350
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
@@ -1347,11 +1352,6 @@ function __wbg_get_imports() {
1347
1352
  const ret = getArrayU8FromWasm0(arg0, arg1);
1348
1353
  return ret;
1349
1354
  };
1350
- imports.wbg.__wbindgen_cast_ce402fe3678a2ac0 = function(arg0, arg1) {
1351
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4243, function: Function { arguments: [], shim_idx: 4244, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1352
- const ret = makeMutClosure(arg0, arg1, 4243, __wbg_adapter_15);
1353
- return ret;
1354
- };
1355
1355
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1356
1356
  // Cast intrinsic for `F64 -> Externref`.
1357
1357
  const ret = arg0;
Binary file
@@ -46,7 +46,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
46
46
  export const __wbindgen_export_5: WebAssembly.Table;
47
47
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
48
48
  export const __externref_table_dealloc: (a: number) => void;
49
- export const closure4278_externref_shim: (a: number, b: number, c: any) => void;
50
49
  export const wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______: (a: number, b: number) => void;
51
- export const closure4664_externref_shim: (a: number, b: number, c: any, d: any) => void;
50
+ export const closure4277_externref_shim: (a: number, b: number, c: any) => void;
51
+ export const closure4663_externref_shim: (a: number, b: number, c: any, d: any) => void;
52
52
  export const __wbindgen_start: () => void;
@@ -8,7 +8,7 @@ export * from './pkg/didkit_wasm';
8
8
  * Kept as a standalone constant so `scripts/set-default-wasm-url.mjs` can rewrite it regardless of
9
9
  * how Prettier wraps the `init` signature. Do not inline it back into the parameter list.
10
10
  */
11
- export declare const DEFAULT_DIDKIT_WASM_URL = "https://assets.learncard.ai/didkit/sha256-38e9e39677846cfec7f0521cc23d707e2c9e87ae9981f988d78747f023bf64ee/didkit_wasm_bg.wasm";
11
+ export declare const DEFAULT_DIDKIT_WASM_URL = "https://assets.learncard.ai/didkit/sha256-a817bfa1dacc5b1f426caed9b1ebb9a5b5f80176dc1e061da634755ceb456653/didkit_wasm_bg.wasm";
12
12
  export declare const init: (arg?: InitInput | Promise<InitInput>) => Promise<void>;
13
13
  export default init;
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -437,16 +437,16 @@ function decryptDagJwe(jwe, jwks) {
437
437
  return ret;
438
438
  }
439
439
  __name(decryptDagJwe, "decryptDagJwe");
440
- function __wbg_adapter_6(arg0, arg1, arg2) {
441
- wasm.closure4278_externref_shim(arg0, arg1, arg2);
442
- }
443
- __name(__wbg_adapter_6, "__wbg_adapter_6");
444
- function __wbg_adapter_15(arg0, arg1) {
440
+ function __wbg_adapter_14(arg0, arg1) {
445
441
  wasm.wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______(arg0, arg1);
446
442
  }
447
- __name(__wbg_adapter_15, "__wbg_adapter_15");
443
+ __name(__wbg_adapter_14, "__wbg_adapter_14");
444
+ function __wbg_adapter_21(arg0, arg1, arg2) {
445
+ wasm.closure4277_externref_shim(arg0, arg1, arg2);
446
+ }
447
+ __name(__wbg_adapter_21, "__wbg_adapter_21");
448
448
  function __wbg_adapter_165(arg0, arg1, arg2, arg3) {
449
- wasm.closure4664_externref_shim(arg0, arg1, arg2, arg3);
449
+ wasm.closure4663_externref_shim(arg0, arg1, arg2, arg3);
450
450
  }
451
451
  __name(__wbg_adapter_165, "__wbg_adapter_165");
452
452
  var __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -965,22 +965,22 @@ function __wbg_get_imports() {
965
965
  const ret = BigInt.asUintN(64, arg0);
966
966
  return ret;
967
967
  };
968
+ imports.wbg.__wbindgen_cast_71be6b9810665d03 = function(arg0, arg1) {
969
+ const ret = makeMutClosure(arg0, arg1, 4276, __wbg_adapter_21);
970
+ return ret;
971
+ };
968
972
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
969
973
  const ret = arg0;
970
974
  return ret;
971
975
  };
972
- imports.wbg.__wbindgen_cast_a80d8bd71297895c = function(arg0, arg1) {
973
- const ret = makeMutClosure(arg0, arg1, 4277, __wbg_adapter_6);
976
+ imports.wbg.__wbindgen_cast_c4ad6e01c6e9da76 = function(arg0, arg1) {
977
+ const ret = makeMutClosure(arg0, arg1, 4242, __wbg_adapter_14);
974
978
  return ret;
975
979
  };
976
980
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
977
981
  const ret = getArrayU8FromWasm0(arg0, arg1);
978
982
  return ret;
979
983
  };
980
- imports.wbg.__wbindgen_cast_ce402fe3678a2ac0 = function(arg0, arg1) {
981
- const ret = makeMutClosure(arg0, arg1, 4243, __wbg_adapter_15);
982
- return ret;
983
- };
984
984
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
985
985
  const ret = arg0;
986
986
  return ret;
@@ -1034,7 +1034,7 @@ __name(__wbg_init, "__wbg_init");
1034
1034
  var didkit_wasm_default = __wbg_init;
1035
1035
 
1036
1036
  // src/didkit/index.ts
1037
- var DEFAULT_DIDKIT_WASM_URL = "https://assets.learncard.ai/didkit/sha256-38e9e39677846cfec7f0521cc23d707e2c9e87ae9981f988d78747f023bf64ee/didkit_wasm_bg.wasm";
1037
+ var DEFAULT_DIDKIT_WASM_URL = "https://assets.learncard.ai/didkit/sha256-a817bfa1dacc5b1f426caed9b1ebb9a5b5f80176dc1e061da634755ceb456653/didkit_wasm_bg.wasm";
1038
1038
  var initialized = false;
1039
1039
  var generating = false;
1040
1040
  var init = /* @__PURE__ */ __name(async (arg = DEFAULT_DIDKIT_WASM_URL) => {