@meshsdk/core 1.5.23 → 1.5.24-alpha.2
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/dist/core/CIP1852.d.ts +1 -1
- package/dist/core.cjs +6 -6
- package/dist/core.js +599 -585
- package/dist/wallet/app.service.d.ts +7 -6
- package/dist/wallet/embedded.service.d.ts +4 -3
- package/package.json +1 -1
|
@@ -24,14 +24,15 @@ export declare class AppWallet implements IInitiator, ISigner, ISubmitter {
|
|
|
24
24
|
private readonly _submitter?;
|
|
25
25
|
private readonly _wallet;
|
|
26
26
|
constructor(options: CreateAppWalletOptions);
|
|
27
|
-
getBaseAddress(accountIndex?: number): string;
|
|
28
|
-
getPaymentAddress(accountIndex?: number): string;
|
|
29
|
-
getRewardAddress(accountIndex?: number): string;
|
|
30
|
-
getUsedAddress(accountIndex?: number): Address;
|
|
27
|
+
getBaseAddress(accountIndex?: number, keyIndex?: number): string;
|
|
28
|
+
getPaymentAddress(accountIndex?: number, keyIndex?: number): string;
|
|
29
|
+
getRewardAddress(accountIndex?: number, keyIndex?: number): string;
|
|
30
|
+
getUsedAddress(accountIndex?: number, keyIndex?: number): Address;
|
|
31
31
|
getUsedCollateral(_limit?: number): Promise<TransactionUnspentOutput[]>;
|
|
32
32
|
getUsedUTxOs(accountIndex?: number): Promise<TransactionUnspentOutput[]>;
|
|
33
|
-
signData(address: string, payload: string, accountIndex?: number): DataSignature;
|
|
34
|
-
signTx(unsignedTx: string, partialSign?: boolean, accountIndex?: number): Promise<string>;
|
|
33
|
+
signData(address: string, payload: string, accountIndex?: number, keyIndex?: number): DataSignature;
|
|
34
|
+
signTx(unsignedTx: string, partialSign?: boolean, accountIndex?: number, keyIndex?: number): Promise<string>;
|
|
35
|
+
signTxSync(unsignedTx: string, partialSign?: boolean, accountIndex?: number, keyIndex?: number): string;
|
|
35
36
|
signTxs(unsignedTxs: string[], partialSign: boolean): Promise<string[]>;
|
|
36
37
|
submitTx(tx: string): Promise<string>;
|
|
37
38
|
static brew(strength?: number): string[];
|
|
@@ -4,9 +4,10 @@ export declare class EmbeddedWallet {
|
|
|
4
4
|
private readonly _networkId;
|
|
5
5
|
private readonly _encryptedSecret;
|
|
6
6
|
constructor(_networkId: number, _encryptedSecret: string | [string, string]);
|
|
7
|
-
getAccount(accountIndex: number, password: string): Account;
|
|
8
|
-
signData(accountIndex: number, password: string, address: string, payload: string): DataSignature;
|
|
9
|
-
signTx(accountIndex: number, password: string, utxos: UTxO[], unsignedTx: string, partialSign: boolean): Vkeywitnesses;
|
|
7
|
+
getAccount(accountIndex: number, password: string, keyIndex?: number): Account;
|
|
8
|
+
signData(accountIndex: number, password: string, address: string, payload: string, keyIndex?: number): DataSignature;
|
|
9
|
+
signTx(accountIndex: number, password: string, utxos: UTxO[], unsignedTx: string, partialSign: boolean, keyIndex?: number): Vkeywitnesses;
|
|
10
|
+
addPaymentKey(accountIndex: number, password: string, unsignedTx: string, signatures: Vkeywitnesses, keyIndex?: number): Vkeywitnesses;
|
|
10
11
|
static encryptMnemonic(words: string[], password: string): string;
|
|
11
12
|
static encryptPrivateKey(bech32: string, password: string): string;
|
|
12
13
|
static encryptSigningKeys(cborPaymentKey: string, cborStakeKey: string, password: string): [string, string];
|
package/package.json
CHANGED