@keyhive/keyhive 0.0.0-alpha.44 → 0.0.0-alpha.45
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/package.json +1 -1
- package/pkg/keyhive_wasm_bg.js +20 -21
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +41 -41
- package/pkg-node/keyhive_wasm.js +20 -21
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +41 -41
- package/pkg-slim/keyhive_wasm.d.ts +41 -41
- package/pkg-slim/keyhive_wasm.js +19 -20
- package/pkg-slim/keyhive_wasm_bg.wasm +0 -0
- package/pkg-slim/keyhive_wasm_bg.wasm.base64.js +1 -1
- package/pkg-slim/keyhive_wasm_bg.wasm.d.ts +41 -41
package/package.json
CHANGED
package/pkg/keyhive_wasm_bg.js
CHANGED
|
@@ -247,16 +247,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
247
247
|
WASM_VECTOR_LEN = arg.length;
|
|
248
248
|
return ptr;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
252
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
253
|
-
for (let i = 0; i < array.length; i++) {
|
|
254
|
-
const add = addToExternrefTable0(array[i]);
|
|
255
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
256
|
-
}
|
|
257
|
-
WASM_VECTOR_LEN = array.length;
|
|
258
|
-
return ptr;
|
|
259
|
-
}
|
|
260
250
|
/**
|
|
261
251
|
* Panic hook lets us get better error messages if our Rust code ever panics.
|
|
262
252
|
*
|
|
@@ -267,12 +257,21 @@ export function setPanicHook() {
|
|
|
267
257
|
wasm.setPanicHook();
|
|
268
258
|
}
|
|
269
259
|
|
|
270
|
-
function
|
|
271
|
-
|
|
260
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
261
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
262
|
+
for (let i = 0; i < array.length; i++) {
|
|
263
|
+
const add = addToExternrefTable0(array[i]);
|
|
264
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
265
|
+
}
|
|
266
|
+
WASM_VECTOR_LEN = array.length;
|
|
267
|
+
return ptr;
|
|
268
|
+
}
|
|
269
|
+
function wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2) {
|
|
270
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2);
|
|
272
271
|
}
|
|
273
272
|
|
|
274
|
-
function
|
|
275
|
-
wasm.
|
|
273
|
+
function wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3) {
|
|
274
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3);
|
|
276
275
|
}
|
|
277
276
|
|
|
278
277
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -3107,7 +3106,7 @@ export function __wbg_new_3c3d849046688a66(arg0, arg1) {
|
|
|
3107
3106
|
const a = state0.a;
|
|
3108
3107
|
state0.a = 0;
|
|
3109
3108
|
try {
|
|
3110
|
-
return
|
|
3109
|
+
return wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(a, state0.b, arg0, arg1);
|
|
3111
3110
|
} finally {
|
|
3112
3111
|
state0.a = a;
|
|
3113
3112
|
}
|
|
@@ -3389,15 +3388,15 @@ export function __wbindgen_cast_ae91babfc5c19b28(arg0, arg1) {
|
|
|
3389
3388
|
return ret;
|
|
3390
3389
|
};
|
|
3391
3390
|
|
|
3392
|
-
export function
|
|
3393
|
-
// Cast intrinsic for `
|
|
3394
|
-
const ret =
|
|
3391
|
+
export function __wbindgen_cast_bef74971622929eb(arg0, arg1) {
|
|
3392
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 462, function: Function { arguments: [Externref], shim_idx: 463, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3393
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5b88280100d48bc0, wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696);
|
|
3395
3394
|
return ret;
|
|
3396
3395
|
};
|
|
3397
3396
|
|
|
3398
|
-
export function
|
|
3399
|
-
// Cast intrinsic for `
|
|
3400
|
-
const ret =
|
|
3397
|
+
export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
3398
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3399
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3401
3400
|
return ret;
|
|
3402
3401
|
};
|
|
3403
3402
|
|
package/pkg/keyhive_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -38,20 +38,30 @@ export const signedrevocation_signature: (a: number) => [number, number];
|
|
|
38
38
|
export const signedrevocation_verify: (a: number) => number;
|
|
39
39
|
export const signedrevocation_verifyingKey: (a: number) => [number, number];
|
|
40
40
|
export const contactcard_individualId: (a: number) => number;
|
|
41
|
-
export const
|
|
42
|
-
export const
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
41
|
+
export const setPanicHook: () => void;
|
|
42
|
+
export const __wbg_capability_free: (a: number, b: number) => void;
|
|
43
|
+
export const capability_can: (a: number) => number;
|
|
44
|
+
export const capability_proof: (a: number) => number;
|
|
45
|
+
export const capability_who: (a: number) => number;
|
|
46
|
+
export const __wbg_changeid_free: (a: number, b: number) => void;
|
|
47
|
+
export const __wbg_history_free: (a: number, b: number) => void;
|
|
48
|
+
export const __wbg_invocation_free: (a: number, b: number) => void;
|
|
49
|
+
export const __wbg_membered_free: (a: number, b: number) => void;
|
|
50
|
+
export const __wbg_revocation_free: (a: number, b: number) => void;
|
|
51
|
+
export const __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
52
|
+
export const __wbg_summary_free: (a: number, b: number) => void;
|
|
53
|
+
export const changeid___wasm_refgen_toChangeId: (a: number) => number;
|
|
54
|
+
export const changeid_bytes: (a: number) => [number, number];
|
|
55
|
+
export const changeid_new: (a: number, b: number) => number;
|
|
56
|
+
export const history_contentRefs: (a: number) => [number, number];
|
|
57
|
+
export const history_delegations: (a: number) => [number, number];
|
|
58
|
+
export const history_revocations: (a: number) => [number, number];
|
|
59
|
+
export const revocation_after: (a: number) => number;
|
|
60
|
+
export const revocation_proof: (a: number) => number;
|
|
61
|
+
export const revocation_revoked: (a: number) => number;
|
|
62
|
+
export const revocation_subject_id: (a: number) => number;
|
|
63
|
+
export const summary_access: (a: number) => number;
|
|
64
|
+
export const summary_doc: (a: number) => number;
|
|
55
65
|
export const __wbg_keyhive_free: (a: number, b: number) => void;
|
|
56
66
|
export const keyhive_accessForDoc: (a: number, b: number, c: number) => any;
|
|
57
67
|
export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
@@ -84,6 +94,20 @@ export const keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e:
|
|
|
84
94
|
export const keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
85
95
|
export const keyhive_trySign: (a: number, b: number, c: number) => any;
|
|
86
96
|
export const keyhive_whoami: (a: number) => number;
|
|
97
|
+
export const __wbg_access_free: (a: number, b: number) => void;
|
|
98
|
+
export const __wbg_archive_free: (a: number, b: number) => void;
|
|
99
|
+
export const __wbg_event_free: (a: number, b: number) => void;
|
|
100
|
+
export const access_toString: (a: number) => [number, number];
|
|
101
|
+
export const access_tryFromString: (a: number, b: number) => number;
|
|
102
|
+
export const archive_toBytes: (a: number) => [number, number, number, number];
|
|
103
|
+
export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
104
|
+
export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
105
|
+
export const event_isDelegated: (a: number) => number;
|
|
106
|
+
export const event_isRevoked: (a: number) => number;
|
|
107
|
+
export const event_toBytes: (a: number) => [number, number, number, number];
|
|
108
|
+
export const event_tryIntoSignedDelegation: (a: number) => number;
|
|
109
|
+
export const event_tryIntoSignedRevocation: (a: number) => number;
|
|
110
|
+
export const event_variant: (a: number) => [number, number];
|
|
87
111
|
export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
|
|
88
112
|
export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
|
|
89
113
|
export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
|
|
@@ -137,26 +161,6 @@ export const stats_groups: (a: number) => bigint;
|
|
|
137
161
|
export const stats_individuals: (a: number) => bigint;
|
|
138
162
|
export const stats_revocations: (a: number) => bigint;
|
|
139
163
|
export const encrypted_toBytes: (a: number) => [number, number];
|
|
140
|
-
export const setPanicHook: () => void;
|
|
141
|
-
export const __wbg_changeid_free: (a: number, b: number) => void;
|
|
142
|
-
export const __wbg_history_free: (a: number, b: number) => void;
|
|
143
|
-
export const __wbg_invocation_free: (a: number, b: number) => void;
|
|
144
|
-
export const __wbg_membered_free: (a: number, b: number) => void;
|
|
145
|
-
export const __wbg_revocation_free: (a: number, b: number) => void;
|
|
146
|
-
export const __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
147
|
-
export const __wbg_summary_free: (a: number, b: number) => void;
|
|
148
|
-
export const changeid___wasm_refgen_toChangeId: (a: number) => number;
|
|
149
|
-
export const changeid_bytes: (a: number) => [number, number];
|
|
150
|
-
export const changeid_new: (a: number, b: number) => number;
|
|
151
|
-
export const history_contentRefs: (a: number) => [number, number];
|
|
152
|
-
export const history_delegations: (a: number) => [number, number];
|
|
153
|
-
export const history_revocations: (a: number) => [number, number];
|
|
154
|
-
export const revocation_after: (a: number) => number;
|
|
155
|
-
export const revocation_proof: (a: number) => number;
|
|
156
|
-
export const revocation_revoked: (a: number) => number;
|
|
157
|
-
export const revocation_subject_id: (a: number) => number;
|
|
158
|
-
export const summary_access: (a: number) => number;
|
|
159
|
-
export const summary_doc: (a: number) => number;
|
|
160
164
|
export const __wbg_delegation_free: (a: number, b: number) => void;
|
|
161
165
|
export const __wbg_document_free: (a: number, b: number) => void;
|
|
162
166
|
export const __wbg_group_free: (a: number, b: number) => void;
|
|
@@ -192,13 +196,9 @@ export const signeddelegation_delegation: (a: number) => number;
|
|
|
192
196
|
export const signeddelegation_signature: (a: number) => [number, number];
|
|
193
197
|
export const signeddelegation_verify: (a: number) => number;
|
|
194
198
|
export const signeddelegation_verifyingKey: (a: number) => [number, number];
|
|
195
|
-
export const
|
|
196
|
-
export const
|
|
197
|
-
export const
|
|
198
|
-
export const capability_who: (a: number) => number;
|
|
199
|
-
export const wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e: (a: number, b: number, c: any) => void;
|
|
200
|
-
export const wasm_bindgen__closure__destroy__haffc2f8a6add1279: (a: number, b: number) => void;
|
|
201
|
-
export const wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb: (a: number, b: number, c: any, d: any) => void;
|
|
199
|
+
export const wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696: (a: number, b: number, c: any) => void;
|
|
200
|
+
export const wasm_bindgen__closure__destroy__h5b88280100d48bc0: (a: number, b: number) => void;
|
|
201
|
+
export const wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7: (a: number, b: number, c: any, d: any) => void;
|
|
202
202
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
203
203
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
204
204
|
export const __wbindgen_exn_store: (a: number) => void;
|
package/pkg-node/keyhive_wasm.js
CHANGED
|
@@ -237,16 +237,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
237
237
|
WASM_VECTOR_LEN = arg.length;
|
|
238
238
|
return ptr;
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
242
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
243
|
-
for (let i = 0; i < array.length; i++) {
|
|
244
|
-
const add = addToExternrefTable0(array[i]);
|
|
245
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
246
|
-
}
|
|
247
|
-
WASM_VECTOR_LEN = array.length;
|
|
248
|
-
return ptr;
|
|
249
|
-
}
|
|
250
240
|
/**
|
|
251
241
|
* Panic hook lets us get better error messages if our Rust code ever panics.
|
|
252
242
|
*
|
|
@@ -257,12 +247,21 @@ exports.setPanicHook = function() {
|
|
|
257
247
|
wasm.setPanicHook();
|
|
258
248
|
};
|
|
259
249
|
|
|
260
|
-
function
|
|
261
|
-
|
|
250
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
251
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
252
|
+
for (let i = 0; i < array.length; i++) {
|
|
253
|
+
const add = addToExternrefTable0(array[i]);
|
|
254
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
255
|
+
}
|
|
256
|
+
WASM_VECTOR_LEN = array.length;
|
|
257
|
+
return ptr;
|
|
258
|
+
}
|
|
259
|
+
function wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2) {
|
|
260
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2);
|
|
262
261
|
}
|
|
263
262
|
|
|
264
|
-
function
|
|
265
|
-
wasm.
|
|
263
|
+
function wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3) {
|
|
264
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3);
|
|
266
265
|
}
|
|
267
266
|
|
|
268
267
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -3175,7 +3174,7 @@ exports.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
|
|
|
3175
3174
|
const a = state0.a;
|
|
3176
3175
|
state0.a = 0;
|
|
3177
3176
|
try {
|
|
3178
|
-
return
|
|
3177
|
+
return wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(a, state0.b, arg0, arg1);
|
|
3179
3178
|
} finally {
|
|
3180
3179
|
state0.a = a;
|
|
3181
3180
|
}
|
|
@@ -3457,15 +3456,15 @@ exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
|
|
|
3457
3456
|
return ret;
|
|
3458
3457
|
};
|
|
3459
3458
|
|
|
3460
|
-
exports.
|
|
3461
|
-
// Cast intrinsic for `
|
|
3462
|
-
const ret =
|
|
3459
|
+
exports.__wbindgen_cast_bef74971622929eb = function(arg0, arg1) {
|
|
3460
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 462, function: Function { arguments: [Externref], shim_idx: 463, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3461
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5b88280100d48bc0, wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696);
|
|
3463
3462
|
return ret;
|
|
3464
3463
|
};
|
|
3465
3464
|
|
|
3466
|
-
exports.
|
|
3467
|
-
// Cast intrinsic for `
|
|
3468
|
-
const ret =
|
|
3465
|
+
exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3466
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3467
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3469
3468
|
return ret;
|
|
3470
3469
|
};
|
|
3471
3470
|
|
|
Binary file
|
|
@@ -38,20 +38,30 @@ export const signedrevocation_signature: (a: number) => [number, number];
|
|
|
38
38
|
export const signedrevocation_verify: (a: number) => number;
|
|
39
39
|
export const signedrevocation_verifyingKey: (a: number) => [number, number];
|
|
40
40
|
export const contactcard_individualId: (a: number) => number;
|
|
41
|
-
export const
|
|
42
|
-
export const
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
41
|
+
export const setPanicHook: () => void;
|
|
42
|
+
export const __wbg_capability_free: (a: number, b: number) => void;
|
|
43
|
+
export const capability_can: (a: number) => number;
|
|
44
|
+
export const capability_proof: (a: number) => number;
|
|
45
|
+
export const capability_who: (a: number) => number;
|
|
46
|
+
export const __wbg_changeid_free: (a: number, b: number) => void;
|
|
47
|
+
export const __wbg_history_free: (a: number, b: number) => void;
|
|
48
|
+
export const __wbg_invocation_free: (a: number, b: number) => void;
|
|
49
|
+
export const __wbg_membered_free: (a: number, b: number) => void;
|
|
50
|
+
export const __wbg_revocation_free: (a: number, b: number) => void;
|
|
51
|
+
export const __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
52
|
+
export const __wbg_summary_free: (a: number, b: number) => void;
|
|
53
|
+
export const changeid___wasm_refgen_toChangeId: (a: number) => number;
|
|
54
|
+
export const changeid_bytes: (a: number) => [number, number];
|
|
55
|
+
export const changeid_new: (a: number, b: number) => number;
|
|
56
|
+
export const history_contentRefs: (a: number) => [number, number];
|
|
57
|
+
export const history_delegations: (a: number) => [number, number];
|
|
58
|
+
export const history_revocations: (a: number) => [number, number];
|
|
59
|
+
export const revocation_after: (a: number) => number;
|
|
60
|
+
export const revocation_proof: (a: number) => number;
|
|
61
|
+
export const revocation_revoked: (a: number) => number;
|
|
62
|
+
export const revocation_subject_id: (a: number) => number;
|
|
63
|
+
export const summary_access: (a: number) => number;
|
|
64
|
+
export const summary_doc: (a: number) => number;
|
|
55
65
|
export const __wbg_keyhive_free: (a: number, b: number) => void;
|
|
56
66
|
export const keyhive_accessForDoc: (a: number, b: number, c: number) => any;
|
|
57
67
|
export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
@@ -84,6 +94,20 @@ export const keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e:
|
|
|
84
94
|
export const keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
85
95
|
export const keyhive_trySign: (a: number, b: number, c: number) => any;
|
|
86
96
|
export const keyhive_whoami: (a: number) => number;
|
|
97
|
+
export const __wbg_access_free: (a: number, b: number) => void;
|
|
98
|
+
export const __wbg_archive_free: (a: number, b: number) => void;
|
|
99
|
+
export const __wbg_event_free: (a: number, b: number) => void;
|
|
100
|
+
export const access_toString: (a: number) => [number, number];
|
|
101
|
+
export const access_tryFromString: (a: number, b: number) => number;
|
|
102
|
+
export const archive_toBytes: (a: number) => [number, number, number, number];
|
|
103
|
+
export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
104
|
+
export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
105
|
+
export const event_isDelegated: (a: number) => number;
|
|
106
|
+
export const event_isRevoked: (a: number) => number;
|
|
107
|
+
export const event_toBytes: (a: number) => [number, number, number, number];
|
|
108
|
+
export const event_tryIntoSignedDelegation: (a: number) => number;
|
|
109
|
+
export const event_tryIntoSignedRevocation: (a: number) => number;
|
|
110
|
+
export const event_variant: (a: number) => [number, number];
|
|
87
111
|
export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
|
|
88
112
|
export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
|
|
89
113
|
export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
|
|
@@ -137,26 +161,6 @@ export const stats_groups: (a: number) => bigint;
|
|
|
137
161
|
export const stats_individuals: (a: number) => bigint;
|
|
138
162
|
export const stats_revocations: (a: number) => bigint;
|
|
139
163
|
export const encrypted_toBytes: (a: number) => [number, number];
|
|
140
|
-
export const setPanicHook: () => void;
|
|
141
|
-
export const __wbg_changeid_free: (a: number, b: number) => void;
|
|
142
|
-
export const __wbg_history_free: (a: number, b: number) => void;
|
|
143
|
-
export const __wbg_invocation_free: (a: number, b: number) => void;
|
|
144
|
-
export const __wbg_membered_free: (a: number, b: number) => void;
|
|
145
|
-
export const __wbg_revocation_free: (a: number, b: number) => void;
|
|
146
|
-
export const __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
147
|
-
export const __wbg_summary_free: (a: number, b: number) => void;
|
|
148
|
-
export const changeid___wasm_refgen_toChangeId: (a: number) => number;
|
|
149
|
-
export const changeid_bytes: (a: number) => [number, number];
|
|
150
|
-
export const changeid_new: (a: number, b: number) => number;
|
|
151
|
-
export const history_contentRefs: (a: number) => [number, number];
|
|
152
|
-
export const history_delegations: (a: number) => [number, number];
|
|
153
|
-
export const history_revocations: (a: number) => [number, number];
|
|
154
|
-
export const revocation_after: (a: number) => number;
|
|
155
|
-
export const revocation_proof: (a: number) => number;
|
|
156
|
-
export const revocation_revoked: (a: number) => number;
|
|
157
|
-
export const revocation_subject_id: (a: number) => number;
|
|
158
|
-
export const summary_access: (a: number) => number;
|
|
159
|
-
export const summary_doc: (a: number) => number;
|
|
160
164
|
export const __wbg_delegation_free: (a: number, b: number) => void;
|
|
161
165
|
export const __wbg_document_free: (a: number, b: number) => void;
|
|
162
166
|
export const __wbg_group_free: (a: number, b: number) => void;
|
|
@@ -192,13 +196,9 @@ export const signeddelegation_delegation: (a: number) => number;
|
|
|
192
196
|
export const signeddelegation_signature: (a: number) => [number, number];
|
|
193
197
|
export const signeddelegation_verify: (a: number) => number;
|
|
194
198
|
export const signeddelegation_verifyingKey: (a: number) => [number, number];
|
|
195
|
-
export const
|
|
196
|
-
export const
|
|
197
|
-
export const
|
|
198
|
-
export const capability_who: (a: number) => number;
|
|
199
|
-
export const wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e: (a: number, b: number, c: any) => void;
|
|
200
|
-
export const wasm_bindgen__closure__destroy__haffc2f8a6add1279: (a: number, b: number) => void;
|
|
201
|
-
export const wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb: (a: number, b: number, c: any, d: any) => void;
|
|
199
|
+
export const wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696: (a: number, b: number, c: any) => void;
|
|
200
|
+
export const wasm_bindgen__closure__destroy__h5b88280100d48bc0: (a: number, b: number) => void;
|
|
201
|
+
export const wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7: (a: number, b: number, c: any, d: any) => void;
|
|
202
202
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
203
203
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
204
204
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
@@ -410,20 +410,30 @@ export interface InitOutput {
|
|
|
410
410
|
readonly signedrevocation_verify: (a: number) => number;
|
|
411
411
|
readonly signedrevocation_verifyingKey: (a: number) => [number, number];
|
|
412
412
|
readonly contactcard_individualId: (a: number) => number;
|
|
413
|
-
readonly
|
|
414
|
-
readonly
|
|
415
|
-
readonly
|
|
416
|
-
readonly
|
|
417
|
-
readonly
|
|
418
|
-
readonly
|
|
419
|
-
readonly
|
|
420
|
-
readonly
|
|
421
|
-
readonly
|
|
422
|
-
readonly
|
|
423
|
-
readonly
|
|
424
|
-
readonly
|
|
425
|
-
readonly
|
|
426
|
-
readonly
|
|
413
|
+
readonly setPanicHook: () => void;
|
|
414
|
+
readonly __wbg_capability_free: (a: number, b: number) => void;
|
|
415
|
+
readonly capability_can: (a: number) => number;
|
|
416
|
+
readonly capability_proof: (a: number) => number;
|
|
417
|
+
readonly capability_who: (a: number) => number;
|
|
418
|
+
readonly __wbg_changeid_free: (a: number, b: number) => void;
|
|
419
|
+
readonly __wbg_history_free: (a: number, b: number) => void;
|
|
420
|
+
readonly __wbg_invocation_free: (a: number, b: number) => void;
|
|
421
|
+
readonly __wbg_membered_free: (a: number, b: number) => void;
|
|
422
|
+
readonly __wbg_revocation_free: (a: number, b: number) => void;
|
|
423
|
+
readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
424
|
+
readonly __wbg_summary_free: (a: number, b: number) => void;
|
|
425
|
+
readonly changeid___wasm_refgen_toChangeId: (a: number) => number;
|
|
426
|
+
readonly changeid_bytes: (a: number) => [number, number];
|
|
427
|
+
readonly changeid_new: (a: number, b: number) => number;
|
|
428
|
+
readonly history_contentRefs: (a: number) => [number, number];
|
|
429
|
+
readonly history_delegations: (a: number) => [number, number];
|
|
430
|
+
readonly history_revocations: (a: number) => [number, number];
|
|
431
|
+
readonly revocation_after: (a: number) => number;
|
|
432
|
+
readonly revocation_proof: (a: number) => number;
|
|
433
|
+
readonly revocation_revoked: (a: number) => number;
|
|
434
|
+
readonly revocation_subject_id: (a: number) => number;
|
|
435
|
+
readonly summary_access: (a: number) => number;
|
|
436
|
+
readonly summary_doc: (a: number) => number;
|
|
427
437
|
readonly __wbg_keyhive_free: (a: number, b: number) => void;
|
|
428
438
|
readonly keyhive_accessForDoc: (a: number, b: number, c: number) => any;
|
|
429
439
|
readonly keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
@@ -456,6 +466,20 @@ export interface InitOutput {
|
|
|
456
466
|
readonly keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
457
467
|
readonly keyhive_trySign: (a: number, b: number, c: number) => any;
|
|
458
468
|
readonly keyhive_whoami: (a: number) => number;
|
|
469
|
+
readonly __wbg_access_free: (a: number, b: number) => void;
|
|
470
|
+
readonly __wbg_archive_free: (a: number, b: number) => void;
|
|
471
|
+
readonly __wbg_event_free: (a: number, b: number) => void;
|
|
472
|
+
readonly access_toString: (a: number) => [number, number];
|
|
473
|
+
readonly access_tryFromString: (a: number, b: number) => number;
|
|
474
|
+
readonly archive_toBytes: (a: number) => [number, number, number, number];
|
|
475
|
+
readonly archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
476
|
+
readonly archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
477
|
+
readonly event_isDelegated: (a: number) => number;
|
|
478
|
+
readonly event_isRevoked: (a: number) => number;
|
|
479
|
+
readonly event_toBytes: (a: number) => [number, number, number, number];
|
|
480
|
+
readonly event_tryIntoSignedDelegation: (a: number) => number;
|
|
481
|
+
readonly event_tryIntoSignedRevocation: (a: number) => number;
|
|
482
|
+
readonly event_variant: (a: number) => [number, number];
|
|
459
483
|
readonly __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
|
|
460
484
|
readonly __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
|
|
461
485
|
readonly __wbg_cgkaoperation_free: (a: number, b: number) => void;
|
|
@@ -509,26 +533,6 @@ export interface InitOutput {
|
|
|
509
533
|
readonly stats_individuals: (a: number) => bigint;
|
|
510
534
|
readonly stats_revocations: (a: number) => bigint;
|
|
511
535
|
readonly encrypted_toBytes: (a: number) => [number, number];
|
|
512
|
-
readonly setPanicHook: () => void;
|
|
513
|
-
readonly __wbg_changeid_free: (a: number, b: number) => void;
|
|
514
|
-
readonly __wbg_history_free: (a: number, b: number) => void;
|
|
515
|
-
readonly __wbg_invocation_free: (a: number, b: number) => void;
|
|
516
|
-
readonly __wbg_membered_free: (a: number, b: number) => void;
|
|
517
|
-
readonly __wbg_revocation_free: (a: number, b: number) => void;
|
|
518
|
-
readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
519
|
-
readonly __wbg_summary_free: (a: number, b: number) => void;
|
|
520
|
-
readonly changeid___wasm_refgen_toChangeId: (a: number) => number;
|
|
521
|
-
readonly changeid_bytes: (a: number) => [number, number];
|
|
522
|
-
readonly changeid_new: (a: number, b: number) => number;
|
|
523
|
-
readonly history_contentRefs: (a: number) => [number, number];
|
|
524
|
-
readonly history_delegations: (a: number) => [number, number];
|
|
525
|
-
readonly history_revocations: (a: number) => [number, number];
|
|
526
|
-
readonly revocation_after: (a: number) => number;
|
|
527
|
-
readonly revocation_proof: (a: number) => number;
|
|
528
|
-
readonly revocation_revoked: (a: number) => number;
|
|
529
|
-
readonly revocation_subject_id: (a: number) => number;
|
|
530
|
-
readonly summary_access: (a: number) => number;
|
|
531
|
-
readonly summary_doc: (a: number) => number;
|
|
532
536
|
readonly __wbg_delegation_free: (a: number, b: number) => void;
|
|
533
537
|
readonly __wbg_document_free: (a: number, b: number) => void;
|
|
534
538
|
readonly __wbg_group_free: (a: number, b: number) => void;
|
|
@@ -564,13 +568,9 @@ export interface InitOutput {
|
|
|
564
568
|
readonly signeddelegation_signature: (a: number) => [number, number];
|
|
565
569
|
readonly signeddelegation_verify: (a: number) => number;
|
|
566
570
|
readonly signeddelegation_verifyingKey: (a: number) => [number, number];
|
|
567
|
-
readonly
|
|
568
|
-
readonly
|
|
569
|
-
readonly
|
|
570
|
-
readonly capability_who: (a: number) => number;
|
|
571
|
-
readonly wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e: (a: number, b: number, c: any) => void;
|
|
572
|
-
readonly wasm_bindgen__closure__destroy__haffc2f8a6add1279: (a: number, b: number) => void;
|
|
573
|
-
readonly wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb: (a: number, b: number, c: any, d: any) => void;
|
|
571
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696: (a: number, b: number, c: any) => void;
|
|
572
|
+
readonly wasm_bindgen__closure__destroy__h5b88280100d48bc0: (a: number, b: number) => void;
|
|
573
|
+
readonly wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7: (a: number, b: number, c: any, d: any) => void;
|
|
574
574
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
575
575
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
576
576
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg-slim/keyhive_wasm.js
CHANGED
|
@@ -243,16 +243,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
243
243
|
WASM_VECTOR_LEN = arg.length;
|
|
244
244
|
return ptr;
|
|
245
245
|
}
|
|
246
|
-
|
|
247
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
248
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
249
|
-
for (let i = 0; i < array.length; i++) {
|
|
250
|
-
const add = addToExternrefTable0(array[i]);
|
|
251
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
252
|
-
}
|
|
253
|
-
WASM_VECTOR_LEN = array.length;
|
|
254
|
-
return ptr;
|
|
255
|
-
}
|
|
256
246
|
/**
|
|
257
247
|
* Panic hook lets us get better error messages if our Rust code ever panics.
|
|
258
248
|
*
|
|
@@ -263,12 +253,21 @@ export function setPanicHook() {
|
|
|
263
253
|
wasm.setPanicHook();
|
|
264
254
|
}
|
|
265
255
|
|
|
266
|
-
function
|
|
267
|
-
|
|
256
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
257
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
258
|
+
for (let i = 0; i < array.length; i++) {
|
|
259
|
+
const add = addToExternrefTable0(array[i]);
|
|
260
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
261
|
+
}
|
|
262
|
+
WASM_VECTOR_LEN = array.length;
|
|
263
|
+
return ptr;
|
|
264
|
+
}
|
|
265
|
+
function wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2) {
|
|
266
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2);
|
|
268
267
|
}
|
|
269
268
|
|
|
270
|
-
function
|
|
271
|
-
wasm.
|
|
269
|
+
function wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3) {
|
|
270
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3);
|
|
272
271
|
}
|
|
273
272
|
|
|
274
273
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -3089,7 +3088,7 @@ function __wbg_get_imports() {
|
|
|
3089
3088
|
const a = state0.a;
|
|
3090
3089
|
state0.a = 0;
|
|
3091
3090
|
try {
|
|
3092
|
-
return
|
|
3091
|
+
return wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(a, state0.b, arg0, arg1);
|
|
3093
3092
|
} finally {
|
|
3094
3093
|
state0.a = a;
|
|
3095
3094
|
}
|
|
@@ -3323,16 +3322,16 @@ function __wbg_get_imports() {
|
|
|
3323
3322
|
const ret = v0;
|
|
3324
3323
|
return ret;
|
|
3325
3324
|
};
|
|
3325
|
+
imports.wbg.__wbindgen_cast_bef74971622929eb = function(arg0, arg1) {
|
|
3326
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 462, function: Function { arguments: [Externref], shim_idx: 463, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3327
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5b88280100d48bc0, wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696);
|
|
3328
|
+
return ret;
|
|
3329
|
+
};
|
|
3326
3330
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3327
3331
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3328
3332
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3329
3333
|
return ret;
|
|
3330
3334
|
};
|
|
3331
|
-
imports.wbg.__wbindgen_cast_e3bce663fd3c56b3 = function(arg0, arg1) {
|
|
3332
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 465, function: Function { arguments: [Externref], shim_idx: 466, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3333
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__haffc2f8a6add1279, wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e);
|
|
3334
|
-
return ret;
|
|
3335
|
-
};
|
|
3336
3335
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
3337
3336
|
const table = wasm.__wbindgen_externrefs;
|
|
3338
3337
|
const offset = table.grow(4);
|
|
Binary file
|