@cardananium/cquisitor-lib 0.1.0-beta.48 → 0.1.0-beta.49

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/README.md CHANGED
@@ -27,7 +27,7 @@ Functions:
27
27
  - `cbor_to_json(cbor_hex)` - Converts raw CBOR to JSON with positional information, supporting indefinite arrays/maps and all CBOR types. Each node carries an optional `oddities` array flagging deviations from RFC 8949 deterministic encoding (overlong integers/floats, indefinite length, unsorted/duplicate map keys, non-canonical bignums). Never throws on malformed input — returns a `{ok, value}` / `{ok: false, error, partial?}` union where `error` is a structured `CborDecodeError` (kind / byte offset / byte span / semantic `path`) and `partial` is the sub-tree decoded before the failure, with every unfinished container flagged `incomplete: true`.
28
28
  - `validate_cddl(cddl)` - Parses a CDDL schema; reports parse errors and unresolved rule references (e.g. `thing = [unknown_rule, int]` → `kind: "unresolved_references"`).
29
29
  - `validate_cbor_against_cddl(cbor_hex, cddl, rule_name)` - Validates a CBOR payload against a named rule. Errors carry `kind`, `expected`, semantic `path`, byte/anchor spans, and an `additional` array when multiple violations fire.
30
- - `cbor_to_schema_json(cbor_hex, cddl, rule_name)` - Maps decoded CBOR onto a CDDL schema and returns labelled JSON (e.g. Cardano `[body, witness_set, bool, aux]` becomes `{transaction_body, transaction_witness_set, ...}`). Handles generics (`set<a>`), tagged sets, type rules used as field labels, and a few well-known tags (bignum → string number, datetime → ISO string). Sub-structures the schema doesn't cover surface under `@extra` / `@positional` so partial matches don't lose data.
30
+ - `decode_cbor_against_cddl(cbor_hex, cddl, rule_name)` - Maps decoded CBOR onto a CDDL schema and returns labelled JSON (e.g. Cardano `[body, witness_set, bool, aux]` becomes `{transaction_body, transaction_witness_set, ...}`). Handles generics (`set<a>`), tagged sets, type rules used as field labels, and a few well-known tags (bignum → string number, datetime → ISO string). Sub-structures the schema doesn't cover surface under `@extra` / `@positional` so partial matches don't lose data.
31
31
 
32
32
  ### Plutus Script Decoder
33
33
 
@@ -373,12 +373,12 @@ validate_cbor_against_cddl("01", "thing = tstr", "thing");
373
373
 
374
374
  `error.kind` values: `"parse_error"`, `"unresolved_references"`, `"missing_rule"`, `"input_parse"`, `"mismatch"`, `"map_cut"`, `"generic"`. When multiple violations fire, the headline goes in the top-level fields and the rest land in `error.additional`.
375
375
 
376
- #### `cbor_to_schema_json(cbor_hex: string, cddl: string, rule_name: string): unknown`
376
+ #### `decode_cbor_against_cddl(cbor_hex: string, cddl: string, rule_name: string): unknown`
377
377
 
378
378
  Walks the CDDL alongside the decoded CBOR and produces a JSON tree where positional/numeric-keyed structures are replaced with the names the schema declares. Useful for turning a Cardano transaction CBOR into something inspectable without hand-mapping every field.
379
379
 
