@ecadlabs/tezosx-mcp 1.0.1 → 1.0.2

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/dist/api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Router } from 'express';
2
2
  import { InMemorySigner } from '@taquito/signer';
3
- import { b58cencode, prefix } from '@taquito/utils';
3
+ import { b58Encode, PrefixV2 } from '@taquito/utils';
4
4
  import { randomBytes } from 'crypto';
5
5
  import { configureLiveConfig, resetLiveConfig, NETWORKS } from './live-config.js';
6
6
  import { savePendingKey, loadPendingKey, activatePendingKey, saveContract, clearConfig, loadConfig } from './config-store.js';
@@ -34,7 +34,7 @@ function localhostGuard(req, res, next) {
34
34
  }
35
35
  async function generateKeypair() {
36
36
  const seed = randomBytes(32);
37
- const secretKey = b58cencode(seed, prefix.edsk2);
37
+ const secretKey = b58Encode(seed, PrefixV2.Ed25519Seed);
38
38
  const signer = await InMemorySigner.fromSecretKey(secretKey);
39
39
  const publicKey = await signer.publicKey();
40
40
  const address = await signer.publicKeyHash();