@anastasia-labs/cardano-multiplatform-lib-browser 6.0.1-1 → 6.0.2-1

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.
@@ -17,18 +17,6 @@ export function emip3_encrypt_with_password(password: string, salt: string, nonc
17
17
  */
18
18
  export function emip3_decrypt_with_password(password: string, data: string): string;
19
19
  /**
20
- * encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
21
- * @param {Uint8Array} bytes
22
- * @returns {TransactionMetadatum}
23
- */
24
- export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
25
- /**
26
- * decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
27
- * @param {TransactionMetadatum} metadata
28
- * @returns {Uint8Array | undefined}
29
- */
30
- export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array | undefined;
31
- /**
32
20
  * @param {AuxiliaryData} auxiliary_data
33
21
  * @returns {AuxiliaryDataHash}
34
22
  */
@@ -104,33 +92,6 @@ export function get_implicit_input(txbody: TransactionBody, pool_deposit: bigint
104
92
  */
105
93
  export function get_deposit(txbody: TransactionBody, pool_deposit: bigint, key_deposit: bigint): bigint;
106
94
  /**
107
- *
108
- * * Min fee for JUST the script, NOT including ref inputs
109
- *
110
- * @param {Transaction} tx
111
- * @param {ExUnitPrices} ex_unit_prices
112
- * @returns {bigint}
113
- */
114
- export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): bigint;
115
- /**
116
- * @param {Transaction} tx
117
- * @param {LinearFee} linear_fee
118
- * @returns {bigint}
119
- */
120
- export function min_no_script_fee(tx: Transaction, linear_fee: LinearFee): bigint;
121
- /**
122
- *
123
- * * Calculates the cost of all ref scripts
124
- * * * `total_ref_script_size` - Total size (original, not hashes) of all ref scripts. Duplicate scripts are counted as many times as they occur
125
- *
126
- * @param {Transaction} tx
127
- * @param {LinearFee} linear_fee
128
- * @param {ExUnitPrices} ex_unit_prices
129
- * @param {bigint} total_ref_script_size
130
- * @returns {bigint}
131
- */
132
- export function min_fee(tx: Transaction, linear_fee: LinearFee, ex_unit_prices: ExUnitPrices, total_ref_script_size: bigint): bigint;
133
- /**
134
95
  * Converts JSON to Metadata according to MetadataJsonSchema
135
96
  * @param {string} json
136
97
  * @param {MetadataJsonSchema} schema
@@ -145,11 +106,47 @@ export function encode_json_str_to_metadatum(json: string, schema: MetadataJsonS
145
106
  */
146
107
  export function decode_metadatum_to_json_str(metadatum: TransactionMetadatum, schema: MetadataJsonSchema): string;
147
108
  /**
109
+ * @param {string} json
110
+ * @param {CardanoNodePlutusDatumSchema} schema
111
+ * @returns {PlutusData}
112
+ */
113
+ export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNodePlutusDatumSchema): PlutusData;
114
+ /**
115
+ * @param {PlutusData} datum
116
+ * @param {CardanoNodePlutusDatumSchema} schema
117
+ * @returns {string}
118
+ */
119
+ export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
120
+ /**
121
+ * @param {TransactionOutput} output
122
+ * @param {bigint} coins_per_utxo_byte
123
+ * @returns {bigint}
124
+ */
125
+ export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
126
+ /**
148
127
  * @param {Redeemers} redeemers
149
128
  * @returns {ExUnits}
150
129
  */
151
130
  export function compute_total_ex_units(redeemers: Redeemers): ExUnits;
152
131
  /**
132
+ * encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
133
+ * @param {Uint8Array} bytes
134
+ * @returns {TransactionMetadatum}
135
+ */
136
+ export function encode_arbitrary_bytes_as_metadatum(bytes: Uint8Array): TransactionMetadatum;
137
+ /**
138
+ * decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
139
+ * @param {TransactionMetadatum} metadata
140
+ * @returns {Uint8Array | undefined}
141
+ */
142
+ export function decode_arbitrary_bytes_from_metadatum(metadata: TransactionMetadatum): Uint8Array | undefined;
143
+ /**
144
+ * @param {TransactionHash} tx_body_hash
145
+ * @param {PrivateKey} sk
146
+ * @returns {Vkeywitness}
147
+ */
148
+ export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
149
+ /**
153
150
  * @param {TransactionHash} tx_body_hash
154
151
  * @param {ByronAddress} addr
155
152
  * @param {LegacyDaedalusPrivateKey} key
@@ -164,29 +161,54 @@ export function make_daedalus_bootstrap_witness(tx_body_hash: TransactionHash, a
164
161
  */
