@meshsdk/core-cst 1.9.0-beta.95 → 1.9.0-beta.97

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
@@ -1794,6 +1794,834 @@ var require_json_bigint = __commonJS({
1794
1794
  }
1795
1795
  });
1796
1796
 
1797
+ // ../../node_modules/nanoassert/index.js
1798
+ var require_nanoassert = __commonJS({
1799
+ "../../node_modules/nanoassert/index.js"(exports2, module2) {
1800
+ "use strict";
1801
+ module2.exports = assert;
1802
+ var AssertionError = class extends Error {
1803
+ };
1804
+ AssertionError.prototype.name = "AssertionError";
1805
+ function assert(t, m) {
1806
+ if (!t) {
1807
+ var err = new AssertionError(m);
1808
+ if (Error.captureStackTrace) Error.captureStackTrace(err, assert);
1809
+ throw err;
1810
+ }
1811
+ }
1812
+ }
1813
+ });
1814
+
1815
+ // ../../node_modules/blake2b-wasm/node_modules/b4a/index.js
1816
+ var require_b4a = __commonJS({
1817
+ "../../node_modules/blake2b-wasm/node_modules/b4a/index.js"(exports2, module2) {
1818
+ "use strict";
1819
+ function isBuffer(value) {
1820
+ return Buffer.isBuffer(value) || value instanceof Uint8Array;
1821
+ }
1822
+ function isEncoding(encoding) {
1823
+ return Buffer.isEncoding(encoding);
1824
+ }
1825
+ function alloc(size, fill2, encoding) {
1826
+ return Buffer.alloc(size, fill2, encoding);
1827
+ }
1828
+ function allocUnsafe(size) {
1829
+ return Buffer.allocUnsafe(size);
1830
+ }
1831
+ function allocUnsafeSlow(size) {
1832
+ return Buffer.allocUnsafeSlow(size);
1833
+ }
1834
+ function byteLength(string, encoding) {
1835
+ return Buffer.byteLength(string, encoding);
1836
+ }
1837
+ function compare(a, b) {
1838
+ return Buffer.compare(a, b);
1839
+ }
1840
+ function concat(buffers, totalLength) {
1841
+ return Buffer.concat(buffers, totalLength);
1842
+ }
1843
+ function copy(source, target, targetStart, start, end) {
1844
+ return toBuffer(source).copy(target, targetStart, start, end);
1845
+ }
1846
+ function equals(a, b) {
1847
+ return toBuffer(a).equals(b);
1848
+ }
1849
+ function fill(buffer, value, offset, end, encoding) {
1850
+ return toBuffer(buffer).fill(value, offset, end, encoding);
1851
+ }
1852
+ function from(value, encodingOrOffset, length) {
1853
+ return Buffer.from(value, encodingOrOffset, length);
1854
+ }
1855
+ function includes(buffer, value, byteOffset, encoding) {
1856
+ return toBuffer(buffer).includes(value, byteOffset, encoding);
1857
+ }
1858
+ function indexOf(buffer, value, byfeOffset, encoding) {
1859
+ return toBuffer(buffer).indexOf(value, byfeOffset, encoding);
1860
+ }
1861
+ function lastIndexOf(buffer, value, byteOffset, encoding) {
1862
+ return toBuffer(buffer).lastIndexOf(value, byteOffset, encoding);
1863
+ }
1864
+ function swap16(buffer) {
1865
+ return toBuffer(buffer).swap16();
1866
+ }
1867
+ function swap32(buffer) {
1868
+ return toBuffer(buffer).swap32();
1869
+ }
1870
+ function swap64(buffer) {
1871
+ return toBuffer(buffer).swap64();
1872
+ }
1873
+ function toBuffer(buffer) {
1874
+ if (Buffer.isBuffer(buffer)) return buffer;
1875
+ return Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
1876
+ }
1877
+ function toString(buffer, encoding, start, end) {
1878
+ return toBuffer(buffer).toString(encoding, start, end);
1879
+ }
1880
+ function write(buffer, string, offset, length, encoding) {
1881
+ return toBuffer(buffer).write(string, offset, length, encoding);
1882
+ }
1883
+ function readDoubleBE(buffer, offset) {
1884
+ return toBuffer(buffer).readDoubleBE(offset);
1885
+ }
1886
+ function readDoubleLE(buffer, offset) {
1887
+ return toBuffer(buffer).readDoubleLE(offset);
1888
+ }
1889
+ function readFloatBE(buffer, offset) {
1890
+ return toBuffer(buffer).readFloatBE(offset);
1891
+ }
1892
+ function readFloatLE(buffer, offset) {
1893
+ return toBuffer(buffer).readFloatLE(offset);
1894
+ }
1895
+ function readInt32BE(buffer, offset) {
1896
+ return toBuffer(buffer).readInt32BE(offset);
1897
+ }
1898
+ function readInt32LE(buffer, offset) {
1899
+ return toBuffer(buffer).readInt32LE(offset);
1900
+ }
1901
+ function readUInt32BE(buffer, offset) {
1902
+ return toBuffer(buffer).readUInt32BE(offset);
1903
+ }
1904
+ function readUInt32LE(buffer, offset) {
1905
+ return toBuffer(buffer).readUInt32LE(offset);
1906
+ }
1907
+ function writeDoubleBE(buffer, value, offset) {
1908
+ return toBuffer(buffer).writeDoubleBE(value, offset);
1909
+ }
1910
+ function writeDoubleLE(buffer, value, offset) {
1911
+ return toBuffer(buffer).writeDoubleLE(value, offset);
1912
+ }
1913
+ function writeFloatBE(buffer, value, offset) {
1914
+ return toBuffer(buffer).writeFloatBE(value, offset);
1915
+ }
1916
+ function writeFloatLE(buffer, value, offset) {
1917
+ return toBuffer(buffer).writeFloatLE(value, offset);
1918
+ }
1919
+ function writeInt32BE(buffer, value, offset) {
1920
+ return toBuffer(buffer).writeInt32BE(value, offset);
1921
+ }
1922
+ function writeInt32LE(buffer, value, offset) {
1923
+ return toBuffer(buffer).writeInt32LE(value, offset);
1924
+ }
1925
+ function writeUInt32BE(buffer, value, offset) {
1926
+ return toBuffer(buffer).writeUInt32BE(value, offset);
1927
+ }
1928
+ function writeUInt32LE(buffer, value, offset) {
1929
+ return toBuffer(buffer).writeUInt32LE(value, offset);
1930
+ }
1931
+ module2.exports = {
1932
+ isBuffer,
1933
+ isEncoding,
1934
+ alloc,
1935
+ allocUnsafe,
1936
+ allocUnsafeSlow,
1937
+ byteLength,
1938
+ compare,
1939
+ concat,
1940
+ copy,
1941
+ equals,
1942
+ fill,
1943
+ from,
1944
+ includes,
1945
+ indexOf,
1946
+ lastIndexOf,
1947
+ swap16,
1948
+ swap32,
1949
+ swap64,
1950
+ toBuffer,
1951
+ toString,
1952
+ write,
1953
+ readDoubleBE,
1954
+ readDoubleLE,
1955
+ readFloatBE,
1956
+ readFloatLE,
1957
+ readInt32BE,
1958
+ readInt32LE,
1959
+ readUInt32BE,
1960
+ readUInt32LE,
1961
+ writeDoubleBE,
1962
+ writeDoubleLE,
1963
+ writeFloatBE,
1964
+ writeFloatLE,
1965
+ writeInt32BE,
1966
+ writeInt32LE,
1967
+ writeUInt32BE,
1968
+ writeUInt32LE
1969
+ };
1970
+ }
1971
+ });
1972
+
1973
+ // ../../node_modules/blake2b-wasm/blake2b.js
1974
+ var require_blake2b = __commonJS({
1975
+ "../../node_modules/blake2b-wasm/blake2b.js"(exports2, module2) {
1976
+ "use strict";
1977
+ var __commonJS2 = (cb, mod) => function __require() {
1978
+ return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
1979
+ };
1980
+ var __toBinary = /* @__PURE__ */ (() => {
1981
+ var table = new Uint8Array(128);
1982
+ for (var i = 0; i < 64; i++)
1983
+ table[i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i * 4 - 205] = i;
1984
+ return (base64) => {
1985
+ var n = base64.length, bytes2 = new Uint8Array((n - (base64[n - 1] == "=") - (base64[n - 2] == "=")) * 3 / 4 | 0);
1986
+ for (var i2 = 0, j = 0; i2 < n; ) {
1987
+ var c0 = table[base64.charCodeAt(i2++)], c1 = table[base64.charCodeAt(i2++)];
1988
+ var c2 = table[base64.charCodeAt(i2++)], c3 = table[base64.charCodeAt(i2++)];
1989
+ bytes2[j++] = c0 << 2 | c1 >> 4;
1990
+ bytes2[j++] = c1 << 4 | c2 >> 2;
1991
+ bytes2[j++] = c2 << 6 | c3;
1992
+ }
1993
+ return bytes2;
1994
+ };
1995
+ })();
1996
+ var require_blake2b3 = __commonJS2({
1997
+ "wasm-binary:./blake2b.wat"(exports22, module22) {
1998
+ module22.exports = __toBinary("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMKvz8EwAIAIABCADcDACAAQgA3AwggAEIANwMQ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CoVCP4ohBSABIAUgH3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBt8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAVfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBp8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAgfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggHnx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBd8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiASfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHXx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBF8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByATfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggHHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBh8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAWfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFHx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgISAhKQMAIAEgCYWFNwMAICIgIikDACACIAqFhTcDACAjICMpAwAgAyALhYU3AwAgJCAkKQMAIAQgDIWFNwMAICUgJSkDACAFIA2FhTcDACAmICYpAwAgBiAOhYU3AwAgJyAnKQMAIAcgD4WFNwMAICggKCkDACAIIBCFhTcDAAs=");
1999
+ }
2000
+ });
2001
+ var bytes = require_blake2b3();
2002
+ var compiled = WebAssembly.compile(bytes);
2003
+ module2.exports = async (imports) => {
2004
+ const instance = await WebAssembly.instantiate(await compiled, imports);
2005
+ return instance.exports;
2006
+ };
2007
+ }
2008
+ });
2009
+
2010
+ // ../../node_modules/blake2b-wasm/index.js
2011
+ var require_blake2b_wasm = __commonJS({
2012
+ "../../node_modules/blake2b-wasm/index.js"(exports2, module2) {
2013
+ "use strict";
2014
+ var assert = require_nanoassert();
2015
+ var b4a = require_b4a();
2016
+ var wasm = null;
2017
+ var wasmPromise = typeof WebAssembly !== "undefined" && require_blake2b()().then((mod) => {
2018
+ wasm = mod;
2019
+ });
2020
+ var head = 64;
2021
+ var freeList = [];
2022
+ module2.exports = Blake2b;
2023
+ var BYTES_MIN = module2.exports.BYTES_MIN = 16;
2024
+ var BYTES_MAX = module2.exports.BYTES_MAX = 64;
2025
+ var BYTES = module2.exports.BYTES = 32;
2026
+ var KEYBYTES_MIN = module2.exports.KEYBYTES_MIN = 16;
2027
+ var KEYBYTES_MAX = module2.exports.KEYBYTES_MAX = 64;
2028
+ var KEYBYTES = module2.exports.KEYBYTES = 32;
2029
+ var SALTBYTES = module2.exports.SALTBYTES = 16;
2030
+ var PERSONALBYTES = module2.exports.PERSONALBYTES = 16;
2031
+ function Blake2b(digestLength, key, salt, personal, noAssert) {
2032
+ if (!(this instanceof Blake2b)) return new Blake2b(digestLength, key, salt, personal, noAssert);
2033
+ if (!wasm) throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");
2034
+ if (!digestLength) digestLength = 32;
2035
+ if (noAssert !== true) {
2036
+ assert(digestLength >= BYTES_MIN, "digestLength must be at least " + BYTES_MIN + ", was given " + digestLength);
2037
+ assert(digestLength <= BYTES_MAX, "digestLength must be at most " + BYTES_MAX + ", was given " + digestLength);
2038
+ if (key != null) {
2039
+ assert(key instanceof Uint8Array, "key must be Uint8Array or Buffer");
2040
+ assert(key.length >= KEYBYTES_MIN, "key must be at least " + KEYBYTES_MIN + ", was given " + key.length);
2041
+ assert(key.length <= KEYBYTES_MAX, "key must be at least " + KEYBYTES_MAX + ", was given " + key.length);
2042
+ }
2043
+ if (salt != null) {
2044
+ assert(salt instanceof Uint8Array, "salt must be Uint8Array or Buffer");
2045
+ assert(salt.length === SALTBYTES, "salt must be exactly " + SALTBYTES + ", was given " + salt.length);
2046
+ }
2047
+ if (personal != null) {
2048
+ assert(personal instanceof Uint8Array, "personal must be Uint8Array or Buffer");
2049
+ assert(personal.length === PERSONALBYTES, "personal must be exactly " + PERSONALBYTES + ", was given " + personal.length);
2050
+ }
2051
+ }
2052
+ if (!freeList.length) {
2053
+ freeList.push(head);
2054
+ head += 216;
2055
+ }
2056
+ this.digestLength = digestLength;
2057
+ this.finalized = false;
2058
+ this.pointer = freeList.pop();
2059
+ this._memory = new Uint8Array(wasm.memory.buffer);
2060
+ this._memory.fill(0, 0, 64);
2061
+ this._memory[0] = this.digestLength;
2062
+ this._memory[1] = key ? key.length : 0;
2063
+ this._memory[2] = 1;
2064
+ this._memory[3] = 1;
2065
+ if (salt) this._memory.set(salt, 32);
2066
+ if (personal) this._memory.set(personal, 48);
2067
+ if (this.pointer + 216 > this._memory.length) this._realloc(this.pointer + 216);
2068
+ wasm.blake2b_init(this.pointer, this.digestLength);
2069
+ if (key) {
2070
+ this.update(key);
2071
+ this._memory.fill(0, head, head + key.length);
2072
+ this._memory[this.pointer + 200] = 128;
2073
+ }
2074
+ }
2075
+ Blake2b.prototype._realloc = function(size) {
2076
+ wasm.memory.grow(Math.max(0, Math.ceil(Math.abs(size - this._memory.length) / 65536)));
2077
+ this._memory = new Uint8Array(wasm.memory.buffer);
2078
+ };
2079
+ Blake2b.prototype.update = function(input) {
2080
+ assert(this.finalized === false, "Hash instance finalized");
2081
+ assert(input instanceof Uint8Array, "input must be Uint8Array or Buffer");
2082
+ if (head + input.length > this._memory.length) this._realloc(head + input.length);
2083
+ this._memory.set(input, head);
2084
+ wasm.blake2b_update(this.pointer, head, head + input.length);
2085
+ return this;
2086
+ };
2087
+ Blake2b.prototype.digest = function(enc) {
2088
+ assert(this.finalized === false, "Hash instance finalized");
2089
+ this.finalized = true;
2090
+ freeList.push(this.pointer);
2091
+ wasm.blake2b_final(this.pointer);
2092
+ if (!enc || enc === "binary") {
2093
+ return this._memory.slice(this.pointer + 128, this.pointer + 128 + this.digestLength);
2094
+ }
2095
+ if (typeof enc === "string") {
2096
+ return b4a.toString(this._memory, enc, this.pointer + 128, this.pointer + 128 + this.digestLength);
2097
+ }
2098
+ assert(enc instanceof Uint8Array && enc.length >= this.digestLength, "input must be Uint8Array or Buffer");
2099
+ for (var i = 0; i < this.digestLength; i++) {
2100
+ enc[i] = this._memory[this.pointer + 128 + i];
2101
+ }
2102
+ return enc;
2103
+ };
2104
+ Blake2b.prototype.final = Blake2b.prototype.digest;
2105
+ Blake2b.WASM = wasm;
2106
+ Blake2b.SUPPORTED = typeof WebAssembly !== "undefined";
2107
+ Blake2b.ready = function(cb) {
2108
+ if (!cb) cb = noop;
2109
+ if (!wasmPromise) return cb(new Error("WebAssembly not supported"));
2110
+ return wasmPromise.then(() => cb(), cb);
2111
+ };
2112
+ Blake2b.prototype.ready = Blake2b.ready;
2113
+ Blake2b.prototype.getPartialHash = function() {
2114
+ return this._memory.slice(this.pointer, this.pointer + 216);
2115
+ };
2116
+ Blake2b.prototype.setPartialHash = function(ph) {
2117
+ this._memory.set(ph, this.pointer);
2118
+ };
2119
+ function noop() {
2120
+ }
2121
+ }
2122
+ });
2123
+
2124
+ // ../../node_modules/blake2b/index.js
2125
+ var require_blake2b2 = __commonJS({
2126
+ "../../node_modules/blake2b/index.js"(exports2, module2) {
2127
+ "use strict";
2128
+ var assert = require_nanoassert();
2129
+ var b2wasm = require_blake2b_wasm();
2130
+ function ADD64AA(v2, a, b) {
2131
+ var o0 = v2[a] + v2[b];
2132
+ var o1 = v2[a + 1] + v2[b + 1];
2133
+ if (o0 >= 4294967296) {
2134
+ o1++;
2135
+ }
2136
+ v2[a] = o0;
2137
+ v2[a + 1] = o1;
2138
+ }
2139
+ function ADD64AC(v2, a, b0, b1) {
2140
+ var o0 = v2[a] + b0;
2141
+ if (b0 < 0) {
2142
+ o0 += 4294967296;
2143
+ }
2144
+ var o1 = v2[a + 1] + b1;
2145
+ if (o0 >= 4294967296) {
2146
+ o1++;
2147
+ }
2148
+ v2[a] = o0;
2149
+ v2[a + 1] = o1;
2150
+ }
2151
+ function B2B_GET32(arr, i) {
2152
+ return arr[i] ^ arr[i + 1] << 8 ^ arr[i + 2] << 16 ^ arr[i + 3] << 24;
2153
+ }
2154
+ function B2B_G(a, b, c, d, ix, iy) {
2155
+ var x0 = m[ix];
2156
+ var x1 = m[ix + 1];
2157
+ var y0 = m[iy];
2158
+ var y1 = m[iy + 1];
2159
+ ADD64AA(v, a, b);
2160
+ ADD64AC(v, a, x0, x1);
2161
+ var xor0 = v[d] ^ v[a];
2162
+ var xor1 = v[d + 1] ^ v[a + 1];
2163
+ v[d] = xor1;
2164
+ v[d + 1] = xor0;
2165
+ ADD64AA(v, c, d);
2166
+ xor0 = v[b] ^ v[c];
2167
+ xor1 = v[b + 1] ^ v[c + 1];
2168
+ v[b] = xor0 >>> 24 ^ xor1 << 8;
2169
+ v[b + 1] = xor1 >>> 24 ^ xor0 << 8;
2170
+ ADD64AA(v, a, b);
2171
+ ADD64AC(v, a, y0, y1);
2172
+ xor0 = v[d] ^ v[a];
2173
+ xor1 = v[d + 1] ^ v[a + 1];
2174
+ v[d] = xor0 >>> 16 ^ xor1 << 16;
2175
+ v[d + 1] = xor1 >>> 16 ^ xor0 << 16;
2176
+ ADD64AA(v, c, d);
2177
+ xor0 = v[b] ^ v[c];
2178
+ xor1 = v[b + 1] ^ v[c + 1];
2179
+ v[b] = xor1 >>> 31 ^ xor0 << 1;
2180
+ v[b + 1] = xor0 >>> 31 ^ xor1 << 1;
2181
+ }
2182
+ var BLAKE2B_IV32 = new Uint32Array([
2183
+ 4089235720,
2184
+ 1779033703,
2185
+ 2227873595,
2186
+ 3144134277,
2187
+ 4271175723,
2188
+ 1013904242,
2189
+ 1595750129,
2190
+ 2773480762,
2191
+ 2917565137,
2192
+ 1359893119,
2193
+ 725511199,
2194
+ 2600822924,
2195
+ 4215389547,
2196
+ 528734635,
2197
+ 327033209,
2198
+ 1541459225
2199
+ ]);
2200
+ var SIGMA8 = [
2201
+ 0,
2202
+ 1,
2203
+ 2,
2204
+ 3,
2205
+ 4,
2206
+ 5,
2207
+ 6,
2208
+ 7,
2209
+ 8,
2210
+ 9,
2211
+ 10,
2212
+ 11,
2213
+ 12,
2214
+ 13,
2215
+ 14,
2216
+ 15,
2217
+ 14,
2218
+ 10,
2219
+ 4,
2220
+ 8,
2221
+ 9,
2222
+ 15,
2223
+ 13,
2224
+ 6,
2225
+ 1,
2226
+ 12,
2227
+ 0,
2228
+ 2,
2229
+ 11,
2230
+ 7,
2231
+ 5,
2232
+ 3,
2233
+ 11,
2234
+ 8,
2235
+ 12,
2236
+ 0,
2237
+ 5,
2238
+ 2,
2239
+ 15,
2240
+ 13,
2241
+ 10,
2242
+ 14,
2243
+ 3,
2244
+ 6,
2245
+ 7,
2246
+ 1,
2247
+ 9,
2248
+ 4,
2249
+ 7,
2250
+ 9,
2251
+ 3,
2252
+ 1,
2253
+ 13,
2254
+ 12,
2255
+ 11,
2256
+ 14,
2257
+ 2,
2258
+ 6,
2259
+ 5,
2260
+ 10,
2261
+ 4,
2262
+ 0,
2263
+ 15,
2264
+ 8,
2265
+ 9,
2266
+ 0,
2267
+ 5,
2268
+ 7,
2269
+ 2,
2270
+ 4,
2271
+ 10,
2272
+ 15,
2273
+ 14,
2274
+ 1,
2275
+ 11,
2276
+ 12,
2277
+ 6,
2278
+ 8,
2279
+ 3,
2280
+ 13,
2281
+ 2,
2282
+ 12,
2283
+ 6,
2284
+ 10,
2285
+ 0,
2286
+ 11,
2287
+ 8,
2288
+ 3,
2289
+ 4,
2290
+ 13,
2291
+ 7,
2292
+ 5,
2293
+ 15,
2294
+ 14,
2295
+ 1,
2296
+ 9,
2297
+ 12,
2298
+ 5,
2299
+ 1,
2300
+ 15,
2301
+ 14,
2302
+ 13,
2303
+ 4,
2304
+ 10,
2305
+ 0,
2306
+ 7,
2307
+ 6,
2308
+ 3,
2309
+ 9,
2310
+ 2,
2311
+ 8,
2312
+ 11,
2313
+ 13,
2314
+ 11,
2315
+ 7,
2316
+ 14,
2317
+ 12,
2318
+ 1,
2319
+ 3,
2320
+ 9,
2321
+ 5,
2322
+ 0,
2323
+ 15,
2324
+ 4,
2325
+ 8,
2326
+ 6,
2327
+ 2,
2328
+ 10,
2329
+ 6,
2330
+ 15,
2331
+ 14,
2332
+ 9,
2333
+ 11,
2334
+ 3,
2335
+ 0,
2336
+ 8,
2337
+ 12,
2338
+ 2,
2339
+ 13,
2340
+ 7,
2341
+ 1,
2342
+ 4,
2343
+ 10,
2344
+ 5,
2345
+ 10,
2346
+ 2,
2347
+ 8,
2348
+ 4,
2349
+ 7,
2350
+ 6,
2351
+ 1,
2352
+ 5,
2353
+ 15,
2354
+ 11,
2355
+ 9,
2356
+ 14,
2357
+ 3,
2358
+ 12,
2359
+ 13,
2360
+ 0,
2361
+ 0,
2362
+ 1,
2363
+ 2,
2364
+ 3,
2365
+ 4,
2366
+ 5,
2367
+ 6,
2368
+ 7,
2369
+ 8,
2370
+ 9,
2371
+ 10,
2372
+ 11,
2373
+ 12,
2374
+ 13,
2375
+ 14,
2376
+ 15,
2377
+ 14,
2378
+ 10,
2379
+ 4,
2380
+ 8,
2381
+ 9,
2382
+ 15,
2383
+ 13,
2384
+ 6,
2385
+ 1,
2386
+ 12,
2387
+ 0,
2388
+ 2,
2389
+ 11,
2390
+ 7,
2391
+ 5,
2392
+ 3
2393
+ ];
2394
+ var SIGMA82 = new Uint8Array(SIGMA8.map(function(x) {
2395
+ return x * 2;
2396
+ }));
2397
+ var v = new Uint32Array(32);
2398
+ var m = new Uint32Array(32);
2399
+ function blake2bCompress(ctx, last) {
2400
+ var i = 0;
2401
+ for (i = 0; i < 16; i++) {
2402
+ v[i] = ctx.h[i];
2403
+ v[i + 16] = BLAKE2B_IV32[i];
2404
+ }
2405
+ v[24] = v[24] ^ ctx.t;
2406
+ v[25] = v[25] ^ ctx.t / 4294967296;
2407
+ if (last) {
2408
+ v[28] = ~v[28];
2409
+ v[29] = ~v[29];
2410
+ }
2411
+ for (i = 0; i < 32; i++) {
2412
+ m[i] = B2B_GET32(ctx.b, 4 * i);
2413
+ }
2414
+ for (i = 0; i < 12; i++) {
2415
+ B2B_G(0, 8, 16, 24, SIGMA82[i * 16 + 0], SIGMA82[i * 16 + 1]);
2416
+ B2B_G(2, 10, 18, 26, SIGMA82[i * 16 + 2], SIGMA82[i * 16 + 3]);
2417
+ B2B_G(4, 12, 20, 28, SIGMA82[i * 16 + 4], SIGMA82[i * 16 + 5]);
2418
+ B2B_G(6, 14, 22, 30, SIGMA82[i * 16 + 6], SIGMA82[i * 16 + 7]);
2419
+ B2B_G(0, 10, 20, 30, SIGMA82[i * 16 + 8], SIGMA82[i * 16 + 9]);
2420
+ B2B_G(2, 12, 22, 24, SIGMA82[i * 16 + 10], SIGMA82[i * 16 + 11]);
2421
+ B2B_G(4, 14, 16, 26, SIGMA82[i * 16 + 12], SIGMA82[i * 16 + 13]);
2422
+ B2B_G(6, 8, 18, 28, SIGMA82[i * 16 + 14], SIGMA82[i * 16 + 15]);
2423
+ }
2424
+ for (i = 0; i < 16; i++) {
2425
+ ctx.h[i] = ctx.h[i] ^ v[i] ^ v[i + 16];
2426
+ }
2427
+ }
2428
+ var parameter_block = new Uint8Array([
2429
+ 0,
2430
+ 0,
2431
+ 0,
2432
+ 0,
2433
+ // 0: outlen, keylen, fanout, depth
2434
+ 0,
2435
+ 0,
2436
+ 0,
2437
+ 0,
2438
+ // 4: leaf length, sequential mode
2439
+ 0,
2440
+ 0,
2441
+ 0,
2442
+ 0,
2443
+ // 8: node offset
2444
+ 0,
2445
+ 0,
2446
+ 0,
2447
+ 0,
2448
+ // 12: node offset
2449
+ 0,
2450
+ 0,
2451
+ 0,
2452
+ 0,
2453
+ // 16: node depth, inner length, rfu
2454
+ 0,
2455
+ 0,
2456
+ 0,
2457
+ 0,
2458
+ // 20: rfu
2459
+ 0,
2460
+ 0,
2461
+ 0,
2462
+ 0,
2463
+ // 24: rfu
2464
+ 0,
2465
+ 0,
2466
+ 0,
2467
+ 0,
2468
+ // 28: rfu
2469
+ 0,
2470
+ 0,
2471
+ 0,
2472
+ 0,
2473
+ // 32: salt
2474
+ 0,
2475
+ 0,
2476
+ 0,
2477
+ 0,
2478
+ // 36: salt
2479
+ 0,
2480
+ 0,
2481
+ 0,
2482
+ 0,
2483
+ // 40: salt
2484
+ 0,
2485
+ 0,
2486
+ 0,
2487
+ 0,
2488
+ // 44: salt
2489
+ 0,
2490
+ 0,
2491
+ 0,
2492
+ 0,
2493
+ // 48: personal
2494
+ 0,
2495
+ 0,
2496
+ 0,
2497
+ 0,
2498
+ // 52: personal
2499
+ 0,
2500
+ 0,
2501
+ 0,
2502
+ 0,
2503
+ // 56: personal
2504
+ 0,
2505
+ 0,
2506
+ 0,
2507
+ 0
2508
+ // 60: personal
2509
+ ]);
2510
+ function Blake2b(outlen, key, salt, personal) {
2511
+ parameter_block.fill(0);
2512
+ this.b = new Uint8Array(128);
2513
+ this.h = new Uint32Array(16);
2514
+ this.t = 0;
2515
+ this.c = 0;
2516
+ this.outlen = outlen;
2517
+ parameter_block[0] = outlen;
2518
+ if (key) parameter_block[1] = key.length;
2519
+ parameter_block[2] = 1;
2520
+ parameter_block[3] = 1;
2521
+ if (salt) parameter_block.set(salt, 32);
2522
+ if (personal) parameter_block.set(personal, 48);
2523
+ for (var i = 0; i < 16; i++) {
2524
+ this.h[i] = BLAKE2B_IV32[i] ^ B2B_GET32(parameter_block, i * 4);
2525
+ }
2526
+ if (key) {
2527
+ blake2bUpdate(this, key);
2528
+ this.c = 128;
2529
+ }
2530
+ }
2531
+ Blake2b.prototype.update = function(input) {
2532
+ assert(input instanceof Uint8Array, "input must be Uint8Array or Buffer");
2533
+ blake2bUpdate(this, input);
2534
+ return this;
2535
+ };
2536
+ Blake2b.prototype.digest = function(out) {
2537
+ var buf = !out || out === "binary" || out === "hex" ? new Uint8Array(this.outlen) : out;
2538
+ assert(buf instanceof Uint8Array, 'out must be "binary", "hex", Uint8Array, or Buffer');
2539
+ assert(buf.length >= this.outlen, "out must have at least outlen bytes of space");
2540
+ blake2bFinal(this, buf);
2541
+ if (out === "hex") return hexSlice(buf);
2542
+ return buf;
2543
+ };
2544
+ Blake2b.prototype.final = Blake2b.prototype.digest;
2545
+ Blake2b.ready = function(cb) {
2546
+ b2wasm.ready(function() {
2547
+ cb();
2548
+ });
2549
+ };
2550
+ function blake2bUpdate(ctx, input) {
2551
+ for (var i = 0; i < input.length; i++) {
2552
+ if (ctx.c === 128) {
2553
+ ctx.t += ctx.c;
2554
+ blake2bCompress(ctx, false);
2555
+ ctx.c = 0;
2556
+ }
2557
+ ctx.b[ctx.c++] = input[i];
2558
+ }
2559
+ }
2560
+ function blake2bFinal(ctx, out) {
2561
+ ctx.t += ctx.c;
2562
+ while (ctx.c < 128) {
2563
+ ctx.b[ctx.c++] = 0;
2564
+ }
2565
+ blake2bCompress(ctx, true);
2566
+ for (var i = 0; i < ctx.outlen; i++) {
2567
+ out[i] = ctx.h[i >> 2] >> 8 * (i & 3);
2568
+ }
2569
+ return out;
2570
+ }
2571
+ function hexSlice(buf) {
2572
+ var str = "";
2573
+ for (var i = 0; i < buf.length; i++) str += toHex(buf[i]);
2574
+ return str;
2575
+ }
2576
+ function toHex(n) {
2577
+ if (n < 16) return "0" + n.toString(16);
2578
+ return n.toString(16);
2579
+ }
2580
+ var Proto = Blake2b;
2581
+ module2.exports = function createHash(outlen, key, salt, personal, noAssert) {
2582
+ if (noAssert !== true) {
2583
+ assert(outlen >= BYTES_MIN, "outlen must be at least " + BYTES_MIN + ", was given " + outlen);
2584
+ assert(outlen <= BYTES_MAX, "outlen must be at most " + BYTES_MAX + ", was given " + outlen);
2585
+ if (key != null) {
2586
+ assert(key instanceof Uint8Array, "key must be Uint8Array or Buffer");
2587
+ assert(key.length >= KEYBYTES_MIN, "key must be at least " + KEYBYTES_MIN + ", was given " + key.length);
2588
+ assert(key.length <= KEYBYTES_MAX, "key must be at most " + KEYBYTES_MAX + ", was given " + key.length);
2589
+ }
2590
+ if (salt != null) {
2591
+ assert(salt instanceof Uint8Array, "salt must be Uint8Array or Buffer");
2592
+ assert(salt.length === SALTBYTES, "salt must be exactly " + SALTBYTES + ", was given " + salt.length);
2593
+ }
2594
+ if (personal != null) {
2595
+ assert(personal instanceof Uint8Array, "personal must be Uint8Array or Buffer");
2596
+ assert(personal.length === PERSONALBYTES, "personal must be exactly " + PERSONALBYTES + ", was given " + personal.length);
2597
+ }
2598
+ }
2599
+ return new Proto(outlen, key, salt, personal);
2600
+ };
2601
+ module2.exports.ready = function(cb) {
2602
+ b2wasm.ready(function() {
2603
+ cb();
2604
+ });
2605
+ };
2606
+ module2.exports.WASM_SUPPORTED = b2wasm.SUPPORTED;
2607
+ module2.exports.WASM_LOADED = false;
2608
+ var BYTES_MIN = module2.exports.BYTES_MIN = 16;
2609
+ var BYTES_MAX = module2.exports.BYTES_MAX = 64;
2610
+ var BYTES = module2.exports.BYTES = 32;
2611
+ var KEYBYTES_MIN = module2.exports.KEYBYTES_MIN = 16;
2612
+ var KEYBYTES_MAX = module2.exports.KEYBYTES_MAX = 64;
2613
+ var KEYBYTES = module2.exports.KEYBYTES = 32;
2614
+ var SALTBYTES = module2.exports.SALTBYTES = 16;
2615
+ var PERSONALBYTES = module2.exports.PERSONALBYTES = 16;
2616
+ b2wasm.ready(function(err) {
2617
+ if (!err) {
2618
+ module2.exports.WASM_LOADED = true;
2619
+ module2.exports = b2wasm;
2620
+ }
2621
+ });
2622
+ }
2623
+ });
2624
+
1797
2625
  // ../../node_modules/minimalistic-assert/index.js
