@cogcoin/client 0.5.15 → 1.0.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 +80 -25
- package/dist/app-paths.d.ts +5 -6
- package/dist/app-paths.js +8 -16
- package/dist/art/balance.txt +10 -0
- package/dist/art/welcome.txt +16 -0
- package/dist/bitcoind/bootstrap/controller.d.ts +1 -0
- package/dist/bitcoind/bootstrap/controller.js +53 -1
- package/dist/bitcoind/client/follow-block-times.d.ts +1 -0
- package/dist/bitcoind/client/follow-block-times.js +1 -1
- package/dist/bitcoind/client/internal-types.d.ts +7 -3
- package/dist/bitcoind/client/managed-client.d.ts +4 -2
- package/dist/bitcoind/client/managed-client.js +14 -0
- package/dist/bitcoind/client/sync-engine.js +72 -11
- package/dist/bitcoind/hash-order.d.ts +4 -0
- package/dist/bitcoind/hash-order.js +13 -0
- package/dist/bitcoind/indexer-daemon-main.js +11 -3
- package/dist/bitcoind/normalize.js +3 -2
- package/dist/bitcoind/processing-start-height.d.ts +5 -0
- package/dist/bitcoind/processing-start-height.js +7 -0
- package/dist/bitcoind/progress/constants.d.ts +4 -0
- package/dist/bitcoind/progress/constants.js +4 -0
- package/dist/bitcoind/progress/controller.d.ts +2 -1
- package/dist/bitcoind/progress/controller.js +3 -3
- package/dist/bitcoind/progress/follow-scene.d.ts +6 -2
- package/dist/bitcoind/progress/follow-scene.js +29 -6
- package/dist/bitcoind/progress/formatting.d.ts +1 -0
- package/dist/bitcoind/progress/formatting.js +6 -0
- package/dist/bitcoind/progress/train-scene.js +37 -18
- package/dist/bitcoind/progress/tty-renderer.d.ts +6 -1
- package/dist/bitcoind/progress/tty-renderer.js +8 -4
- package/dist/bitcoind/rpc.d.ts +2 -1
- package/dist/bitcoind/rpc.js +3 -0
- package/dist/bitcoind/types.d.ts +6 -0
- package/dist/bytes.d.ts +1 -0
- package/dist/bytes.js +3 -0
- package/dist/cli/art.d.ts +2 -0
- package/dist/cli/art.js +37 -0
- package/dist/cli/commands/client-admin.d.ts +2 -0
- package/dist/cli/commands/client-admin.js +91 -0
- package/dist/cli/commands/follow.js +0 -2
- package/dist/cli/commands/mining-admin.js +6 -47
- package/dist/cli/commands/mining-read.js +11 -50
- package/dist/cli/commands/mining-runtime.js +142 -5
- package/dist/cli/commands/service-runtime.js +0 -2
- package/dist/cli/commands/status.js +8 -2
- package/dist/cli/commands/sync.js +49 -92
- package/dist/cli/commands/wallet-admin.js +142 -136
- package/dist/cli/commands/wallet-mutation.js +91 -79
- package/dist/cli/commands/wallet-read.js +15 -18
- package/dist/cli/context.js +5 -14
- package/dist/cli/mining-format.d.ts +0 -1
- package/dist/cli/mining-format.js +5 -37
- package/dist/cli/mining-json.d.ts +0 -18
- package/dist/cli/mining-json.js +0 -35
- package/dist/cli/mutation-command-groups.d.ts +1 -2
- package/dist/cli/mutation-command-groups.js +0 -5
- package/dist/cli/mutation-json.d.ts +24 -145
- package/dist/cli/mutation-json.js +30 -136
- package/dist/cli/mutation-resolved-json.d.ts +0 -7
- package/dist/cli/mutation-resolved-json.js +4 -10
- package/dist/cli/mutation-success.d.ts +2 -0
- package/dist/cli/mutation-success.js +11 -1
- package/dist/cli/mutation-text-format.js +1 -3
- package/dist/cli/output.d.ts +1 -1
- package/dist/cli/output.js +254 -231
- package/dist/cli/parse.d.ts +1 -1
- package/dist/cli/parse.js +93 -122
- package/dist/cli/preview-json.d.ts +17 -120
- package/dist/cli/preview-json.js +14 -97
- package/dist/cli/prompt.js +8 -13
- package/dist/cli/read-json.d.ts +15 -37
- package/dist/cli/read-json.js +44 -140
- package/dist/cli/runner.js +10 -13
- package/dist/cli/sync-progress.d.ts +6 -0
- package/dist/cli/sync-progress.js +91 -0
- package/dist/cli/types.d.ts +9 -17
- package/dist/cli/types.js +0 -2
- package/dist/cli/wallet-format.d.ts +1 -0
- package/dist/cli/wallet-format.js +208 -144
- package/dist/cli/workflow-hints.d.ts +3 -3
- package/dist/cli/workflow-hints.js +11 -8
- package/dist/client/default-client.d.ts +3 -1
- package/dist/client/default-client.js +45 -2
- package/dist/client/factory.js +1 -1
- package/dist/client/initialization.js +23 -0
- package/dist/client/persistence.js +5 -5
- package/dist/client/store-adapter.js +1 -0
- package/dist/sqlite/checkpoints.d.ts +1 -0
- package/dist/sqlite/checkpoints.js +7 -0
- package/dist/sqlite/store.js +14 -1
- package/dist/types.d.ts +1 -0
- package/dist/wallet/coin-control.d.ts +41 -12
- package/dist/wallet/coin-control.js +100 -428
- package/dist/wallet/descriptor-normalization.d.ts +1 -3
- package/dist/wallet/descriptor-normalization.js +0 -16
- package/dist/wallet/lifecycle.d.ts +7 -99
- package/dist/wallet/lifecycle.js +513 -968
- package/dist/wallet/managed-core-wallet.d.ts +13 -0
- package/dist/wallet/managed-core-wallet.js +20 -0
- package/dist/wallet/mining/constants.d.ts +5 -12
- package/dist/wallet/mining/constants.js +5 -12
- package/dist/wallet/mining/control.d.ts +1 -13
- package/dist/wallet/mining/control.js +45 -349
- package/dist/wallet/mining/index.d.ts +4 -5
- package/dist/wallet/mining/index.js +2 -3
- package/dist/wallet/mining/runner.d.ts +123 -13
- package/dist/wallet/mining/runner.js +899 -511
- package/dist/wallet/mining/runtime-artifacts.js +23 -3
- package/dist/wallet/mining/sentence-protocol.d.ts +44 -0
- package/dist/wallet/mining/sentence-protocol.js +123 -0
- package/dist/wallet/mining/sentences.d.ts +4 -8
- package/dist/wallet/mining/sentences.js +3 -52
- package/dist/wallet/mining/state.d.ts +11 -6
- package/dist/wallet/mining/state.js +7 -6
- package/dist/wallet/mining/types.d.ts +2 -30
- package/dist/wallet/mining/visualizer.d.ts +31 -3
- package/dist/wallet/mining/visualizer.js +135 -13
- package/dist/wallet/read/context.d.ts +0 -2
- package/dist/wallet/read/context.js +119 -140
- package/dist/wallet/read/filter.js +2 -11
- package/dist/wallet/read/index.d.ts +1 -1
- package/dist/wallet/read/project.js +24 -77
- package/dist/wallet/read/types.d.ts +10 -25
- package/dist/wallet/reset.d.ts +0 -1
- package/dist/wallet/reset.js +60 -138
- package/dist/wallet/root-resolution.d.ts +1 -5
- package/dist/wallet/root-resolution.js +0 -18
- package/dist/wallet/runtime.d.ts +0 -6
- package/dist/wallet/runtime.js +0 -8
- package/dist/wallet/state/client-password-agent.js +208 -0
- package/dist/wallet/state/client-password.d.ts +65 -0
- package/dist/wallet/state/client-password.js +952 -0
- package/dist/wallet/state/crypto.d.ts +1 -20
- package/dist/wallet/state/crypto.js +0 -63
- package/dist/wallet/state/provider.d.ts +23 -11
- package/dist/wallet/state/provider.js +248 -290
- package/dist/wallet/state/storage.d.ts +2 -2
- package/dist/wallet/state/storage.js +48 -16
- package/dist/wallet/tx/anchor.d.ts +3 -28
- package/dist/wallet/tx/anchor.js +349 -1250
- package/dist/wallet/tx/bitcoin-transfer.d.ts +35 -0
- package/dist/wallet/tx/bitcoin-transfer.js +200 -0
- package/dist/wallet/tx/cog.d.ts +5 -1
- package/dist/wallet/tx/cog.js +149 -185
- package/dist/wallet/tx/common.d.ts +61 -8
- package/dist/wallet/tx/common.js +266 -146
- package/dist/wallet/tx/domain-admin.d.ts +3 -1
- package/dist/wallet/tx/domain-admin.js +61 -99
- package/dist/wallet/tx/domain-market.d.ts +5 -1
- package/dist/wallet/tx/domain-market.js +221 -228
- package/dist/wallet/tx/field.d.ts +4 -10
- package/dist/wallet/tx/field.js +83 -924
- package/dist/wallet/tx/identity-selector.d.ts +9 -3
- package/dist/wallet/tx/identity-selector.js +17 -35
- package/dist/wallet/tx/index.d.ts +3 -1
- package/dist/wallet/tx/index.js +2 -1
- package/dist/wallet/tx/register.d.ts +3 -1
- package/dist/wallet/tx/register.js +62 -220
- package/dist/wallet/tx/reputation.d.ts +3 -1
- package/dist/wallet/tx/reputation.js +58 -95
- package/dist/wallet/types.d.ts +8 -122
- package/package.json +5 -5
- package/dist/wallet/archive.d.ts +0 -4
- package/dist/wallet/archive.js +0 -41
- package/dist/wallet/mining/hook-protocol.d.ts +0 -47
- package/dist/wallet/mining/hook-protocol.js +0 -161
- package/dist/wallet/mining/hook-runner.js +0 -52
- package/dist/wallet/mining/hooks.d.ts +0 -38
- package/dist/wallet/mining/hooks.js +0 -520
- package/dist/wallet/state/explicit-lock.d.ts +0 -4
- package/dist/wallet/state/explicit-lock.js +0 -19
- package/dist/wallet/state/session.d.ts +0 -12
- package/dist/wallet/state/session.js +0 -23
- /package/dist/wallet/{mining/hook-runner.d.ts → state/client-password-agent.d.ts} +0 -0
|
@@ -1,34 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EncryptedEnvelopeV1 } from "../types.js";
|
|
2
2
|
import type { WalletSecretProvider, WalletSecretReference } from "./provider.js";
|
|
3
|
-
export interface DeriveKeyOptions {
|
|
4
|
-
memoryKib?: number;
|
|
5
|
-
iterations?: number;
|
|
6
|
-
parallelism?: number;
|
|
7
|
-
salt?: Uint8Array;
|
|
8
|
-
}
|
|
9
|
-
export interface DerivedKeyMaterial {
|
|
10
|
-
readonly key: Buffer;
|
|
11
|
-
readonly params: Argon2EnvelopeParams;
|
|
12
|
-
}
|
|
13
|
-
export declare function deriveKeyFromPassphrase(passphrase: Uint8Array | string, options?: DeriveKeyOptions): Promise<DerivedKeyMaterial>;
|
|
14
|
-
export declare function rederiveKeyFromEnvelope(passphrase: Uint8Array | string, envelope: EncryptedEnvelopeV1): Promise<Buffer>;
|
|
15
3
|
export declare function encryptBytesWithKey(plaintext: Uint8Array, key: Uint8Array, metadata: {
|
|
16
4
|
format: string;
|
|
17
5
|
wrappedBy: string;
|
|
18
6
|
walletRootIdHint?: string | null;
|
|
19
|
-
argon2id?: Argon2EnvelopeParams | null;
|
|
20
7
|
secretProvider?: WalletSecretReference | null;
|
|
21
8
|
}): EncryptedEnvelopeV1;
|
|
22
9
|
export declare function decryptBytesWithKey(envelope: EncryptedEnvelopeV1, key: Uint8Array): Buffer;
|
|
23
|
-
export declare function encryptJsonWithPassphrase<T>(value: T, passphrase: Uint8Array | string, metadata: {
|
|
24
|
-
format: string;
|
|
25
|
-
wrappedBy?: string;
|
|
26
|
-
walletRootIdHint?: string | null;
|
|
27
|
-
}): Promise<EncryptedEnvelopeV1>;
|
|
28
10
|
export declare function encryptJsonWithSecretProvider<T>(value: T, provider: WalletSecretProvider, secretReference: WalletSecretReference, metadata: {
|
|
29
11
|
format: string;
|
|
30
12
|
wrappedBy?: string;
|
|
31
13
|
walletRootIdHint?: string | null;
|
|
32
14
|
}): Promise<EncryptedEnvelopeV1>;
|
|
33
|
-
export declare function decryptJsonWithPassphrase<T>(envelope: EncryptedEnvelopeV1, passphrase: Uint8Array | string): Promise<T>;
|
|
34
15
|
export declare function decryptJsonWithSecretProvider<T>(envelope: EncryptedEnvelopeV1, provider: WalletSecretProvider): Promise<T>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { argon2id } from "hash-wasm";
|
|
2
1
|
import { createCipheriv, createDecipheriv, randomBytes, } from "node:crypto";
|
|
3
|
-
const DEFAULT_ARGON2_MEMORY_KIB = 65_536;
|
|
4
|
-
const DEFAULT_ARGON2_ITERATIONS = 3;
|
|
5
|
-
const DEFAULT_ARGON2_PARALLELISM = 1;
|
|
6
|
-
const DERIVED_KEY_LENGTH = 32;
|
|
7
2
|
const GCM_NONCE_BYTES = 12;
|
|
8
|
-
const ARGON2_SALT_BYTES = 16;
|
|
9
3
|
const BIGINT_JSON_TAG = "$cogcoinBigInt";
|
|
10
4
|
function jsonReplacer(_key, value) {
|
|
11
5
|
if (typeof value === "bigint") {
|
|
@@ -24,48 +18,6 @@ function jsonReviver(_key, value) {
|
|
|
24
18
|
}
|
|
25
19
|
return value;
|
|
26
20
|
}
|
|
27
|
-
async function deriveArgon2Key(message, nonce, memoryKib, iterations, parallelism) {
|
|
28
|
-
const derivedKey = await argon2id({
|
|
29
|
-
password: message,
|
|
30
|
-
salt: nonce,
|
|
31
|
-
memorySize: memoryKib,
|
|
32
|
-
iterations,
|
|
33
|
-
parallelism,
|
|
34
|
-
hashLength: DERIVED_KEY_LENGTH,
|
|
35
|
-
outputType: "binary",
|
|
36
|
-
});
|
|
37
|
-
return Buffer.from(derivedKey);
|
|
38
|
-
}
|
|
39
|
-
export async function deriveKeyFromPassphrase(passphrase, options = {}) {
|
|
40
|
-
const salt = Buffer.from(options.salt ?? randomBytes(ARGON2_SALT_BYTES));
|
|
41
|
-
const passphraseBytes = typeof passphrase === "string"
|
|
42
|
-
? Buffer.from(passphrase, "utf8")
|
|
43
|
-
: Buffer.from(passphrase);
|
|
44
|
-
const memoryKib = options.memoryKib ?? DEFAULT_ARGON2_MEMORY_KIB;
|
|
45
|
-
const iterations = options.iterations ?? DEFAULT_ARGON2_ITERATIONS;
|
|
46
|
-
const parallelism = options.parallelism ?? DEFAULT_ARGON2_PARALLELISM;
|
|
47
|
-
const key = await deriveArgon2Key(passphraseBytes, salt, memoryKib, iterations, parallelism);
|
|
48
|
-
return {
|
|
49
|
-
key,
|
|
50
|
-
params: {
|
|
51
|
-
name: "argon2id",
|
|
52
|
-
memoryKib,
|
|
53
|
-
iterations,
|
|
54
|
-
parallelism,
|
|
55
|
-
salt: salt.toString("base64"),
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export async function rederiveKeyFromEnvelope(passphrase, envelope) {
|
|
60
|
-
if (envelope.argon2id == null) {
|
|
61
|
-
throw new Error("wallet_envelope_not_passphrase_wrapped");
|
|
62
|
-
}
|
|
63
|
-
const passphraseBytes = typeof passphrase === "string"
|
|
64
|
-
? Buffer.from(passphrase, "utf8")
|
|
65
|
-
: Buffer.from(passphrase);
|
|
66
|
-
const salt = Buffer.from(envelope.argon2id.salt, "base64");
|
|
67
|
-
return deriveArgon2Key(passphraseBytes, salt, envelope.argon2id.memoryKib, envelope.argon2id.iterations, envelope.argon2id.parallelism);
|
|
68
|
-
}
|
|
69
21
|
export function encryptBytesWithKey(plaintext, key, metadata) {
|
|
70
22
|
const nonce = randomBytes(GCM_NONCE_BYTES);
|
|
71
23
|
const cipher = createCipheriv("aes-256-gcm", Buffer.from(key), nonce);
|
|
@@ -77,7 +29,6 @@ export function encryptBytesWithKey(plaintext, key, metadata) {
|
|
|
77
29
|
cipher: "aes-256-gcm",
|
|
78
30
|
wrappedBy: metadata.wrappedBy,
|
|
79
31
|
walletRootIdHint: metadata.walletRootIdHint ?? null,
|
|
80
|
-
argon2id: metadata.argon2id ?? null,
|
|
81
32
|
secretProvider: metadata.secretProvider ?? null,
|
|
82
33
|
nonce: nonce.toString("base64"),
|
|
83
34
|
tag: tag.toString("base64"),
|
|
@@ -92,15 +43,6 @@ export function decryptBytesWithKey(envelope, key) {
|
|
|
92
43
|
decipher.final(),
|
|
93
44
|
]);
|
|
94
45
|
}
|
|
95
|
-
export async function encryptJsonWithPassphrase(value, passphrase, metadata) {
|
|
96
|
-
const derived = await deriveKeyFromPassphrase(passphrase);
|
|
97
|
-
return encryptBytesWithKey(Buffer.from(JSON.stringify(value, jsonReplacer)), derived.key, {
|
|
98
|
-
format: metadata.format,
|
|
99
|
-
wrappedBy: metadata.wrappedBy ?? "passphrase",
|
|
100
|
-
walletRootIdHint: metadata.walletRootIdHint ?? null,
|
|
101
|
-
argon2id: derived.params,
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
46
|
export async function encryptJsonWithSecretProvider(value, provider, secretReference, metadata) {
|
|
105
47
|
const key = await provider.loadSecret(secretReference.keyId);
|
|
106
48
|
return encryptBytesWithKey(Buffer.from(JSON.stringify(value, jsonReplacer)), key, {
|
|
@@ -110,11 +52,6 @@ export async function encryptJsonWithSecretProvider(value, provider, secretRefer
|
|
|
110
52
|
secretProvider: secretReference,
|
|
111
53
|
});
|
|
112
54
|
}
|
|
113
|
-
export async function decryptJsonWithPassphrase(envelope, passphrase) {
|
|
114
|
-
const key = await rederiveKeyFromEnvelope(passphrase, envelope);
|
|
115
|
-
const plaintext = decryptBytesWithKey(envelope, key);
|
|
116
|
-
return JSON.parse(plaintext.toString("utf8"), jsonReviver);
|
|
117
|
-
}
|
|
118
55
|
export async function decryptJsonWithSecretProvider(envelope, provider) {
|
|
119
56
|
if (envelope.secretProvider == null) {
|
|
120
57
|
throw new Error("wallet_envelope_missing_secret_provider");
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
stdout: string;
|
|
3
|
-
stderr: string;
|
|
4
|
-
exitCode: number | null;
|
|
5
|
-
signal: NodeJS.Signals | null;
|
|
6
|
-
}
|
|
7
|
-
export interface LinuxSecretToolInvocationOptions {
|
|
8
|
-
stdin?: string;
|
|
9
|
-
}
|
|
10
|
-
export type LinuxSecretToolRunner = (args: readonly string[], options?: LinuxSecretToolInvocationOptions) => Promise<LinuxSecretToolResult>;
|
|
1
|
+
import { type ClientPasswordPrompt, type ClientPasswordReadiness, type ClientPasswordSessionStatus, type ClientPasswordSetupAction } from "./client-password.js";
|
|
11
2
|
export interface DefaultWalletSecretProviderFactoryOptions {
|
|
12
3
|
platform?: NodeJS.Platform;
|
|
13
|
-
linuxSecretToolRunner?: LinuxSecretToolRunner;
|
|
14
4
|
stateRoot?: string;
|
|
5
|
+
runtimeRoot?: string;
|
|
15
6
|
}
|
|
16
7
|
export interface WalletSecretReference {
|
|
17
8
|
kind: string;
|
|
@@ -22,6 +13,13 @@ export interface WalletSecretProvider {
|
|
|
22
13
|
loadSecret(keyId: string): Promise<Uint8Array>;
|
|
23
14
|
storeSecret(keyId: string, secret: Uint8Array): Promise<void>;
|
|
24
15
|
deleteSecret(keyId: string): Promise<void>;
|
|
16
|
+
withPrompter?(prompter: ClientPasswordPrompt): WalletSecretProvider;
|
|
17
|
+
inspectClientPasswordReadiness?(): Promise<ClientPasswordReadiness>;
|
|
18
|
+
ensureClientPasswordConfigured?(prompter: ClientPasswordPrompt): Promise<ClientPasswordSetupAction>;
|
|
19
|
+
changeClientPassword?(prompter: ClientPasswordPrompt): Promise<ClientPasswordSessionStatus>;
|
|
20
|
+
unlockClientPasswordSession?(prompter: ClientPasswordPrompt): Promise<ClientPasswordSessionStatus>;
|
|
21
|
+
lockClientPasswordSession?(): Promise<ClientPasswordSessionStatus>;
|
|
22
|
+
readClientPasswordSessionStatus?(): Promise<ClientPasswordSessionStatus>;
|
|
25
23
|
}
|
|
26
24
|
export declare function createWalletSecretReference(walletRootId: string): WalletSecretReference;
|
|
27
25
|
export declare function createWalletPendingInitSecretReference(stateRoot: string): WalletSecretReference;
|
|
@@ -31,9 +29,23 @@ export declare class MemoryWalletSecretProvider implements WalletSecretProvider
|
|
|
31
29
|
loadSecret(keyId: string): Promise<Uint8Array>;
|
|
32
30
|
storeSecret(keyId: string, secret: Uint8Array): Promise<void>;
|
|
33
31
|
deleteSecret(keyId: string): Promise<void>;
|
|
32
|
+
withPrompter(_prompter: ClientPasswordPrompt): WalletSecretProvider;
|
|
33
|
+
inspectClientPasswordReadiness(): Promise<ClientPasswordReadiness>;
|
|
34
|
+
ensureClientPasswordConfigured(_prompter: ClientPasswordPrompt): Promise<ClientPasswordSetupAction>;
|
|
35
|
+
unlockClientPasswordSession(_prompter: ClientPasswordPrompt): Promise<ClientPasswordSessionStatus>;
|
|
36
|
+
changeClientPassword(_prompter: ClientPasswordPrompt): Promise<ClientPasswordSessionStatus>;
|
|
37
|
+
lockClientPasswordSession(): Promise<ClientPasswordSessionStatus>;
|
|
38
|
+
readClientPasswordSessionStatus(): Promise<ClientPasswordSessionStatus>;
|
|
34
39
|
}
|
|
35
40
|
export declare function createDefaultWalletSecretProvider(): WalletSecretProvider;
|
|
36
41
|
export declare function createDefaultWalletSecretProviderForTesting(options?: DefaultWalletSecretProviderFactoryOptions): WalletSecretProvider;
|
|
37
42
|
export declare function createLazyDefaultWalletSecretProvider(): WalletSecretProvider;
|
|
38
43
|
export declare function createMemoryWalletSecretProviderForTesting(): WalletSecretProvider;
|
|
44
|
+
export declare function withInteractiveWalletSecretProvider(provider: WalletSecretProvider, prompter: ClientPasswordPrompt): WalletSecretProvider;
|
|
45
|
+
export declare function ensureClientPasswordConfigured(provider: WalletSecretProvider, prompter: ClientPasswordPrompt): Promise<ClientPasswordSetupAction>;
|
|
46
|
+
export declare function inspectClientPasswordSetupReadiness(provider: WalletSecretProvider): Promise<ClientPasswordReadiness>;
|
|
47
|
+
export declare function unlockClientPassword(provider: WalletSecretProvider, prompter: ClientPasswordPrompt): Promise<ClientPasswordSessionStatus>;
|
|
48
|
+
export declare function changeClientPassword(provider: WalletSecretProvider, prompter: ClientPasswordPrompt): Promise<ClientPasswordSessionStatus>;
|
|
49
|
+
export declare function lockClientPassword(provider: WalletSecretProvider): Promise<ClientPasswordSessionStatus>;
|
|
50
|
+
export declare function readClientPasswordStatus(provider: WalletSecretProvider): Promise<ClientPasswordSessionStatus>;
|
|
39
51
|
export declare function createWalletRootId(): string;
|