@babylonlabs-io/wallet-connector 0.5.3 → 0.5.4

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 CHANGED
@@ -18,6 +18,7 @@
18
18
  - [Wallet Integration](#wallet-integration)
19
19
  - [1. Browser extension wallets](#1-browser-extension-wallets)
20
20
  - [2. Mobile wallets](#2-mobile-wallets)
21
+ - [IProvider](#iprovider)
21
22
  - [IBTCProvider](#ibtcprovider)
22
23
  - [IBBNProvider](#ibbnprovider)
23
24
 
@@ -95,6 +96,7 @@ implemented for integration with the Babylon staking app.
95
96
  export interface IProvider {
96
97
  /**
97
98
  * Connects to the wallet and returns the instance of the wallet provider.
99
+ * Currently Bitcoin only supports Native SegWit and Taproot address types.
98
100
  * @returns A promise that resolves to an instance of the wrapper wallet provider.
99
101
  * @throws An error if the wallet is not installed or if connection fails.
100
102
  */
@@ -17,7 +17,15 @@ export declare class KeystoneProvider implements IBTCProvider {
17
17
  signPsbt: (psbtHex: string) => Promise<string>;
18
18
  signPsbts: (psbtsHexes: string[]) => Promise<string[]>;
19
19
  getNetwork: () => Promise<Network>;
20
- signMessage: (message: string, type: "ecdsa") => Promise<string>;
20
+ signMessage: (message: string, type: "bip322-simple" | "ecdsa") => Promise<string>;
21
+ /**
22
+ * https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki
23
+ * signMessageBIP322 signs a message using the BIP322 standard.
24
+ * @param message
25
+ * @returns signature
26
+ */
27
+ signMessageBIP322: (message: string) => Promise<string>;
28
+ signMessageECDSA: (message: string) => Promise<string>;
21
29
  getInscriptions: () => Promise<InscriptionIdentifier[]>;
22
30
  on: () => void;
23
31
  off: () => void;