@noir-wallet/sdk 0.1.0
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 +327 -0
- package/dist/chains/zcash/index.d.mts +65 -0
- package/dist/chains/zcash/index.d.ts +65 -0
- package/dist/chains/zcash/index.js +221 -0
- package/dist/chains/zcash/index.mjs +14 -0
- package/dist/chunk-B5WLNS6I.mjs +121 -0
- package/dist/chunk-JG4K44MD.mjs +183 -0
- package/dist/chunk-JTGVB6AM.mjs +41 -0
- package/dist/chunk-LM5EFW23.mjs +173 -0
- package/dist/chunk-OKXWHTTZ.mjs +163 -0
- package/dist/chunk-SOSIUE6V.mjs +40 -0
- package/dist/chunk-SUNMYR5E.mjs +163 -0
- package/dist/chunk-VDR6IC34.mjs +93 -0
- package/dist/chunk-XUNZPMTF.mjs +146 -0
- package/dist/chunk-YNMF6UCO.mjs +90 -0
- package/dist/chunk-ZSM65CPQ.mjs +90 -0
- package/dist/index.d.mts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +239 -0
- package/dist/index.mjs +30 -0
- package/dist/provider-DE7vB7SX.d.mts +48 -0
- package/dist/provider-DE7vB7SX.d.ts +48 -0
- package/package.json +50 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
31
|
+
|
|
32
|
+
// src/index.ts
|
|
33
|
+
var index_exports = {};
|
|
34
|
+
__export(index_exports, {
|
|
35
|
+
ZcashAPI: () => ZcashAPI,
|
|
36
|
+
detectProvider: () => detectProvider,
|
|
37
|
+
getProvider: () => getProvider,
|
|
38
|
+
getRheaWallet: () => getRheaWallet,
|
|
39
|
+
getZcashProvider: () => getZcashProvider,
|
|
40
|
+
isRheaWalletInstalled: () => isRheaWalletInstalled,
|
|
41
|
+
publicKeyToAddress: () => publicKeyToAddress
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(index_exports);
|
|
44
|
+
|
|
45
|
+
// src/chains/zcash/api.ts
|
|
46
|
+
var ZcashAPI = class {
|
|
47
|
+
constructor(provider) {
|
|
48
|
+
__publicField(this, "provider");
|
|
49
|
+
this.provider = provider;
|
|
50
|
+
}
|
|
51
|
+
async connect() {
|
|
52
|
+
return this.provider.request({ method: "zcash_requestAccounts" });
|
|
53
|
+
}
|
|
54
|
+
async getAccounts() {
|
|
55
|
+
return this.provider.request({ method: "zcash_getAccounts" });
|
|
56
|
+
}
|
|
57
|
+
async getBalance() {
|
|
58
|
+
return this.provider.request({ method: "zcash_getBalance" });
|
|
59
|
+
}
|
|
60
|
+
async getPublicKey() {
|
|
61
|
+
return this.provider.request({ method: "zcash_getPublicKey" });
|
|
62
|
+
}
|
|
63
|
+
async sendTransaction(params) {
|
|
64
|
+
return this.provider.request({
|
|
65
|
+
method: "zcash_sendTransaction",
|
|
66
|
+
params: [params]
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
async signMessage(message) {
|
|
70
|
+
return this.provider.request({
|
|
71
|
+
method: "zcash_signMessage",
|
|
72
|
+
params: [message]
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
async switchNetwork(network) {
|
|
76
|
+
return this.provider.request({
|
|
77
|
+
method: "zcash_switchNetwork",
|
|
78
|
+
params: [{ network }]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
async disconnect() {
|
|
82
|
+
await this.provider.request({ method: "zcash_disconnect" });
|
|
83
|
+
}
|
|
84
|
+
on(event, handler) {
|
|
85
|
+
this.provider.on(event, handler);
|
|
86
|
+
}
|
|
87
|
+
removeListener(event, handler) {
|
|
88
|
+
this.provider.removeListener?.(event, handler);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// src/provider.ts
|
|
93
|
+
function getRheaWallet() {
|
|
94
|
+
if (typeof window === "undefined") return null;
|
|
95
|
+
const rawWallet = window.rheawallet;
|
|
96
|
+
if (!rawWallet) return null;
|
|
97
|
+
return {
|
|
98
|
+
isRheaWallet: rawWallet.isRheaWallet,
|
|
99
|
+
zcash: new ZcashAPI(rawWallet.zcash)
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function isRheaWalletInstalled() {
|
|
103
|
+
return getRheaWallet() !== null;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// src/chains/zcash/provider.ts
|
|
107
|
+
function getZcashProvider() {
|
|
108
|
+
if (typeof window === "undefined") return null;
|
|
109
|
+
const rheaWallet = window.rheawallet;
|
|
110
|
+
return rheaWallet?.zcash || null;
|
|
111
|
+
}
|
|
112
|
+
async function detectProvider(timeout = 3e3) {
|
|
113
|
+
return new Promise((resolve, reject) => {
|
|
114
|
+
if (typeof window === "undefined") {
|
|
115
|
+
return reject(new Error("window is undefined"));
|
|
116
|
+
}
|
|
117
|
+
const provider = getZcashProvider();
|
|
118
|
+
if (provider) {
|
|
119
|
+
return resolve(provider);
|
|
120
|
+
}
|
|
121
|
+
let handled = false;
|
|
122
|
+
const handleProvider = () => {
|
|
123
|
+
if (handled) return;
|
|
124
|
+
handled = true;
|
|
125
|
+
const provider2 = getZcashProvider();
|
|
126
|
+
if (provider2) {
|
|
127
|
+
resolve(provider2);
|
|
128
|
+
} else {
|
|
129
|
+
reject(new Error("RHEA Wallet is not installed"));
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
window.addEventListener("rheawallet#initialized", handleProvider, { once: true });
|
|
133
|
+
setTimeout(() => {
|
|
134
|
+
handleProvider();
|
|
135
|
+
}, timeout);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function getProvider() {
|
|
139
|
+
return getZcashProvider();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// src/chains/zcash/utils.ts
|
|
143
|
+
var import_bs58 = __toESM(require("bs58"));
|
|
144
|
+
var hashjs = __toESM(require("hash.js"));
|
|
145
|
+
var MAINNET_P2PKH_PREFIX = new Uint8Array([28, 184]);
|
|
146
|
+
var TESTNET_P2PKH_PREFIX = new Uint8Array([29, 37]);
|
|
147
|
+
function sha2562(data) {
|
|
148
|
+
return new Uint8Array(hashjs.sha256().update(Array.from(data)).digest());
|
|
149
|
+
}
|
|
150
|
+
function ripemd1602(data) {
|
|
151
|
+
return new Uint8Array(hashjs.ripemd160().update(Array.from(data)).digest());
|
|
152
|
+
}
|
|
153
|
+
function hash160(data) {
|
|
154
|
+
return ripemd1602(sha2562(data));
|
|
155
|
+
}
|
|
156
|
+
function hexToUint8Array(hex) {
|
|
157
|
+
const bytes = new Uint8Array(hex.length / 2);
|
|
158
|
+
for (let i = 0; i < hex.length; i += 2) {
|
|
159
|
+
bytes[i / 2] = parseInt(hex.substr(i, 2), 16);
|
|
160
|
+
}
|
|
161
|
+
return bytes;
|
|
162
|
+
}
|
|
163
|
+
function concatUint8Arrays(...arrays) {
|
|
164
|
+
const totalLength = arrays.reduce((acc, arr) => acc + arr.length, 0);
|
|
165
|
+
const result = new Uint8Array(totalLength);
|
|
166
|
+
let offset = 0;
|
|
167
|
+
for (const arr of arrays) {
|
|
168
|
+
result.set(arr, offset);
|
|
169
|
+
offset += arr.length;
|
|
170
|
+
}
|
|
171
|
+
return result;
|
|
172
|
+
}
|
|
173
|
+
function compressPublicKey(pubkey) {
|
|
174
|
+
if (pubkey.length === 33) {
|
|
175
|
+
return pubkey;
|
|
176
|
+
}
|
|
177
|
+
if (pubkey.length !== 65) {
|
|
178
|
+
throw new Error("Invalid public key length for compression");
|
|
179
|
+
}
|
|
180
|
+
if (pubkey[0] !== 4) {
|
|
181
|
+
throw new Error("Invalid uncompressed public key format");
|
|
182
|
+
}
|
|
183
|
+
const x = pubkey.slice(1, 33);
|
|
184
|
+
const y = pubkey.slice(33, 65);
|
|
185
|
+
const yIsOdd = (y[y.length - 1] & 1) === 1;
|
|
186
|
+
const prefix = yIsOdd ? 3 : 2;
|
|
187
|
+
const compressed = new Uint8Array(33);
|
|
188
|
+
compressed[0] = prefix;
|
|
189
|
+
compressed.set(x, 1);
|
|
190
|
+
return compressed;
|
|
191
|
+
}
|
|
192
|
+
function publicKeyToAddress(pubkeyHex, network = "mainnet") {
|
|
193
|
+
if (!pubkeyHex || typeof pubkeyHex !== "string") {
|
|
194
|
+
throw new Error("Invalid public key: must be a non-empty hex string");
|
|
195
|
+
}
|
|
196
|
+
const cleanHex = pubkeyHex.toLowerCase().replace(/^0x/, "");
|
|
197
|
+
if (!/^[0-9a-f]+$/.test(cleanHex)) {
|
|
198
|
+
throw new Error("Invalid public key: must contain only hexadecimal characters");
|
|
199
|
+
}
|
|
200
|
+
const pubkeyBytes = hexToUint8Array(cleanHex);
|
|
201
|
+
if (pubkeyBytes.length !== 33 && pubkeyBytes.length !== 65) {
|
|
202
|
+
throw new Error(
|
|
203
|
+
`Invalid public key length: expected 33 (compressed) or 65 (uncompressed) bytes, got ${pubkeyBytes.length}`
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
if (pubkeyBytes.length === 33) {
|
|
207
|
+
const prefix = pubkeyBytes[0];
|
|
208
|
+
if (prefix !== 2 && prefix !== 3) {
|
|
209
|
+
throw new Error(
|
|
210
|
+
`Invalid compressed public key prefix: expected 0x02 or 0x03, got 0x${prefix.toString(16).padStart(2, "0")}`
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
} else if (pubkeyBytes.length === 65) {
|
|
214
|
+
const prefix = pubkeyBytes[0];
|
|
215
|
+
if (prefix !== 4) {
|
|
216
|
+
throw new Error(
|
|
217
|
+
`Invalid uncompressed public key prefix: expected 0x04, got 0x${prefix.toString(16).padStart(2, "0")}`
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
const compressedPubkey = compressPublicKey(pubkeyBytes);
|
|
222
|
+
const pubkeyHash = hash160(compressedPubkey);
|
|
223
|
+
const versionPrefix = network === "mainnet" ? MAINNET_P2PKH_PREFIX : TESTNET_P2PKH_PREFIX;
|
|
224
|
+
const payload = concatUint8Arrays(versionPrefix, pubkeyHash);
|
|
225
|
+
const checksum = sha2562(sha2562(payload)).slice(0, 4);
|
|
226
|
+
const addressBytes = concatUint8Arrays(payload, checksum);
|
|
227
|
+
const address = import_bs58.default.encode(addressBytes);
|
|
228
|
+
return address;
|
|
229
|
+
}
|
|
230
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
231
|
+
0 && (module.exports = {
|
|
232
|
+
ZcashAPI,
|
|
233
|
+
detectProvider,
|
|
234
|
+
getProvider,
|
|
235
|
+
getRheaWallet,
|
|
236
|
+
getZcashProvider,
|
|
237
|
+
isRheaWalletInstalled,
|
|
238
|
+
publicKeyToAddress
|
|
239
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ZcashAPI,
|
|
3
|
+
detectProvider,
|
|
4
|
+
getProvider,
|
|
5
|
+
getZcashProvider,
|
|
6
|
+
publicKeyToAddress
|
|
7
|
+
} from "./chunk-JG4K44MD.mjs";
|
|
8
|
+
|
|
9
|
+
// src/provider.ts
|
|
10
|
+
function getRheaWallet() {
|
|
11
|
+
if (typeof window === "undefined") return null;
|
|
12
|
+
const rawWallet = window.rheawallet;
|
|
13
|
+
if (!rawWallet) return null;
|
|
14
|
+
return {
|
|
15
|
+
isRheaWallet: rawWallet.isRheaWallet,
|
|
16
|
+
zcash: new ZcashAPI(rawWallet.zcash)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function isRheaWalletInstalled() {
|
|
20
|
+
return getRheaWallet() !== null;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
ZcashAPI,
|
|
24
|
+
detectProvider,
|
|
25
|
+
getProvider,
|
|
26
|
+
getRheaWallet,
|
|
27
|
+
getZcashProvider,
|
|
28
|
+
isRheaWalletInstalled,
|
|
29
|
+
publicKeyToAddress
|
|
30
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
interface ZcashProvider {
|
|
2
|
+
request(args: RequestArguments): Promise<any>;
|
|
3
|
+
on(event: string, handler: (...args: any[]) => void): void;
|
|
4
|
+
removeListener?(event: string, handler: (...args: any[]) => void): void;
|
|
5
|
+
connect(): Promise<ZcashAddress>;
|
|
6
|
+
getAccounts(): Promise<ZcashAddress | null>;
|
|
7
|
+
getBalance(): Promise<Balance>;
|
|
8
|
+
sendTransaction(params: SendTransactionParams): Promise<string>;
|
|
9
|
+
signMessage(message: string): Promise<SignMessageResult>;
|
|
10
|
+
switchNetwork(network: Network): Promise<boolean>;
|
|
11
|
+
disconnect(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
interface RequestArguments {
|
|
14
|
+
method: string;
|
|
15
|
+
params?: any[];
|
|
16
|
+
}
|
|
17
|
+
interface ZcashAddress {
|
|
18
|
+
transparent: string;
|
|
19
|
+
shielded: string;
|
|
20
|
+
}
|
|
21
|
+
interface Balance {
|
|
22
|
+
transparent: string;
|
|
23
|
+
shielded: string;
|
|
24
|
+
}
|
|
25
|
+
interface SendTransactionParams {
|
|
26
|
+
to: string;
|
|
27
|
+
amount: string;
|
|
28
|
+
}
|
|
29
|
+
interface TransactionReceipt {
|
|
30
|
+
txid: string;
|
|
31
|
+
from: string;
|
|
32
|
+
to: string;
|
|
33
|
+
amount: string;
|
|
34
|
+
type: 'transparent' | 'shielded';
|
|
35
|
+
timestamp: number;
|
|
36
|
+
}
|
|
37
|
+
interface SignMessageResult {
|
|
38
|
+
signature: string;
|
|
39
|
+
pubkey: string;
|
|
40
|
+
address: string;
|
|
41
|
+
}
|
|
42
|
+
type Network = 'mainnet' | 'testnet';
|
|
43
|
+
|
|
44
|
+
declare function getZcashProvider(): ZcashProvider | null;
|
|
45
|
+
declare function detectProvider(timeout?: number): Promise<ZcashProvider>;
|
|
46
|
+
declare function getProvider(): ZcashProvider | null;
|
|
47
|
+
|
|
48
|
+
export { type Balance as B, type Network as N, type RequestArguments as R, type SendTransactionParams as S, type TransactionReceipt as T, type ZcashProvider as Z, getProvider as a, type ZcashAddress as b, type SignMessageResult as c, detectProvider as d, getZcashProvider as g };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
interface ZcashProvider {
|
|
2
|
+
request(args: RequestArguments): Promise<any>;
|
|
3
|
+
on(event: string, handler: (...args: any[]) => void): void;
|
|
4
|
+
removeListener?(event: string, handler: (...args: any[]) => void): void;
|
|
5
|
+
connect(): Promise<ZcashAddress>;
|
|
6
|
+
getAccounts(): Promise<ZcashAddress | null>;
|
|
7
|
+
getBalance(): Promise<Balance>;
|
|
8
|
+
sendTransaction(params: SendTransactionParams): Promise<string>;
|
|
9
|
+
signMessage(message: string): Promise<SignMessageResult>;
|
|
10
|
+
switchNetwork(network: Network): Promise<boolean>;
|
|
11
|
+
disconnect(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
interface RequestArguments {
|
|
14
|
+
method: string;
|
|
15
|
+
params?: any[];
|
|
16
|
+
}
|
|
17
|
+
interface ZcashAddress {
|
|
18
|
+
transparent: string;
|
|
19
|
+
shielded: string;
|
|
20
|
+
}
|
|
21
|
+
interface Balance {
|
|
22
|
+
transparent: string;
|
|
23
|
+
shielded: string;
|
|
24
|
+
}
|
|
25
|
+
interface SendTransactionParams {
|
|
26
|
+
to: string;
|
|
27
|
+
amount: string;
|
|
28
|
+
}
|
|
29
|
+
interface TransactionReceipt {
|
|
30
|
+
txid: string;
|
|
31
|
+
from: string;
|
|
32
|
+
to: string;
|
|
33
|
+
amount: string;
|
|
34
|
+
type: 'transparent' | 'shielded';
|
|
35
|
+
timestamp: number;
|
|
36
|
+
}
|
|
37
|
+
interface SignMessageResult {
|
|
38
|
+
signature: string;
|
|
39
|
+
pubkey: string;
|
|
40
|
+
address: string;
|
|
41
|
+
}
|
|
42
|
+
type Network = 'mainnet' | 'testnet';
|
|
43
|
+
|
|
44
|
+
declare function getZcashProvider(): ZcashProvider | null;
|
|
45
|
+
declare function detectProvider(timeout?: number): Promise<ZcashProvider>;
|
|
46
|
+
declare function getProvider(): ZcashProvider | null;
|
|
47
|
+
|
|
48
|
+
export { type Balance as B, type Network as N, type RequestArguments as R, type SendTransactionParams as S, type TransactionReceipt as T, type ZcashProvider as Z, getProvider as a, type ZcashAddress as b, type SignMessageResult as c, detectProvider as d, getZcashProvider as g };
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@noir-wallet/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "TypeScript SDK for Noir Wallet dApp integration",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./chains/zcash": {
|
|
15
|
+
"types": "./dist/chains/zcash/index.d.ts",
|
|
16
|
+
"import": "./dist/chains/zcash/index.mjs",
|
|
17
|
+
"require": "./dist/chains/zcash/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup src/index.ts src/chains/zcash/index.ts --format cjs,esm --dts --out-dir dist",
|
|
25
|
+
"dev": "tsup src/index.ts src/chains/zcash/index.ts --format cjs,esm --dts --out-dir dist --watch",
|
|
26
|
+
"type-check": "tsc --noEmit"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"tsup": "^8.0.0",
|
|
30
|
+
"typescript": "^5.9.3"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"noir",
|
|
34
|
+
"wallet",
|
|
35
|
+
"multi-chain",
|
|
36
|
+
"zcash",
|
|
37
|
+
"dapp",
|
|
38
|
+
"web3",
|
|
39
|
+
"crypto"
|
|
40
|
+
],
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"author": "Noir Finance",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"bs58": "^6.0.0",
|
|
48
|
+
"hash.js": "^1.1.7"
|
|
49
|
+
}
|
|
50
|
+
}
|