walletkit-web 0.21.3 → 0.22.1
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 +105 -17
- package/dist/generated/walletkit.wasm +0 -0
- package/dist/generated/walletkit_bg.d.ts +30 -0
- package/dist/generated/walletkit_core-ffi.d.ts +210 -26
- package/dist/generated/walletkit_core.d.ts +662 -48
- package/dist/index.d.ts +21 -10
- package/dist/index.js +110 -11416
- package/dist/protocol.d.ts +94 -0
- package/dist/walletkit.worker.d.ts +1 -0
- package/dist/walletkit.worker.js +14597 -0
- package/package.json +14 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import type { InitializeOptions, RecoveryData, RegistrationStatus } from "./protocol";
|
|
2
|
+
export type { InitializeOptions, RecoveryData, RegistrationStatus, } from "./protocol";
|
|
3
|
+
export interface WalletKit {
|
|
4
|
+
recoveryDataFromSeed(seed: Uint8Array): Promise<RecoveryData>;
|
|
5
|
+
register(seed: Uint8Array): Promise<void>;
|
|
6
|
+
pollRegistration(): Promise<RegistrationStatus>;
|
|
7
|
+
initializeAuthenticator(seed: Uint8Array, now?: bigint): Promise<void>;
|
|
8
|
+
prepareCredential(issuerSchemaId: bigint): Promise<{
|
|
9
|
+
blindingFactor: string;
|
|
10
|
+
sub: string;
|
|
11
|
+
}>;
|
|
12
|
+
storeCredential(credential: Uint8Array, blindingFactor: string, now?: bigint): Promise<{
|
|
13
|
+
credentialId: bigint;
|
|
14
|
+
issuerSchemaId: bigint;
|
|
15
|
+
}>;
|
|
16
|
+
generateProof(requestJson: string, now?: bigint): Promise<string>;
|
|
17
|
+
close(): Promise<void>;
|
|
18
|
+
terminate(): void;
|
|
19
|
+
}
|
|
20
|
+
/** Loads WASM and persistent OPFS storage in a package-managed dedicated worker. */
|
|
21
|
+
export declare function initializeWalletKit(options: InitializeOptions): Promise<WalletKit>;
|