@keyhive/keyhive 0.1.0-alpha.3 → 0.1.0-alpha.4
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.d.ts +55 -18
- package/pkg/keyhive_wasm.js +1 -1
- package/pkg/keyhive_wasm_bg.js +206 -85
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +115 -108
- package/pkg-node/keyhive_wasm.d.ts +55 -18
- package/pkg-node/keyhive_wasm.js +209 -85
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +115 -108
- package/pkg-slim/keyhive_wasm.d.ts +170 -126
- package/pkg-slim/keyhive_wasm.js +206 -85
- 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 +115 -108
|
@@ -10,23 +10,13 @@ export class Access {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The result of adding a member: the membership delegation
|
|
14
|
-
* secrets produced by auto-rekeying a non-forward-secret document on add.
|
|
13
|
+
* The result of adding a member: the membership delegation.
|
|
15
14
|
*/
|
|
16
15
|
export class AddMemberUpdate {
|
|
17
16
|
private constructor();
|
|
18
17
|
free(): void;
|
|
19
18
|
[Symbol.dispose](): void;
|
|
20
19
|
readonly delegation: SignedDelegation;
|
|
21
|
-
/**
|
|
22
|
-
* New leaf secret keypairs from auto-rekeying a non-forward-secret document
|
|
23
|
-
* when this reader was added, serialized as a
|
|
24
|
-
* `BTreeMap<ShareKey, ShareSecretKey>` (the format `importPrekeySecrets`
|
|
25
|
-
* accepts). A sibling instance of this identity (e.g. a tab and its
|
|
26
|
-
* SharedWorker) installs them to derive the rotated key. `undefined` when
|
|
27
|
-
* no rotation occurred (a forward-secret document).
|
|
28
|
-
*/
|
|
29
|
-
readonly leafSecrets: Uint8Array | undefined;
|
|
30
20
|
}
|
|
31
21
|
|
|
32
22
|
export class Agent {
|
|
@@ -135,6 +125,23 @@ export class ContactCard {
|
|
|
135
125
|
readonly shareKey: ShareKey;
|
|
136
126
|
}
|
|
137
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Plaintext plus the application secret key that decrypted it.
|
|
130
|
+
*
|
|
131
|
+
* The key lets the consumer recover the blob's external predecessor-secret
|
|
132
|
+
* chain and chain further encryptions onto it, without re-entering CGKA.
|
|
133
|
+
*/
|
|
134
|
+
export class DecryptedWithKey {
|
|
135
|
+
private constructor();
|
|
136
|
+
free(): void;
|
|
137
|
+
[Symbol.dispose](): void;
|
|
138
|
+
/**
|
|
139
|
+
* The 32-byte application secret key used to decrypt this content.
|
|
140
|
+
*/
|
|
141
|
+
readonly applicationSecret: Uint8Array;
|
|
142
|
+
readonly plaintext: Uint8Array;
|
|
143
|
+
}
|
|
144
|
+
|
|
138
145
|
export class Delegation {
|
|
139
146
|
private constructor();
|
|
140
147
|
free(): void;
|
|
@@ -183,6 +190,12 @@ export class Encrypted {
|
|
|
183
190
|
private constructor();
|
|
184
191
|
free(): void;
|
|
185
192
|
[Symbol.dispose](): void;
|
|
193
|
+
/**
|
|
194
|
+
* Decrypt this content with an explicit 32-byte application secret key,
|
|
195
|
+
* bypassing CGKA. The consumer uses this to follow the external
|
|
196
|
+
* predecessor-secret chain once it has recovered a blob's key.
|
|
197
|
+
*/
|
|
198
|
+
decryptWithKey(key: Uint8Array): Uint8Array;
|
|
186
199
|
static fromBytes(bytes: Uint8Array): Encrypted;
|
|
187
200
|
serialize(): Uint8Array;
|
|
188
201
|
toBytes(): Uint8Array;
|
|
@@ -199,6 +212,13 @@ export class EncryptedContentWithUpdate {
|
|
|
199
212
|
[Symbol.dispose](): void;
|
|
200
213
|
encrypted_content(): Encrypted;
|
|
201
214
|
update_op(): SignedCgkaOperation | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* The 32-byte application secret key used to encrypt this content.
|
|
217
|
+
*
|
|
218
|
+
* Lets the consumer build the external predecessor-secret chain and chain
|
|
219
|
+
* further encryptions onto this blob.
|
|
220
|
+
*/
|
|
221
|
+
readonly applicationSecret: Uint8Array;
|
|
202
222
|
}
|
|
203
223
|
|
|
204
224
|
export class Event {
|
|
@@ -334,14 +354,8 @@ export class Keyhive {
|
|
|
334
354
|
ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
|
|
335
355
|
/**
|
|
336
356
|
* Initialize a peer.
|
|
337
|
-
*
|
|
338
|
-
* `forward_secrecy` is this peer's policy for all documents it creates or
|
|
339
|
-
* receives. When `false`, documents carry the CGKA predecessor key chain
|
|
340
|
-
* (a member added later reads the whole prior history) and adding a reader
|
|
341
|
-
* auto-rekeys (see `addMember`'s `leafSecrets`). When `true`, a member
|
|
342
|
-
* added later cannot read content from before they joined.
|
|
343
357
|
*/
|
|
344
|
-
static init(signer: Signer, ciphertext_store: CiphertextStore, event_handler: Function
|
|
358
|
+
static init(signer: Signer, ciphertext_store: CiphertextStore, event_handler: Function): Promise<Keyhive>;
|
|
345
359
|
intoArchive(): Promise<Archive>;
|
|
346
360
|
membershipOpsForAgent(agent: Agent): Promise<Map<any, any>>;
|
|
347
361
|
pendingEventHashes(): Promise<Set<any>>;
|
|
@@ -353,6 +367,13 @@ export class Keyhive {
|
|
|
353
367
|
stats(): Promise<Stats>;
|
|
354
368
|
toArchive(): Promise<Archive>;
|
|
355
369
|
tryDecrypt(doc: Document, encrypted: Encrypted): Promise<Uint8Array>;
|
|
370
|
+
/**
|
|
371
|
+
* Decrypt content and also return the 32-byte application secret key used.
|
|
372
|
+
*
|
|
373
|
+
* The consumer follows the external predecessor-secret chain from this key
|
|
374
|
+
* with `Encrypted.decryptWithKey`, avoiding further CGKA dives.
|
|
375
|
+
*/
|
|
376
|
+
tryDecryptWithKey(doc: Document, encrypted: Encrypted): Promise<DecryptedWithKey>;
|
|
356
377
|
tryEncrypt(doc: Document, content_ref: ChangeId, js_pred_refs: ChangeId[], content: Uint8Array): Promise<EncryptedContentWithUpdate>;
|
|
357
378
|
tryEncryptArchive(doc: Document, content_ref: ChangeId, pred_refs: ChangeId[], content: Uint8Array): Promise<EncryptedContentWithUpdate>;
|
|
358
379
|
tryPcsKeyHash(doc: Document): Promise<Uint8Array | undefined>;
|
|
@@ -515,63 +536,45 @@ export class Summary {
|
|
|
515
536
|
*/
|
|
516
537
|
export function setPanicHook(): void;
|
|
517
538
|
|
|
539
|
+
/**
|
|
540
|
+
* Inverse of [`symmetric_encrypt`]. Reads `nonce(24) || ciphertext`.
|
|
541
|
+
*/
|
|
542
|
+
export function symmetricDecrypt(key: Uint8Array, blob: Uint8Array): Uint8Array;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* AEAD-encrypt `plaintext` under a 32-byte `key`.
|
|
546
|
+
*
|
|
547
|
+
* `associated_data` flavors the synthetic nonce (e.g. the document or content
|
|
548
|
+
* id) so identical plaintext under the same key in different contexts produces
|
|
549
|
+
* distinct ciphertext. Returns `nonce(24) || ciphertext` (the ciphertext
|
|
550
|
+
* includes the Poly1305 tag). The nonce is carried in the output, so
|
|
551
|
+
* [`symmetric_decrypt`] does not need the associated data.
|
|
552
|
+
*/
|
|
553
|
+
export function symmetricEncrypt(key: Uint8Array, plaintext: Uint8Array, associated_data: Uint8Array): Uint8Array;
|
|
554
|
+
|
|
518
555
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
519
556
|
|
|
520
557
|
export interface InitOutput {
|
|
521
558
|
readonly memory: WebAssembly.Memory;
|
|
522
|
-
readonly
|
|
523
|
-
readonly
|
|
559
|
+
readonly __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
|
|
560
|
+
readonly signedcgkaoperation_delegation: (a: number) => number;
|
|
561
|
+
readonly signedcgkaoperation_signature: (a: number) => [number, number];
|
|
562
|
+
readonly signedcgkaoperation_verify: (a: number) => number;
|
|
563
|
+
readonly signedcgkaoperation_verifyingKey: (a: number) => [number, number];
|
|
524
564
|
readonly __wbg_invocation_free: (a: number, b: number) => void;
|
|
525
565
|
readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
526
|
-
readonly
|
|
527
|
-
readonly
|
|
528
|
-
readonly allagentevents_agentPrekeySources: (a: number) => any;
|
|
529
|
-
readonly allagentevents_cgkaSources: (a: number) => any;
|
|
530
|
-
readonly allagentevents_events: (a: number) => any;
|
|
531
|
-
readonly allagentevents_membershipSources: (a: number) => any;
|
|
532
|
-
readonly allagentevents_prekeySources: (a: number) => any;
|
|
533
|
-
readonly ciphertextstore_newFromWebStorage: (a: any) => number;
|
|
534
|
-
readonly ciphertextstore_newInMemory: () => number;
|
|
535
|
-
readonly __wbg_archive_free: (a: number, b: number) => void;
|
|
536
|
-
readonly __wbg_signed_free: (a: number, b: number) => void;
|
|
537
|
-
readonly __wbg_stats_free: (a: number, b: number) => void;
|
|
538
|
-
readonly archive_toBytes: (a: number) => [number, number, number, number];
|
|
539
|
-
readonly archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
540
|
-
readonly archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
541
|
-
readonly signed_fromBytes: (a: number, b: number) => [number, number, number];
|
|
542
|
-
readonly signed_payload: (a: number) => [number, number];
|
|
543
|
-
readonly signed_signature: (a: number) => [number, number];
|
|
544
|
-
readonly signed_toBytes: (a: number) => [number, number, number, number];
|
|
545
|
-
readonly signed_verify: (a: number) => number;
|
|
546
|
-
readonly signed_verifyingKey: (a: number) => [number, number];
|
|
547
|
-
readonly stats_activePrekeyCount: (a: number) => bigint;
|
|
548
|
-
readonly stats_cgkaOperations: (a: number) => bigint;
|
|
549
|
-
readonly stats_delegations: (a: number) => bigint;
|
|
550
|
-
readonly stats_docs: (a: number) => bigint;
|
|
551
|
-
readonly stats_groups: (a: number) => bigint;
|
|
552
|
-
readonly stats_individuals: (a: number) => bigint;
|
|
553
|
-
readonly stats_pendingCgkaOperation: (a: number) => bigint;
|
|
554
|
-
readonly stats_pendingCgkaOperationByActive: (a: number) => bigint;
|
|
555
|
-
readonly stats_pendingDelegated: (a: number) => bigint;
|
|
556
|
-
readonly stats_pendingDelegatedByActive: (a: number) => bigint;
|
|
557
|
-
readonly stats_pendingPrekeyRotated: (a: number) => bigint;
|
|
558
|
-
readonly stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
|
|
559
|
-
readonly stats_pendingPrekeysExpanded: (a: number) => bigint;
|
|
560
|
-
readonly stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
|
|
561
|
-
readonly stats_pendingRevoked: (a: number) => bigint;
|
|
562
|
-
readonly stats_pendingRevokedByActive: (a: number) => bigint;
|
|
563
|
-
readonly stats_prekeyRotations: (a: number) => bigint;
|
|
564
|
-
readonly stats_prekeysExpanded: (a: number) => bigint;
|
|
565
|
-
readonly stats_revocations: (a: number) => bigint;
|
|
566
|
-
readonly stats_totalOps: (a: number) => bigint;
|
|
567
|
-
readonly stats_totalPendingOps: (a: number) => bigint;
|
|
566
|
+
readonly symmetricDecrypt: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
567
|
+
readonly symmetricEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
568
568
|
readonly __wbg_agent_free: (a: number, b: number) => void;
|
|
569
|
-
readonly
|
|
569
|
+
readonly __wbg_allagentevents_free: (a: number, b: number) => void;
|
|
570
|
+
readonly __wbg_ciphertextstore_free: (a: number, b: number) => void;
|
|
571
|
+
readonly __wbg_doccontentrefs_free: (a: number, b: number) => void;
|
|
570
572
|
readonly __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
|
|
571
|
-
readonly __wbg_group_free: (a: number, b: number) => void;
|
|
572
573
|
readonly __wbg_individual_free: (a: number, b: number) => void;
|
|
573
574
|
readonly __wbg_keyhive_free: (a: number, b: number) => void;
|
|
574
575
|
readonly __wbg_peer_free: (a: number, b: number) => void;
|
|
576
|
+
readonly __wbg_revocation_free: (a: number, b: number) => void;
|
|
577
|
+
readonly __wbg_stats_free: (a: number, b: number) => void;
|
|
575
578
|
readonly agent_id: (a: number) => number;
|
|
576
579
|
readonly agent_isDocument: (a: number) => number;
|
|
577
580
|
readonly agent_isGroup: (a: number) => number;
|
|
@@ -579,21 +582,23 @@ export interface InitOutput {
|
|
|
579
582
|
readonly agent_keyOpHashes: (a: number) => any;
|
|
580
583
|
readonly agent_keyOps: (a: number) => any;
|
|
581
584
|
readonly agent_toString: (a: number) => [number, number];
|
|
582
|
-
readonly
|
|
583
|
-
readonly
|
|
584
|
-
readonly
|
|
585
|
-
readonly
|
|
586
|
-
readonly
|
|
587
|
-
readonly
|
|
588
|
-
readonly
|
|
585
|
+
readonly allagentevents_agentCgkaSources: (a: number) => any;
|
|
586
|
+
readonly allagentevents_agentMembershipSources: (a: number) => any;
|
|
587
|
+
readonly allagentevents_agentPrekeySources: (a: number) => any;
|
|
588
|
+
readonly allagentevents_cgkaSources: (a: number) => any;
|
|
589
|
+
readonly allagentevents_events: (a: number) => any;
|
|
590
|
+
readonly allagentevents_membershipSources: (a: number) => any;
|
|
591
|
+
readonly allagentevents_prekeySources: (a: number) => any;
|
|
592
|
+
readonly ciphertextstore_newFromWebStorage: (a: any) => number;
|
|
593
|
+
readonly ciphertextstore_newInMemory: () => number;
|
|
594
|
+
readonly doccontentrefs_addChangeId: (a: number, b: number) => any;
|
|
595
|
+
readonly doccontentrefs_change_hashes: (a: number) => any;
|
|
596
|
+
readonly doccontentrefs_docId: (a: number) => number;
|
|
597
|
+
readonly doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
|
|
598
|
+
readonly encryptedcontentwithupdate_applicationSecret: (a: number) => [number, number];
|
|
589
599
|
readonly encryptedcontentwithupdate_encrypted_content: (a: number) => number;
|
|
590
600
|
readonly encryptedcontentwithupdate_update_op: (a: number) => number;
|
|
591
|
-
readonly
|
|
592
|
-
readonly group_members: (a: number) => any;
|
|
593
|
-
readonly group_toAgent: (a: number) => number;
|
|
594
|
-
readonly group_toMembered: (a: number) => number;
|
|
595
|
-
readonly group_toPeer: (a: number) => number;
|
|
596
|
-
readonly individual_individualId: (a: number) => number;
|
|
601
|
+
readonly individual_id: (a: number) => number;
|
|
597
602
|
readonly individual_pickPrekey: (a: number, b: number) => any;
|
|
598
603
|
readonly individual_toAgent: (a: number) => number;
|
|
599
604
|
readonly individual_toPeer: (a: number) => number;
|
|
@@ -620,7 +625,7 @@ export interface InitOutput {
|
|
|
620
625
|
readonly keyhive_individual: (a: number) => any;
|
|
621
626
|
readonly keyhive_ingestArchive: (a: number, b: number) => any;
|
|
622
627
|
readonly keyhive_ingestEventsBytes: (a: number, b: any) => any;
|
|
623
|
-
readonly keyhive_init: (a: number, b: number, c: any
|
|
628
|
+
readonly keyhive_init: (a: number, b: number, c: any) => any;
|
|
624
629
|
readonly keyhive_intoArchive: (a: number) => any;
|
|
625
630
|
readonly keyhive_membershipOpsForAgent: (a: number, b: number) => any;
|
|
626
631
|
readonly keyhive_pendingEventHashes: (a: number) => any;
|
|
@@ -632,6 +637,7 @@ export interface InitOutput {
|
|
|
632
637
|
readonly keyhive_stats: (a: number) => any;
|
|
633
638
|
readonly keyhive_toArchive: (a: number) => any;
|
|
634
639
|
readonly keyhive_tryDecrypt: (a: number, b: number, c: number) => any;
|
|
640
|
+
readonly keyhive_tryDecryptWithKey: (a: number, b: number, c: number) => any;
|
|
635
641
|
readonly keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
636
642
|
readonly keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
637
643
|
readonly keyhive_tryPcsKeyHash: (a: number, b: number) => any;
|
|
@@ -642,41 +648,34 @@ export interface InitOutput {
|
|
|
642
648
|
readonly peer_isGroup: (a: number) => number;
|
|
643
649
|
readonly peer_isIndividual: (a: number) => number;
|
|
644
650
|
readonly peer_toString: (a: number) => [number, number];
|
|
645
|
-
readonly setPanicHook: () => void;
|
|
646
|
-
readonly group_groupId: (a: number) => number;
|
|
647
|
-
readonly group_id: (a: number) => number;
|
|
648
|
-
readonly individual_id: (a: number) => number;
|
|
649
|
-
readonly peer_id: (a: number) => number;
|
|
650
|
-
readonly __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
|
|
651
|
-
readonly signedcgkaoperation_delegation: (a: number) => number;
|
|
652
|
-
readonly signedcgkaoperation_signature: (a: number) => [number, number];
|
|
653
|
-
readonly signedcgkaoperation_verify: (a: number) => number;
|
|
654
|
-
readonly signedcgkaoperation_verifyingKey: (a: number) => [number, number];
|
|
655
|
-
readonly __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
|
|
656
|
-
readonly __wbg_changeid_free: (a: number, b: number) => void;
|
|
657
|
-
readonly __wbg_doccontentrefs_free: (a: number, b: number) => void;
|
|
658
|
-
readonly __wbg_identifier_free: (a: number, b: number) => void;
|
|
659
|
-
readonly __wbg_revocation_free: (a: number, b: number) => void;
|
|
660
|
-
readonly __wbg_sharekey_free: (a: number, b: number) => void;
|
|
661
|
-
readonly __wbg_signedrevocation_free: (a: number, b: number) => void;
|
|
662
|
-
readonly changeid___wasm_refgen_toJsChangeId: (a: number) => number;
|
|
663
|
-
readonly changeid_bytes: (a: number) => [number, number];
|
|
664
|
-
readonly changeid_new: (a: number, b: number) => number;
|
|
665
|
-
readonly doccontentrefs_addChangeId: (a: number, b: number) => any;
|
|
666
|
-
readonly doccontentrefs_change_hashes: (a: number) => any;
|
|
667
|
-
readonly doccontentrefs_docId: (a: number) => number;
|
|
668
|
-
readonly doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
|
|
669
|
-
readonly identifier_new: (a: number, b: number) => [number, number, number];
|
|
670
|
-
readonly identifier_publicId: () => number;
|
|
671
|
-
readonly identifier_toBytes: (a: number) => [number, number];
|
|
672
651
|
readonly revocation_after: (a: number) => number;
|
|
673
652
|
readonly revocation_proof: (a: number) => number;
|
|
674
653
|
readonly revocation_revoked: (a: number) => number;
|
|
675
654
|
readonly revocation_subject_id: (a: number) => number;
|
|
676
|
-
readonly
|
|
677
|
-
readonly
|
|
678
|
-
readonly
|
|
679
|
-
readonly
|
|
655
|
+
readonly setPanicHook: () => void;
|
|
656
|
+
readonly stats_activePrekeyCount: (a: number) => bigint;
|
|
657
|
+
readonly stats_cgkaOperations: (a: number) => bigint;
|
|
658
|
+
readonly stats_delegations: (a: number) => bigint;
|
|
659
|
+
readonly stats_docs: (a: number) => bigint;
|
|
660
|
+
readonly stats_groups: (a: number) => bigint;
|
|
661
|
+
readonly stats_individuals: (a: number) => bigint;
|
|
662
|
+
readonly stats_pendingCgkaOperation: (a: number) => bigint;
|
|
663
|
+
readonly stats_pendingCgkaOperationByActive: (a: number) => bigint;
|
|
664
|
+
readonly stats_pendingDelegated: (a: number) => bigint;
|
|
665
|
+
readonly stats_pendingDelegatedByActive: (a: number) => bigint;
|
|
666
|
+
readonly stats_pendingPrekeyRotated: (a: number) => bigint;
|
|
667
|
+
readonly stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
|
|
668
|
+
readonly stats_pendingPrekeysExpanded: (a: number) => bigint;
|
|
669
|
+
readonly stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
|
|
670
|
+
readonly stats_pendingRevoked: (a: number) => bigint;
|
|
671
|
+
readonly stats_pendingRevokedByActive: (a: number) => bigint;
|
|
672
|
+
readonly stats_prekeyRotations: (a: number) => bigint;
|
|
673
|
+
readonly stats_prekeysExpanded: (a: number) => bigint;
|
|
674
|
+
readonly stats_revocations: (a: number) => bigint;
|
|
675
|
+
readonly stats_totalOps: (a: number) => bigint;
|
|
676
|
+
readonly stats_totalPendingOps: (a: number) => bigint;
|
|
677
|
+
readonly individual_individualId: (a: number) => number;
|
|
678
|
+
readonly peer_id: (a: number) => number;
|
|
680
679
|
readonly __wbg_access_free: (a: number, b: number) => void;
|
|
681
680
|
readonly __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
|
|
682
681
|
readonly __wbg_cgkaoperation_free: (a: number, b: number) => void;
|
|
@@ -686,6 +685,7 @@ export interface InitOutput {
|
|
|
686
685
|
readonly __wbg_event_free: (a: number, b: number) => void;
|
|
687
686
|
readonly __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
|
|
688
687
|
readonly __wbg_groupid_free: (a: number, b: number) => void;
|
|
688
|
+
readonly __wbg_individualid_free: (a: number, b: number) => void;
|
|
689
689
|
readonly __wbg_signer_free: (a: number, b: number) => void;
|
|
690
690
|
readonly access_toString: (a: number) => [number, number];
|
|
691
691
|
readonly access_tryFromString: (a: number, b: number) => number;
|
|
@@ -703,6 +703,7 @@ export interface InitOutput {
|
|
|
703
703
|
readonly documentid_toString: (a: number) => [number, number];
|
|
704
704
|
readonly encrypted_ciphertext: (a: number) => [number, number];
|
|
705
705
|
readonly encrypted_content_ref: (a: number) => [number, number];
|
|
706
|
+
readonly encrypted_decryptWithKey: (a: number, b: number, c: number) => [number, number, number, number];
|
|
706
707
|
readonly encrypted_fromBytes: (a: number, b: number) => [number, number, number];
|
|
707
708
|
readonly encrypted_nonce: (a: number) => [number, number];
|
|
708
709
|
readonly encrypted_pcs_key_hash: (a: number) => [number, number];
|
|
@@ -716,6 +717,7 @@ export interface InitOutput {
|
|
|
716
717
|
readonly event_variant: (a: number) => [number, number];
|
|
717
718
|
readonly generatewebcryptoerror_message: (a: number) => [number, number];
|
|
718
719
|
readonly groupid_toString: (a: number) => [number, number];
|
|
720
|
+
readonly individualid_bytes: (a: number) => [number, number];
|
|
719
721
|
readonly signer_clone: (a: number) => number;
|
|
720
722
|
readonly signer_generate: () => any;
|
|
721
723
|
readonly signer_generateMemory: () => number;
|
|
@@ -726,39 +728,81 @@ export interface InitOutput {
|
|
|
726
728
|
readonly signer_verifyingKey: (a: number) => [number, number];
|
|
727
729
|
readonly signer_webCryptoSigner: (a: any) => any;
|
|
728
730
|
readonly encrypted_toBytes: (a: number) => [number, number];
|
|
729
|
-
readonly
|
|
731
|
+
readonly __wbg_archive_free: (a: number, b: number) => void;
|
|
732
|
+
readonly __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
|
|
730
733
|
readonly __wbg_capability_free: (a: number, b: number) => void;
|
|
731
|
-
readonly
|
|
732
|
-
readonly
|
|
733
|
-
readonly __wbg_individualid_free: (a: number, b: number) => void;
|
|
734
|
+
readonly __wbg_changeid_free: (a: number, b: number) => void;
|
|
735
|
+
readonly __wbg_identifier_free: (a: number, b: number) => void;
|
|
734
736
|
readonly __wbg_membered_free: (a: number, b: number) => void;
|
|
735
737
|
readonly __wbg_membership_free: (a: number, b: number) => void;
|
|
738
|
+
readonly __wbg_sharekey_free: (a: number, b: number) => void;
|
|
739
|
+
readonly __wbg_signed_free: (a: number, b: number) => void;
|
|
736
740
|
readonly __wbg_signeddelegation_free: (a: number, b: number) => void;
|
|
737
|
-
readonly
|
|
738
|
-
readonly
|
|
739
|
-
readonly
|
|
741
|
+
readonly __wbg_signedrevocation_free: (a: number, b: number) => void;
|
|
742
|
+
readonly archive_toBytes: (a: number) => [number, number, number, number];
|
|
743
|
+
readonly archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
744
|
+
readonly archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
740
745
|
readonly capability_can: (a: number) => number;
|
|
741
746
|
readonly capability_proof: (a: number) => number;
|
|
742
747
|
readonly capability_who: (a: number) => number;
|
|
743
|
-
readonly
|
|
744
|
-
readonly
|
|
745
|
-
readonly
|
|
746
|
-
readonly
|
|
747
|
-
readonly
|
|
748
|
-
readonly
|
|
749
|
-
readonly history_revocations: (a: number) => [number, number];
|
|
750
|
-
readonly individualid_bytes: (a: number) => [number, number];
|
|
748
|
+
readonly changeid___wasm_refgen_toJsChangeId: (a: number) => number;
|
|
749
|
+
readonly changeid_bytes: (a: number) => [number, number];
|
|
750
|
+
readonly changeid_new: (a: number, b: number) => number;
|
|
751
|
+
readonly identifier_new: (a: number, b: number) => [number, number, number];
|
|
752
|
+
readonly identifier_publicId: () => number;
|
|
753
|
+
readonly identifier_toBytes: (a: number) => [number, number];
|
|
751
754
|
readonly membership_can: (a: number) => number;
|
|
752
755
|
readonly membership_who: (a: number) => number;
|
|
756
|
+
readonly signed_fromBytes: (a: number, b: number) => [number, number, number];
|
|
757
|
+
readonly signed_payload: (a: number) => [number, number];
|
|
758
|
+
readonly signed_signature: (a: number) => [number, number];
|
|
759
|
+
readonly signed_toBytes: (a: number) => [number, number, number, number];
|
|
760
|
+
readonly signed_verify: (a: number) => number;
|
|
761
|
+
readonly signed_verifyingKey: (a: number) => [number, number];
|
|
753
762
|
readonly signeddelegation_delegation: (a: number) => number;
|
|
754
763
|
readonly signeddelegation_signature: (a: number) => [number, number];
|
|
755
764
|
readonly signeddelegation_subjectId: (a: number) => number;
|
|
756
765
|
readonly signeddelegation_verify: (a: number) => number;
|
|
757
766
|
readonly signeddelegation_verifyingKey: (a: number) => [number, number];
|
|
767
|
+
readonly signedrevocation_delegation: (a: number) => number;
|
|
768
|
+
readonly signedrevocation_signature: (a: number) => [number, number];
|
|
769
|
+
readonly signedrevocation_verify: (a: number) => number;
|
|
770
|
+
readonly signedrevocation_verifyingKey: (a: number) => [number, number];
|
|
771
|
+
readonly __wbg_addmemberupdate_free: (a: number, b: number) => void;
|
|
772
|
+
readonly __wbg_decryptedwithkey_free: (a: number, b: number) => void;
|
|
773
|
+
readonly __wbg_delegation_free: (a: number, b: number) => void;
|
|
774
|
+
readonly __wbg_document_free: (a: number, b: number) => void;
|
|
775
|
+
readonly __wbg_group_free: (a: number, b: number) => void;
|
|
776
|
+
readonly __wbg_history_free: (a: number, b: number) => void;
|
|
777
|
+
readonly __wbg_summary_free: (a: number, b: number) => void;
|
|
778
|
+
readonly addmemberupdate_delegation: (a: number) => number;
|
|
779
|
+
readonly decryptedwithkey_applicationSecret: (a: number) => [number, number];
|
|
780
|
+
readonly decryptedwithkey_plaintext: (a: number) => [number, number];
|
|
781
|
+
readonly delegation_after: (a: number) => number;
|
|
782
|
+
readonly delegation_can: (a: number) => number;
|
|
783
|
+
readonly delegation_delegate: (a: number) => number;
|
|
784
|
+
readonly delegation_proof: (a: number) => number;
|
|
785
|
+
readonly document___wasm_refgen_toJsDocument: (a: number) => number;
|
|
786
|
+
readonly document_doc_id: (a: number) => number;
|
|
787
|
+
readonly document_id: (a: number) => number;
|
|
788
|
+
readonly document_members: (a: number) => any;
|
|
789
|
+
readonly document_toAgent: (a: number) => number;
|
|
790
|
+
readonly document_toMembered: (a: number) => number;
|
|
791
|
+
readonly document_toPeer: (a: number) => number;
|
|
792
|
+
readonly group___wasm_refgen_toJsGroup: (a: number) => number;
|
|
793
|
+
readonly group_members: (a: number) => any;
|
|
794
|
+
readonly group_toAgent: (a: number) => number;
|
|
795
|
+
readonly group_toMembered: (a: number) => number;
|
|
796
|
+
readonly group_toPeer: (a: number) => number;
|
|
797
|
+
readonly history_contentRefs: (a: number) => [number, number];
|
|
798
|
+
readonly history_delegations: (a: number) => [number, number];
|
|
799
|
+
readonly history_revocations: (a: number) => [number, number];
|
|
758
800
|
readonly summary_access: (a: number) => number;
|
|
759
801
|
readonly summary_doc: (a: number) => number;
|
|
760
|
-
readonly
|
|
761
|
-
readonly
|
|
802
|
+
readonly group_groupId: (a: number) => number;
|
|
803
|
+
readonly group_id: (a: number) => number;
|
|
804
|
+
readonly wasm_bindgen__convert__closures_____invoke__h9887d5ab72723f8a: (a: number, b: number, c: any) => [number, number];
|
|
805
|
+
readonly wasm_bindgen__convert__closures_____invoke__h58982df154245cbc: (a: number, b: number, c: any, d: any) => void;
|
|
762
806
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
763
807
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
764
808
|
readonly __wbindgen_exn_store: (a: number) => void;
|