trac-msb 0.0.77 → 0.0.78

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trac-msb",
3
3
  "main": "msb.mjs",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
5
5
  "pear": {
6
6
  "name": "trac-msb",
7
7
  "type": "terminal"
@@ -1,4 +1,4 @@
1
- import fs from 'node:fs';
1
+ import fs from 'fs';
2
2
  import {WHITELIST_FILEPATH} from '../utils/constants.js';
3
3
 
4
4
  async function readPublicKeysFromFile() {
@@ -1,5 +1,4 @@
1
1
  import b4a from 'b4a';
2
- import { createHash as nodeCreateHash } from 'crypto';
3
2
  import sodium from 'sodium-native';
4
3
 
5
4
  export function isHexString(string) {
@@ -1,4 +1,3 @@
1
- import ReadyResource from 'ready-resource';
2
1
  import { isHexString, createHash } from './functions.js';
3
2
  import { OperationType } from './constants.js';
4
3
  import fileUtils from './fileUtils.js';
@@ -1,6 +1,6 @@
1
1
  import ReadyResource from 'ready-resource';
2
2
  import { createHash } from 'crypto';
3
- import fs from 'node:fs';
3
+ import fs from 'fs';
4
4
  //TODO: GENERATE NONCE WITH CRYPTO LIBRARY WHICH ALLOW US TO GENERATE IT WITH UNIFORM DISTRIBUTION.
5
5
 
6
6
  const FILEPATH = './whitelist/pubkeys.csv';