@cardanowall/sdk-ts 0.0.0

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.
Files changed (67) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +207 -0
  3. package/dist/client/index.cjs +2695 -0
  4. package/dist/client/index.cjs.map +1 -0
  5. package/dist/client/index.d.cts +397 -0
  6. package/dist/client/index.d.ts +397 -0
  7. package/dist/client/index.js +2641 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/conformance/cli.cjs +4901 -0
  10. package/dist/conformance/cli.cjs.map +1 -0
  11. package/dist/conformance/cli.d.cts +18 -0
  12. package/dist/conformance/cli.d.ts +18 -0
  13. package/dist/conformance/cli.js +4878 -0
  14. package/dist/conformance/cli.js.map +1 -0
  15. package/dist/fetch/index.cjs +335 -0
  16. package/dist/fetch/index.cjs.map +1 -0
  17. package/dist/fetch/index.d.cts +13 -0
  18. package/dist/fetch/index.d.ts +13 -0
  19. package/dist/fetch/index.js +323 -0
  20. package/dist/fetch/index.js.map +1 -0
  21. package/dist/fetch-outbound-BT5-NiYN.d.cts +76 -0
  22. package/dist/fetch-outbound-BT5-NiYN.d.ts +76 -0
  23. package/dist/hash/index.cjs +25 -0
  24. package/dist/hash/index.cjs.map +1 -0
  25. package/dist/hash/index.d.cts +1 -0
  26. package/dist/hash/index.d.ts +1 -0
  27. package/dist/hash/index.js +21 -0
  28. package/dist/hash/index.js.map +1 -0
  29. package/dist/identity/index.cjs +1388 -0
  30. package/dist/identity/index.cjs.map +1 -0
  31. package/dist/identity/index.d.cts +27 -0
  32. package/dist/identity/index.d.ts +27 -0
  33. package/dist/identity/index.js +1362 -0
  34. package/dist/identity/index.js.map +1 -0
  35. package/dist/ids/index.cjs +146 -0
  36. package/dist/ids/index.cjs.map +1 -0
  37. package/dist/ids/index.d.cts +55 -0
  38. package/dist/ids/index.d.ts +55 -0
  39. package/dist/ids/index.js +135 -0
  40. package/dist/ids/index.js.map +1 -0
  41. package/dist/index-BhnlWJAY.d.cts +10 -0
  42. package/dist/index-BhnlWJAY.d.ts +10 -0
  43. package/dist/index-Cg1QqVmA.d.cts +19 -0
  44. package/dist/index-Cg1QqVmA.d.ts +19 -0
  45. package/dist/index.cjs +7127 -0
  46. package/dist/index.cjs.map +1 -0
  47. package/dist/index.d.cts +21 -0
  48. package/dist/index.d.ts +21 -0
  49. package/dist/index.js +7004 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/merkle/index.cjs +396 -0
  52. package/dist/merkle/index.cjs.map +1 -0
  53. package/dist/merkle/index.d.cts +2 -0
  54. package/dist/merkle/index.d.ts +2 -0
  55. package/dist/merkle/index.js +387 -0
  56. package/dist/merkle/index.js.map +1 -0
  57. package/dist/types-B8Q3gW54.d.ts +123 -0
  58. package/dist/types-BQMtbRCb.d.cts +321 -0
  59. package/dist/types-BQMtbRCb.d.ts +321 -0
  60. package/dist/types-CLXdbjqr.d.cts +123 -0
  61. package/dist/verifier/index.cjs +4901 -0
  62. package/dist/verifier/index.cjs.map +1 -0
  63. package/dist/verifier/index.d.cts +176 -0
  64. package/dist/verifier/index.d.ts +176 -0
  65. package/dist/verifier/index.js +4848 -0
  66. package/dist/verifier/index.js.map +1 -0
  67. package/package.json +108 -0
