@sidhujag/sysweb3-keyring 1.0.628 → 2.1.0
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/CHANGELOG.md +30 -0
- package/README.md +174 -0
- package/cjs/bip84-native.js +8 -0
- package/cjs/bip84-native.js.map +1 -0
- package/cjs/hardware-wallet-manager.js +302 -128
- package/cjs/hardware-wallet-manager.js.map +1 -1
- package/cjs/keyring-core.js +319 -0
- package/cjs/keyring-core.js.map +1 -1
- package/cjs/keyring-manager.js +9 -3
- package/cjs/keyring-manager.js.map +1 -1
- package/cjs/ledger/bitcoin_client/lib/appClient.js.map +1 -1
- package/cjs/ledger/host-types.js +10 -0
- package/cjs/ledger/host-types.js.map +1 -0
- package/cjs/ledger/index.js +243 -447
- package/cjs/ledger/index.js.map +1 -1
- package/cjs/ledger/prepare-psbt.js +177 -0
- package/cjs/ledger/prepare-psbt.js.map +1 -0
- package/cjs/public-bip84.js +157 -0
- package/cjs/public-bip84.js.map +1 -0
- package/cjs/software-hd-account.js +23 -0
- package/cjs/software-hd-account.js.map +1 -0
- package/cjs/software-utxo-account.js +12 -0
- package/cjs/software-utxo-account.js.map +1 -0
- package/cjs/software.js +24 -0
- package/cjs/software.js.map +1 -1
- package/cjs/transactions/bip84-native-plan.js +481 -0
- package/cjs/transactions/bip84-native-plan.js.map +1 -0
- package/cjs/transactions/ethereum.js +55 -10
- package/cjs/transactions/ethereum.js.map +1 -1
- package/cjs/transactions/hardware-psbt.js +36 -44
- package/cjs/transactions/hardware-psbt.js.map +1 -1
- package/cjs/transactions/prepared-bip84.js +214 -0
- package/cjs/transactions/prepared-bip84.js.map +1 -0
- package/cjs/transactions/prepared-evm.js +197 -0
- package/cjs/transactions/prepared-evm.js.map +1 -0
- package/cjs/trezor/connect.js +243 -0
- package/cjs/trezor/connect.js.map +1 -0
- package/cjs/trezor/index.js +96 -58
- package/cjs/trezor/index.js.map +1 -1
- package/cjs/trezor/witness.js +25 -0
- package/cjs/trezor/witness.js.map +1 -0
- package/cjs/utils/psbt-account-scope.js +5 -3
- package/cjs/utils/psbt-account-scope.js.map +1 -1
- package/esm/errorUtils.js +72 -0
- package/esm/errorUtils.js.map +1 -0
- package/esm/ethers-v6.js +207 -0
- package/esm/ethers-v6.js.map +1 -0
- package/esm/hardware-wallet-manager.js +643 -0
- package/esm/hardware-wallet-manager.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/appClient.js +279 -0
- package/esm/ledger/bitcoin_client/lib/appClient.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/bip32.js +49 -0
- package/esm/ledger/bitcoin_client/lib/bip32.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/buffertools.js +119 -0
- package/esm/ledger/bitcoin_client/lib/buffertools.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/clientCommands.js +269 -0
- package/esm/ledger/bitcoin_client/lib/clientCommands.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/merkelizedPsbt.js +50 -0
- package/esm/ledger/bitcoin_client/lib/merkelizedPsbt.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/merkle.js +111 -0
- package/esm/ledger/bitcoin_client/lib/merkle.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/merkleMap.js +42 -0
- package/esm/ledger/bitcoin_client/lib/merkleMap.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/policy.js +68 -0
- package/esm/ledger/bitcoin_client/lib/policy.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/psbtv2.js +645 -0
- package/esm/ledger/bitcoin_client/lib/psbtv2.js.map +1 -0
- package/esm/ledger/bitcoin_client/lib/varint.js +108 -0
- package/esm/ledger/bitcoin_client/lib/varint.js.map +1 -0
- package/esm/ledger/consts.js +4 -0
- package/esm/ledger/consts.js.map +1 -0
- package/esm/ledger/dmk-evm.js +258 -0
- package/esm/ledger/dmk-evm.js.map +1 -0
- package/esm/ledger/dmk-session.js +264 -0
- package/esm/ledger/dmk-session.js.map +1 -0
- package/esm/ledger/dmk-utxo.js +279 -0
- package/esm/ledger/dmk-utxo.js.map +1 -0
- package/esm/ledger/host-types.js +5 -0
- package/esm/ledger/host-types.js.map +1 -0
- package/esm/ledger/index.js +268 -0
- package/esm/ledger/index.js.map +1 -0
- package/esm/ledger/prepare-psbt.js +141 -0
- package/esm/ledger/prepare-psbt.js.map +1 -0
- package/esm/ledger/types.js +2 -0
- package/esm/ledger/types.js.map +1 -0
- package/esm/ledger-host.js +36 -0
- package/esm/ledger-host.js.map +1 -0
- package/esm/private-records.js +153 -0
- package/esm/private-records.js.map +1 -0
- package/esm/providers.js +588 -0
- package/esm/providers.js.map +1 -0
- package/esm/signers.js +28 -0
- package/esm/signers.js.map +1 -0
- package/esm/trezor/connect.js +206 -0
- package/esm/trezor/connect.js.map +1 -0
- package/esm/trezor/index.js +876 -0
- package/esm/trezor/index.js.map +1 -0
- package/esm/trezor/witness.js +21 -0
- package/esm/trezor/witness.js.map +1 -0
- package/esm/types.js +17 -0
- package/esm/types.js.map +1 -0
- package/esm/utils/derivation-paths.js +109 -0
- package/esm/utils/derivation-paths.js.map +1 -0
- package/esm/utils/psbt-account-scope.js +310 -0
- package/esm/utils/psbt-account-scope.js.map +1 -0
- package/package.json +34 -9
- package/types/bip84-native.d.ts +3 -0
- package/types/hardware-wallet-manager.d.ts +12 -19
- package/types/keyring-core.d.ts +14 -0
- package/types/keyring-manager.d.ts +2 -1
- package/types/ledger/bitcoin_client/lib/appClient.d.ts +6 -3
- package/types/ledger/dmk-evm.d.ts +8 -0
- package/types/ledger/dmk-session.d.ts +60 -0
- package/types/ledger/dmk-utxo.d.ts +26 -0
- package/types/ledger/host-types.d.ts +131 -0
- package/types/ledger/index.d.ts +21 -58
- package/types/ledger/prepare-psbt.d.ts +3 -0
- package/types/ledger/types.d.ts +3 -0
- package/types/ledger-host.d.ts +7 -0
- package/types/public-bip84.d.ts +39 -0
- package/types/software-hd-account.d.ts +16 -0
- package/types/software-utxo-account.d.ts +13 -0
- package/types/software.d.ts +26 -0
- package/types/transactions/bip84-native-plan.d.ts +83 -0
- package/types/transactions/ethereum.d.ts +1 -1
- package/types/transactions/prepared-bip84.d.ts +27 -0
- package/types/transactions/prepared-evm.d.ts +53 -0
- package/types/trezor/connect.d.ts +42 -0
- package/types/trezor/index.d.ts +22 -4
- package/types/trezor/witness.d.ts +3 -0
- package/types/utils/psbt-account-scope.d.ts +1 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Psbt, Network } from 'bitcoinjs-lib';
|
|
2
|
+
import { Bip84PublicAccount, Bip84PublicNetwork } from '../public-bip84';
|
|
3
|
+
export type Bip84NetworkBinding = Readonly<{
|
|
4
|
+
network: Bip84PublicNetwork;
|
|
5
|
+
endpoint: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type Bip84Guard = Readonly<{
|
|
8
|
+
assertCurrent(): void;
|
|
9
|
+
}>;
|
|
10
|
+
export type Bip84NativePlan = Readonly<{
|
|
11
|
+
network: Bip84NetworkBinding;
|
|
12
|
+
account: Bip84PublicAccount;
|
|
13
|
+
inputs: readonly Readonly<{
|
|
14
|
+
txid: string;
|
|
15
|
+
vout: number;
|
|
16
|
+
branch: 0 | 1;
|
|
17
|
+
index: number;
|
|
18
|
+
}>[];
|
|
19
|
+
previousTransactions: readonly Readonly<{
|
|
20
|
+
txid: string;
|
|
21
|
+
rawTransaction: string;
|
|
22
|
+
}>[];
|
|
23
|
+
recipient: Readonly<{
|
|
24
|
+
address: string;
|
|
25
|
+
valueSatoshis: string;
|
|
26
|
+
}>;
|
|
27
|
+
change: Readonly<{
|
|
28
|
+
index: number;
|
|
29
|
+
valueSatoshis: string;
|
|
30
|
+
}> | null;
|
|
31
|
+
locktime: 0;
|
|
32
|
+
rbf: boolean;
|
|
33
|
+
feeLimits: Readonly<{
|
|
34
|
+
maxFeeSatoshis: string;
|
|
35
|
+
maxFeeRateSatPerVByte: string;
|
|
36
|
+
}>;
|
|
37
|
+
}>;
|
|
38
|
+
export type PreparedBip84NativeTransaction = Readonly<{
|
|
39
|
+
plan: Bip84NativePlan;
|
|
40
|
+
unsignedTransaction: string;
|
|
41
|
+
feeSatoshis: string;
|
|
42
|
+
}>;
|
|
43
|
+
export type Bip84NativeErrorCode = 'INVALID_REQUEST' | 'LIMIT_EXCEEDED' | 'UNSUPPORTED_NETWORK' | 'UNSUPPORTED_PARENT' | 'ACCOUNT_MISMATCH' | 'INPUT_MISMATCH' | 'FEE_LIMIT' | 'SIGNATURE_INVALID' | 'CANCELLED' | 'BUSY';
|
|
44
|
+
export declare class Bip84NativeError extends Error {
|
|
45
|
+
readonly code: Bip84NativeErrorCode;
|
|
46
|
+
constructor(code: Bip84NativeErrorCode);
|
|
47
|
+
}
|
|
48
|
+
export declare const LIMITS: Readonly<{
|
|
49
|
+
inputs: 64;
|
|
50
|
+
parentBytes: 1000000;
|
|
51
|
+
totalParentBytes: 2000000;
|
|
52
|
+
parentComponents: 8192;
|
|
53
|
+
unsignedBytes: number;
|
|
54
|
+
signedBytes: number;
|
|
55
|
+
psbtBytes: number;
|
|
56
|
+
maxFee: 10000000n;
|
|
57
|
+
maxFeeRate: 1000n;
|
|
58
|
+
}>;
|
|
59
|
+
export type Bip84Profile = Readonly<{
|
|
60
|
+
chainId: number;
|
|
61
|
+
slip44: number;
|
|
62
|
+
currency: string;
|
|
63
|
+
maximumMoney: bigint;
|
|
64
|
+
addressNetwork: Network;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const bip84Profile: (network: Bip84PublicNetwork) => Bip84Profile;
|
|
67
|
+
export declare const fail: (code: Bip84NativeErrorCode) => never;
|
|
68
|
+
export declare function record(value: unknown, fields: readonly string[]): Record<string, unknown>;
|
|
69
|
+
export declare function index(value: unknown): number;
|
|
70
|
+
export declare function snapshotBip84Network(value: unknown): Bip84NetworkBinding;
|
|
71
|
+
export declare function snapshotBip84Guard(value: unknown): () => void;
|
|
72
|
+
export type ValidatedBip84Plan = {
|
|
73
|
+
prepared: PreparedBip84NativeTransaction;
|
|
74
|
+
psbt: Psbt;
|
|
75
|
+
previousOutputs: readonly Readonly<{
|
|
76
|
+
script: Uint8Array;
|
|
77
|
+
value: bigint;
|
|
78
|
+
}>[];
|
|
79
|
+
};
|
|
80
|
+
/** Internal result includes owned mutable transaction data; public entry exports only prepare. */
|
|
81
|
+
export declare function validateBip84NativePlan(value: unknown): ValidatedBip84Plan;
|
|
82
|
+
/** Pure bounded preparation; returned data carries no signing authorization. */
|
|
83
|
+
export declare function prepareBip84NativeTransaction(plan: Bip84NativePlan): PreparedBip84NativeTransaction;
|
|
@@ -43,7 +43,7 @@ export declare class EthereumTransactions<TLedger extends EthereumLedgerSigner |
|
|
|
43
43
|
get web3Provider(): CustomJsonRpcProvider;
|
|
44
44
|
private ensureProvidersInitialized;
|
|
45
45
|
private isUtxoNetwork;
|
|
46
|
-
signTypedData: (addr: string, typedData: TypedDataV1 | TypedMessage<any>, version: SignTypedDataVersion) => Promise<
|
|
46
|
+
signTypedData: (addr: string, typedData: TypedDataV1 | TypedMessage<any>, version: SignTypedDataVersion) => Promise<string>;
|
|
47
47
|
verifyUtxoAddress: (accountIndex: number, currency: string, slip44: number) => Promise<string | undefined>;
|
|
48
48
|
verifyTypedSignature: (data: TypedDataV1 | TypedMessage<any>, signature: string, version: SignTypedDataVersion) => string;
|
|
49
49
|
ethSign: (params: string[]) => Promise<string>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BIP32Interface } from 'bip32';
|
|
2
|
+
import { PreparedBip84NativeTransaction, ValidatedBip84Plan } from './bip84-native-plan';
|
|
3
|
+
export type PreparedBip84SigningRequest = Readonly<{
|
|
4
|
+
account: Readonly<{
|
|
5
|
+
type: 'HDAccount';
|
|
6
|
+
index: number;
|
|
7
|
+
expectedAccountKey: string;
|
|
8
|
+
}>;
|
|
9
|
+
prepared: PreparedBip84NativeTransaction;
|
|
10
|
+
}>;
|
|
11
|
+
export type SignedBip84NativeTransaction = Readonly<{
|
|
12
|
+
rawTransaction: string;
|
|
13
|
+
txid: string;
|
|
14
|
+
wtxid: string;
|
|
15
|
+
unsignedTransaction: string;
|
|
16
|
+
feeSatoshis: string;
|
|
17
|
+
virtualSize: number;
|
|
18
|
+
}>;
|
|
19
|
+
/** Private host snapshot. A public prepared DTO never carries signing authority. */
|
|
20
|
+
export declare function snapshotPreparedBip84Request(input: unknown): {
|
|
21
|
+
account: PreparedBip84SigningRequest['account'];
|
|
22
|
+
validated: ValidatedBip84Plan;
|
|
23
|
+
};
|
|
24
|
+
/** Only operation-owned nodes. No session/shared key objects may be supplied. */
|
|
25
|
+
export declare function clearBip84PrivateNodes(nodes: BIP32Interface[]): void;
|
|
26
|
+
/** Internally owned PSBT only. No provider, generic SDK signer or partial result. */
|
|
27
|
+
export declare function signValidatedBip84Plan(validated: ValidatedBip84Plan, accountNode: BIP32Interface, assertCurrent: () => void): SignedBip84NativeTransaction;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fully specified type-0/type-2 transaction. Quantities are canonical decimal
|
|
3
|
+
* integer strings, nonce is at most MAX_SAFE_INTEGER, and gasLimit is uint64.
|
|
4
|
+
* Addresses must be nonzero hex addresses; valid casing is normalized. Data is
|
|
5
|
+
* even-length 0x hex, at most 16 KiB. Contract creation/access lists are omitted.
|
|
6
|
+
*/
|
|
7
|
+
export type PreparedEvmTransaction = Readonly<{
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
10
|
+
chainId: string;
|
|
11
|
+
nonce: string;
|
|
12
|
+
value: string;
|
|
13
|
+
gasLimit: string;
|
|
14
|
+
data: string;
|
|
15
|
+
} & ({
|
|
16
|
+
type: 0;
|
|
17
|
+
gasPrice: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: 2;
|
|
20
|
+
maxFeePerGas: string;
|
|
21
|
+
maxPriorityFeePerGas: string;
|
|
22
|
+
})>;
|
|
23
|
+
export type PreparedSoftwareEvmSigningRequest = Readonly<{
|
|
24
|
+
account: Readonly<{
|
|
25
|
+
id: number;
|
|
26
|
+
type: 'HDAccount' | 'Imported';
|
|
27
|
+
expectedAddress: string;
|
|
28
|
+
}>;
|
|
29
|
+
network: Readonly<{
|
|
30
|
+
kind: 'ethereum';
|
|
31
|
+
chainId: string;
|
|
32
|
+
slip44: 60;
|
|
33
|
+
/** Exact configured endpoint binding; signing does not contact or authenticate it. */
|
|
34
|
+
url: string;
|
|
35
|
+
}>;
|
|
36
|
+
transaction: PreparedEvmTransaction;
|
|
37
|
+
}>;
|
|
38
|
+
export type PreparedEvmSigningOptions = Readonly<{
|
|
39
|
+
/** Host-owned consent/session/review expiry check. Must return undefined. */
|
|
40
|
+
assertCurrent(): void;
|
|
41
|
+
}>;
|
|
42
|
+
export type SignedPreparedEvmTransaction = Readonly<{
|
|
43
|
+
rawTransaction: string;
|
|
44
|
+
hash: string;
|
|
45
|
+
unsignedHash: string;
|
|
46
|
+
from: string;
|
|
47
|
+
/** Canonical signed fields, checked against the requested envelope. */
|
|
48
|
+
transaction: PreparedEvmTransaction;
|
|
49
|
+
}>;
|
|
50
|
+
export declare function snapshotPreparedEvmRequest(input: unknown): PreparedSoftwareEvmSigningRequest;
|
|
51
|
+
export declare function preparedEvmGuard(input: unknown): () => void;
|
|
52
|
+
/** Internal, network-free signing. The key never becomes part of the result. */
|
|
53
|
+
export declare function signPreparedEvmEnvelope(transaction: PreparedEvmTransaction, privateKey: string): SignedPreparedEvmTransaction;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ConnectDynamicSettings, TrezorConnectPublicAPI } from '@trezor/connect-webextension';
|
|
2
|
+
type Client = TrezorConnectPublicAPI<ConnectDynamicSettings>;
|
|
3
|
+
declare const methods: readonly ["getFeatures", "getAccountInfo", "ethereumGetAddress", "ethereumGetPublicKey", "getPublicKey", "getAddress", "signTransaction", "ethereumSignTransaction", "signMessage", "ethereumSignMessage", "ethereumSignTypedData", "verifyMessage", "ethereumVerifyMessage"];
|
|
4
|
+
type Method = (typeof methods)[number];
|
|
5
|
+
type Compatible<T> = T extends {
|
|
6
|
+
success: false;
|
|
7
|
+
} ? T & {
|
|
8
|
+
payload: {
|
|
9
|
+
error: string;
|
|
10
|
+
code?: string;
|
|
11
|
+
};
|
|
12
|
+
} : T;
|
|
13
|
+
type CompatibleCall<FunctionType> = FunctionType extends {
|
|
14
|
+
(...args: infer A): infer R;
|
|
15
|
+
(...args: infer B): infer S;
|
|
16
|
+
(...args: infer C): infer T;
|
|
17
|
+
} ? {
|
|
18
|
+
(...args: A): Promise<Compatible<Awaited<R>>>;
|
|
19
|
+
(...args: B): Promise<Compatible<Awaited<S>>>;
|
|
20
|
+
(...args: C): Promise<Compatible<Awaited<T>>>;
|
|
21
|
+
} : never;
|
|
22
|
+
type Calls = {
|
|
23
|
+
[Name in Method]: CompatibleCall<Client[Name]>;
|
|
24
|
+
};
|
|
25
|
+
type ConnectionEvent = {
|
|
26
|
+
type: 'disconnected';
|
|
27
|
+
} | {
|
|
28
|
+
type: 'model';
|
|
29
|
+
model: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const subscribeTrezorEvents: (listener: (event: ConnectionEvent) => void) => (() => void);
|
|
32
|
+
declare const TrezorConnect: Calls & {
|
|
33
|
+
init: Client['init'];
|
|
34
|
+
dispose: () => Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
export declare const trezorResponseError: (response: {
|
|
37
|
+
payload?: {
|
|
38
|
+
error?: string;
|
|
39
|
+
code?: string;
|
|
40
|
+
};
|
|
41
|
+
}, prefix?: string) => Error;
|
|
42
|
+
export default TrezorConnect;
|
package/types/trezor/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypedMessage, SignTypedDataVersion, TypedDataV1 } from '@metamask/eth-sig-util';
|
|
2
|
-
import { AccountInfo, EthereumTransaction, EthereumTransactionEIP1559 } from '@trezor/connect-webextension';
|
|
3
2
|
import { Psbt } from 'bitcoinjs-lib';
|
|
4
3
|
import { Buffer } from 'buffer';
|
|
4
|
+
import type { AccountInfo, EthereumTransaction, EthereumTransactionEIP1559 } from '@trezor/connect-webextension';
|
|
5
5
|
export interface TrezorControllerState {
|
|
6
6
|
hdPath: string;
|
|
7
7
|
paths: Record<string, number>;
|
|
@@ -19,7 +19,12 @@ export declare class TrezorKeyring {
|
|
|
19
19
|
model?: string;
|
|
20
20
|
private hardwareWalletManager;
|
|
21
21
|
private initialized;
|
|
22
|
+
private lifecycleGeneration;
|
|
23
|
+
private unsubscribeTrezor?;
|
|
24
|
+
private readonly onTrezorConnected;
|
|
25
|
+
private readonly onTrezorDisconnected;
|
|
22
26
|
constructor();
|
|
27
|
+
private observeTrezor;
|
|
23
28
|
/**
|
|
24
29
|
* Initialize Trezor script.
|
|
25
30
|
*/
|
|
@@ -51,7 +56,7 @@ export declare class TrezorKeyring {
|
|
|
51
56
|
*/
|
|
52
57
|
getModel(): string | undefined;
|
|
53
58
|
/**
|
|
54
|
-
* This
|
|
59
|
+
* This disposes the active Trezor Suite connection
|
|
55
60
|
*
|
|
56
61
|
* @returns void
|
|
57
62
|
*/
|
|
@@ -117,7 +122,20 @@ export declare class TrezorKeyring {
|
|
|
117
122
|
tx: EthereumTransaction | EthereumTransactionEIP1559;
|
|
118
123
|
coin: string;
|
|
119
124
|
slip44: number;
|
|
120
|
-
}): Promise<
|
|
125
|
+
}): Promise<import("@trezor/connect-webextension").OkWithDevice<{
|
|
126
|
+
authorizationList?: {
|
|
127
|
+
address: string;
|
|
128
|
+
chainId: number;
|
|
129
|
+
r: string;
|
|
130
|
+
s: string;
|
|
131
|
+
nonce: number;
|
|
132
|
+
yParity: number;
|
|
133
|
+
}[] | undefined;
|
|
134
|
+
r: string;
|
|
135
|
+
s: string;
|
|
136
|
+
v: string;
|
|
137
|
+
serializedTx: string;
|
|
138
|
+
}>>;
|
|
121
139
|
/**
|
|
122
140
|
* This sign message.
|
|
123
141
|
*
|
|
@@ -146,7 +164,7 @@ export declare class TrezorKeyring {
|
|
|
146
164
|
data: TypedMessage<any> | TypedDataV1;
|
|
147
165
|
index: number;
|
|
148
166
|
version: SignTypedDataVersion;
|
|
149
|
-
}): Promise<
|
|
167
|
+
}): Promise<string>;
|
|
150
168
|
/**
|
|
151
169
|
* Verify UTXO address by displaying it on the Trezor device
|
|
152
170
|
* @param accountIndex - The account index
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { INetwork } from '@sidhujag/sysweb3-network';
|
|
2
2
|
import { Psbt } from 'bitcoinjs-lib';
|
|
3
3
|
import { KeyringAccountType } from '../types';
|
|
4
|
+
export declare const parsePsbtAccountXpub: (xpub: string) => import("bip32").BIP32Interface;
|
|
4
5
|
export type PsbtAccountScope = {
|
|
5
6
|
account: {
|
|
6
7
|
address: string;
|