@lucid-evolution/wallet 0.1.40 → 0.1.42

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/index.cjs CHANGED
@@ -318,8 +318,10 @@ var makeWalletFromPrivateKey = (provider, network, privateKey) => {
318
318
  return { poolId: null, rewards: 0n };
319
319
  },
320
320
  signTx: async (tx) => {
321
- const signed = priv.sign(tx.to_cbor_bytes());
322
- const witness = CML.Vkeywitness.new(priv.to_public(), signed);
321
+ const witness = CML.make_vkey_witness(
322
+ CML.hash_transaction(tx.body()),
323
+ priv
324
+ );
323
325
  const txWitnessSetBuilder = CML.TransactionWitnessSetBuilder.new();
324
326
  txWitnessSetBuilder.add_vkey(witness);
325
327
  return txWitnessSetBuilder.build();
package/dist/index.js CHANGED
@@ -282,8 +282,10 @@ var makeWalletFromPrivateKey = (provider, network, privateKey) => {
282
282
  return { poolId: null, rewards: 0n };
283
283
  },
284
284
  signTx: async (tx) => {
285
- const signed = priv.sign(tx.to_cbor_bytes());
286
- const witness = CML.Vkeywitness.new(priv.to_public(), signed);
285
+ const witness = CML.make_vkey_witness(
286
+ CML.hash_transaction(tx.body()),
287
+ priv
288
+ );
287
289
  const txWitnessSetBuilder = CML.TransactionWitnessSetBuilder.new();
288
290
  txWitnessSetBuilder.add_vkey(witness);
289
291
  return txWitnessSetBuilder.build();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucid-evolution/wallet",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -27,10 +27,10 @@
27
27
  "dependencies": {
28
28
  "@anastasia-labs/cardano-multiplatform-lib-nodejs": "^5.3.1-3",
29
29
  "bip39": "^3.1.0",
30
- "@lucid-evolution/core-types": "0.1.14",
30
+ "@lucid-evolution/core-types": "0.1.15",
31
+ "@lucid-evolution/sign_data": "0.1.18",
31
32
  "@lucid-evolution/core-utils": "0.1.13",
32
- "@lucid-evolution/sign_data": "0.1.17",
33
- "@lucid-evolution/utils": "0.1.36"
33
+ "@lucid-evolution/utils": "0.1.37"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20.12.8",