1798
2626
  var require_minimalistic_assert = __commonJS({
1799
2627
  "../../node_modules/minimalistic-assert/index.js"(exports2, module2) {
@@ -4016,7 +4844,10 @@ var checkSignature = async (data, { key, signature }, address) => {
4016
4844
  return false;
4017
4845
  }
4018
4846
  const hexData = (0, import_common.isHexString)(data) ? data : (0, import_common.stringToHex)(data);
4019
- if (Buffer.from(hexData, "hex").compare(builder.getPayload()) !== 0) {
4847
+ const builderPayload = builder.getPayload();
4848
+ const payloadCompare = Buffer.from(hexData, "hex").compare(builderPayload) == 0;
4849
+ const hashedPayloadCompare = import_crypto.blake2b.hash(hexData, 28) == builderPayload.toString("hex");
4850
+ if (!payloadCompare && !hashedPayloadCompare) {
4020
4851
  return false;
4021
4852
  }
4022
4853
  return builder.verifySignature({
@@ -4111,7 +4942,7 @@ var import_common9 = require("@meshsdk/common");
4111
4942
 
4112
4943
  // src/utils/builder.ts
4113
4944
  var import_crypto3 = require("crypto");
4114
- var import_crypto4 = require("@cardano-sdk/crypto");
4945
+ var import_blake2b = __toESM(require_blake2b2(), 1);
4115
4946
  var import_util2 = require("@cardano-sdk/util");
4116
4947
  var import_hash = __toESM(require_hash(), 1);
4117
4948
  var import_common4 = require("@meshsdk/common");
@@ -4209,7 +5040,7 @@ var buildScriptPubkey = (keyHash) => {
4209
5040
  };
4210
5041
  var buildDRepID = (dRepKey, networkId = NetworkId.Testnet, addressType = AddressType.EnterpriseKey) => {
4211
5042
  const dRepKeyBytes = Buffer.from(dRepKey, "hex");
4212
- const dRepIdHex = import_crypto4.blake2b.hash(import_util2.HexBlob.fromBytes(dRepKeyBytes), 28);
5043
+ const dRepIdHex = (0, import_blake2b.default)(28).update(dRepKeyBytes).digest("hex");
4213
5044
  const paymentAddress = EnterpriseAddress.packParts({
4214
5045
  networkId,
4215
5046
  paymentPart: {
@@ -4226,7 +5057,7 @@ var buildDRepID = (dRepKey, networkId = NetworkId.Testnet, addressType = Address
4226
5057
 
4227
5058
  // src/utils/converter.ts
4228
5059
  var import_core3 = require("@cardano-sdk/core");
4229
- var import_crypto5 = require("@cardano-sdk/crypto");
5060
+ var import_crypto4 = require("@cardano-sdk/crypto");
4230
5061
  var import_util5 = require("@cardano-sdk/util");
4231
5062
  var import_base32_encoding = __toESM(require("base32-encoding"), 1);
4232
5063
  var import_bech32 = require("bech32");
@@ -4487,9 +5318,12 @@ var toEnterpriseAddress = (bech325) => {
4487
5318
  };
4488
5319
  var toRewardAddress = (bech325) => RewardAddress.fromAddress(toAddress(bech325));
4489
5320
  var fromTxUnspentOutput = (txUnspentOutput) => {
4490
- const dataHash = txUnspentOutput.output().datum() ? txUnspentOutput.output().datum()?.toCbor().toString() : void 0;
5321
+ let dataHash = txUnspentOutput.output().datum() ? txUnspentOutput.output().datum()?.asDataHash()?.toString() : void 0;
4491
5322
  const scriptRef = txUnspentOutput.output().scriptRef() ? txUnspentOutput.output().scriptRef()?.toCbor().toString() : void 0;
4492
5323
  const plutusData = txUnspentOutput.output().datum()?.asInlineData() ? txUnspentOutput.output().datum()?.asInlineData()?.toCbor().toString() : void 0;
5324
+ if (plutusData && !dataHash) {
5325
+ dataHash = resolveDataHash(plutusData, "CBOR");
5326
+ }
4493
5327
  return {
4494
5328
  input: {
4495
5329
  outputIndex: Number(txUnspentOutput.input().index()),
@@ -4691,7 +5525,7 @@ var toNativeScript = (script) => {
4691
5525
  case "sig":
4692
5526
  return NativeScript.newScriptPubkey(
4693
5527
  new import_core3.Serialization.ScriptPubkey(
4694
- import_crypto5.Ed25519KeyHash.fromBytes((0, import_common7.toBytes)(script.keyHash)).hex()
5528
+ import_crypto4.Ed25519KeyHash.fromBytes((0, import_common7.toBytes)(script.keyHash)).hex()
4695
5529
  )
4696
5530
  );
4697
5531
  }
@@ -5761,7 +6595,7 @@ var resolveEd25519KeyHash = (bech325) => {
5761
6595
  // src/serializer/index.ts
5762
6596
  var import_buffer2 = require("buffer");
5763
6597
  var import_core9 = require("@cardano-sdk/core");
5764
- var import_util7 = require("@cardano-sdk/util");
6598
+ var import_util8 = require("@cardano-sdk/util");
5765
6599
  var import_cbor3 = require("@harmoniclabs/cbor");
5766
6600
  var import_base32_encoding4 = __toESM(require("base32-encoding"), 1);
5767
6601
  var import_bech324 = require("bech32");
@@ -6181,9 +7015,10 @@ var toCardanoMetadatum = (metadatum) => {
6181
7015
  };
6182
7016
 
6183
7017
  // src/utils/script-data-hash.ts
7018
+ var import_blake2b2 = __toESM(require_blake2b2(), 1);
6184
7019
  var import_core7 = require("@cardano-sdk/core");
6185
- var Crypto3 = __toESM(require("@cardano-sdk/crypto"), 1);
6186
- var import_crypto6 = require("@cardano-sdk/crypto");
7020
+ var import_crypto5 = require("@cardano-sdk/crypto");
7021
+ var import_util7 = require("@cardano-sdk/util");
6187
7022
  var CBOR_EMPTY_MAP = new Uint8Array([160]);
6188
7023
  var hashScriptData = (costModels, redemeers, datums) => {
6189
7024
  const writer = new import_core7.Serialization.CborWriter();
@@ -6201,7 +7036,8 @@ var hashScriptData = (costModels, redemeers, datums) => {
6201
7036
  Buffer.from(costModels.languageViewsEncoding(), "hex")
6202
7037
  );
6203
7038
  }
6204
- return import_crypto6.Hash32ByteBase16.fromHexBlob(Crypto3.blake2b.hash(writer.encode(), 32));
7039
+ const hashHex = (0, import_blake2b2.default)(32).update(Buffer.from(writer.encode())).digest("hex");
7040
+ return import_crypto5.Hash32ByteBase16.fromHexBlob((0, import_util7.HexBlob)(hashHex));
6205
7041
  };
6206
7042
 
6207
7043
  // src/utils/vote.ts
@@ -6383,15 +7219,15 @@ var CardanoSDKSerializer = class {
6383
7219
  let cardanoPlutusScript;
6384
7220
  switch (script.version) {
6385
7221
  case "V1": {
6386
- cardanoPlutusScript = new PlutusV1Script((0, import_util7.HexBlob)(script.code));
7222
+ cardanoPlutusScript = new PlutusV1Script((0, import_util8.HexBlob)(script.code));
6387
7223
  break;
6388
7224
  }
6389
7225
  case "V2": {
6390
- cardanoPlutusScript = new PlutusV2Script((0, import_util7.HexBlob)(script.code));
7226
+ cardanoPlutusScript = new PlutusV2Script((0, import_util8.HexBlob)(script.code));
6391
7227
  break;
6392
7228
  }
6393
7229
  case "V3": {
6394
- cardanoPlutusScript = new PlutusV3Script((0, import_util7.HexBlob)(script.code));
7230
+ cardanoPlutusScript = new PlutusV3Script((0, import_util8.HexBlob)(script.code));
6395
7231
  break;
6396
7232
  }
6397
7233
  }
@@ -6535,7 +7371,7 @@ var CardanoSDKSerializer = class {
6535
7371
  keyHex = keyHex.substring(4);
6536
7372
  }
6537
7373
  const cardanoSigner = buildEd25519PrivateKeyFromSecretKey(keyHex);
6538
- const signature = cardanoSigner.sign((0, import_util7.HexBlob)(cardanoTx.getId()));
7374
+ const signature = cardanoSigner.sign((0, import_util8.HexBlob)(cardanoTx.getId()));
6539
7375
  currentWitnessSetVkeysValues.push(
6540
7376
  new VkeyWitness(
6541
7377
  Ed25519PublicKeyHex2(cardanoSigner.toPublic().hex()),
@@ -6579,7 +7415,7 @@ var CardanoSDKSerializer = class {
6579
7415
  case "V1": {
6580
7416
  cardanoOutput.setScriptRef(
6581
7417
  Script.newPlutusV1Script(
6582
- PlutusV1Script.fromCbor((0, import_util7.HexBlob)(output.referenceScript.code))
7418
+ PlutusV1Script.fromCbor((0, import_util8.HexBlob)(output.referenceScript.code))
6583
7419
  )
6584
7420
  );
6585
7421
  break;
@@ -6587,7 +7423,7 @@ var CardanoSDKSerializer = class {
6587
7423
  case "V2": {
6588
7424
  cardanoOutput.setScriptRef(
6589
7425
  Script.newPlutusV2Script(
6590
- PlutusV2Script.fromCbor((0, import_util7.HexBlob)(output.referenceScript.code))
7426
+ PlutusV2Script.fromCbor((0, import_util8.HexBlob)(output.referenceScript.code))
6591
7427
  )
6592
7428
  );
6593
7429
  break;
@@ -6595,7 +7431,7 @@ var CardanoSDKSerializer = class {
6595
7431
  case "V3": {
6596
7432
  cardanoOutput.setScriptRef(
6597
7433
  Script.newPlutusV3Script(
6598
- PlutusV3Script.fromCbor((0, import_util7.HexBlob)(output.referenceScript.code))
7434
+ PlutusV3Script.fromCbor((0, import_util8.HexBlob)(output.referenceScript.code))
6599
7435
  )
6600
7436
  );
6601
7437
  break;
@@ -6603,7 +7439,7 @@ var CardanoSDKSerializer = class {
6603
7439
  default: {
6604
7440
  cardanoOutput.setScriptRef(
6605
7441
  Script.newNativeScript(
6606
- NativeScript.fromCbor((0, import_util7.HexBlob)(output.referenceScript.code))
7442
+ NativeScript.fromCbor((0, import_util8.HexBlob)(output.referenceScript.code))
6607
7443
  )
6608
7444
  );
6609
7445
  break;
@@ -6944,7 +7780,7 @@ var CardanoSDKSerializerCore = class {
6944
7780
  this.scriptsProvided.add(
6945
7781
  Script.newNativeScript(
6946
7782
  NativeScript.fromCbor(
6947
- (0, import_util7.HexBlob)(currentTxIn.simpleScriptTxIn.scriptSource.scriptCode)
7783
+ (0, import_util8.HexBlob)(currentTxIn.simpleScriptTxIn.scriptSource.scriptCode)
6948
7784
  )
6949
7785
  ).toCbor()
6950
7786
  );
@@ -6996,7 +7832,7 @@ var CardanoSDKSerializerCore = class {
6996
7832
  case "V1": {
6997
7833
  cardanoOutput.setScriptRef(
6998
7834
  Script.newPlutusV1Script(
6999
- PlutusV1Script.fromCbor((0, import_util7.HexBlob)(output.referenceScript.code))
7835
+ PlutusV1Script.fromCbor((0, import_util8.HexBlob)(output.referenceScript.code))
7000
7836
  )
7001
7837
  );
7002
7838
  break;
@@ -7004,7 +7840,7 @@ var CardanoSDKSerializerCore = class {
7004
7840
  case "V2": {
7005
7841
  cardanoOutput.setScriptRef(
7006
7842
  Script.newPlutusV2Script(
7007
- PlutusV2Script.fromCbor((0, import_util7.HexBlob)(output.referenceScript.code))
7843
+ PlutusV2Script.fromCbor((0, import_util8.HexBlob)(output.referenceScript.code))
7008
7844
  )
7009
7845
  );
7010
7846
  break;
@@ -7012,7 +7848,7 @@ var CardanoSDKSerializerCore = class {
7012
7848
  case "V3": {
7013
7849
  cardanoOutput.setScriptRef(
7014
7850
  Script.newPlutusV3Script(
7015
- PlutusV3Script.fromCbor((0, import_util7.HexBlob)(output.referenceScript.code))
7851
+ PlutusV3Script.fromCbor((0, import_util8.HexBlob)(output.referenceScript.code))
7016
7852
  )
7017
7853
  );
7018
7854
  break;
@@ -7094,7 +7930,7 @@ var CardanoSDKSerializerCore = class {
7094
7930
  if (nativeScriptSource.type === "Provided") {
7095
7931
  this.scriptsProvided.add(
7096
7932
  Script.newNativeScript(
7097
- NativeScript.fromCbor((0, import_util7.HexBlob)(nativeScriptSource.scriptCode))
7933
+ NativeScript.fromCbor((0, import_util8.HexBlob)(nativeScriptSource.scriptCode))
7098
7934
  ).toCbor()
7099
7935
  );
7100
7936
  } else if (nativeScriptSource.type === "Inline") {
@@ -7159,7 +7995,7 @@ var CardanoSDKSerializerCore = class {
7159
7995
  if (nativeScriptSource.type === "Provided") {
7160
7996
  this.scriptsProvided.add(
7161
7997
  Script.newNativeScript(
7162
- NativeScript.fromCbor((0, import_util7.HexBlob)(nativeScriptSource.scriptCode))
7998
+ NativeScript.fromCbor((0, import_util8.HexBlob)(nativeScriptSource.scriptCode))
7163
7999
  ).toCbor()
7164
8000
  );
7165
8001
  } else if (nativeScriptSource.type === "Inline") {
@@ -7232,7 +8068,7 @@ var CardanoSDKSerializerCore = class {
7232
8068
  if (nativeScriptSource.type === "Provided") {
7233
8069
  this.scriptsProvided.add(
7234
8070
  Script.newNativeScript(
7235
- NativeScript.fromCbor((0, import_util7.HexBlob)(nativeScriptSource.scriptCode))
8071
+ NativeScript.fromCbor((0, import_util8.HexBlob)(nativeScriptSource.scriptCode))
7236
8072
  ).toCbor()
7237
8073
  );
7238
8074
  } else if (nativeScriptSource.type === "Inline") {
@@ -7358,25 +8194,25 @@ var CardanoSDKSerializerCore = class {
7358
8194
  switch (script.scriptType) {
7359
8195
  case "Native": {
7360
8196
  nativeScriptArray.push(
7361
- NativeScript.fromCbor((0, import_util7.HexBlob)(script.scriptCbor))
8197
+ NativeScript.fromCbor((0, import_util8.HexBlob)(script.scriptCbor))
7362
8198
  );
7363
8199
  break;
7364
8200
  }
7365
8201
  case "PlutusV1": {
7366
8202
  plutusV1ScriptArray.push(
7367
- PlutusV1Script.fromCbor((0, import_util7.HexBlob)(script.scriptCbor))
8203
+ PlutusV1Script.fromCbor((0, import_util8.HexBlob)(script.scriptCbor))
7368
8204
  );
7369
8205
  break;
7370
8206
  }
7371
8207
  case "PlutusV2": {
7372
8208
  plutusV2ScriptArray.push(
7373
- PlutusV2Script.fromCbor((0, import_util7.HexBlob)(script.scriptCbor))
8209
+ PlutusV2Script.fromCbor((0, import_util8.HexBlob)(script.scriptCbor))
7374
8210
  );
7375
8211
  break;
7376
8212
  }
7377
8213
  case "PlutusV3": {
7378
8214
  plutusV3ScriptArray.push(
7379
- PlutusV3Script.fromCbor((0, import_util7.HexBlob)(script.scriptCbor))
8215
+ PlutusV3Script.fromCbor((0, import_util8.HexBlob)(script.scriptCbor))
7380
8216
  );
7381
8217
  break;
7382
8218
  }
@@ -7410,7 +8246,7 @@ var CardanoSDKSerializerCore = class {
7410
8246
  let v2Scripts = this.txWitnessSet.plutusV2Scripts() ?? import_core9.Serialization.CborSet.fromCore([], PlutusV2Script.fromCore);
7411
8247
  let v3Scripts = this.txWitnessSet.plutusV3Scripts() ?? import_core9.Serialization.CborSet.fromCore([], PlutusV3Script.fromCore);
7412
8248
  this.scriptsProvided.forEach((scriptHex) => {
7413
- const script = Script.fromCbor((0, import_util7.HexBlob)(scriptHex));
8249
+ const script = Script.fromCbor((0, import_util8.HexBlob)(scriptHex));
7414
8250
  if (script.asNative() !== void 0) {
7415
8251
  let nativeScriptsList = [...nativeScripts.values()];
7416
8252
  nativeScriptsList.push(script.asNative());
@@ -7560,7 +8396,7 @@ var CardanoSDKSerializerCore = class {
7560
8396
  case "V1": {
7561
8397
  this.scriptsProvided.add(
7562
8398
  Script.newPlutusV1Script(
7563
- PlutusV1Script.fromCbor((0, import_util7.HexBlob)(script.code))
8399
+ PlutusV1Script.fromCbor((0, import_util8.HexBlob)(script.code))
7564
8400
  ).toCbor()
7565
8401
  );
7566
8402
  this.usedLanguages[PlutusLanguageVersion.V1] = true;
@@ -7569,7 +8405,7 @@ var CardanoSDKSerializerCore = class {
7569
8405
  case "V2": {
7570
8406
  this.scriptsProvided.add(
7571
8407
  Script.newPlutusV2Script(
7572
- PlutusV2Script.fromCbor((0, import_util7.HexBlob)(script.code))
8408
+ PlutusV2Script.fromCbor((0, import_util8.HexBlob)(script.code))
7573
8409
  ).toCbor()
7574
8410
  );
7575
8411
  this.usedLanguages[PlutusLanguageVersion.V2] = true;
@@ -7578,7 +8414,7 @@ var CardanoSDKSerializerCore = class {
7578
8414
  case "V3": {
7579
8415
  this.scriptsProvided.add(
7580
8416
  Script.newPlutusV3Script(
7581
- PlutusV3Script.fromCbor((0, import_util7.HexBlob)(script.code))
8417
+ PlutusV3Script.fromCbor((0, import_util8.HexBlob)(script.code))
7582
8418
  ).toCbor()
7583
8419
  );
7584
8420
  this.usedLanguages[PlutusLanguageVersion.V3] = true;
@@ -7659,7 +8495,7 @@ var CardanoSDKSerializerCore = class {
7659
8495
  if (nativeScriptSource.type === "Provided") {
7660
8496
  this.scriptsProvided.add(
7661
8497
  Script.newNativeScript(
7662
- NativeScript.fromCbor((0, import_util7.HexBlob)(nativeScriptSource.scriptCode))
8498
+ NativeScript.fromCbor((0, import_util8.HexBlob)(nativeScriptSource.scriptCode))
7663
8499
  ).toCbor()
7664
8500
  );
7665
8501
  } else if (nativeScriptSource.type === "Inline") {
@@ -7755,7 +8591,7 @@ var CardanoSDKSerializerCore = class {
7755
8591
  if (nativeScriptSource.type === "Provided") {
7756
8592
  this.scriptsProvided.add(
7757
8593
  Script.newNativeScript(
7758
- NativeScript.fromCbor((0, import_util7.HexBlob)(nativeScriptSource.scriptCode))
8594
+ NativeScript.fromCbor((0, import_util8.HexBlob)(nativeScriptSource.scriptCode))
7759
8595
  ).toCbor()
7760
8596
  );
7761
8597
  } else if (nativeScriptSource.type === "Inline") {
@@ -7806,7 +8642,7 @@ var CardanoSDKSerializerCore = class {
7806
8642
  new BootstrapWitness(
7807
8643
  Ed25519PublicKeyHex2(pubKeyHex),
7808
8644
  Ed25519SignatureHex2(signature),
7809
- (0, import_util7.HexBlob)(chainCode),
8645
+ (0, import_util8.HexBlob)(chainCode),
7810
8646
  this.serializeByronAttributes(attributes)
7811
8647
  )
7812
8648
  );