380
380
  ```typescript
381
- cbor_to_schema_json(txHex, conwayCddl, "transaction");
381
+ decode_cbor_against_cddl(txHex, conwayCddl, "transaction");
382
382
  // {
383
383
  // transaction_body: {
384
384
  // 0: { "@tag": 258, "@value": [{ transaction_id: "16b6...", index: 0 }] },
@@ -187,7 +187,7 @@ export function validate_cbor_against_cddl(
187
187
  * @param {string} rule_name
188
188
  * @returns {any}
189
189
  */
190
- export function cbor_to_schema_json(
190
+ export function decode_cbor_against_cddl(
191
191
  cbor_hex: string,
192
192
  cddl: string,
193
193
  rule_name: string
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./cquisitor_lib_bg.js";
5
5
  __wbg_set_wasm(wasm);
6
6
  wasm.__wbindgen_start();
7
7
  export {
8
- Address, AddressKind, Anchor, AnchorDataHash, AssetName, AssetNames, Assets, AuxiliaryData, AuxiliaryDataHash, AuxiliaryDataSet, BaseAddress, BigInt, BigNum, Bip32PrivateKey, Bip32PublicKey, Block, BlockEra, BlockHash, BootstrapWitness, BootstrapWitnesses, ByronAddress, ByronAddressType, CborContainerType, CborSetType, Certificate, CertificateKind, Certificates, CertificatesBuilder, ChangeConfig, CoinSelectionStrategyCIP2, Committee, CommitteeColdResign, CommitteeHotAuth, Constitution, ConstrPlutusData, CostModel, Costmdls, CredKind, Credential, Credentials, DNSRecordAorAAAA, DNSRecordSRV, DRep, DRepDeregistration, DRepKind, DRepRegistration, DRepUpdate, DRepVotingThresholds, DataCost, DataHash, DatumSource, Ed25519KeyHash, Ed25519KeyHashes, Ed25519Signature, EnterpriseAddress, ExUnitPrices, ExUnits, FixedBlock, FixedTransaction, FixedTransactionBodies, FixedTransactionBody, FixedTxWitnessesSet, FixedVersionedBlock, GeneralTransactionMetadata, GenesisDelegateHash, GenesisHash, GenesisHashes, GenesisKeyDelegation, GovernanceAction, GovernanceActionId, GovernanceActionIds, GovernanceActionKind, HardForkInitiationAction, Header, HeaderBody, InfoAction, Int, Ipv4, Ipv6, KESSignature, KESVKey, Language, LanguageKind, Languages, LegacyDaedalusPrivateKey, LinearFee, MIRKind, MIRPot, MIRToStakeCredentials, MalformedAddress, MetadataJsonSchema, MetadataList, MetadataMap, Mint, MintAssets, MintBuilder, MintWitness, MintsAssets, MoveInstantaneousReward, MoveInstantaneousRewardsCert, MultiAsset, MultiHostName, NativeScript, NativeScriptKind, NativeScriptSource, NativeScripts, NetworkId, NetworkIdKind, NetworkInfo, NewConstitutionAction, NoConfidenceAction, Nonce, OperationalCert, OutputDatum, ParameterChangeAction, PlutusData, PlutusDataKind, PlutusDatumSchema, PlutusList, PlutusMap, PlutusMapValues, PlutusScript, PlutusScriptSource, PlutusScripts, PlutusWitness, PlutusWitnesses, Pointer, PointerAddress, PoolMetadata, PoolMetadataHash, PoolParams, PoolRegistration, PoolRetirement, PoolVotingThresholds, PrivateKey, ProposedProtocolParameterUpdates, ProtocolParamUpdate, ProtocolVersion, PublicKey, PublicKeys, Redeemer, RedeemerTag, RedeemerTagKind, Redeemers, Relay, RelayKind, Relays, RewardAddress, RewardAddresses, ScriptAll, ScriptAny, ScriptDataHash, ScriptHash, ScriptHashNamespace, ScriptHashes, ScriptNOfK, ScriptPubkey, ScriptRef, ScriptSchema, SingleHostAddr, SingleHostName, StakeAndVoteDelegation, StakeDelegation, StakeDeregistration, StakeRegistration, StakeRegistrationAndDelegation, StakeVoteRegistrationAndDelegation, Strings, TimelockExpiry, TimelockStart, Transaction, TransactionBatch, TransactionBatchList, TransactionBodies, TransactionBody, TransactionBuilder, TransactionBuilderConfig, TransactionBuilderConfigBuilder, TransactionHash, TransactionInput, TransactionInputs, TransactionMetadatum, TransactionMetadatumKind, TransactionMetadatumLabels, TransactionOutput, TransactionOutputAmountBuilder, TransactionOutputBuilder, TransactionOutputs, TransactionSetsState, TransactionUnspentOutput, TransactionUnspentOutputs, TransactionWitnessSet, TransactionWitnessSets, TreasuryWithdrawals, TreasuryWithdrawalsAction, TxInputsBuilder, URL, UnitInterval, Update, UpdateCommitteeAction, VRFCert, VRFKeyHash, VRFVKey, Value, VersionedBlock, Vkey, Vkeys, Vkeywitness, Vkeywitnesses, VoteDelegation, VoteKind, VoteRegistrationAndDelegation, Voter, VoterKind, Voters, VotingBuilder, VotingProcedure, VotingProcedures, VotingProposal, VotingProposalBuilder, VotingProposals, Withdrawals, WithdrawalsBuilder, calculate_ex_units_ceil_cost, cbor_to_json, cbor_to_schema_json, cddl_from_str, check_block_or_tx_signatures, create_send_all, decode_arbitrary_bytes_from_metadatum, decode_metadatum_to_json_str, decode_plutus_datum_to_json_str, decode_plutus_program_pretty_uplc, decode_plutus_program_uplc_json, decode_specific_type, decrypt_with_password, encode_arbitrary_bytes_as_metadatum, encode_json_str_to_metadatum, encode_json_str_to_native_script, encode_json_str_to_plutus_datum, encrypt_with_password, execute_tx_scripts, extract_hashes_from_transaction_js, get_decodable_types, get_deposit, get_implicit_input, get_necessary_data_list_js, get_possible_types_for_input, get_ref_script_bytes, get_utxo_list_from_tx, has_transaction_set_tag, hash_auxiliary_data, hash_plutus_data, hash_script_data, make_daedalus_bootstrap_witness, make_icarus_bootstrap_witness, make_vkey_witness, min_ada_for_output, min_fee, min_ref_script_fee, min_script_fee, validate_cbor_against_cddl, validate_cbor_from_slice, validate_cddl, validate_cddl_from_str, validate_json_from_str, validate_transaction_js
8
+ Address, AddressKind, Anchor, AnchorDataHash, AssetName, AssetNames, Assets, AuxiliaryData, AuxiliaryDataHash, AuxiliaryDataSet, BaseAddress, BigInt, BigNum, Bip32PrivateKey, Bip32PublicKey, Block, BlockEra, BlockHash, BootstrapWitness, BootstrapWitnesses, ByronAddress, ByronAddressType, CborContainerType, CborSetType, Certificate, CertificateKind, Certificates, CertificatesBuilder, ChangeConfig, CoinSelectionStrategyCIP2, Committee, CommitteeColdResign, CommitteeHotAuth, Constitution, ConstrPlutusData, CostModel, Costmdls, CredKind, Credential, Credentials, DNSRecordAorAAAA, DNSRecordSRV, DRep, DRepDeregistration, DRepKind, DRepRegistration, DRepUpdate, DRepVotingThresholds, DataCost, DataHash, DatumSource, Ed25519KeyHash, Ed25519KeyHashes, Ed25519Signature, EnterpriseAddress, ExUnitPrices, ExUnits, FixedBlock, FixedTransaction, FixedTransactionBodies, FixedTransactionBody, FixedTxWitnessesSet, FixedVersionedBlock, GeneralTransactionMetadata, GenesisDelegateHash, GenesisHash, GenesisHashes, GenesisKeyDelegation, GovernanceAction, GovernanceActionId, GovernanceActionIds, GovernanceActionKind, HardForkInitiationAction, Header, HeaderBody, InfoAction, Int, Ipv4, Ipv6, KESSignature, KESVKey, Language, LanguageKind, Languages, LegacyDaedalusPrivateKey, LinearFee, MIRKind, MIRPot, MIRToStakeCredentials, MalformedAddress, MetadataJsonSchema, MetadataList, MetadataMap, Mint, MintAssets, MintBuilder, MintWitness, MintsAssets, MoveInstantaneousReward, MoveInstantaneousRewardsCert, MultiAsset, MultiHostName, NativeScript, NativeScriptKind, NativeScriptSource, NativeScripts, NetworkId, NetworkIdKind, NetworkInfo, NewConstitutionAction, NoConfidenceAction, Nonce, OperationalCert, OutputDatum, ParameterChangeAction, PlutusData, PlutusDataKind, PlutusDatumSchema, PlutusList, PlutusMap, PlutusMapValues, PlutusScript, PlutusScriptSource, PlutusScripts, PlutusWitness, PlutusWitnesses, Pointer, PointerAddress, PoolMetadata, PoolMetadataHash, PoolParams, PoolRegistration, PoolRetirement, PoolVotingThresholds, PrivateKey, ProposedProtocolParameterUpdates, ProtocolParamUpdate, ProtocolVersion, PublicKey, PublicKeys, Redeemer, RedeemerTag, RedeemerTagKind, Redeemers, Relay, RelayKind, Relays, RewardAddress, RewardAddresses, ScriptAll, ScriptAny, ScriptDataHash, ScriptHash, ScriptHashNamespace, ScriptHashes, ScriptNOfK, ScriptPubkey, ScriptRef, ScriptSchema, SingleHostAddr, SingleHostName, StakeAndVoteDelegation, StakeDelegation, StakeDeregistration, StakeRegistration, StakeRegistrationAndDelegation, StakeVoteRegistrationAndDelegation, Strings, TimelockExpiry, TimelockStart, Transaction, TransactionBatch, TransactionBatchList, TransactionBodies, TransactionBody, TransactionBuilder, TransactionBuilderConfig, TransactionBuilderConfigBuilder, TransactionHash, TransactionInput, TransactionInputs, TransactionMetadatum, TransactionMetadatumKind, TransactionMetadatumLabels, TransactionOutput, TransactionOutputAmountBuilder, TransactionOutputBuilder, TransactionOutputs, TransactionSetsState, TransactionUnspentOutput, TransactionUnspentOutputs, TransactionWitnessSet, TransactionWitnessSets, TreasuryWithdrawals, TreasuryWithdrawalsAction, TxInputsBuilder, URL, UnitInterval, Update, UpdateCommitteeAction, VRFCert, VRFKeyHash, VRFVKey, Value, VersionedBlock, Vkey, Vkeys, Vkeywitness, Vkeywitnesses, VoteDelegation, VoteKind, VoteRegistrationAndDelegation, Voter, VoterKind, Voters, VotingBuilder, VotingProcedure, VotingProcedures, VotingProposal, VotingProposalBuilder, VotingProposals, Withdrawals, WithdrawalsBuilder, calculate_ex_units_ceil_cost, cbor_to_json, cddl_from_str, check_block_or_tx_signatures, create_send_all, decode_arbitrary_bytes_from_metadatum, decode_cbor_against_cddl, decode_metadatum_to_json_str, decode_plutus_datum_to_json_str, decode_plutus_program_pretty_uplc, decode_plutus_program_uplc_json, decode_specific_type, decrypt_with_password, encode_arbitrary_bytes_as_metadatum, encode_json_str_to_metadatum, encode_json_str_to_native_script, encode_json_str_to_plutus_datum, encrypt_with_password, execute_tx_scripts, extract_hashes_from_transaction_js, get_decodable_types, get_deposit, get_implicit_input, get_necessary_data_list_js, get_possible_types_for_input, get_ref_script_bytes, get_utxo_list_from_tx, has_transaction_set_tag, hash_auxiliary_data, hash_plutus_data, hash_script_data, make_daedalus_bootstrap_witness, make_icarus_bootstrap_witness, make_vkey_witness, min_ada_for_output, min_fee, min_ref_script_fee, min_script_fee, validate_cbor_against_cddl, validate_cbor_from_slice, validate_cddl, validate_cddl_from_str, validate_json_from_str, validate_transaction_js
9
9
  } from "./cquisitor_lib_bg.js";
@@ -28456,33 +28456,6 @@ export function cbor_to_json(cbor_hex) {
28456
28456
  return takeFromExternrefTable0(ret[0]);
28457
28457
  }
28458
28458
 
28459
- /**
28460
- * Map decoded CBOR onto a CDDL schema and return labelled JSON.
28461
- *
28462
- * Where `cbor_to_json` returns positional CBOR (numeric map keys, raw
28463
- * arrays), this walks the schema in parallel and replaces those with
28464
- * the named fields the CDDL declares. On unknown / unmatched
28465
- * sub-structures it falls back to the raw representation rather than
28466
- * erroring, so partial matches still yield useful output.
28467
- * @param {string} cbor_hex
28468
- * @param {string} cddl
28469
- * @param {string} rule_name
28470
- * @returns {any}
28471
- */
28472
- export function cbor_to_schema_json(cbor_hex, cddl, rule_name) {
28473
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28474
- const len0 = WASM_VECTOR_LEN;
28475
- const ptr1 = passStringToWasm0(cddl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28476
- const len1 = WASM_VECTOR_LEN;
28477
- const ptr2 = passStringToWasm0(rule_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28478
- const len2 = WASM_VECTOR_LEN;
28479
- const ret = wasm.cbor_to_schema_json(ptr0, len0, ptr1, len1, ptr2, len2);
28480
- if (ret[2]) {
28481
- throw takeFromExternrefTable0(ret[1]);
28482
- }
28483
- return takeFromExternrefTable0(ret[0]);
28484
- }
28485
-
28486
28459
  /**
28487
28460
  * Returns a `ast::CDDL` wrapped in `JsValue` from a `&str`
28488
28461
  *
@@ -28561,6 +28534,33 @@ export function decode_arbitrary_bytes_from_metadatum(metadata) {
28561
28534
  return v1;
28562
28535
  }
28563
28536
 
28537
+ /**
28538
+ * Map decoded CBOR onto a CDDL schema and return labelled JSON.
28539
+ *
28540
+ * Where `cbor_to_json` returns positional CBOR (numeric map keys, raw
28541
+ * arrays), this walks the schema in parallel and replaces those with
28542
+ * the named fields the CDDL declares. On unknown / unmatched
28543
+ * sub-structures it falls back to the raw representation rather than
28544
+ * erroring, so partial matches still yield useful output.
28545
+ * @param {string} cbor_hex
28546
+ * @param {string} cddl
28547
+ * @param {string} rule_name
28548
+ * @returns {any}
28549
+ */
28550
+ export function decode_cbor_against_cddl(cbor_hex, cddl, rule_name) {
28551
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28552
+ const len0 = WASM_VECTOR_LEN;
28553
+ const ptr1 = passStringToWasm0(cddl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28554
+ const len1 = WASM_VECTOR_LEN;
28555
+ const ptr2 = passStringToWasm0(rule_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28556
+ const len2 = WASM_VECTOR_LEN;
28557
+ const ret = wasm.decode_cbor_against_cddl(ptr0, len0, ptr1, len1, ptr2, len2);
28558
+ if (ret[2]) {
28559
+ throw takeFromExternrefTable0(ret[1]);
28560
+ }
28561
+ return takeFromExternrefTable0(ret[0]);
28562
+ }
28563
+
28564
28564
  /**
28565
28565
  * @param {TransactionMetadatum} metadatum
28566
28566
  * @param {MetadataJsonSchema} schema
Binary file
@@ -5,7 +5,7 @@ export const decode_specific_type: (a: number, b: number, c: number, d: number,
5
5
  export const get_decodable_types: () => [number, number];
6
6
  export const get_possible_types_for_input: (a: number, b: number) => [number, number];
7
7
  export const cbor_to_json: (a: number, b: number) => [number, number, number];
8
- export const cbor_to_schema_json: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
8
+ export const decode_cbor_against_cddl: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
9
9
  export const validate_cbor_against_cddl: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
10
10
  export const validate_cddl: (a: number, b: number) => [number, number, number];
11
11
  export const check_block_or_tx_signatures: (a: number, b: number) => [number, number, number];
@@ -187,7 +187,7 @@ export function validate_cbor_against_cddl(
187
187
  * @param {string} rule_name
188
188
  * @returns {any}
189
189
  */
190
- export function cbor_to_schema_json(
190
+ export function decode_cbor_against_cddl(
191
191
  cbor_hex: string,
192
192
  cddl: string,
193
193
  rule_name: string
@@ -28683,34 +28683,6 @@ function cbor_to_json(cbor_hex) {
28683
28683
  }
28684
28684
  exports.cbor_to_json = cbor_to_json;
28685
28685
 
28686
- /**
28687
- * Map decoded CBOR onto a CDDL schema and return labelled JSON.
28688
- *
28689
- * Where `cbor_to_json` returns positional CBOR (numeric map keys, raw
28690
- * arrays), this walks the schema in parallel and replaces those with
28691
- * the named fields the CDDL declares. On unknown / unmatched
28692
- * sub-structures it falls back to the raw representation rather than
28693
- * erroring, so partial matches still yield useful output.
28694
- * @param {string} cbor_hex
28695
- * @param {string} cddl
28696
- * @param {string} rule_name
28697
- * @returns {any}
28698
- */
28699
- function cbor_to_schema_json(cbor_hex, cddl, rule_name) {
28700
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28701
- const len0 = WASM_VECTOR_LEN;
28702
- const ptr1 = passStringToWasm0(cddl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28703
- const len1 = WASM_VECTOR_LEN;
28704
- const ptr2 = passStringToWasm0(rule_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28705
- const len2 = WASM_VECTOR_LEN;
28706
- const ret = wasm.cbor_to_schema_json(ptr0, len0, ptr1, len1, ptr2, len2);
28707
- if (ret[2]) {
28708
- throw takeFromExternrefTable0(ret[1]);
28709
- }
28710
- return takeFromExternrefTable0(ret[0]);
28711
- }
28712
- exports.cbor_to_schema_json = cbor_to_schema_json;
28713
-
28714
28686
  /**
28715
28687
  * Returns a `ast::CDDL` wrapped in `JsValue` from a `&str`
28716
28688
  *
@@ -28793,6 +28765,34 @@ function decode_arbitrary_bytes_from_metadatum(metadata) {
28793
28765
  }
28794
28766
  exports.decode_arbitrary_bytes_from_metadatum = decode_arbitrary_bytes_from_metadatum;
28795
28767
 
28768
+ /**
28769
+ * Map decoded CBOR onto a CDDL schema and return labelled JSON.
28770
+ *
28771
+ * Where `cbor_to_json` returns positional CBOR (numeric map keys, raw
28772
+ * arrays), this walks the schema in parallel and replaces those with
28773
+ * the named fields the CDDL declares. On unknown / unmatched
28774
+ * sub-structures it falls back to the raw representation rather than
28775
+ * erroring, so partial matches still yield useful output.
28776
+ * @param {string} cbor_hex
28777
+ * @param {string} cddl
28778
+ * @param {string} rule_name
28779
+ * @returns {any}
28780
+ */
28781
+ function decode_cbor_against_cddl(cbor_hex, cddl, rule_name) {
28782
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28783
+ const len0 = WASM_VECTOR_LEN;
28784
+ const ptr1 = passStringToWasm0(cddl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28785
+ const len1 = WASM_VECTOR_LEN;
28786
+ const ptr2 = passStringToWasm0(rule_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28787
+ const len2 = WASM_VECTOR_LEN;
28788
+ const ret = wasm.decode_cbor_against_cddl(ptr0, len0, ptr1, len1, ptr2, len2);
28789
+ if (ret[2]) {
28790
+ throw takeFromExternrefTable0(ret[1]);
28791
+ }
28792
+ return takeFromExternrefTable0(ret[0]);
28793
+ }
28794
+ exports.decode_cbor_against_cddl = decode_cbor_against_cddl;
28795
+
28796
28796
  /**
28797
28797
  * @param {TransactionMetadatum} metadatum
28798
28798
  * @param {MetadataJsonSchema} schema
Binary file
@@ -5,7 +5,7 @@ export const decode_specific_type: (a: number, b: number, c: number, d: number,
5
5
  export const get_decodable_types: () => [number, number];
6
6
  export const get_possible_types_for_input: (a: number, b: number) => [number, number];
7
7
  export const cbor_to_json: (a: number, b: number) => [number, number, number];
8
- export const cbor_to_schema_json: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
8
+ export const decode_cbor_against_cddl: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
9
9
  export const validate_cbor_against_cddl: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
10
10
  export const validate_cddl: (a: number, b: number) => [number, number, number];
11
11
  export const check_block_or_tx_signatures: (a: number, b: number) => [number, number, number];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Evgenii Lisitskii <evgeniilisitskii@gmail.com>"
5
5
  ],
6
6
  "description": "Cardano transaction validation library",
7
- "version": "0.1.0-beta.48",
7
+ "version": "0.1.0-beta.49",
8
8
  "license": "Apache-2.0",
9
9
  "files": [
10
10
  "node/cquisitor_lib_bg.wasm",