@dynamic-labs-wallet/midnight 1.1.27 → 1.1.29
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/index.cjs.js
CHANGED
|
@@ -3585,10 +3585,10 @@ var DynamicMidnightWalletClient = /*#__PURE__*/ function(DynamicWalletClient) {
|
|
|
3585
3585
|
* If publicKeyHex is passed, it's assumed to already be the address hash.
|
|
3586
3586
|
*
|
|
3587
3587
|
* @param publicKeyHex - The 32-byte address hash (from addressFromKey) as hex string
|
|
3588
|
-
* @param network - The network. Defaults to
|
|
3589
|
-
* @returns Bech32m encoded address (e.g.,
|
|
3588
|
+
* @param network - The network. Defaults to mainnet
|
|
3589
|
+
* @returns Bech32m encoded address (e.g., mn_addr1...)
|
|
3590
3590
|
*/ var deriveMidnightAddress = function(param) {
|
|
3591
|
-
var publicKeyHex = param.publicKeyHex, _param_network = param.network, network = _param_network === void 0 ? '
|
|
3591
|
+
var publicKeyHex = param.publicKeyHex, _param_network = param.network, network = _param_network === void 0 ? 'mainnet' : _param_network;
|
|
3592
3592
|
var bytes = Buffer.from(publicKeyHex, 'hex');
|
|
3593
3593
|
if (bytes.length !== 32) {
|
|
3594
3594
|
throw new Error("Invalid key length: ".concat(bytes.length, ", expected 32"));
|
package/index.esm.js
CHANGED
|
@@ -3564,10 +3564,10 @@ var DynamicMidnightWalletClient = /*#__PURE__*/ function(DynamicWalletClient) {
|
|
|
3564
3564
|
* If publicKeyHex is passed, it's assumed to already be the address hash.
|
|
3565
3565
|
*
|
|
3566
3566
|
* @param publicKeyHex - The 32-byte address hash (from addressFromKey) as hex string
|
|
3567
|
-
* @param network - The network. Defaults to
|
|
3568
|
-
* @returns Bech32m encoded address (e.g.,
|
|
3567
|
+
* @param network - The network. Defaults to mainnet
|
|
3568
|
+
* @returns Bech32m encoded address (e.g., mn_addr1...)
|
|
3569
3569
|
*/ var deriveMidnightAddress = function(param) {
|
|
3570
|
-
var publicKeyHex = param.publicKeyHex, _param_network = param.network, network = _param_network === void 0 ? '
|
|
3570
|
+
var publicKeyHex = param.publicKeyHex, _param_network = param.network, network = _param_network === void 0 ? 'mainnet' : _param_network;
|
|
3571
3571
|
var bytes = Buffer.from(publicKeyHex, 'hex');
|
|
3572
3572
|
if (bytes.length !== 32) {
|
|
3573
3573
|
throw new Error("Invalid key length: ".concat(bytes.length, ", expected 32"));
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/midnight",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.29",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/browser": "1.1.
|
|
7
|
+
"@dynamic-labs-wallet/browser": "1.1.29",
|
|
8
8
|
"@dynamic-labs/sdk-api-core": "0.50.0",
|
|
9
9
|
"@midnight-ntwrk/ledger-v8": "^8.1.0",
|
|
10
10
|
"@midnight-ntwrk/wallet-sdk-abstractions": "2.1.0",
|
|
@@ -15,8 +15,8 @@ type Network = keyof typeof ADDRESS_PREFIXES;
|
|
|
15
15
|
* If publicKeyHex is passed, it's assumed to already be the address hash.
|
|
16
16
|
*
|
|
17
17
|
* @param publicKeyHex - The 32-byte address hash (from addressFromKey) as hex string
|
|
18
|
-
* @param network - The network. Defaults to
|
|
19
|
-
* @returns Bech32m encoded address (e.g.,
|
|
18
|
+
* @param network - The network. Defaults to mainnet
|
|
19
|
+
* @returns Bech32m encoded address (e.g., mn_addr1...)
|
|
20
20
|
*/
|
|
21
21
|
export declare const deriveMidnightAddress: ({ publicKeyHex, network, }: {
|
|
22
22
|
publicKeyHex: string;
|