@atomiqlabs/sdk 8.3.5 → 8.3.6

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.
@@ -51,6 +51,10 @@ export declare class SingleAddressBitcoinWallet extends BitcoinWallet {
51
51
  * @inheritDoc
52
52
  */
53
53
  getReceiveAddress(): string;
54
+ /**
55
+ * Returns the public key of the wallet
56
+ */
57
+ getPublicKey(): string;
54
58
  /**
55
59
  * @inheritDoc
56
60
  */
@@ -97,6 +97,12 @@ class SingleAddressBitcoinWallet extends BitcoinWallet_1.BitcoinWallet {
97
97
  getReceiveAddress() {
98
98
  return this.address;
99
99
  }
100
+ /**
101
+ * Returns the public key of the wallet
102
+ */
103
+ getPublicKey() {
104
+ return buffer_1.Buffer.from(this.pubkey).toString("hex");
105
+ }
100
106
  /**
101
107
  * @inheritDoc
102
108
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/sdk",
3
- "version": "8.3.5",
3
+ "version": "8.3.6",
4
4
  "description": "atomiq labs SDK for cross-chain swaps between smart chains and bitcoin",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -111,6 +111,13 @@ export class SingleAddressBitcoinWallet extends BitcoinWallet {
111
111
  return this.address;
112
112
  }
113
113
 
114
+ /**
115
+ * Returns the public key of the wallet
116
+ */
117
+ getPublicKey(): string {
118
+ return Buffer.from(this.pubkey).toString("hex");
119
+ }
120
+
114
121
  /**
115
122
  * @inheritDoc
116
123
  */