165
162
  export function make_icarus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: Bip32PrivateKey): BootstrapWitness;
166
163
  /**
167
- * @param {TransactionHash} tx_body_hash
168
- * @param {PrivateKey} sk
169
- * @returns {Vkeywitness}
164
+ *
165
+ * * Min fee for JUST the script, NOT including ref inputs
166
+ *
167
+ * @param {Transaction} tx
168
+ * @param {ExUnitPrices} ex_unit_prices
169
+ * @returns {bigint}
170
170
  */
171
- export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness;
171
+ export function min_script_fee(tx: Transaction, ex_unit_prices: ExUnitPrices): bigint;
172
172
  /**
173
- * @param {TransactionOutput} output
174
- * @param {bigint} coins_per_utxo_byte
173
+ * @param {Transaction} tx
174
+ * @param {LinearFee} linear_fee
175
175
  * @returns {bigint}
176
176
  */
177
- export function min_ada_required(output: TransactionOutput, coins_per_utxo_byte: bigint): bigint;
177
+ export function min_no_script_fee(tx: Transaction, linear_fee: LinearFee): bigint;
178
178
  /**
179
- * @param {string} json
180
- * @param {CardanoNodePlutusDatumSchema} schema
181
- * @returns {PlutusData}
179
+ *
180
+ * * Calculates the cost of all ref scripts
181
+ * * * `total_ref_script_size` - Total size (original, not hashes) of all ref scripts. Duplicate scripts are counted as many times as they occur
182
+ *
183
+ * @param {Transaction} tx
184
+ * @param {LinearFee} linear_fee
185
+ * @param {ExUnitPrices} ex_unit_prices
186
+ * @param {bigint} total_ref_script_size
187
+ * @returns {bigint}
182
188
  */
183
- export function encode_json_str_to_plutus_datum(json: string, schema: CardanoNodePlutusDatumSchema): PlutusData;
189
+ export function min_fee(tx: Transaction, linear_fee: LinearFee, ex_unit_prices: ExUnitPrices, total_ref_script_size: bigint): bigint;
184
190
  /**
185
- * @param {PlutusData} datum
186
- * @param {CardanoNodePlutusDatumSchema} schema
187
- * @returns {string}
188
191
  */
189
- export function decode_plutus_datum_to_json_str(datum: PlutusData, schema: CardanoNodePlutusDatumSchema): string;
192
+ export enum MetadataJsonSchema {
193
+ NoConversions = 0,
194
+ BasicConversions = 1,
195
+ DetailedSchema = 2,
196
+ }
197
+ /**
198
+ */
199
+ export enum DRepKind {
200
+ Key = 0,
201
+ Script = 1,
202
+ AlwaysAbstain = 2,
203
+ AlwaysNoConfidence = 3,
204
+ }
205
+ /**
206
+ */
207
+ export enum Language {
208
+ PlutusV1 = 0,
209
+ PlutusV2 = 1,
210
+ PlutusV3 = 2,
211
+ }
190
212
  /**
191
213
  */
