-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.js
63 lines (63 loc) · 1.69 KB
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* @typedef {import("./node_modules/crypticstorage/storage.js")} CrypticStorage
* @typedef {import("dashhd").HDWallet} HDWallet
* @typedef {import("dashhd").HDXKey} HDXKey
* @typedef {import("dashhd").HDAccount} HDAccount
* @typedef {import("dashhd").HDFromXKeyOptions} HDFromXKeyOptions
* @typedef {import("dashhd").HDToPublic} HDToPublic
* @typedef {import("dashhd").HDKey} HDKey
* @typedef {import("dashkeys").PublicKeyToPubKeyHash} PublicKeyToPubKeyHash
* @typedef {import("dashkeys").AddressToPubKeyHash} AddressToPubKeyHash
*
* @typedef {{
* encPrivKey?: HTMLElement & { passphrase?: HTMLInputElement };
* encryptWallet?: HTMLElement & { passphrase?: HTMLInputElement };
* privKeyForm?: HTMLElement & { privateKey?: HTMLInputElement };
* balanceForm?: HTMLElement;
* fundingModal?: HTMLDialogElement,
* generatePrivKeyForm?: HTMLElement,
* addPrivKeyForm?: HTMLElement,
* } & Document} document
*
* @typedef {{
* addrs?: Object<string, string?>
* }} PrivateAndPublicKeys
*
* @typedef {{
* id: string;
* accountIndex: number;
* addressIndex: number;
* usageIndex?: number;
* addressKeyId: string;
* addressKey: HDKey;
* address: string;
* xkeyId: string;
* xkey: HDXKey;
* xprv: string;
* xpub: string;
* seed: Uint8Array;
* wpub: string;
* derivedWallet: HDWallet;
* account: HDAccount;
* recoveryPhrase: string;
* }} SeedWallet
*
* @typedef {{
* xpub: string;
* xpubKey: HDXKey;
* xpubId: string;
* address: string;
* }} GetAddr
*
* @typedef {{
* fromXpub: string;
* hdkeyId: string;
* keyId: string;
* hdkey: string;
* key: string;
* xpub: string;
* xpubKey: HDXKey;
* xpubId: string;
* address: string;
* }} ContactAddr
*/