@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.
|
@@ -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
|
@@ -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
|
*/
|