192
214
  export enum RedeemersKind {
@@ -194,46 +216,57 @@ export enum RedeemersKind {
194
216
  MapRedeemerKeyToRedeemerVal = 1,
195
217
  }
196
218
  /**
197
- * Which version of the CIP25 spec to use. See CIP25 for details.
198
- * This will change how things are encoded but for the most part contains
199
- * the same information.
200
219
  */
201
- export enum CIP25Version {
220
+ export enum ChunkableStringKind {
221
+ Single = 0,
222
+ Chunked = 1,
223
+ }
202
224
  /**
203
- * Initial version of CIP25 with only string (utf8) asset names allowed.
204
225
  */
205
- V1 = 0,
226
+ export enum DelegationDistributionKind {
227
+ Weighted = 0,
228
+ Legacy = 1,
229
+ }
206
230
  /**
207
- * Second version of CIP25. Supports any type of asset names.
208
231
  */
209
- V2 = 1,
232
+ export enum NonceKind {
233
+ Identity = 0,
234
+ Hash = 1,
210
235
  }
211
236
  /**
212
237
  */
213
- export enum Language {
214
- PlutusV1 = 0,
215
- PlutusV2 = 1,
216
- PlutusV3 = 2,
238
+ export enum DatumOptionKind {
239
+ Hash = 0,
240
+ Datum = 1,
217
241
  }
218
242
  /**
243
+ * Careful: this enum doesn't include the network ID part of the header
244
+ * ex: base address isn't 0b0000_0000 but instead 0b0000
245
+ * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
219
246
  */
220
- export enum DelegationDistributionKind {
221
- Weighted = 0,
222
- Legacy = 1,
247
+ export enum AddressHeaderKind {
248
+ BasePaymentKeyStakeKey = 0,
249
+ BasePaymentScriptStakeKey = 1,
250
+ BasePaymentKeyStakeScript = 2,
251
+ BasePaymentScriptStakeScript = 3,
252
+ PointerKey = 4,
253
+ PointerScript = 5,
254
+ EnterpriseKey = 6,
255
+ EnterpriseScript = 7,
256
+ Byron = 8,
257
+ RewardKey = 14,
258
+ RewardScript = 15,
223
259
  }
224
260
  /**
225
261
  */
226
- export enum RelayKind {
227
- SingleHostAddr = 0,
228
- SingleHostName = 1,
229
- MultiHostName = 2,
262
+ export enum StakeDistributionKind {
263
+ SingleKey = 0,
264
+ BootstrapEra = 1,
230
265
  }
231
266
  /**
232
267
  */
233
- export enum AuxiliaryDataKind {
234
- Shelley = 0,
235
- ShelleyMA = 1,
236
- Conway = 2,
268
+ export enum ChangeSelectionAlgo {
269
+ Default = 0,
237
270
  }
238
271
  /**
239
272
  */
@@ -244,66 +277,71 @@ export enum ByronAddrType {
244
277
  }
245
278
  /**
246
279
  */
247
- export enum CertificateKind {
248
- StakeRegistration = 0,
249
- StakeDeregistration = 1,
250
- StakeDelegation = 2,
251
- PoolRegistration = 3,
252
- PoolRetirement = 4,
253
- RegCert = 5,
254
- UnregCert = 6,
255
- VoteDelegCert = 7,
256
- StakeVoteDelegCert = 8,
257
- StakeRegDelegCert = 9,
258
- VoteRegDelegCert = 10,
259
- StakeVoteRegDelegCert = 11,
260
- AuthCommitteeHotCert = 12,
261
- ResignCommitteeColdCert = 13,
262
- RegDrepCert = 14,
263
- UnregDrepCert = 15,
264
- UpdateDrepCert = 16,
280
+ export enum RedeemerTag {
281
+ Spend = 0,
282
+ Mint = 1,
283
+ Cert = 2,
284
+ Reward = 3,
285
+ Voting = 4,
286
+ Proposing = 5,
265
287
  }
266
288
  /**
267
289
  */
268
- export enum StakeDistributionKind {
269
- SingleKey = 0,
270
- BootstrapEra = 1,
290
+ export enum AuxiliaryDataKind {
291
+ Shelley = 0,
292
+ ShelleyMA = 1,
293
+ Conway = 2,
271
294
  }
272
295
  /**
273
296
  */
274
- export enum Vote {
275
- No = 0,
276
- Yes = 1,
277
- Abstain = 2,
297
+ export enum RelayKind {
298
+ SingleHostAddr = 0,
299
+ SingleHostName = 1,
300
+ MultiHostName = 2,
278
301
  }
279
302
  /**
280
303
  */
281
- export enum NonceKind {
282
- Identity = 0,
283
- Hash = 1,
304
+ export enum VoterKind {
305
+ ConstitutionalCommitteeHotKeyHash = 0,
306
+ ConstitutionalCommitteeHotScriptHash = 1,
307
+ DRepKeyHash = 2,
308
+ DRepScriptHash = 3,
309
+ StakingPoolKeyHash = 4,
284
310
  }
285
311
  /**
286
312
  */
287
- export enum ChunkableStringKind {
288
- Single = 0,
289
- Chunked = 1,
313
+ export enum PlutusDataKind {
314
+ ConstrPlutusData = 0,
315
+ Map = 1,
316
+ List = 2,
317
+ Integer = 3,
318
+ Bytes = 4,
290
319
  }
291
320
  /**
292
321
  */
293
- export enum DatumOptionKind {
294
- Hash = 0,
295
- Datum = 1,
322
+ export enum SpendingDataKind {
323
+ SpendingDataPubKey = 0,
324
+ SpendingDataScript = 1,
325
+ SpendingDataRedeem = 2,
296
326
  }
297
327
  /**
298
328
  */
299
- export enum ChangeSelectionAlgo {
300
- Default = 0,
329
+ export enum AddressKind {
330
+ Base = 0,
331
+ Ptr = 1,
332
+ Enterprise = 2,
333
+ Reward = 3,
334
+ Byron = 4,
301
335
  }
302
336
  /**
303
337
  */
304
- export enum CredentialKind {
305
- PubKey = 0,
306
- Script = 1,
338
+ export enum NativeScriptKind {
339
+ ScriptPubkey = 0,
340
+ ScriptAll = 1,
341
+ ScriptAny = 2,
342
+ ScriptNOfK = 3,
343
+ ScriptInvalidBefore = 4,
344
+ ScriptInvalidHereafter = 5,
307
345
  }
308
346
  /**
309
347
  * JSON <-> PlutusData conversion schemas.
@@ -359,12 +397,23 @@ export enum CardanoNodePlutusDatumSchema {
359
397
  }
360
398
  /**
361
399
  */
362
- export enum TransactionMetadatumKind {
363
- Map = 0,
364
- List = 1,
365
- Int = 2,
366
- Bytes = 3,
367
- Text = 4,
400
+ export enum TransactionOutputKind {
401
+ AlonzoFormatTxOut = 0,
402
+ ConwayFormatTxOut = 1,
403
+ }
404
+ /**
405
+ */
406
+ export enum ScriptKind {
407
+ Native = 0,
408
+ PlutusV1 = 1,
409
+ PlutusV2 = 2,
410
+ PlutusV3 = 3,
411
+ }
412
+ /**
413
+ */
414
+ export enum CredentialKind {
415
+ PubKey = 0,
416
+ Script = 1,
368
417
  }
369
418
  /**
370
419
  */
@@ -378,24 +427,6 @@ export enum GovActionKind {
378
427
  InfoAction = 6,
379
428
  }
380
429
  /**
381
- * Careful: this enum doesn't include the network ID part of the header
382
- * ex: base address isn't 0b0000_0000 but instead 0b0000
383
- * Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
384
- */
385
- export enum AddressHeaderKind {
386
- BasePaymentKeyStakeKey = 0,
387
- BasePaymentScriptStakeKey = 1,
388
- BasePaymentKeyStakeScript = 2,
389
- BasePaymentScriptStakeScript = 3,
390
- PointerKey = 4,
391
- PointerScript = 5,
392
- EnterpriseKey = 6,
393
- EnterpriseScript = 7,
394
- Byron = 8,
395
- RewardKey = 14,
396
- RewardScript = 15,
397
- }
398
- /**
399
430
  */
400
431
  export enum CoinSelectionStrategyCIP2 {
401
432
  /**
@@ -417,86 +448,55 @@ export enum CoinSelectionStrategyCIP2 {
417
448
  }
418
449
  /**
419
450
  */
420
- export enum AddressKind {
421
- Base = 0,
422
- Ptr = 1,
423
- Enterprise = 2,
424
- Reward = 3,
425
- Byron = 4,
426
- }
427
- /**
428
- */
429
- export enum DRepKind {
430
- Key = 0,
431
- Script = 1,
432
- AlwaysAbstain = 2,
433
- AlwaysNoConfidence = 3,
434
- }
435
- /**
436
- */
437
- export enum PlutusDataKind {
438
- ConstrPlutusData = 0,
439
- Map = 1,
440
- List = 2,
441
- Integer = 3,
442
- Bytes = 4,
443
- }
444
- /**
445
- */
446
- export enum MetadataJsonSchema {
447
- NoConversions = 0,
448
- BasicConversions = 1,
449
- DetailedSchema = 2,
450
- }
451
- /**
452
- */
453
- export enum ScriptKind {
454
- Native = 0,
455
- PlutusV1 = 1,
456
- PlutusV2 = 2,
457
- PlutusV3 = 3,
451
+ export enum Vote {
452
+ No = 0,
453
+ Yes = 1,
454
+ Abstain = 2,
458
455
  }
459
456
  /**
460
457
  */
461
- export enum NativeScriptKind {
462
- ScriptPubkey = 0,
463
- ScriptAll = 1,
464
- ScriptAny = 2,
465
- ScriptNOfK = 3,
466
- ScriptInvalidBefore = 4,
467
- ScriptInvalidHereafter = 5,
458
+ export enum CertificateKind {
459
+ StakeRegistration = 0,
460
+ StakeDeregistration = 1,
461
+ StakeDelegation = 2,
462
+ PoolRegistration = 3,
463
+ PoolRetirement = 4,
464
+ RegCert = 5,
465
+ UnregCert = 6,
466
+ VoteDelegCert = 7,
467
+ StakeVoteDelegCert = 8,
468
+ StakeRegDelegCert = 9,
469
+ VoteRegDelegCert = 10,
470
+ StakeVoteRegDelegCert = 11,
471
+ AuthCommitteeHotCert = 12,
472
+ ResignCommitteeColdCert = 13,
473
+ RegDrepCert = 14,
474
+ UnregDrepCert = 15,
475
+ UpdateDrepCert = 16,
468
476
  }
469
477
  /**
470
478
  */
471
- export enum TransactionOutputKind {
472
- AlonzoFormatTxOut = 0,
473
- ConwayFormatTxOut = 1,
479
+ export enum TransactionMetadatumKind {
480
+ Map = 0,
481
+ List = 1,
482
+ Int = 2,
483
+ Bytes = 3,
484
+ Text = 4,
474
485
  }
475
486
  /**
487
+ * Which version of the CIP25 spec to use. See CIP25 for details.
488
+ * This will change how things are encoded but for the most part contains
489
+ * the same information.
476
490
  */
477
- export enum SpendingDataKind {
478
- SpendingDataPubKey = 0,
479
- SpendingDataScript = 1,
480
- SpendingDataRedeem = 2,
481
- }
491
+ export enum CIP25Version {
482
492
  /**
493
+ * Initial version of CIP25 with only string (utf8) asset names allowed.
483
494
  */
484
- export enum RedeemerTag {
485
- Spend = 0,
486
- Mint = 1,
487
- Cert = 2,
488
- Reward = 3,
489
- Voting = 4,
490
- Proposing = 5,
491
- }
495
+ V1 = 0,
492
496
  /**
497
+ * Second version of CIP25. Supports any type of asset names.
493
498
  */
494
- export enum VoterKind {
495
- ConstitutionalCommitteeHotKeyHash = 0,
496
- ConstitutionalCommitteeHotScriptHash = 1,
497
- DRepKeyHash = 2,
498
- DRepScriptHash = 3,
499
- StakingPoolKeyHash = 4,
499
+ V2 = 1,
500
500
  }
501
501
  /**
502
502
  */
@@ -1072,6 +1072,51 @@ export class AssetName {
1072
1072
  free(): void;
1073
1073
  /**
1074
1074
  *
1075
+ * * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
1076
+ *
1077
+ * @param {string} utf8_str
1078
+ * @returns {AssetName}
1079
+ */
1080
+ static from_str(utf8_str: string): AssetName;
1081
+ /**
1082
+ *
1083
+ * * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
1084
+ *
1085
+ * @returns {string}
1086
+ */
1087
+ to_str(): string;
1088
+ /**
1089
+ *
1090
+ * * Direct raw bytes without any CBOR structure
1091
+ *
1092
+ * @returns {Uint8Array}
1093
+ */
1094
+ to_raw_bytes(): Uint8Array;
1095
+ /**
1096
+ *
1097
+ * * Parse from the direct raw bytes, without any CBOR structure
1098
+ *
1099
+ * @param {Uint8Array} bytes
1100
+ * @returns {AssetName}
1101
+ */
1102
+ static from_raw_bytes(bytes: Uint8Array): AssetName;
1103
+ /**
1104
+ *
1105
+ * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1106
+ *
1107
+ * @returns {string}
1108
+ */
1109
+ to_hex(): string;
1110
+ /**
1111
+ *
1112
+ * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1113
+ *
1114
+ * @param {string} input
1115
+ * @returns {AssetName}
1116
+ */
1117
+ static from_hex(input: string): AssetName;
1118
+ /**
1119
+ *
1075
1120
  * * Serialize this type to CBOR bytes
1076
1121
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
1077
1122
  * * If created from scratch the CBOR will be canonical.
@@ -1132,51 +1177,6 @@ export class AssetName {
1132
1177
  * @returns {AssetName}
1133
1178
  */
1134
1179
  static from_json(json: string): AssetName;
1135
- /**
1136
- *
1137
- * * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
1138
- *
1139
- * @param {string} utf8_str
1140
- * @returns {AssetName}
1141
- */
1142
- static from_str(utf8_str: string): AssetName;
1143
- /**
1144
- *
1145
- * * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
1146
- *
1147
- * @returns {string}
1148
- */
1149
- to_str(): string;
1150
- /**
1151
- *
1152
- * * Direct raw bytes without any CBOR structure
1153
- *
1154
- * @returns {Uint8Array}
1155
- */
1156
- to_raw_bytes(): Uint8Array;
1157
- /**
1158
- *
1159
- * * Parse from the direct raw bytes, without any CBOR structure
1160
- *
1161
- * @param {Uint8Array} bytes
1162
- * @returns {AssetName}
1163
- */
1164
- static from_raw_bytes(bytes: Uint8Array): AssetName;
1165
- /**
1166
- *
1167
- * * Direct raw bytes without any CBOR structure, as a hex-encoded string
1168
- *
1169
- * @returns {string}
1170
- */
1171
- to_hex(): string;
1172
- /**
1173
- *
1174
- * * Parse from a hex string of the direct raw bytes, without any CBOR structure
1175
- *
1176
- * @param {string} input
1177
- * @returns {AssetName}
1178
- */
1179
- static from_hex(input: string): AssetName;
1180
1180
  }
1181
1181
  /**
1182
1182
  */
@@ -7597,6 +7597,25 @@ export class PlutusData {
7597
7597
  free(): void;
7598
7598
  /**
7599
7599
  *
7600
+ * * Convert to a Datum that will serialize equivalent to cardano-node's format
7601
+ * *
7602
+ * * Please VERY STRONGLY consider using PlutusData::from_cbor_bytes() instead wherever possible.
7603
+ * * You should try to never rely on a tool encoding CBOR a certain way as there are many possible,
7604
+ * * and just because it matches with a specific datum, doesn't mean that a different datum won't differ.
7605
+ * * This is critical as that means the datum hash won't match.
7606
+ * * After creation a datum (or other hashable CBOR object) should only be treated as raw CBOR bytes,
7607
+ * * or through a type that respects its specific CBOR format e.g. CML's PlutusData::from_cbor_bytes()
7608
+ * *
7609
+ * * This function is just here in case there's no possible way at all to create from CBOR bytes and
7610
+ * * thus cold only be constructed manually and then had this function called on it.
7611
+ * *
7612
+ * * This is also the format that CSL and Lucid use
7613
+ *
7614
+ * @returns {PlutusData}
7615
+ */
7616
+ to_cardano_node_format(): PlutusData;
7617
+ /**
7618
+ *
7600
7619
  * * Serialize this type to CBOR bytes
7601
7620
  * * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
7602
7621
  * * If created from scratch the CBOR will be canonical.