@btc-vision/walletconnect 1.9.9 → 1.9.11
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/browser/context/WalletConnectContext.d.ts +5 -1
- package/browser/index.js +1 -1
- package/browser/index.js.LICENSE.txt +9 -0
- package/browser/types.d.ts +2 -1
- package/browser/wallets/controller.d.ts +5 -1
- package/browser/wallets/opwallet/controller.d.ts +5 -1
- package/browser/wallets/types.d.ts +5 -1
- package/browser/wallets/unisat/controller.d.ts +5 -1
- package/build/context/WalletConnectContext.d.ts +5 -1
- package/build/provider/WalletConnectProvider.js +33 -2
- package/build/types.d.ts +2 -1
- package/build/wallets/controller.d.ts +5 -1
- package/build/wallets/controller.js +25 -1
- package/build/wallets/opwallet/controller.d.ts +5 -1
- package/build/wallets/opwallet/controller.js +24 -1
- package/build/wallets/types.d.ts +5 -1
- package/build/wallets/types.js +1 -1
- package/build/wallets/unisat/controller.d.ts +5 -1
- package/build/wallets/unisat/controller.js +12 -0
- package/package.json +16 -15
- package/src/context/WalletConnectContext.ts +5 -1
- package/src/provider/WalletConnectProvider.tsx +44 -3
- package/src/types.ts +2 -1
- package/src/wallets/controller.ts +37 -1
- package/src/wallets/opwallet/controller.ts +34 -1
- package/src/wallets/types.ts +10 -1
- package/src/wallets/unisat/controller.ts +15 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { networks } from '@btc-vision/bitcoin';
|
|
2
2
|
import {
|
|
3
|
+
type MLDSASignature,
|
|
3
4
|
type Unisat,
|
|
4
5
|
type UnisatChainInfo,
|
|
5
6
|
UnisatChainType,
|
|
@@ -201,6 +202,20 @@ class UnisatWallet implements WalletBase {
|
|
|
201
202
|
this.chainChangedHookWrapper = undefined;
|
|
202
203
|
}
|
|
203
204
|
}
|
|
205
|
+
|
|
206
|
+
// Unisat doesn't support MLDSA so these methods return null or false
|
|
207
|
+
getMLDSAPublicKey(): Promise<string | null> {
|
|
208
|
+
return Promise.resolve(null);
|
|
209
|
+
}
|
|
210
|
+
getHashedMLDSAKey(): Promise<string | null> {
|
|
211
|
+
return Promise.resolve(null);
|
|
212
|
+
}
|
|
213
|
+
signMLDSAMessage(_message: string): Promise<MLDSASignature | null> {
|
|
214
|
+
return Promise.resolve(null);
|
|
215
|
+
}
|
|
216
|
+
verifyMLDSASignature(_message: string, _signature: MLDSASignature): Promise<boolean> {
|
|
217
|
+
return Promise.resolve(false);
|
|
218
|
+
}
|
|
204
219
|
}
|
|
205
220
|
|
|
206
221
|
export default UnisatWallet;
|