@@ -0,0 +1,176 @@
1
+ import { g as VerifyReport, E as ExitCode, h as VerifyTxInput, a as Profile, f as VerifyRecordSignature, l as VerifyUriCheck, d as VerifyItemDecryption, e as VerifyMerkleCheck, j as VerifyTxSummary, k as VerifyTxWitness } from '../types-CLXdbjqr.cjs';
2
+ export { D as DecryptionVerdict, I as ItemHashCheck, M as MerkleVerdict, N as Network, P as PROFILE_RANK, S as SignatureFailureReason, b as SignatureVerdict, c as SignerType, V as Verdict, i as VerifyTxOutput } from '../types-CLXdbjqr.cjs';
3
+ import { F as FetchOutbound, H as HttpCallRecord } from '../fetch-outbound-BT5-NiYN.cjs';
4
+ export { B as BodyTooLargeError, D as DEFAULT_OUTBOUND_MAX_BYTES, a as DENY_HOSTS_DEFAULT, b as DenyHostError, c as FetchOutboundOptions, d as FetchOutboundResult, O as OutboundExhaustedError, R as RetryConfig, U as UnsupportedMethodError, g as UnsupportedProtocolError, W as WrapFetchOutboundConfig, h as defaultFetchOutbound, i as fetchOutbound, w as wrapFetchOutbound } from '../fetch-outbound-BT5-NiYN.cjs';
5
+ import { PoeRecord, ValidationIssue } from '@cardanowall/poe-standard';
6
+ export { ValidationIssue } from '@cardanowall/poe-standard';
7
+
8
+ declare const CONFIRMATION_DEPTH_THRESHOLD_DEFAULT = 15;
9
+ declare function verifyTx(input: VerifyTxInput): Promise<VerifyReport>;
10
+ /**
11
+ * `verifyResolved` — same pipeline as `verifyTx` starting from step 3
12
+ * (structural validator). The caller has already resolved the label-309
13
+ * metadata bytes + block-info tuple from somewhere other than a live chain
14
+ * fetch (typically an indexer database mirror).
15
+ *
16
+ * Use this when you trust an upstream indexer for the (metadataCbor,
17
+ * blockTime, blockSlot, numConfirmations) tuple and want to skip the
18
+ * /tx_cbor + /tx_info round-trip. The caller is responsible for the
19
+ * confidence that the supplied bytes actually came from a CIP-309 label-309
20
+ * metadata field of a confirmed Cardano transaction.
21
+ */
22
+ declare function verifyResolved(input: {
23
+ txHash: string;
24
+ metadataCbor: Uint8Array;
25
+ txCbor?: Uint8Array;
26
+ numConfirmations: number;
27
+ blockTime?: number;
28
+ blockSlot?: number;
29
+ network?: VerifyReport['network'];
30
+ cardanoNetwork?: VerifyTxInput['cardanoNetwork'];
31
+ profile?: Profile;
32
+ confirmationDepthThreshold?: number;
33
+ fetchOutbound?: FetchOutbound;
34
+ denyHosts?: ReadonlyArray<string>;
35
+ decryption?: VerifyTxInput['decryption'];
36
+ verifyMerkle?: boolean;
37
+ }): Promise<VerifyReport>;
38
+ declare function exitCodeForVerdict(report: VerifyReport): ExitCode;
39
+
40
+ interface VerifyRecordSignaturesArgs {
41
+ readonly record: PoeRecord;
42
+ readonly input: VerifyTxInput;
43
+ }
44
+ declare function verifyRecordSignatures(args: VerifyRecordSignaturesArgs): Promise<VerifyRecordSignature[]>;
45
+
46
+ interface TryDecryptionsArgs {
47
+ readonly record: PoeRecord;
48
+ readonly input: VerifyTxInput;
49
+ readonly fetchFn: FetchOutbound;
50
+ readonly httpCalls: HttpCallRecord[];
51
+ readonly uriChecksOut: VerifyUriCheck[];
52
+ readonly allowUriFetch: boolean;
53
+ }
54
+ interface TryDecryptionsResult {
55
+ readonly results: VerifyItemDecryption[];
56
+ }
57
+ declare function tryDecryptions(args: TryDecryptionsArgs): Promise<TryDecryptionsResult>;
58
+
59
+ interface VerifyMerkleArgs {
60
+ readonly record: PoeRecord;
61
+ readonly input: VerifyTxInput;
62
+ readonly fetchFn: FetchOutbound;
63
+ readonly uriChecksOut: VerifyUriCheck[];
64
+ }
65
+ interface VerifyMerkleResult {
66
+ readonly checks: VerifyMerkleCheck[];
67
+ }
68
+ declare function verifyMerkleCommitments(args: VerifyMerkleArgs): Promise<VerifyMerkleResult>;
69
+
70
+ declare const DEFAULT_PROFILE: Profile;
71
+ declare function profileImplements(actual: Profile, required: Profile): boolean;
72
+ interface ProfileSkipsResult {
73
+ readonly skips: ValidationIssue[];
74
+ readonly verifySignatures: boolean;
75
+ readonly verifyDecrypt: boolean;
76
+ }
77
+ declare function planProfileSkips(profile: Profile, record: PoeRecord): ProfileSkipsResult;
78
+
79
+ interface ResolvedTx {
80
+ readonly txCbor: Uint8Array;
81
+ readonly numConfirmations: number;
82
+ readonly blockTime: number;
83
+ readonly blockSlot: number;
84
+ readonly provider: 'koios' | 'blockfrost';
85
+ readonly providerUrl: string;
86
+ }
87
+ declare const KOIOS_MAINNET_URL = "https://api.koios.rest/api/v1";
88
+ declare const BLOCKFROST_MAINNET_HOST = "https://cardano-mainnet.blockfrost.io/api/v0";
89
+ declare class NotACip309RecordError extends Error {
90
+ readonly code: "METADATA_NOT_FOUND";
91
+ constructor(message: string);
92
+ }
93
+ declare function resolveCardanoTx(args: {
94
+ readonly input: VerifyTxInput;
95
+ readonly fetchFn: FetchOutbound;
96
+ }): Promise<ResolvedTx>;
97
+ declare function extractLabel309Metadata(txCbor: Uint8Array): Uint8Array | null;
98
+
99
+ /**
100
+ * Byte-faithful components of a Cardano transaction, located by walking the
101
+ * tx CBOR without a decode-then-re-encode pass.
102
+ *
103
+ * `txBody` and `witnessSet` are EXACT on-chain byte slices: `blake2b256(txBody)`
104
+ * equals the transaction hash, and the witness set decodes to the vkey
105
+ * witnesses that authorised the transaction. The slices are produced by the
106
+ * same position-aware walk that finds label 309, so they never round-trip
107
+ * through a CBOR re-encoder.
108
+ *
109
+ * `label309` is the reassembled label-309 value (chunked-bytes concatenated;
110
+ * see `reassembleLabel309Value`), `null` when auxiliary_data is null/undefined
111
+ * or label 309 is absent. `auxMetadataLabels` is the ascending-sorted list of
112
+ * every integer key in the auxiliary metadata map (`[]` when aux is null).
113
+ */
114
+ interface TxComponents {
115
+ readonly label309: Uint8Array | null;
116
+ readonly txBody: Uint8Array;
117
+ readonly witnessSet: Uint8Array;
118
+ readonly auxMetadataLabels: number[];
119
+ }
120
+ /**
121
+ * Walk the transaction CBOR once and return its byte-faithful components.
122
+ *
123
+ * Throws `RangeError("MALFORMED_CBOR: …")` on structural violations. The body
124
+ * and witness-set slices are the producer's ORIGINAL bytes; `label309` carries
125
+ * the same byte-faithful guarantee `sliceLabel309Value` documents (no
126
+ * decode-then-re-encode, so non-canonical encodings reach the structural
127
+ * validator unchanged).
128
+ */
129
+ declare function sliceTxComponents(txCbor: Uint8Array): TxComponents;
130
+ /**
131
+ * Extract the byte slice corresponding to the value under metadata label 309.
132
+ * Returns `null` when auxiliary_data is null/undefined or when label 309 is
133
+ * absent. Throws `RangeError("MALFORMED_CBOR: …")` on structural violations.
134
+ *
135
+ * Returns the producer's ORIGINAL on-chain bytes — no decode-then-re-encode
136
+ * pass. The structural validator MUST receive these bytes verbatim so
137
+ * non-canonical encodings surface as `MALFORMED_CBOR` rather than being
138
+ * silently laundered.
139
+ */
140
+ declare function sliceLabel309Value(txCbor: Uint8Array): Uint8Array | null;
141
+
142
+ /**
143
+ * Decode the vkey witnesses of a transaction and verify each signature against
144
+ * the transaction body.
145
+ *
146
+ * Each Cardano vkey witness is `[vkey(32B), signature(64B)]`; the signed
147
+ * message is `blake2b256(txBody)` (the transaction hash). A witness whose vkey
148
+ * or signature is malformed, or whose signature does not verify, is reported
149
+ * with `signature_valid: false` rather than dropped — the caller surfaces it
150
+ * informationally and never fails the record on it.
151
+ */
152
+ declare function decodeTxWitnesses(witnessSetBytes: Uint8Array, txBodyBytes: Uint8Array): VerifyTxWitness[];
153
+ /**
154
+ * Decode a transaction body into a JSON-safe summary: fee, input/output counts,
155
+ * the output addresses + lovelace amounts, validity interval, required signer
156
+ * key hashes, and network id.
157
+ *
158
+ * All lovelace amounts are serialised as DECIMAL STRINGS so they survive JSON
159
+ * round-trips exactly (Cardano coin values can exceed `Number.MAX_SAFE_INTEGER`
160
+ * and BigInt is not JSON-native). Coin math is performed with BigInt internally.
161
+ */
162
+ declare function decodeTxSummary(txBodyBytes: Uint8Array, witnessSetBytes: Uint8Array, network: 'mainnet' | 'preprod'): VerifyTxSummary;
163
+
164
+ interface FetchItemCiphertextArgs {
165
+ readonly uris: ReadonlyArray<ReadonlyArray<string>>;
166
+ readonly arweaveGateways?: ReadonlyArray<string> | undefined;
167
+ readonly ipfsGateways?: ReadonlyArray<string> | undefined;
168
+ readonly fetchFn: FetchOutbound;
169
+ readonly uriChecksOut: VerifyUriCheck[];
170
+ readonly itemIndex: number;
171
+ }
172
+ declare function fetchItemCiphertext(args: FetchItemCiphertextArgs): Promise<Uint8Array>;
173
+
174
+ declare function verifyReportToDict(report: VerifyReport): Record<string, unknown>;
175
+
176
+ export { BLOCKFROST_MAINNET_HOST, CONFIRMATION_DEPTH_THRESHOLD_DEFAULT, DEFAULT_PROFILE, ExitCode, FetchOutbound, HttpCallRecord, KOIOS_MAINNET_URL, NotACip309RecordError, Profile, type ResolvedTx, type TxComponents, VerifyItemDecryption, VerifyMerkleCheck, VerifyRecordSignature, VerifyReport, VerifyTxInput, VerifyTxSummary, VerifyTxWitness, VerifyUriCheck, decodeTxSummary, decodeTxWitnesses, exitCodeForVerdict, extractLabel309Metadata, fetchItemCiphertext, planProfileSkips, profileImplements, resolveCardanoTx, sliceLabel309Value, sliceTxComponents, tryDecryptions, verifyMerkleCommitments, verifyRecordSignatures, verifyReportToDict, verifyResolved, verifyTx };
@@ -0,0 +1,176 @@
1
+ import { g as VerifyReport, E as ExitCode, h as VerifyTxInput, a as Profile, f as VerifyRecordSignature, l as VerifyUriCheck, d as VerifyItemDecryption, e as VerifyMerkleCheck, j as VerifyTxSummary, k as VerifyTxWitness } from '../types-B8Q3gW54.js';
2
+ export { D as DecryptionVerdict, I as ItemHashCheck, M as MerkleVerdict, N as Network, P as PROFILE_RANK, S as SignatureFailureReason, b as SignatureVerdict, c as SignerType, V as Verdict, i as VerifyTxOutput } from '../types-B8Q3gW54.js';
3
+ import { F as FetchOutbound, H as HttpCallRecord } from '../fetch-outbound-BT5-NiYN.js';
4
+ export { B as BodyTooLargeError, D as DEFAULT_OUTBOUND_MAX_BYTES, a as DENY_HOSTS_DEFAULT, b as DenyHostError, c as FetchOutboundOptions, d as FetchOutboundResult, O as OutboundExhaustedError, R as RetryConfig, U as UnsupportedMethodError, g as UnsupportedProtocolError, W as WrapFetchOutboundConfig, h as defaultFetchOutbound, i as fetchOutbound, w as wrapFetchOutbound } from '../fetch-outbound-BT5-NiYN.js';
5
+ import { PoeRecord, ValidationIssue } from '@cardanowall/poe-standard';
6
+ export { ValidationIssue } from '@cardanowall/poe-standard';
7
+
8
+ declare const CONFIRMATION_DEPTH_THRESHOLD_DEFAULT = 15;
9
+ declare function verifyTx(input: VerifyTxInput): Promise<VerifyReport>;
10
+ /**
11
+ * `verifyResolved` — same pipeline as `verifyTx` starting from step 3
12
+ * (structural validator). The caller has already resolved the label-309
13
+ * metadata bytes + block-info tuple from somewhere other than a live chain
14
+ * fetch (typically an indexer database mirror).
15
+ *
16
+ * Use this when you trust an upstream indexer for the (metadataCbor,
17
+ * blockTime, blockSlot, numConfirmations) tuple and want to skip the
18
+ * /tx_cbor + /tx_info round-trip. The caller is responsible for the
19
+ * confidence that the supplied bytes actually came from a CIP-309 label-309
20
+ * metadata field of a confirmed Cardano transaction.
21
+ */
22
+ declare function verifyResolved(input: {
23
+ txHash: string;
24
+ metadataCbor: Uint8Array;
25
+ txCbor?: Uint8Array;
26
+ numConfirmations: number;
27
+ blockTime?: number;
28
+ blockSlot?: number;
29
+ network?: VerifyReport['network'];
30
+ cardanoNetwork?: VerifyTxInput['cardanoNetwork'];
31
+ profile?: Profile;
32
+ confirmationDepthThreshold?: number;
33
+ fetchOutbound?: FetchOutbound;
34
+ denyHosts?: ReadonlyArray<string>;
35
+ decryption?: VerifyTxInput['decryption'];
36
+ verifyMerkle?: boolean;
37
+ }): Promise<VerifyReport>;
38
+ declare function exitCodeForVerdict(report: VerifyReport): ExitCode;
39
+
40
+ interface VerifyRecordSignaturesArgs {
41
+ readonly record: PoeRecord;
42
+ readonly input: VerifyTxInput;
43
+ }
44
+ declare function verifyRecordSignatures(args: VerifyRecordSignaturesArgs): Promise<VerifyRecordSignature[]>;
45
+
46
+ interface TryDecryptionsArgs {
47
+ readonly record: PoeRecord;
48
+ readonly input: VerifyTxInput;
49
+ readonly fetchFn: FetchOutbound;
50
+ readonly httpCalls: HttpCallRecord[];
51
+ readonly uriChecksOut: VerifyUriCheck[];
52
+ readonly allowUriFetch: boolean;
53
+ }
54
+ interface TryDecryptionsResult {
55
+ readonly results: VerifyItemDecryption[];
56
+ }
57
+ declare function tryDecryptions(args: TryDecryptionsArgs): Promise<TryDecryptionsResult>;
58
+
59
+ interface VerifyMerkleArgs {
60
+ readonly record: PoeRecord;
61
+ readonly input: VerifyTxInput;
62
+ readonly fetchFn: FetchOutbound;
63
+ readonly uriChecksOut: VerifyUriCheck[];
64
+ }
65
+ interface VerifyMerkleResult {
66
+ readonly checks: VerifyMerkleCheck[];
67
+ }
68
+ declare function verifyMerkleCommitments(args: VerifyMerkleArgs): Promise<VerifyMerkleResult>;
69
+
70
+ declare const DEFAULT_PROFILE: Profile;
71
+ declare function profileImplements(actual: Profile, required: Profile): boolean;
72
+ interface ProfileSkipsResult {
73
+ readonly skips: ValidationIssue[];
74
+ readonly verifySignatures: boolean;
75
+ readonly verifyDecrypt: boolean;
76
+ }
77
+ declare function planProfileSkips(profile: Profile, record: PoeRecord): ProfileSkipsResult;
78
+
79
+ interface ResolvedTx {
80
+ readonly txCbor: Uint8Array;
81
+ readonly numConfirmations: number;
82
+ readonly blockTime: number;
83
+ readonly blockSlot: number;
84
+ readonly provider: 'koios' | 'blockfrost';
85
+ readonly providerUrl: string;
86
+ }
87
+ declare const KOIOS_MAINNET_URL = "https://api.koios.rest/api/v1";
88
+ declare const BLOCKFROST_MAINNET_HOST = "https://cardano-mainnet.blockfrost.io/api/v0";
89
+ declare class NotACip309RecordError extends Error {
90
+ readonly code: "METADATA_NOT_FOUND";
91
+ constructor(message: string);
92
+ }
93
+ declare function resolveCardanoTx(args: {
94
+ readonly input: VerifyTxInput;
95
+ readonly fetchFn: FetchOutbound;
96
+ }): Promise<ResolvedTx>;
97
+ declare function extractLabel309Metadata(txCbor: Uint8Array): Uint8Array | null;
98
+
99
+ /**
100
+ * Byte-faithful components of a Cardano transaction, located by walking the
101
+ * tx CBOR without a decode-then-re-encode pass.
102
+ *
103
+ * `txBody` and `witnessSet` are EXACT on-chain byte slices: `blake2b256(txBody)`
104
+ * equals the transaction hash, and the witness set decodes to the vkey
105
+ * witnesses that authorised the transaction. The slices are produced by the
106
+ * same position-aware walk that finds label 309, so they never round-trip
107
+ * through a CBOR re-encoder.
108
+ *
109
+ * `label309` is the reassembled label-309 value (chunked-bytes concatenated;
110
+ * see `reassembleLabel309Value`), `null` when auxiliary_data is null/undefined
111
+ * or label 309 is absent. `auxMetadataLabels` is the ascending-sorted list of
112
+ * every integer key in the auxiliary metadata map (`[]` when aux is null).
113
+ */
114
+ interface TxComponents {
115
+ readonly label309: Uint8Array | null;
116
+ readonly txBody: Uint8Array;
117
+ readonly witnessSet: Uint8Array;
118
+ readonly auxMetadataLabels: number[];
119
+ }
120
+ /**
121
+ * Walk the transaction CBOR once and return its byte-faithful components.
122
+ *
123
+ * Throws `RangeError("MALFORMED_CBOR: …")` on structural violations. The body
124
+ * and witness-set slices are the producer's ORIGINAL bytes; `label309` carries
125
+ * the same byte-faithful guarantee `sliceLabel309Value` documents (no
126
+ * decode-then-re-encode, so non-canonical encodings reach the structural
127
+ * validator unchanged).
128
+ */
129
+ declare function sliceTxComponents(txCbor: Uint8Array): TxComponents;
130
+ /**
131
+ * Extract the byte slice corresponding to the value under metadata label 309.
132
+ * Returns `null` when auxiliary_data is null/undefined or when label 309 is
133
+ * absent. Throws `RangeError("MALFORMED_CBOR: …")` on structural violations.
134
+ *
135
+ * Returns the producer's ORIGINAL on-chain bytes — no decode-then-re-encode
136
+ * pass. The structural validator MUST receive these bytes verbatim so
137
+ * non-canonical encodings surface as `MALFORMED_CBOR` rather than being
138
+ * silently laundered.
139
+ */
140
+ declare function sliceLabel309Value(txCbor: Uint8Array): Uint8Array | null;
141
+
142
+ /**
143
+ * Decode the vkey witnesses of a transaction and verify each signature against
144
+ * the transaction body.
145
+ *
146
+ * Each Cardano vkey witness is `[vkey(32B), signature(64B)]`; the signed
147
+ * message is `blake2b256(txBody)` (the transaction hash). A witness whose vkey
148
+ * or signature is malformed, or whose signature does not verify, is reported
149
+ * with `signature_valid: false` rather than dropped — the caller surfaces it
150
+ * informationally and never fails the record on it.
151
+ */
152
+ declare function decodeTxWitnesses(witnessSetBytes: Uint8Array, txBodyBytes: Uint8Array): VerifyTxWitness[];
153
+ /**
154
+ * Decode a transaction body into a JSON-safe summary: fee, input/output counts,
155
+ * the output addresses + lovelace amounts, validity interval, required signer
156
+ * key hashes, and network id.
157
+ *
158
+ * All lovelace amounts are serialised as DECIMAL STRINGS so they survive JSON
159
+ * round-trips exactly (Cardano coin values can exceed `Number.MAX_SAFE_INTEGER`
160
+ * and BigInt is not JSON-native). Coin math is performed with BigInt internally.
161
+ */
162
+ declare function decodeTxSummary(txBodyBytes: Uint8Array, witnessSetBytes: Uint8Array, network: 'mainnet' | 'preprod'): VerifyTxSummary;
163
+
164
+ interface FetchItemCiphertextArgs {
165
+ readonly uris: ReadonlyArray<ReadonlyArray<string>>;
166
+ readonly arweaveGateways?: ReadonlyArray<string> | undefined;
167
+ readonly ipfsGateways?: ReadonlyArray<string> | undefined;
168
+ readonly fetchFn: FetchOutbound;
169
+ readonly uriChecksOut: VerifyUriCheck[];
170
+ readonly itemIndex: number;
171
+ }
172
+ declare function fetchItemCiphertext(args: FetchItemCiphertextArgs): Promise<Uint8Array>;
173
+
174
+ declare function verifyReportToDict(report: VerifyReport): Record<string, unknown>;
175
+
176
+ export { BLOCKFROST_MAINNET_HOST, CONFIRMATION_DEPTH_THRESHOLD_DEFAULT, DEFAULT_PROFILE, ExitCode, FetchOutbound, HttpCallRecord, KOIOS_MAINNET_URL, NotACip309RecordError, Profile, type ResolvedTx, type TxComponents, VerifyItemDecryption, VerifyMerkleCheck, VerifyRecordSignature, VerifyReport, VerifyTxInput, VerifyTxSummary, VerifyTxWitness, VerifyUriCheck, decodeTxSummary, decodeTxWitnesses, exitCodeForVerdict, extractLabel309Metadata, fetchItemCiphertext, planProfileSkips, profileImplements, resolveCardanoTx, sliceLabel309Value, sliceTxComponents, tryDecryptions, verifyMerkleCommitments, verifyRecordSignatures, verifyReportToDict, verifyResolved, verifyTx };