@bubolabs/wallet-wasm 0.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/README.md +103 -0
- package/index.d.ts +289 -0
- package/index.js +748 -0
- package/package.json +34 -0
- package/pkg/bubo_wallet_wasm.d.ts +192 -0
- package/pkg/bubo_wallet_wasm.js +9 -0
- package/pkg/bubo_wallet_wasm_bg.js +1343 -0
- package/pkg/bubo_wallet_wasm_bg.wasm +0 -0
- package/pkg/bubo_wallet_wasm_bg.wasm.d.ts +78 -0
- package/pkg/package.json +18 -0
- package/pkg-cardano/bubo_wallet_wasm.d.ts +4367 -0
- package/pkg-cardano/bubo_wallet_wasm.js +9 -0
- package/pkg-cardano/bubo_wallet_wasm_bg.js +30154 -0
- package/pkg-cardano/bubo_wallet_wasm_bg.wasm +0 -0
- package/pkg-cardano/bubo_wallet_wasm_bg.wasm.d.ts +2447 -0
- package/pkg-cardano/package.json +18 -0
package/README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# @bubolabs/wallet-wasm
|
|
2
|
+
|
|
3
|
+
Browser WASM package for the bubo wallet offline chain adapters.
|
|
4
|
+
|
|
5
|
+
This package is intentionally separate from `@bubolabs/wallet-rn-sdk`.
|
|
6
|
+
The chain implementation is shared in Rust, while this package only owns the
|
|
7
|
+
browser binding and distribution layer.
|
|
8
|
+
|
|
9
|
+
Current browser targets: ETH, BTC, Solana, TON, TRON, NEAR, Cosmos,
|
|
10
|
+
Cardano, Aptos, Polkadot, Dogecoin, Starknet, Stellar, Sui, and XRPL.
|
|
11
|
+
|
|
12
|
+
## Build
|
|
13
|
+
|
|
14
|
+
Install `wasm-pack`, then run from this package directory:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm run build
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The build writes generated WASM artifacts to:
|
|
21
|
+
|
|
22
|
+
- `pkg/` for the core module: all supported browser chains except Cardano
|
|
23
|
+
- `pkg-cardano/` for Cardano
|
|
24
|
+
|
|
25
|
+
Cardano is packaged as a separate WASM module because upstream
|
|
26
|
+
`cardano-serialization-lib` and Solana's wasm-enabled crates both export a
|
|
27
|
+
`Transaction` class through `wasm-bindgen`, which causes duplicate linker
|
|
28
|
+
symbols when they are placed in one `.wasm` file. The JavaScript wrapper keeps
|
|
29
|
+
one public API and routes Cardano calls to the Cardano module internally.
|
|
30
|
+
BTC support uses the `bitcoin` crate's secp256k1 backend. On macOS, install
|
|
31
|
+
LLVM via Homebrew if Apple's clang cannot compile `wasm32-unknown-unknown`:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
brew install llvm
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The package build script automatically uses `/opt/homebrew/opt/llvm/bin/clang`
|
|
38
|
+
or `/usr/local/opt/llvm/bin/clang` when present.
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
import {
|
|
44
|
+
init,
|
|
45
|
+
aptos,
|
|
46
|
+
btc,
|
|
47
|
+
cardano,
|
|
48
|
+
cosmos,
|
|
49
|
+
dogecoin,
|
|
50
|
+
eth,
|
|
51
|
+
near,
|
|
52
|
+
polkadot,
|
|
53
|
+
solana,
|
|
54
|
+
starknet,
|
|
55
|
+
stellar,
|
|
56
|
+
sui,
|
|
57
|
+
ton,
|
|
58
|
+
tron,
|
|
59
|
+
xrpl,
|
|
60
|
+
} from "@bubolabs/wallet-wasm";
|
|
61
|
+
|
|
62
|
+
await init();
|
|
63
|
+
|
|
64
|
+
const mnemonic =
|
|
65
|
+
"abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about";
|
|
66
|
+
const wallet = eth.deriveWallet({
|
|
67
|
+
mnemonic,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const supported = eth.verifyMessageSignature({
|
|
71
|
+
message: "hello",
|
|
72
|
+
address: wallet.address,
|
|
73
|
+
signatureHex: "0x...",
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const btcAddress = btc.deriveAddress({ mnemonic });
|
|
77
|
+
const solanaAddress = solana.deriveAddress({ mnemonic });
|
|
78
|
+
const tonAddress = ton.deriveAddress({ mnemonic });
|
|
79
|
+
const tonStateInit = ton.buildWalletStateInit({
|
|
80
|
+
mnemonic,
|
|
81
|
+
walletVersion: "v5r1",
|
|
82
|
+
});
|
|
83
|
+
const tronAddress = tron.deriveAddress({ mnemonic });
|
|
84
|
+
const nearAddress = near.deriveAddress({ mnemonic });
|
|
85
|
+
const cosmosAddress = cosmos.deriveAddress({ mnemonic });
|
|
86
|
+
const cardanoAddress = cardano.deriveAddress({ mnemonic });
|
|
87
|
+
const aptosAddress = aptos.deriveAddress({ mnemonic });
|
|
88
|
+
const polkadotAddress = polkadot.deriveAddress({ mnemonic });
|
|
89
|
+
const dogecoinAddress = dogecoin.deriveAddress({ mnemonic });
|
|
90
|
+
const starknetAddress = starknet.deriveAddress({ mnemonic });
|
|
91
|
+
const stellarAddress = stellar.deriveAddress({ mnemonic });
|
|
92
|
+
const suiAddress = sui.deriveAddress({ mnemonic });
|
|
93
|
+
const xrplAddress = xrpl.deriveAddress({ mnemonic });
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Boundary
|
|
97
|
+
|
|
98
|
+
- In scope: offline derivation, signing, transaction payload helpers, and
|
|
99
|
+
inspection helpers exposed by the shared Rust adapters.
|
|
100
|
+
- Out of scope: RPC reads, transaction broadcast, online dApp/session
|
|
101
|
+
orchestration.
|
|
102
|
+
- RN native packaging remains in `packages/rn-sdk` and is not affected by this
|
|
103
|
+
package.
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
export type SupportedChainInfo = {
|
|
2
|
+
chainId: string;
|
|
3
|
+
capabilities: string[];
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type ChainExtensionInfo = {
|
|
7
|
+
chainId: string;
|
|
8
|
+
methods: string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type DerivedWallet = {
|
|
12
|
+
address: string;
|
|
13
|
+
privateKey: string;
|
|
14
|
+
privateKeyEncoding: string;
|
|
15
|
+
publicKey: string;
|
|
16
|
+
publicKeyEncoding: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type TextEncoding = "utf8" | "text" | "hex" | "base64";
|
|
20
|
+
export type PrivateKeyEncoding = "hex" | "base64" | "utf8" | "text";
|
|
21
|
+
export type TonMnemonicType = "ton" | "bip39" | "bip-39";
|
|
22
|
+
export type DogecoinNetwork = "mainnet" | "testnet";
|
|
23
|
+
|
|
24
|
+
export type DeriveRequest = {
|
|
25
|
+
chainId: string;
|
|
26
|
+
mnemonic: string;
|
|
27
|
+
account?: number;
|
|
28
|
+
index?: number;
|
|
29
|
+
passphrase?: string | null;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type PrivateKeyRequest = {
|
|
33
|
+
chainId: string;
|
|
34
|
+
privateKey: string;
|
|
35
|
+
privateKeyEncoding?: PrivateKeyEncoding;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type BuildAndSignRequest = {
|
|
39
|
+
chainId: string;
|
|
40
|
+
mnemonic: string;
|
|
41
|
+
txPayload: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type BuildAndSignFromPrivateKeyRequest = {
|
|
45
|
+
chainId: string;
|
|
46
|
+
privateKey: string;
|
|
47
|
+
privateKeyEncoding?: PrivateKeyEncoding;
|
|
48
|
+
txPayload: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type SignMessageRequest = {
|
|
52
|
+
chainId: string;
|
|
53
|
+
mnemonic: string;
|
|
54
|
+
message: string;
|
|
55
|
+
messageEncoding?: TextEncoding;
|
|
56
|
+
account?: number;
|
|
57
|
+
index?: number;
|
|
58
|
+
passphrase?: string | null;
|
|
59
|
+
mode?: string | null;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type SignMessageFromPrivateKeyRequest = {
|
|
63
|
+
chainId: string;
|
|
64
|
+
privateKey: string;
|
|
65
|
+
privateKeyEncoding?: PrivateKeyEncoding;
|
|
66
|
+
message: string;
|
|
67
|
+
messageEncoding?: TextEncoding;
|
|
68
|
+
mode?: string | null;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export type SignBytesRequest = {
|
|
72
|
+
chainId: string;
|
|
73
|
+
mnemonic: string;
|
|
74
|
+
bytes: string;
|
|
75
|
+
bytesEncoding?: "base64" | "hex" | "utf8" | "text";
|
|
76
|
+
account?: number;
|
|
77
|
+
index?: number;
|
|
78
|
+
passphrase?: string | null;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type SignBytesFromPrivateKeyRequest = {
|
|
82
|
+
chainId: string;
|
|
83
|
+
privateKey: string;
|
|
84
|
+
privateKeyEncoding?: PrivateKeyEncoding;
|
|
85
|
+
bytes: string;
|
|
86
|
+
bytesEncoding?: "base64" | "hex" | "utf8" | "text";
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type SignTypedDataRequest = {
|
|
90
|
+
chainId: string;
|
|
91
|
+
mnemonic: string;
|
|
92
|
+
typedData: string;
|
|
93
|
+
typedDataEncoding?: TextEncoding;
|
|
94
|
+
account?: number;
|
|
95
|
+
index?: number;
|
|
96
|
+
passphrase?: string | null;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type SignTypedDataFromPrivateKeyRequest = {
|
|
100
|
+
chainId: string;
|
|
101
|
+
privateKey: string;
|
|
102
|
+
privateKeyEncoding?: PrivateKeyEncoding;
|
|
103
|
+
typedData: string;
|
|
104
|
+
typedDataEncoding?: TextEncoding;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type TonAddressFormat = {
|
|
108
|
+
encoding?: "user-friendly" | "raw";
|
|
109
|
+
bounceable?: boolean | null;
|
|
110
|
+
testOnly?: boolean;
|
|
111
|
+
urlSafe?: boolean;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type TonDeriveRequest = Omit<DeriveRequest, "chainId"> & {
|
|
115
|
+
mnemonicType?: TonMnemonicType;
|
|
116
|
+
derivationPath?: string | null;
|
|
117
|
+
walletVersion?: "v4r2" | "v5r1";
|
|
118
|
+
addressFormat?: TonAddressFormat;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export type TonPrivateKeyRequest = Omit<PrivateKeyRequest, "chainId"> & {
|
|
122
|
+
keyEncoding?: PrivateKeyEncoding;
|
|
123
|
+
walletVersion?: "v4r2" | "v5r1";
|
|
124
|
+
addressFormat?: TonAddressFormat;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export type TonBuildAndSignRequest = Omit<BuildAndSignRequest, "chainId" | "txPayload"> & {
|
|
128
|
+
txPayload: string | unknown;
|
|
129
|
+
mnemonicType?: TonMnemonicType;
|
|
130
|
+
derivationPath?: string | null;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export type DogecoinDeriveRequest = Omit<DeriveRequest, "chainId"> & {
|
|
134
|
+
network?: DogecoinNetwork;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export type DogecoinPrivateKeyRequest = Omit<PrivateKeyRequest, "chainId"> & {
|
|
138
|
+
keyEncoding?: PrivateKeyEncoding | "wif";
|
|
139
|
+
network?: DogecoinNetwork;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export class WalletWasmError extends Error {
|
|
143
|
+
code: string;
|
|
144
|
+
details: string | null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function init(): Promise<void>;
|
|
148
|
+
export function listSupportedChains(): SupportedChainInfo[];
|
|
149
|
+
export function listChainExtensions(): ChainExtensionInfo[];
|
|
150
|
+
export function invokeChainExtension(chainId: string, method: string, payload?: unknown): string;
|
|
151
|
+
export function deriveAddress(request: DeriveRequest): string;
|
|
152
|
+
export function deriveWallet(request: DeriveRequest): DerivedWallet;
|
|
153
|
+
export function deriveAddressFromPrivateKey(request: PrivateKeyRequest): string;
|
|
154
|
+
export function deriveWalletFromPrivateKey(request: PrivateKeyRequest): DerivedWallet;
|
|
155
|
+
export function buildAndSign(request: BuildAndSignRequest): Uint8Array;
|
|
156
|
+
export function buildAndSignFromPrivateKey(request: BuildAndSignFromPrivateKeyRequest): Uint8Array;
|
|
157
|
+
export function signMessage(request: SignMessageRequest): Uint8Array;
|
|
158
|
+
export function signMessageFromPrivateKey(request: SignMessageFromPrivateKeyRequest): Uint8Array;
|
|
159
|
+
export function signBytes(request: SignBytesRequest): Uint8Array;
|
|
160
|
+
export function signBytesFromPrivateKey(request: SignBytesFromPrivateKeyRequest): Uint8Array;
|
|
161
|
+
export function signTypedData(request: SignTypedDataRequest): Uint8Array;
|
|
162
|
+
export function signTypedDataFromPrivateKey(request: SignTypedDataFromPrivateKeyRequest): Uint8Array;
|
|
163
|
+
|
|
164
|
+
export type DeriveNamespace = {
|
|
165
|
+
deriveAddress(request: Omit<DeriveRequest, "chainId">): string;
|
|
166
|
+
deriveWallet(request: Omit<DeriveRequest, "chainId">): DerivedWallet;
|
|
167
|
+
deriveAddressFromPrivateKey(request: Omit<PrivateKeyRequest, "chainId">): string;
|
|
168
|
+
deriveWalletFromPrivateKey(request: Omit<PrivateKeyRequest, "chainId">): DerivedWallet;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export type BuildAndSignNamespace = {
|
|
172
|
+
buildAndSign(request: Omit<BuildAndSignRequest, "chainId">): Uint8Array;
|
|
173
|
+
buildAndSignFromPrivateKey(request: Omit<BuildAndSignFromPrivateKeyRequest, "chainId">): Uint8Array;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export type SignMessageNamespace = {
|
|
177
|
+
signMessage(request: Omit<SignMessageRequest, "chainId">): Uint8Array;
|
|
178
|
+
signMessageFromPrivateKey(request: Omit<SignMessageFromPrivateKeyRequest, "chainId">): Uint8Array;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export type SignBytesNamespace = {
|
|
182
|
+
signBytes(request: Omit<SignBytesRequest, "chainId">): Uint8Array;
|
|
183
|
+
signBytesFromPrivateKey(request: Omit<SignBytesFromPrivateKeyRequest, "chainId">): Uint8Array;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export type SignTypedDataNamespace = {
|
|
187
|
+
signTypedData(request: Omit<SignTypedDataRequest, "chainId">): Uint8Array;
|
|
188
|
+
signTypedDataFromPrivateKey(request: Omit<SignTypedDataFromPrivateKeyRequest, "chainId">): Uint8Array;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export type JsonTxNamespace = {
|
|
192
|
+
buildTx(payload: unknown): unknown;
|
|
193
|
+
signTx(payload: unknown): unknown;
|
|
194
|
+
inspectSignedTx(payload: unknown): unknown;
|
|
195
|
+
decodeSignedTx(payload: unknown): unknown;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export const eth: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignTypedDataNamespace & {
|
|
199
|
+
buildTx(payload: unknown): string;
|
|
200
|
+
signTx(payload: unknown): string;
|
|
201
|
+
decodeSignedTx(payload: unknown): unknown;
|
|
202
|
+
ecrecover(payload: unknown): unknown;
|
|
203
|
+
recoverTypedDataSigner(payload: unknown): unknown;
|
|
204
|
+
verifyMessageSignature(payload: unknown): unknown;
|
|
205
|
+
verifyTypedDataSignature(payload: unknown): unknown;
|
|
206
|
+
buildEip1271IsValidSignatureCall(payload: unknown): unknown;
|
|
207
|
+
verifyEip1271IsValidSignatureResult(payload: unknown): unknown;
|
|
208
|
+
computeUserOperationHash(payload: unknown): unknown;
|
|
209
|
+
signUserOperation(payload: unknown): unknown;
|
|
210
|
+
recoverUserOperationSigner(payload: unknown): unknown;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export const btc: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & {
|
|
214
|
+
deriveAccountXpub(payload: unknown): unknown;
|
|
215
|
+
deriveAddressFromXpub(payload: unknown): unknown;
|
|
216
|
+
buildTx(payload: unknown): unknown;
|
|
217
|
+
signTx(payload: unknown): unknown;
|
|
218
|
+
buildPsbt(payload: unknown): unknown;
|
|
219
|
+
signPsbt(payload: unknown): unknown;
|
|
220
|
+
signPsbtWithSigners(payload: unknown): unknown;
|
|
221
|
+
partialSignPsbt(payload: unknown): unknown;
|
|
222
|
+
verifyPsbtFinalized(payload: unknown): unknown;
|
|
223
|
+
inspectPsbt(payload: unknown): unknown;
|
|
224
|
+
decodeSignedTx(payload: unknown): unknown;
|
|
225
|
+
verifyMessage(payload: unknown): unknown;
|
|
226
|
+
frostTrustedDealerKeygen(payload: unknown): unknown;
|
|
227
|
+
frostDkgRound1(payload: unknown): unknown;
|
|
228
|
+
frostDkgRound2(payload: unknown): unknown;
|
|
229
|
+
frostDkgFinalize(payload: unknown): unknown;
|
|
230
|
+
frostRound1Commit(payload: unknown): unknown;
|
|
231
|
+
frostBuildSigningPackage(payload: unknown): unknown;
|
|
232
|
+
frostRound2SignShare(payload: unknown): unknown;
|
|
233
|
+
frostAggregateSignature(payload: unknown): unknown;
|
|
234
|
+
frostTaprootComputeTweak(payload: unknown): unknown;
|
|
235
|
+
frostVerifySignatureShare(payload: unknown): unknown;
|
|
236
|
+
frostBuildTaprootPsbtSigningInputs(payload: unknown): unknown;
|
|
237
|
+
frostFinalizeTaprootPsbt(payload: unknown): unknown;
|
|
238
|
+
frostNonceSessionScope(payload: unknown): unknown;
|
|
239
|
+
frostResetNonceGuard(payload: unknown): unknown;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export const solana: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & {
|
|
243
|
+
buildTx(payload: unknown): string;
|
|
244
|
+
signTx(payload: unknown): string;
|
|
245
|
+
inspectSignedTx(payload: unknown): unknown;
|
|
246
|
+
decodeSignedTx(payload: unknown): unknown;
|
|
247
|
+
verifyMessageSignature(payload: unknown): unknown;
|
|
248
|
+
verifyBytesSignature(payload: unknown): unknown;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export const ton: {
|
|
252
|
+
deriveAddress(request: TonDeriveRequest): string;
|
|
253
|
+
deriveWallet(request: TonDeriveRequest): DerivedWallet;
|
|
254
|
+
deriveAddressFromPrivateKey(request: TonPrivateKeyRequest): string;
|
|
255
|
+
deriveWalletFromPrivateKey(request: TonPrivateKeyRequest): DerivedWallet;
|
|
256
|
+
buildAndSign(request: TonBuildAndSignRequest): Uint8Array;
|
|
257
|
+
buildAndSignFromPrivateKey(request: Omit<BuildAndSignFromPrivateKeyRequest, "chainId" | "txPayload"> & { txPayload: string | unknown }): Uint8Array;
|
|
258
|
+
buildWalletStateInit(payload: unknown): unknown;
|
|
259
|
+
buildWalletStateInitFromPrivateKey(payload: unknown): unknown;
|
|
260
|
+
buildTx(payload: unknown): unknown;
|
|
261
|
+
signTx(payload: unknown): unknown;
|
|
262
|
+
inspectSignedTx(payload: unknown): unknown;
|
|
263
|
+
decodeSignedTx(payload: unknown): unknown;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export const tron: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & {
|
|
267
|
+
buildTx(payload: unknown): unknown;
|
|
268
|
+
signTx(payload: unknown): unknown;
|
|
269
|
+
inspectSignedTx(payload: unknown): unknown;
|
|
270
|
+
decodeSignedTx(payload: unknown): unknown;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export const near: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace;
|
|
274
|
+
export const cosmos: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace;
|
|
275
|
+
export const cardano: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace;
|
|
276
|
+
export const aptos: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace;
|
|
277
|
+
export const polkadot: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace;
|
|
278
|
+
export const dogecoin: BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace & {
|
|
279
|
+
deriveAddress(request: DogecoinDeriveRequest): string;
|
|
280
|
+
deriveWallet(request: DogecoinDeriveRequest): DerivedWallet;
|
|
281
|
+
deriveAddressFromPrivateKey(request: DogecoinPrivateKeyRequest): string;
|
|
282
|
+
deriveWalletFromPrivateKey(request: DogecoinPrivateKeyRequest): DerivedWallet;
|
|
283
|
+
};
|
|
284
|
+
export const starknet: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace & {
|
|
285
|
+
computeAccountAddress(payload: unknown): unknown;
|
|
286
|
+
};
|
|
287
|
+
export const stellar: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace;
|
|
288
|
+
export const sui: DeriveNamespace & BuildAndSignNamespace & SignMessageNamespace & SignBytesNamespace & JsonTxNamespace;
|
|
289
|
+
export const xrpl: DeriveNamespace & BuildAndSignNamespace & JsonTxNamespace;
|