@meshsdk/core-cst 1.6.4 → 1.6.5

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
@@ -918,6 +918,7 @@ __export(src_exports, {
918
918
  Credential: () => Credential,
919
919
  CredentialType: () => CredentialType,
920
920
  Crypto: () => Crypto3,
921
+ DRep: () => DRep,
921
922
  DRepID: () => DRepID,
922
923
  Datum: () => Datum,
923
924
  DatumHash: () => DatumHash,
@@ -964,14 +965,15 @@ __export(src_exports, {
964
965
  ScriptPubkey: () => ScriptPubkey,
965
966
  Serialization: () => import_core7.Serialization,
966
967
  Slot: () => Slot,
968
+ StakeCredentialStatus: () => StakeCredentialStatus,
967
969
  StakeDelegation: () => StakeDelegation,
968
970
  StakeRegistration: () => StakeRegistration,
969
- StricaBip32PrivateKey: () => Bip32PrivateKey3,
970
- StricaBip32PublicKey: () => Bip32PublicKey,
971
- StricaDecoder: () => Decoder,
972
- StricaEncoder: () => Encoder,
973
- StricaPrivateKey: () => PrivateKey,
974
- StricaPublicKey: () => PublicKey,
971
+ StricaBip32PrivateKey: () => import_bip32ed25519.Bip32PrivateKey,
972
+ StricaBip32PublicKey: () => import_bip32ed25519.Bip32PublicKey,
973
+ StricaDecoder: () => import_cbors.Decoder,
974
+ StricaEncoder: () => import_cbors.Encoder,
975
+ StricaPrivateKey: () => import_bip32ed25519.PrivateKey,
976
+ StricaPublicKey: () => import_bip32ed25519.PublicKey,
975
977
  Transaction: () => Transaction,
976
978
  TransactionBody: () => TransactionBody,
977
979
  TransactionId: () => TransactionId,
@@ -1120,38 +1122,18 @@ var RequireTimeBefore = import_core.Cardano.NativeScriptKind.RequireTimeBefore;
1120
1122
  var VrfVkBech32 = import_core.Cardano.VrfVkBech32;
1121
1123
  var ScriptPubkey = import_core.Serialization.ScriptPubkey;
1122
1124
  var DRepID = import_core.Cardano.DRepID;
1125
+ var DRep = import_core.Serialization.DRep;
1126
+ var StakeCredentialStatus = import_core.Cardano.StakeCredentialStatus;
1123
1127
 
1124
1128
  // src/message-signing/cose-sign1.ts
1125
1129
  var import_buffer = require("buffer");
1126
1130
  var import_blakejs = __toESM(require_blakejs(), 1);
1127
1131
 
1128
1132
  // src/stricahq/bip32ed25519/index.ts
1129
- var import_bip32ed255192 = __toESM(require("@stricahq/bip32ed25519"), 1);
1130
-
1131
- // src/stricahq/bip32ed25519/privateKey.ts
1132
- var import_bip32ed25519 = __toESM(require("@stricahq/bip32ed25519"), 1);
1133
- var import_hash = __toESM(require("hash.js"), 1);
1134
- var PrivateKey = class extends import_bip32ed25519.default.PrivateKey {
1135
- constructor(privKey, extended = true) {
1136
- if (!extended) {
1137
- let extendedSecret = import_hash.default.sha512().update(privKey).digest();
1138
- if (extendedSecret[0] && extendedSecret[31]) {
1139
- extendedSecret[0] &= 248;
1140
- extendedSecret[31] &= 63;
1141
- extendedSecret[31] |= 64;
1142
- }
1143
- privKey = Buffer.from(extendedSecret);
1144
- }
1145
- super(privKey);
1146
- }
1147
- };
1148
-
1149
- // src/stricahq/bip32ed25519/index.ts
1150
- var { PublicKey, Bip32PrivateKey: Bip32PrivateKey3, Bip32PublicKey } = import_bip32ed255192.default;
1133
+ var import_bip32ed25519 = require("@stricahq/bip32ed25519");
1151
1134
 
1152
1135
  // src/stricahq/cbors/index.ts
1153
- var import_cbors = __toESM(require("@stricahq/cbors"), 1);
1154
- var { Encoder, Decoder } = import_cbors.default;
1136
+ var import_cbors = require("@stricahq/cbors");
1155
1137
 
1156
1138
  // src/message-signing/cose-sign1.ts
1157
1139
  var CoseSign1 = class _CoseSign1 {
@@ -1169,13 +1151,13 @@ var CoseSign1 = class _CoseSign1 {
1169
1151
  this.signature = payload.signature;
1170
1152
  }
1171
1153
  static fromCbor(cbor) {
1172
- const decoded = Decoder.decode(import_buffer.Buffer.from(cbor, "hex"));
1154
+ const decoded = import_cbors.Decoder.decode(import_buffer.Buffer.from(cbor, "hex"));
1173
1155
  if (!(decoded.value instanceof Array)) throw Error("Invalid CBOR");
1174
1156
  if (decoded.value.length !== 4) throw Error("Invalid COSE_SIGN1");
1175
1157
  let protectedMap;
1176
1158
  const protectedSerialized = decoded.value[0];
1177
1159
  try {
1178
- protectedMap = Decoder.decode(protectedSerialized).value;
1160
+ protectedMap = import_cbors.Decoder.decode(protectedSerialized).value;
1179
1161
  if (!(protectedMap instanceof Map)) {
1180
1162
  throw Error();
1181
1163
  }
@@ -1196,7 +1178,7 @@ var CoseSign1 = class _CoseSign1 {
1196
1178
  createSigStructure(externalAad = import_buffer.Buffer.alloc(0)) {
1197
1179
  let protectedSerialized = import_buffer.Buffer.alloc(0);
1198
1180
  if (this.protectedMap.size !== 0) {
1199
- protectedSerialized = Encoder.encode(this.protectedMap);
1181
+ protectedSerialized = import_cbors.Encoder.encode(this.protectedMap);
1200
1182
  }
1201
1183
  const structure = [
1202
1184
  "Signature1",
@@ -1204,13 +1186,13 @@ var CoseSign1 = class _CoseSign1 {
1204
1186
  externalAad,
1205
1187
  this.payload
1206
1188
  ];
1207
- return Encoder.encode(structure);
1189
+ return import_cbors.Encoder.encode(structure);
1208
1190
  }
1209
1191
  buildMessage(signature) {
1210
1192
  this.signature = signature;
1211
1193
  let protectedSerialized = import_buffer.Buffer.alloc(0);
1212
1194
  if (this.protectedMap.size !== 0) {
1213
- protectedSerialized = Encoder.encode(this.protectedMap);
1195
+ protectedSerialized = import_cbors.Encoder.encode(this.protectedMap);
1214
1196
  }
1215
1197
  const coseSign1 = [
1216
1198
  protectedSerialized,
@@ -1218,7 +1200,7 @@ var CoseSign1 = class _CoseSign1 {
1218
1200
  this.payload,
1219
1201
  this.signature
1220
1202
  ];
1221
- return Encoder.encode(coseSign1);
1203
+ return import_cbors.Encoder.encode(coseSign1);
1222
1204
  }
1223
1205
  verifySignature({
1224
1206
  externalAad = import_buffer.Buffer.alloc(0),
@@ -1229,7 +1211,7 @@ var CoseSign1 = class _CoseSign1 {
1229
1211
  }
1230
1212
  if (!publicKeyBuffer) throw Error("Public key not found");
1231
1213
  if (!this.signature) throw Error("Signature not found");
1232
- const publicKey = new PublicKey(publicKeyBuffer);
1214
+ const publicKey = new import_bip32ed25519.PublicKey(publicKeyBuffer);
1233
1215
  return publicKey.verify(
1234
1216
  this.signature,
1235
1217
  this.createSigStructure(externalAad)
@@ -1243,8 +1225,8 @@ var CoseSign1 = class _CoseSign1 {
1243
1225
  if (this.unProtectedMap.get("hashed") != false)
1244
1226
  throw Error("Invalid unprotected map");
1245
1227
  this.unProtectedMap.set("hashed", true);
1246
- const hash2 = (0, import_blakejs.blake2b)(this.payload, void 0, 24);
1247
- this.payload = import_buffer.Buffer.from(hash2);
1228
+ const hash = (0, import_blakejs.blake2b)(this.payload, void 0, 24);
1229
+ this.payload = import_buffer.Buffer.from(hash);
1248
1230
  }
1249
1231
  getAddress() {
1250
1232
  return this.protectedMap.get("address");
@@ -1260,7 +1242,7 @@ var CoseSign1 = class _CoseSign1 {
1260
1242
  }
1261
1243
  };
1262
1244
  var getPublicKeyFromCoseKey = (cbor) => {
1263
- const decodedCoseKey = Decoder.decode(import_buffer.Buffer.from(cbor, "hex"));
1245
+ const decodedCoseKey = import_cbors.Decoder.decode(import_buffer.Buffer.from(cbor, "hex"));
1264
1246
  const publicKeyBuffer = decodedCoseKey.value.get(-2);
1265
1247
  if (publicKeyBuffer) {
1266
1248
  return publicKeyBuffer;
@@ -1273,7 +1255,7 @@ var getCoseKeyFromPublicKey = (cbor) => {
1273
1255
  coseKeyMap.set(3, -8);
1274
1256
  coseKeyMap.set(6, -2);
1275
1257
  coseKeyMap.set(-2, import_buffer.Buffer.from(cbor, "hex"));
1276
- return Encoder.encode(coseKeyMap);
1258
+ return import_cbors.Encoder.encode(coseKeyMap);
1277
1259
  };
1278
1260
 
1279
1261
  // src/message-signing/check-signature.ts
@@ -1423,19 +1405,18 @@ var buildRewardAddress = (networkId, stakeKeyHash) => {
1423
1405
  };
1424
1406
  var buildKeys = (entropy, accountIndex, keyIndex = 0) => {
1425
1407
  if (typeof entropy === "string") {
1426
- const rootKey = new Bip32PrivateKey3(Buffer.from(entropy, "hex"));
1408
+ const rootKey = new import_bip32ed25519.Bip32PrivateKey(Buffer.from(entropy, "hex"));
1427
1409
  const accountKey = rootKey.derive(import_common2.HARDENED_KEY_START + 1852).derive(import_common2.HARDENED_KEY_START + 1815).derive(import_common2.HARDENED_KEY_START + accountIndex);
1428
1410
  const paymentKey = accountKey.derive(0).derive(keyIndex).toPrivateKey();
1429
1411
  const stakeKey = accountKey.derive(2).derive(0).toPrivateKey();
1430
- return { paymentKey, stakeKey };
1412
+ const dRepKey = accountKey.derive(3).derive(keyIndex).toPrivateKey();
1413
+ return { paymentKey, stakeKey, dRepKey };
1431
1414
  } else {
1432
- const paymentKey = new PrivateKey(
1433
- Buffer.from(entropy[0], "hex"),
1434
- false
1415
+ const paymentKey = import_bip32ed25519.PrivateKey.fromSecretKey(
1416
+ Buffer.from(entropy[0], "hex")
1435
1417
  );
1436
- const stakeKey = new PrivateKey(
1437
- Buffer.from(entropy[1], "hex"),
1438
- false
1418
+ const stakeKey = import_bip32ed25519.PrivateKey.fromSecretKey(
1419
+ Buffer.from(entropy[1], "hex")
1439
1420
  );
1440
1421
  return { paymentKey, stakeKey };
1441
1422
  }
@@ -1876,8 +1857,8 @@ var resolvePlutusScriptHash = (bech32) => {
1876
1857
  throw new Error(`An error occurred during resolveScriptHash: ${error}.`);
1877
1858
  }
1878
1859
  };
1879
- var resolvePoolId = (hash2) => {
1880
- return Ed25519KeyHashHex2(hash2).toString();
1860
+ var resolvePoolId = (hash) => {
1861
+ return Ed25519KeyHashHex2(hash).toString();
1881
1862
  };
1882
1863
  var resolvePrivateKey = (words) => {
1883
1864
  return "not implemented";
@@ -1911,8 +1892,8 @@ var resolveStakeKeyHash = (bech32) => {
1911
1892
  };
1912
1893
  var resolveTxHash = (txHex) => {
1913
1894
  const txBody = deserializeTx(txHex).body();
1914
- const hash2 = (0, import_crypto5.blake2b)(import_crypto5.blake2b.BYTES).update(hexToBytes(txBody.toCbor())).digest();
1915
- return import_core4.Cardano.TransactionId.fromHexBlob(import_util5.HexBlob.fromBytes(hash2));
1895
+ const hash = (0, import_crypto5.blake2b)(import_crypto5.blake2b.BYTES).update(hexToBytes(txBody.toCbor())).digest();
1896
+ return import_core4.Cardano.TransactionId.fromHexBlob(import_util5.HexBlob.fromBytes(hash));
1916
1897
  };
1917
1898
 
1918
1899
  // src/serializer/index.ts
@@ -1982,7 +1963,7 @@ var CardanoSDKSerializer = class {
1982
1963
  serializeRewardAddress(stakeKeyHash, isScriptHash, network_id) {
1983
1964
  throw new Error("Method not implemented.");
1984
1965
  }
1985
- serializePoolId(hash2) {
1966
+ serializePoolId(hash) {
1986
1967
  throw new Error("Method not implemented.");
1987
1968
  }
1988
1969
  serializeAddress(address, networkId) {
@@ -2109,9 +2090,8 @@ var CardanoSDKSerializer = class {
2109
2090
  if (keyHex.length === 68 && keyHex.substring(0, 4) === "5820") {
2110
2091
  keyHex = keyHex.substring(4);
2111
2092
  }
2112
- const cardanoSigner = new PrivateKey(
2113
- Buffer.from(keyHex, "hex"),
2114
- false
2093
+ const cardanoSigner = import_bip32ed25519.PrivateKey.fromSecretKey(
2094
+ Buffer.from(keyHex, "hex")
2115
2095
  );
2116
2096
  const signature = cardanoSigner.sign(
2117
2097
  Buffer.from(cardanoTx.getId(), "hex")
@@ -2716,6 +2696,7 @@ var CardanoSDK = __toESM(require("@cardano-sdk/core"), 1);
2716
2696
  Credential,
2717
2697
  CredentialType,
2718
2698
  Crypto,
2699
+ DRep,
2719
2700
  DRepID,
2720
2701
  Datum,
2721
2702
  DatumHash,
@@ -2762,6 +2743,7 @@ var CardanoSDK = __toESM(require("@cardano-sdk/core"), 1);
2762
2743
  ScriptPubkey,
2763
2744
  Serialization,
2764
2745
  Slot,
2746
+ StakeCredentialStatus,
2765
2747
  StakeDelegation,
2766
2748
  StakeRegistration,
2767
2749
  StricaBip32PrivateKey,
package/dist/index.d.cts CHANGED
@@ -7,11 +7,11 @@ import { OpaqueString } from '@cardano-sdk/util';
7
7
  export { _cardano_sdk_util as CardanoSDKUtil };
8
8
  import * as Crypto from '@cardano-sdk/crypto';
9
9
  export { Crypto };
10
- import strica from '@stricahq/bip32ed25519';
10
+ import { PrivateKey } from '@stricahq/bip32ed25519';
11
+ export { Bip32PrivateKey as StricaBip32PrivateKey, Bip32PublicKey as StricaBip32PublicKey, PrivateKey as StricaPrivateKey, PublicKey as StricaPublicKey } from '@stricahq/bip32ed25519';
11
12
  import { DataSignature, Data, NativeScript as NativeScript$1, PlutusScript, IMeshTxSerializer, DeserializedAddress, BuilderData, IDeserializer, IResolver, MeshTxBuilderBody, Protocol, UTxO, Asset, LanguageVersion } from '@meshsdk/common';
12
- import { Buffer as Buffer$1 } from 'buffer';
13
- import strica$1 from '@stricahq/cbors';
14
- import * as _cardano_sdk_core_dist_cjs_Cardano from '@cardano-sdk/core/dist/cjs/Cardano';
13
+ import { Buffer } from 'buffer';
14
+ export { Decoder as StricaDecoder, Encoder as StricaEncoder } from '@stricahq/cbors';
15
15
 
16
16
  declare const Slot: (value: number) => Cardano.Slot;
17
17
  type Slot = Cardano.Slot;
@@ -139,8 +139,8 @@ declare const Ed25519PublicKey: typeof Crypto.Ed25519PublicKey;
139
139
  type Ed25519PublicKey = Crypto.Ed25519PublicKey;
140
140
  declare const Ed25519Signature: typeof Crypto.Ed25519Signature;
141
141
  type Ed25519Signature = Crypto.Ed25519Signature;
142
- declare const Bip32PrivateKey$1: typeof Crypto.Bip32PrivateKey;
143
- type Bip32PrivateKey$1 = Crypto.Bip32PrivateKey;
142
+ declare const Bip32PrivateKey: typeof Crypto.Bip32PrivateKey;
143
+ type Bip32PrivateKey = Crypto.Bip32PrivateKey;
144
144
  declare const Bip32PrivateKeyHex: (key: string) => Crypto.Bip32PrivateKeyHex;
145
145
  type Bip32PrivateKeyHex = Crypto.Bip32PrivateKeyHex;
146
146
  declare const PlutusLanguageVersion: typeof Cardano.PlutusLanguageVersion;
@@ -211,6 +211,10 @@ declare const DRepID: {
211
211
  isValid(value: string): boolean;
212
212
  canSign(value: string): boolean;
213
213
  };
214
+ type DRep = Serialization.DRep;
215
+ declare const DRep: typeof Serialization.DRep;
216
+ type StakeCredentialStatus = Cardano.StakeCredentialStatus;
217
+ declare const StakeCredentialStatus: typeof Cardano.StakeCredentialStatus;
214
218
 
215
219
  type Signer = {
216
220
  address: Address;
@@ -227,24 +231,24 @@ declare class CoseSign1 {
227
231
  constructor(payload: {
228
232
  protectedMap: Map<any, any>;
229
233
  unProtectedMap: Map<any, any>;
230
- payload: Buffer$1 | null;
231
- signature?: Buffer$1;
234
+ payload: Buffer | null;
235
+ signature?: Buffer;
232
236
  });
233
237
  static fromCbor(cbor: string): CoseSign1;
234
- createSigStructure(externalAad?: Buffer$1): Buffer$1;
235
- buildMessage(signature: Buffer$1): Buffer$1;
238
+ createSigStructure(externalAad?: Buffer): Buffer;
239
+ buildMessage(signature: Buffer): Buffer;
236
240
  verifySignature({ externalAad, publicKeyBuffer, }?: {
237
- externalAad?: Buffer$1;
238
- publicKeyBuffer?: Buffer$1;
241
+ externalAad?: Buffer;
242
+ publicKeyBuffer?: Buffer;
239
243
  }): boolean;
240
244
  hashPayload(): void;
241
- getAddress(): Buffer$1;
242
- getPublicKey(): Buffer$1;
243
- getSignature(): Buffer$1 | undefined;
244
- getPayload(): Buffer$1 | null;
245
+ getAddress(): Buffer;
246
+ getPublicKey(): Buffer;
247
+ getSignature(): Buffer | undefined;
248
+ getPayload(): Buffer | null;
245
249
  }
246
- declare const getPublicKeyFromCoseKey: (cbor: string) => Buffer$1;
247
- declare const getCoseKeyFromPublicKey: (cbor: string) => Buffer$1;
250
+ declare const getPublicKeyFromCoseKey: (cbor: string) => Buffer;
251
+ declare const getCoseKeyFromPublicKey: (cbor: string) => Buffer;
248
252
 
249
253
  declare const generateNonce: (label?: string, length?: number) => string;
250
254
 
@@ -298,31 +302,17 @@ declare class CardanoSDKSerializer implements IMeshTxSerializer {
298
302
  private createDummyTx;
299
303
  }
300
304
 
301
- declare class PrivateKey extends strica.PrivateKey {
302
- constructor(privKey: Buffer, extended?: Boolean);
303
- }
304
-
305
- declare const PublicKey: typeof strica.PublicKey;
306
- declare const Bip32PrivateKey: typeof strica.Bip32PrivateKey;
307
- declare const Bip32PublicKey: typeof strica.Bip32PublicKey;
308
-
309
- declare const Encoder: {
310
- encode: (input: any, options?: {
311
- collapseBigNumber: Boolean;
312
- }) => Buffer;
313
- };
314
- declare const Decoder: typeof strica$1.Decoder;
315
-
316
305
  declare const buildBaseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16, stakeKeyHash: Hash28ByteBase16) => BaseAddress;
317
306
  declare const buildEnterpriseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16) => EnterpriseAddress;
318
- declare const buildBip32PrivateKey: (entropy: string, password?: string) => Bip32PrivateKey$1;
307
+ declare const buildBip32PrivateKey: (entropy: string, password?: string) => Bip32PrivateKey;
319
308
  declare const buildRewardAddress: (networkId: number, stakeKeyHash: Hash28ByteBase16) => RewardAddress;
320
309
  declare const buildKeys: (entropy: string | [string, string], accountIndex: number, keyIndex?: number) => {
321
310
  paymentKey: PrivateKey;
322
311
  stakeKey: PrivateKey;
312
+ dRepKey?: PrivateKey;
323
313
  };
324
314
  declare const buildScriptPubkey: (keyHash: Ed25519KeyHash) => NativeScript;
325
- declare const buildDRepID: (dRepKey: Ed25519PublicKeyHex, networkId?: NetworkId, addressType?: AddressType) => _cardano_sdk_core_dist_cjs_Cardano.DRepID;
315
+ declare const buildDRepID: (dRepKey: Ed25519PublicKeyHex, networkId?: NetworkId, addressType?: AddressType) => DRepID;
326
316
 
327
317
  declare const toAddress: (bech32: string) => Address;
328
318
  declare const toBaseAddress: (bech32: string) => BaseAddress | undefined;
@@ -359,4 +349,4 @@ declare function negatives(v: Value): Value;
359
349
  declare function assetTypes(v: Value): number;
360
350
  declare function empty(v: Value): boolean;
361
351
 
362
- export { Address, AddressType, AssetFingerprint, AssetId, AssetName, BaseAddress, Bip32PrivateKey$1 as Bip32PrivateKey, Bip32PrivateKeyHex, CardanoSDKSerializer, CborSet, CborWriter, Certificate, CertificateType, ConstrPlutusData, CoseSign1, CostModel, type CostModels, Costmdls, Credential, type CredentialCore, CredentialType, DRepID, Datum, DatumHash, DatumKind, Ed25519KeyHash, Ed25519KeyHashHex, Ed25519PrivateExtendedKeyHex, Ed25519PrivateNormalKeyHex, Ed25519PublicKey, Ed25519PublicKeyHex, Ed25519Signature, Ed25519SignatureHex, EnterpriseAddress, ExUnits, Hash, Hash28ByteBase16, Hash32ByteBase16, NativeScript, NetworkId, PaymentAddress, PlutusData, PlutusLanguageVersion, PlutusList, PlutusMap, PlutusV1Script, PlutusV2Script, PlutusV3Script, PolicyId, PoolId, Redeemer, RedeemerPurpose, RedeemerTag, Redeemers, RequireAllOf, RequireAnyOf, RequireNOf, RequireSignature, RequireTimeAfter, RequireTimeBefore, RewardAccount, RewardAddress, Script, ScriptHash, ScriptPubkey, type Signatures, type Signer, Slot, StakeDelegation, type StakeDelegationCertificate, StakeRegistration, Bip32PrivateKey as StricaBip32PrivateKey, Bip32PublicKey as StricaBip32PublicKey, Decoder as StricaDecoder, Encoder as StricaEncoder, PrivateKey as StricaPrivateKey, PublicKey as StricaPublicKey, type TokenMap, Transaction, TransactionBody, TransactionId, TransactionInput, type TransactionInputSet, TransactionOutput, TransactionUnspentOutput, type TransactionWitnessPlutusData, TransactionWitnessSet, Value, VkeyWitness, VrfVkBech32, type Witness, addressToBech32, assetTypes, buildBaseAddress, buildBip32PrivateKey, buildDRepID, buildEnterpriseAddress, buildKeys, buildRewardAddress, buildScriptPubkey, checkSignature, deserializeAddress, deserializeDataHash, deserializeEd25519KeyHash, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxHash, deserializeTxUnspentOutput, deserializeValue, empty, fromNativeScript, fromScriptRef, fromTxUnspentOutput, fromValue, generateNonce, getCoseKeyFromPublicKey, getPublicKeyFromCoseKey, mergeValue, negateValue, negatives, resolveDataHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolvePaymentKeyHash, resolvePlutusScriptAddress, resolvePlutusScriptHash, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptRef, resolveStakeKeyHash, resolveTxHash, signData, subValue, toAddress, toBaseAddress, toEnterpriseAddress, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toTxUnspentOutput, toValue };
352
+ export { Address, AddressType, AssetFingerprint, AssetId, AssetName, BaseAddress, Bip32PrivateKey, Bip32PrivateKeyHex, CardanoSDKSerializer, CborSet, CborWriter, Certificate, CertificateType, ConstrPlutusData, CoseSign1, CostModel, type CostModels, Costmdls, Credential, type CredentialCore, CredentialType, DRep, DRepID, Datum, DatumHash, DatumKind, Ed25519KeyHash, Ed25519KeyHashHex, Ed25519PrivateExtendedKeyHex, Ed25519PrivateNormalKeyHex, Ed25519PublicKey, Ed25519PublicKeyHex, Ed25519Signature, Ed25519SignatureHex, EnterpriseAddress, ExUnits, Hash, Hash28ByteBase16, Hash32ByteBase16, NativeScript, NetworkId, PaymentAddress, PlutusData, PlutusLanguageVersion, PlutusList, PlutusMap, PlutusV1Script, PlutusV2Script, PlutusV3Script, PolicyId, PoolId, Redeemer, RedeemerPurpose, RedeemerTag, Redeemers, RequireAllOf, RequireAnyOf, RequireNOf, RequireSignature, RequireTimeAfter, RequireTimeBefore, RewardAccount, RewardAddress, Script, ScriptHash, ScriptPubkey, type Signatures, type Signer, Slot, StakeCredentialStatus, StakeDelegation, type StakeDelegationCertificate, StakeRegistration, type TokenMap, Transaction, TransactionBody, TransactionId, TransactionInput, type TransactionInputSet, TransactionOutput, TransactionUnspentOutput, type TransactionWitnessPlutusData, TransactionWitnessSet, Value, VkeyWitness, VrfVkBech32, type Witness, addressToBech32, assetTypes, buildBaseAddress, buildBip32PrivateKey, buildDRepID, buildEnterpriseAddress, buildKeys, buildRewardAddress, buildScriptPubkey, checkSignature, deserializeAddress, deserializeDataHash, deserializeEd25519KeyHash, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxHash, deserializeTxUnspentOutput, deserializeValue, empty, fromNativeScript, fromScriptRef, fromTxUnspentOutput, fromValue, generateNonce, getCoseKeyFromPublicKey, getPublicKeyFromCoseKey, mergeValue, negateValue, negatives, resolveDataHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolvePaymentKeyHash, resolvePlutusScriptAddress, resolvePlutusScriptHash, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptRef, resolveStakeKeyHash, resolveTxHash, signData, subValue, toAddress, toBaseAddress, toEnterpriseAddress, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toTxUnspentOutput, toValue };
package/dist/index.d.ts CHANGED
@@ -7,11 +7,11 @@ import { OpaqueString } from '@cardano-sdk/util';
7
7
  export { _cardano_sdk_util as CardanoSDKUtil };
8
8
  import * as Crypto from '@cardano-sdk/crypto';
9
9
  export { Crypto };
10
- import strica from '@stricahq/bip32ed25519';
10
+ import { PrivateKey } from '@stricahq/bip32ed25519';
11
+ export { Bip32PrivateKey as StricaBip32PrivateKey, Bip32PublicKey as StricaBip32PublicKey, PrivateKey as StricaPrivateKey, PublicKey as StricaPublicKey } from '@stricahq/bip32ed25519';
11
12
  import { DataSignature, Data, NativeScript as NativeScript$1, PlutusScript, IMeshTxSerializer, DeserializedAddress, BuilderData, IDeserializer, IResolver, MeshTxBuilderBody, Protocol, UTxO, Asset, LanguageVersion } from '@meshsdk/common';
12
- import { Buffer as Buffer$1 } from 'buffer';
13
- import strica$1 from '@stricahq/cbors';
14
- import * as _cardano_sdk_core_dist_cjs_Cardano from '@cardano-sdk/core/dist/cjs/Cardano';
13
+ import { Buffer } from 'buffer';
14
+ export { Decoder as StricaDecoder, Encoder as StricaEncoder } from '@stricahq/cbors';
15
15
 
16
16
  declare const Slot: (value: number) => Cardano.Slot;
17
17
  type Slot = Cardano.Slot;
@@ -139,8 +139,8 @@ declare const Ed25519PublicKey: typeof Crypto.Ed25519PublicKey;
139
139
  type Ed25519PublicKey = Crypto.Ed25519PublicKey;
140
140
  declare const Ed25519Signature: typeof Crypto.Ed25519Signature;
141
141
  type Ed25519Signature = Crypto.Ed25519Signature;
142
- declare const Bip32PrivateKey$1: typeof Crypto.Bip32PrivateKey;
143
- type Bip32PrivateKey$1 = Crypto.Bip32PrivateKey;
142
+ declare const Bip32PrivateKey: typeof Crypto.Bip32PrivateKey;
143
+ type Bip32PrivateKey = Crypto.Bip32PrivateKey;
144
144
  declare const Bip32PrivateKeyHex: (key: string) => Crypto.Bip32PrivateKeyHex;
145
145
  type Bip32PrivateKeyHex = Crypto.Bip32PrivateKeyHex;
146
146
  declare const PlutusLanguageVersion: typeof Cardano.PlutusLanguageVersion;
@@ -211,6 +211,10 @@ declare const DRepID: {
211
211
  isValid(value: string): boolean;
212
212
  canSign(value: string): boolean;
213
213
  };
214
+ type DRep = Serialization.DRep;
215
+ declare const DRep: typeof Serialization.DRep;
216
+ type StakeCredentialStatus = Cardano.StakeCredentialStatus;
217
+ declare const StakeCredentialStatus: typeof Cardano.StakeCredentialStatus;
214
218
 
215
219
  type Signer = {
216
220
  address: Address;
@@ -227,24 +231,24 @@ declare class CoseSign1 {
227
231
  constructor(payload: {
228
232
  protectedMap: Map<any, any>;
229
233
  unProtectedMap: Map<any, any>;
230
- payload: Buffer$1 | null;
231
- signature?: Buffer$1;
234
+ payload: Buffer | null;
235
+ signature?: Buffer;
232
236
  });
233
237
  static fromCbor(cbor: string): CoseSign1;
234
- createSigStructure(externalAad?: Buffer$1): Buffer$1;
235
- buildMessage(signature: Buffer$1): Buffer$1;
238
+ createSigStructure(externalAad?: Buffer): Buffer;
239
+ buildMessage(signature: Buffer): Buffer;
236
240
  verifySignature({ externalAad, publicKeyBuffer, }?: {
237
- externalAad?: Buffer$1;
238
- publicKeyBuffer?: Buffer$1;
241
+ externalAad?: Buffer;
242
+ publicKeyBuffer?: Buffer;
239
243
  }): boolean;
240
244
  hashPayload(): void;
241
- getAddress(): Buffer$1;
242
- getPublicKey(): Buffer$1;
243
- getSignature(): Buffer$1 | undefined;
244
- getPayload(): Buffer$1 | null;
245
+ getAddress(): Buffer;
246
+ getPublicKey(): Buffer;
247
+ getSignature(): Buffer | undefined;
248
+ getPayload(): Buffer | null;
245
249
  }
246
- declare const getPublicKeyFromCoseKey: (cbor: string) => Buffer$1;
247
- declare const getCoseKeyFromPublicKey: (cbor: string) => Buffer$1;
250
+ declare const getPublicKeyFromCoseKey: (cbor: string) => Buffer;
251
+ declare const getCoseKeyFromPublicKey: (cbor: string) => Buffer;
248
252
 
249
253
  declare const generateNonce: (label?: string, length?: number) => string;
250
254
 
@@ -298,31 +302,17 @@ declare class CardanoSDKSerializer implements IMeshTxSerializer {
298
302
  private createDummyTx;
299
303
  }
300
304
 
301
- declare class PrivateKey extends strica.PrivateKey {
302
- constructor(privKey: Buffer, extended?: Boolean);
303
- }
304
-
305
- declare const PublicKey: typeof strica.PublicKey;
306
- declare const Bip32PrivateKey: typeof strica.Bip32PrivateKey;
307
- declare const Bip32PublicKey: typeof strica.Bip32PublicKey;
308
-
309
- declare const Encoder: {
310
- encode: (input: any, options?: {
311
- collapseBigNumber: Boolean;
312
- }) => Buffer;
313
- };
314
- declare const Decoder: typeof strica$1.Decoder;
315
-
316
305
  declare const buildBaseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16, stakeKeyHash: Hash28ByteBase16) => BaseAddress;
317
306
  declare const buildEnterpriseAddress: (networkId: number, paymentKeyHash: Hash28ByteBase16) => EnterpriseAddress;
318
- declare const buildBip32PrivateKey: (entropy: string, password?: string) => Bip32PrivateKey$1;
307
+ declare const buildBip32PrivateKey: (entropy: string, password?: string) => Bip32PrivateKey;
319
308
  declare const buildRewardAddress: (networkId: number, stakeKeyHash: Hash28ByteBase16) => RewardAddress;
320
309
  declare const buildKeys: (entropy: string | [string, string], accountIndex: number, keyIndex?: number) => {
321
310
  paymentKey: PrivateKey;
322
311
  stakeKey: PrivateKey;
312
+ dRepKey?: PrivateKey;
323
313
  };
324
314
  declare const buildScriptPubkey: (keyHash: Ed25519KeyHash) => NativeScript;
325
- declare const buildDRepID: (dRepKey: Ed25519PublicKeyHex, networkId?: NetworkId, addressType?: AddressType) => _cardano_sdk_core_dist_cjs_Cardano.DRepID;
315
+ declare const buildDRepID: (dRepKey: Ed25519PublicKeyHex, networkId?: NetworkId, addressType?: AddressType) => DRepID;
326
316
 
327
317
  declare const toAddress: (bech32: string) => Address;
328
318
  declare const toBaseAddress: (bech32: string) => BaseAddress | undefined;
@@ -359,4 +349,4 @@ declare function negatives(v: Value): Value;
359
349
  declare function assetTypes(v: Value): number;
360
350
  declare function empty(v: Value): boolean;
361
351
 
362
- export { Address, AddressType, AssetFingerprint, AssetId, AssetName, BaseAddress, Bip32PrivateKey$1 as Bip32PrivateKey, Bip32PrivateKeyHex, CardanoSDKSerializer, CborSet, CborWriter, Certificate, CertificateType, ConstrPlutusData, CoseSign1, CostModel, type CostModels, Costmdls, Credential, type CredentialCore, CredentialType, DRepID, Datum, DatumHash, DatumKind, Ed25519KeyHash, Ed25519KeyHashHex, Ed25519PrivateExtendedKeyHex, Ed25519PrivateNormalKeyHex, Ed25519PublicKey, Ed25519PublicKeyHex, Ed25519Signature, Ed25519SignatureHex, EnterpriseAddress, ExUnits, Hash, Hash28ByteBase16, Hash32ByteBase16, NativeScript, NetworkId, PaymentAddress, PlutusData, PlutusLanguageVersion, PlutusList, PlutusMap, PlutusV1Script, PlutusV2Script, PlutusV3Script, PolicyId, PoolId, Redeemer, RedeemerPurpose, RedeemerTag, Redeemers, RequireAllOf, RequireAnyOf, RequireNOf, RequireSignature, RequireTimeAfter, RequireTimeBefore, RewardAccount, RewardAddress, Script, ScriptHash, ScriptPubkey, type Signatures, type Signer, Slot, StakeDelegation, type StakeDelegationCertificate, StakeRegistration, Bip32PrivateKey as StricaBip32PrivateKey, Bip32PublicKey as StricaBip32PublicKey, Decoder as StricaDecoder, Encoder as StricaEncoder, PrivateKey as StricaPrivateKey, PublicKey as StricaPublicKey, type TokenMap, Transaction, TransactionBody, TransactionId, TransactionInput, type TransactionInputSet, TransactionOutput, TransactionUnspentOutput, type TransactionWitnessPlutusData, TransactionWitnessSet, Value, VkeyWitness, VrfVkBech32, type Witness, addressToBech32, assetTypes, buildBaseAddress, buildBip32PrivateKey, buildDRepID, buildEnterpriseAddress, buildKeys, buildRewardAddress, buildScriptPubkey, checkSignature, deserializeAddress, deserializeDataHash, deserializeEd25519KeyHash, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxHash, deserializeTxUnspentOutput, deserializeValue, empty, fromNativeScript, fromScriptRef, fromTxUnspentOutput, fromValue, generateNonce, getCoseKeyFromPublicKey, getPublicKeyFromCoseKey, mergeValue, negateValue, negatives, resolveDataHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolvePaymentKeyHash, resolvePlutusScriptAddress, resolvePlutusScriptHash, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptRef, resolveStakeKeyHash, resolveTxHash, signData, subValue, toAddress, toBaseAddress, toEnterpriseAddress, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toTxUnspentOutput, toValue };
352
+ export { Address, AddressType, AssetFingerprint, AssetId, AssetName, BaseAddress, Bip32PrivateKey, Bip32PrivateKeyHex, CardanoSDKSerializer, CborSet, CborWriter, Certificate, CertificateType, ConstrPlutusData, CoseSign1, CostModel, type CostModels, Costmdls, Credential, type CredentialCore, CredentialType, DRep, DRepID, Datum, DatumHash, DatumKind, Ed25519KeyHash, Ed25519KeyHashHex, Ed25519PrivateExtendedKeyHex, Ed25519PrivateNormalKeyHex, Ed25519PublicKey, Ed25519PublicKeyHex, Ed25519Signature, Ed25519SignatureHex, EnterpriseAddress, ExUnits, Hash, Hash28ByteBase16, Hash32ByteBase16, NativeScript, NetworkId, PaymentAddress, PlutusData, PlutusLanguageVersion, PlutusList, PlutusMap, PlutusV1Script, PlutusV2Script, PlutusV3Script, PolicyId, PoolId, Redeemer, RedeemerPurpose, RedeemerTag, Redeemers, RequireAllOf, RequireAnyOf, RequireNOf, RequireSignature, RequireTimeAfter, RequireTimeBefore, RewardAccount, RewardAddress, Script, ScriptHash, ScriptPubkey, type Signatures, type Signer, Slot, StakeCredentialStatus, StakeDelegation, type StakeDelegationCertificate, StakeRegistration, type TokenMap, Transaction, TransactionBody, TransactionId, TransactionInput, type TransactionInputSet, TransactionOutput, TransactionUnspentOutput, type TransactionWitnessPlutusData, TransactionWitnessSet, Value, VkeyWitness, VrfVkBech32, type Witness, addressToBech32, assetTypes, buildBaseAddress, buildBip32PrivateKey, buildDRepID, buildEnterpriseAddress, buildKeys, buildRewardAddress, buildScriptPubkey, checkSignature, deserializeAddress, deserializeDataHash, deserializeEd25519KeyHash, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxHash, deserializeTxUnspentOutput, deserializeValue, empty, fromNativeScript, fromScriptRef, fromTxUnspentOutput, fromValue, generateNonce, getCoseKeyFromPublicKey, getPublicKeyFromCoseKey, mergeValue, negateValue, negatives, resolveDataHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolvePaymentKeyHash, resolvePlutusScriptAddress, resolvePlutusScriptHash, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptRef, resolveStakeKeyHash, resolveTxHash, signData, subValue, toAddress, toBaseAddress, toEnterpriseAddress, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toTxUnspentOutput, toValue };
package/dist/index.js CHANGED
@@ -967,38 +967,23 @@ var RequireTimeBefore = Cardano.NativeScriptKind.RequireTimeBefore;
967
967
  var VrfVkBech32 = Cardano.VrfVkBech32;
968
968
  var ScriptPubkey = Serialization.ScriptPubkey;
969
969
  var DRepID = Cardano.DRepID;
970
+ var DRep = Serialization.DRep;
971
+ var StakeCredentialStatus = Cardano.StakeCredentialStatus;
970
972
 
971
973
  // src/message-signing/cose-sign1.ts
972
974
  var import_blakejs = __toESM(require_blakejs(), 1);
973
975
  import { Buffer as Buffer2 } from "buffer";
974
976
 
975
977
  // src/stricahq/bip32ed25519/index.ts
976
- import strica2 from "@stricahq/bip32ed25519";
977
-
978
- // src/stricahq/bip32ed25519/privateKey.ts
979
- import strica from "@stricahq/bip32ed25519";
980
- import hash from "hash.js";
981
- var PrivateKey = class extends strica.PrivateKey {
982
- constructor(privKey, extended = true) {
983
- if (!extended) {
984
- let extendedSecret = hash.sha512().update(privKey).digest();
985
- if (extendedSecret[0] && extendedSecret[31]) {
986
- extendedSecret[0] &= 248;
987
- extendedSecret[31] &= 63;
988
- extendedSecret[31] |= 64;
989
- }
990
- privKey = Buffer.from(extendedSecret);
991
- }
992
- super(privKey);
993
- }
994
- };
995
-
996
- // src/stricahq/bip32ed25519/index.ts
997
- var { PublicKey, Bip32PrivateKey: Bip32PrivateKey3, Bip32PublicKey } = strica2;
978
+ import {
979
+ Bip32PrivateKey as Bip32PrivateKey3,
980
+ Bip32PublicKey,
981
+ PrivateKey,
982
+ PublicKey
983
+ } from "@stricahq/bip32ed25519";
998
984
 
999
985
  // src/stricahq/cbors/index.ts
1000
- import strica3 from "@stricahq/cbors";
1001
- var { Encoder, Decoder } = strica3;
986
+ import { Decoder, Encoder } from "@stricahq/cbors";
1002
987
 
1003
988
  // src/message-signing/cose-sign1.ts
1004
989
  var CoseSign1 = class _CoseSign1 {
@@ -1090,8 +1075,8 @@ var CoseSign1 = class _CoseSign1 {
1090
1075
  if (this.unProtectedMap.get("hashed") != false)
1091
1076
  throw Error("Invalid unprotected map");
1092
1077
  this.unProtectedMap.set("hashed", true);
1093
- const hash2 = (0, import_blakejs.blake2b)(this.payload, void 0, 24);
1094
- this.payload = Buffer2.from(hash2);
1078
+ const hash = (0, import_blakejs.blake2b)(this.payload, void 0, 24);
1079
+ this.payload = Buffer2.from(hash);
1095
1080
  }
1096
1081
  getAddress() {
1097
1082
  return this.protectedMap.get("address");
@@ -1274,15 +1259,14 @@ var buildKeys = (entropy, accountIndex, keyIndex = 0) => {
1274
1259
  const accountKey = rootKey.derive(HARDENED_KEY_START + 1852).derive(HARDENED_KEY_START + 1815).derive(HARDENED_KEY_START + accountIndex);
1275
1260
  const paymentKey = accountKey.derive(0).derive(keyIndex).toPrivateKey();
1276
1261
  const stakeKey = accountKey.derive(2).derive(0).toPrivateKey();
1277
- return { paymentKey, stakeKey };
1262
+ const dRepKey = accountKey.derive(3).derive(keyIndex).toPrivateKey();
1263
+ return { paymentKey, stakeKey, dRepKey };
1278
1264
  } else {
1279
- const paymentKey = new PrivateKey(
1280
- Buffer.from(entropy[0], "hex"),
1281
- false
1265
+ const paymentKey = PrivateKey.fromSecretKey(
1266
+ Buffer.from(entropy[0], "hex")
1282
1267
  );
1283
- const stakeKey = new PrivateKey(
1284
- Buffer.from(entropy[1], "hex"),
1285
- false
1268
+ const stakeKey = PrivateKey.fromSecretKey(
1269
+ Buffer.from(entropy[1], "hex")
1286
1270
  );
1287
1271
  return { paymentKey, stakeKey };
1288
1272
  }
@@ -1725,8 +1709,8 @@ var resolvePlutusScriptHash = (bech32) => {
1725
1709
  throw new Error(`An error occurred during resolveScriptHash: ${error}.`);
1726
1710
  }
1727
1711
  };
1728
- var resolvePoolId = (hash2) => {
1729
- return Ed25519KeyHashHex2(hash2).toString();
1712
+ var resolvePoolId = (hash) => {
1713
+ return Ed25519KeyHashHex2(hash).toString();
1730
1714
  };
1731
1715
  var resolvePrivateKey = (words) => {
1732
1716
  return "not implemented";
@@ -1760,8 +1744,8 @@ var resolveStakeKeyHash = (bech32) => {
1760
1744
  };
1761
1745
  var resolveTxHash = (txHex) => {
1762
1746
  const txBody = deserializeTx(txHex).body();
1763
- const hash2 = blake2b3(blake2b3.BYTES).update(hexToBytes(txBody.toCbor())).digest();
1764
- return Cardano2.TransactionId.fromHexBlob(HexBlob4.fromBytes(hash2));
1747
+ const hash = blake2b3(blake2b3.BYTES).update(hexToBytes(txBody.toCbor())).digest();
1748
+ return Cardano2.TransactionId.fromHexBlob(HexBlob4.fromBytes(hash));
1765
1749
  };
1766
1750
 
1767
1751
  // src/serializer/index.ts
@@ -1834,7 +1818,7 @@ var CardanoSDKSerializer = class {
1834
1818
  serializeRewardAddress(stakeKeyHash, isScriptHash, network_id) {
1835
1819
  throw new Error("Method not implemented.");
1836
1820
  }
1837
- serializePoolId(hash2) {
1821
+ serializePoolId(hash) {
1838
1822
  throw new Error("Method not implemented.");
1839
1823
  }
1840
1824
  serializeAddress(address, networkId) {
@@ -1961,9 +1945,8 @@ var CardanoSDKSerializer = class {
1961
1945
  if (keyHex.length === 68 && keyHex.substring(0, 4) === "5820") {
1962
1946
  keyHex = keyHex.substring(4);
1963
1947
  }
1964
- const cardanoSigner = new PrivateKey(
1965
- Buffer.from(keyHex, "hex"),
1966
- false
1948
+ const cardanoSigner = PrivateKey.fromSecretKey(
1949
+ Buffer.from(keyHex, "hex")
1967
1950
  );
1968
1951
  const signature = cardanoSigner.sign(
1969
1952
  Buffer.from(cardanoTx.getId(), "hex")
@@ -2567,6 +2550,7 @@ export {
2567
2550
  Credential,
2568
2551
  CredentialType,
2569
2552
  Crypto3 as Crypto,
2553
+ DRep,
2570
2554
  DRepID,
2571
2555
  Datum,
2572
2556
  DatumHash,
@@ -2613,6 +2597,7 @@ export {
2613
2597
  ScriptPubkey,
2614
2598
  Serialization5 as Serialization,
2615
2599
  Slot,
2600
+ StakeCredentialStatus,
2616
2601
  StakeDelegation,
2617
2602
  StakeRegistration,
2618
2603
  Bip32PrivateKey3 as StricaBip32PrivateKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/core-cst",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -38,6 +38,9 @@
38
38
  "@cardano-sdk/core": "^0.35.4",
39
39
  "@cardano-sdk/crypto": "^0.1.28",
40
40
  "@cardano-sdk/util": "^0.15.4",
41
+ "@harmoniclabs/cbor": "^1.3.0",
42
+ "@harmoniclabs/plutus-data": "^1.2.4",
43
+ "@harmoniclabs/uplc": "^1.2.4",
41
44
  "@meshsdk/common": "*",
42
45
  "@stricahq/bip32ed25519": "^1.1.0",
43
46
  "@stricahq/cbors": "^1.0.0",
@@ -56,4 +59,4 @@
56
59
  "blockchain",
57
60
  "sdk"
58
61
  ]
59
- }
62
+ }