@premai/reticle 0.4.7 → 0.5.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.
- package/README.md +63 -26
- package/package.json +3 -2
- package/reticle.d.ts +47 -31
- package/reticle.js +1 -1
- package/reticle_bg.js +217 -146
- package/reticle_bg.wasm +0 -0
- package/reticle_main.cjs +221 -148
package/reticle_main.cjs
CHANGED
|
@@ -70,6 +70,70 @@ class AttestResult {
|
|
|
70
70
|
if (Symbol.dispose) AttestResult.prototype[Symbol.dispose] = AttestResult.prototype.free;
|
|
71
71
|
exports.AttestResult = AttestResult;
|
|
72
72
|
|
|
73
|
+
class AzureNonce {
|
|
74
|
+
static __wrap(ptr) {
|
|
75
|
+
const obj = Object.create(AzureNonce.prototype);
|
|
76
|
+
obj.__wbg_ptr = ptr;
|
|
77
|
+
AzureNonceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
__destroy_into_raw() {
|
|
81
|
+
const ptr = this.__wbg_ptr;
|
|
82
|
+
this.__wbg_ptr = 0;
|
|
83
|
+
AzureNonceFinalization.unregister(this);
|
|
84
|
+
return ptr;
|
|
85
|
+
}
|
|
86
|
+
free() {
|
|
87
|
+
const ptr = this.__destroy_into_raw();
|
|
88
|
+
wasm.__wbg_azurenonce_free(ptr, 0);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @returns {AzureNonce}
|
|
92
|
+
*/
|
|
93
|
+
static generate() {
|
|
94
|
+
const ret = wasm.azurenonce_generate();
|
|
95
|
+
return AzureNonce.__wrap(ret);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @returns {string}
|
|
99
|
+
*/
|
|
100
|
+
to_hex() {
|
|
101
|
+
let deferred1_0;
|
|
102
|
+
let deferred1_1;
|
|
103
|
+
try {
|
|
104
|
+
const ret = wasm.azurenonce_to_hex(this.__wbg_ptr);
|
|
105
|
+
deferred1_0 = ret[0];
|
|
106
|
+
deferred1_1 = ret[1];
|
|
107
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
108
|
+
} finally {
|
|
109
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (Symbol.dispose) AzureNonce.prototype[Symbol.dispose] = AzureNonce.prototype.free;
|
|
114
|
+
exports.AzureNonce = AzureNonce;
|
|
115
|
+
|
|
116
|
+
class AzureQuote {
|
|
117
|
+
static __wrap(ptr) {
|
|
118
|
+
const obj = Object.create(AzureQuote.prototype);
|
|
119
|
+
obj.__wbg_ptr = ptr;
|
|
120
|
+
AzureQuoteFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
121
|
+
return obj;
|
|
122
|
+
}
|
|
123
|
+
__destroy_into_raw() {
|
|
124
|
+
const ptr = this.__wbg_ptr;
|
|
125
|
+
this.__wbg_ptr = 0;
|
|
126
|
+
AzureQuoteFinalization.unregister(this);
|
|
127
|
+
return ptr;
|
|
128
|
+
}
|
|
129
|
+
free() {
|
|
130
|
+
const ptr = this.__destroy_into_raw();
|
|
131
|
+
wasm.__wbg_azurequote_free(ptr, 0);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (Symbol.dispose) AzureQuote.prototype[Symbol.dispose] = AzureQuote.prototype.free;
|
|
135
|
+
exports.AzureQuote = AzureQuote;
|
|
136
|
+
|
|
73
137
|
/**
|
|
74
138
|
* A parsed certificate revocation list
|
|
75
139
|
*/
|
|
@@ -148,6 +212,13 @@ class Client {
|
|
|
148
212
|
const ret = wasm.client_attest(this.__wbg_ptr);
|
|
149
213
|
return ret;
|
|
150
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* @returns {Promise<void>}
|
|
217
|
+
*/
|
|
218
|
+
attest_azure() {
|
|
219
|
+
const ret = wasm.client_attest_azure(this.__wbg_ptr);
|
|
220
|
+
return ret;
|
|
221
|
+
}
|
|
151
222
|
/**
|
|
152
223
|
* Completes end-to-end nvidia attestation. Generates nonce and validates claims all in one
|
|
153
224
|
* @returns {Promise<ResponseHeaders>}
|
|
@@ -172,6 +243,16 @@ class Client {
|
|
|
172
243
|
const ret = wasm.client_attest_tdx(this.__wbg_ptr);
|
|
173
244
|
return ret;
|
|
174
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* Requests and parses an Azure Quote
|
|
248
|
+
* @param {AzureNonce} nonce
|
|
249
|
+
* @returns {Promise<AzureQuote>}
|
|
250
|
+
*/
|
|
251
|
+
request_azure(nonce) {
|
|
252
|
+
_assertClass(nonce, AzureNonce);
|
|
253
|
+
const ret = wasm.client_request_azure(this.__wbg_ptr, nonce.__wbg_ptr);
|
|
254
|
+
return ret;
|
|
255
|
+
}
|
|
175
256
|
/**
|
|
176
257
|
* Gather available attestable modules from remote attestation endpoint
|
|
177
258
|
* @returns {Promise<Modules>}
|
|
@@ -203,7 +284,7 @@ class Client {
|
|
|
203
284
|
* or measurement checks on the attestation. If you want to perform end-to-end attestation
|
|
204
285
|
* please refer to [`Self::attest_sev`]
|
|
205
286
|
* @param {SevNonce} nonce
|
|
206
|
-
* @returns {Promise<
|
|
287
|
+
* @returns {Promise<SevQuote>}
|
|
207
288
|
*/
|
|
208
289
|
request_sev(nonce) {
|
|
209
290
|
_assertClass(nonce, SevNonce);
|
|
@@ -350,11 +431,12 @@ if (Symbol.dispose) Collateral.prototype[Symbol.dispose] = Collateral.prototype.
|
|
|
350
431
|
exports.Collateral = Collateral;
|
|
351
432
|
|
|
352
433
|
/**
|
|
353
|
-
* @enum {0 | 1}
|
|
434
|
+
* @enum {0 | 1 | 2}
|
|
354
435
|
*/
|
|
355
436
|
const CpuModule = Object.freeze({
|
|
356
437
|
Sev: 0, "0": "Sev",
|
|
357
438
|
Tdx: 1, "1": "Tdx",
|
|
439
|
+
Azure: 2, "2": "Azure",
|
|
358
440
|
});
|
|
359
441
|
exports.CpuModule = CpuModule;
|
|
360
442
|
|
|
@@ -564,21 +646,21 @@ class Kds {
|
|
|
564
646
|
wasm.__wbg_kds_free(ptr, 0);
|
|
565
647
|
}
|
|
566
648
|
/**
|
|
567
|
-
* @param {
|
|
649
|
+
* @param {SevQuote} attestation
|
|
568
650
|
* @returns {Promise<VerifiedChain>}
|
|
569
651
|
*/
|
|
570
652
|
fetch_certificates(attestation) {
|
|
571
|
-
_assertClass(attestation,
|
|
653
|
+
_assertClass(attestation, SevQuote);
|
|
572
654
|
const ret = wasm.kds_fetch_certificates(this.__wbg_ptr, attestation.__wbg_ptr);
|
|
573
655
|
return ret;
|
|
574
656
|
}
|
|
575
657
|
/**
|
|
576
658
|
* Fetches the certificate revocation list from AMD's KDS
|
|
577
|
-
* @param {
|
|
659
|
+
* @param {SevQuote} attestation
|
|
578
660
|
* @returns {Promise<CRL>}
|
|
579
661
|
*/
|
|
580
662
|
fetch_crl(attestation) {
|
|
581
|
-
_assertClass(attestation,
|
|
663
|
+
_assertClass(attestation, SevQuote);
|
|
582
664
|
const ret = wasm.kds_fetch_crl(this.__wbg_ptr, attestation.__wbg_ptr);
|
|
583
665
|
return ret;
|
|
584
666
|
}
|
|
@@ -727,72 +809,6 @@ class NvidiaNonce {
|
|
|
727
809
|
if (Symbol.dispose) NvidiaNonce.prototype[Symbol.dispose] = NvidiaNonce.prototype.free;
|
|
728
810
|
exports.NvidiaNonce = NvidiaNonce;
|
|
729
811
|
|
|
730
|
-
/**
|
|
731
|
-
* Represents a parsed attestation report with some already
|
|
732
|
-
* parsed commonly accessed fields
|
|
733
|
-
*/
|
|
734
|
-
class ParsedAttestation {
|
|
735
|
-
static __wrap(ptr) {
|
|
736
|
-
const obj = Object.create(ParsedAttestation.prototype);
|
|
737
|
-
obj.__wbg_ptr = ptr;
|
|
738
|
-
ParsedAttestationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
739
|
-
return obj;
|
|
740
|
-
}
|
|
741
|
-
__destroy_into_raw() {
|
|
742
|
-
const ptr = this.__wbg_ptr;
|
|
743
|
-
this.__wbg_ptr = 0;
|
|
744
|
-
ParsedAttestationFinalization.unregister(this);
|
|
745
|
-
return ptr;
|
|
746
|
-
}
|
|
747
|
-
free() {
|
|
748
|
-
const ptr = this.__destroy_into_raw();
|
|
749
|
-
wasm.__wbg_parsedattestation_free(ptr, 0);
|
|
750
|
-
}
|
|
751
|
-
/**
|
|
752
|
-
* @returns {number}
|
|
753
|
-
*/
|
|
754
|
-
cpu_fam_id() {
|
|
755
|
-
const ret = wasm.parsedattestation_cpu_fam_id(this.__wbg_ptr);
|
|
756
|
-
return ret;
|
|
757
|
-
}
|
|
758
|
-
/**
|
|
759
|
-
* @returns {number}
|
|
760
|
-
*/
|
|
761
|
-
cpu_mod_id() {
|
|
762
|
-
const ret = wasm.parsedattestation_cpu_mod_id(this.__wbg_ptr);
|
|
763
|
-
return ret;
|
|
764
|
-
}
|
|
765
|
-
/**
|
|
766
|
-
* Parses and constructs a new attestation report from a stream of binary data
|
|
767
|
-
* @param {Uint8Array} bytes
|
|
768
|
-
* @returns {ParsedAttestation}
|
|
769
|
-
*/
|
|
770
|
-
static new(bytes) {
|
|
771
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
772
|
-
const len0 = WASM_VECTOR_LEN;
|
|
773
|
-
const ret = wasm.parsedattestation_new(ptr0, len0);
|
|
774
|
-
if (ret[2]) {
|
|
775
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
776
|
-
}
|
|
777
|
-
return ParsedAttestation.__wrap(ret[0]);
|
|
778
|
-
}
|
|
779
|
-
/**
|
|
780
|
-
* Verifies the attestation report against a certificate chain
|
|
781
|
-
* @param {VerifiedChain} chain
|
|
782
|
-
* @param {SevNonce} nonce
|
|
783
|
-
*/
|
|
784
|
-
verify(chain, nonce) {
|
|
785
|
-
_assertClass(chain, VerifiedChain);
|
|
786
|
-
_assertClass(nonce, SevNonce);
|
|
787
|
-
const ret = wasm.parsedattestation_verify(this.__wbg_ptr, chain.__wbg_ptr, nonce.__wbg_ptr);
|
|
788
|
-
if (ret[1]) {
|
|
789
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
if (Symbol.dispose) ParsedAttestation.prototype[Symbol.dispose] = ParsedAttestation.prototype.free;
|
|
794
|
-
exports.ParsedAttestation = ParsedAttestation;
|
|
795
|
-
|
|
796
812
|
class Pcs {
|
|
797
813
|
__destroy_into_raw() {
|
|
798
814
|
const ptr = this.__wbg_ptr;
|
|
@@ -880,45 +896,6 @@ class QueryParams {
|
|
|
880
896
|
if (Symbol.dispose) QueryParams.prototype[Symbol.dispose] = QueryParams.prototype.free;
|
|
881
897
|
exports.QueryParams = QueryParams;
|
|
882
898
|
|
|
883
|
-
class QuoteVerifier {
|
|
884
|
-
__destroy_into_raw() {
|
|
885
|
-
const ptr = this.__wbg_ptr;
|
|
886
|
-
this.__wbg_ptr = 0;
|
|
887
|
-
QuoteVerifierFinalization.unregister(this);
|
|
888
|
-
return ptr;
|
|
889
|
-
}
|
|
890
|
-
free() {
|
|
891
|
-
const ptr = this.__destroy_into_raw();
|
|
892
|
-
wasm.__wbg_quoteverifier_free(ptr, 0);
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* @param {Collateral} collateral
|
|
896
|
-
* @param {TdxQuote} quote
|
|
897
|
-
*/
|
|
898
|
-
constructor(collateral, quote) {
|
|
899
|
-
_assertClass(collateral, Collateral);
|
|
900
|
-
var ptr0 = collateral.__destroy_into_raw();
|
|
901
|
-
_assertClass(quote, TdxQuote);
|
|
902
|
-
var ptr1 = quote.__destroy_into_raw();
|
|
903
|
-
const ret = wasm.quoteverifier_new(ptr0, ptr1);
|
|
904
|
-
this.__wbg_ptr = ret;
|
|
905
|
-
QuoteVerifierFinalization.register(this, this.__wbg_ptr, this);
|
|
906
|
-
return this;
|
|
907
|
-
}
|
|
908
|
-
/**
|
|
909
|
-
* @param {TdxNonce} nonce
|
|
910
|
-
*/
|
|
911
|
-
verify(nonce) {
|
|
912
|
-
_assertClass(nonce, TdxNonce);
|
|
913
|
-
const ret = wasm.quoteverifier_verify(this.__wbg_ptr, nonce.__wbg_ptr);
|
|
914
|
-
if (ret[1]) {
|
|
915
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
if (Symbol.dispose) QuoteVerifier.prototype[Symbol.dispose] = QuoteVerifier.prototype.free;
|
|
920
|
-
exports.QuoteVerifier = QuoteVerifier;
|
|
921
|
-
|
|
922
899
|
class ResponseHeaders {
|
|
923
900
|
static __wrap(ptr) {
|
|
924
901
|
const obj = Object.create(ResponseHeaders.prototype);
|
|
@@ -1007,6 +984,59 @@ class SevNonce {
|
|
|
1007
984
|
if (Symbol.dispose) SevNonce.prototype[Symbol.dispose] = SevNonce.prototype.free;
|
|
1008
985
|
exports.SevNonce = SevNonce;
|
|
1009
986
|
|
|
987
|
+
/**
|
|
988
|
+
* Represents a parsed attestation report with some already
|
|
989
|
+
* parsed commonly accessed fields
|
|
990
|
+
*/
|
|
991
|
+
class SevQuote {
|
|
992
|
+
static __wrap(ptr) {
|
|
993
|
+
const obj = Object.create(SevQuote.prototype);
|
|
994
|
+
obj.__wbg_ptr = ptr;
|
|
995
|
+
SevQuoteFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
996
|
+
return obj;
|
|
997
|
+
}
|
|
998
|
+
__destroy_into_raw() {
|
|
999
|
+
const ptr = this.__wbg_ptr;
|
|
1000
|
+
this.__wbg_ptr = 0;
|
|
1001
|
+
SevQuoteFinalization.unregister(this);
|
|
1002
|
+
return ptr;
|
|
1003
|
+
}
|
|
1004
|
+
free() {
|
|
1005
|
+
const ptr = this.__destroy_into_raw();
|
|
1006
|
+
wasm.__wbg_sevquote_free(ptr, 0);
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* @returns {number}
|
|
1010
|
+
*/
|
|
1011
|
+
cpu_fam_id() {
|
|
1012
|
+
const ret = wasm.sevquote_cpu_fam_id(this.__wbg_ptr);
|
|
1013
|
+
return ret;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* @returns {number}
|
|
1017
|
+
*/
|
|
1018
|
+
cpu_mod_id() {
|
|
1019
|
+
const ret = wasm.sevquote_cpu_mod_id(this.__wbg_ptr);
|
|
1020
|
+
return ret;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Parses and constructs a new attestation report from a stream of binary data
|
|
1024
|
+
* @param {Uint8Array} bytes
|
|
1025
|
+
* @returns {SevQuote}
|
|
1026
|
+
*/
|
|
1027
|
+
static new(bytes) {
|
|
1028
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1029
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1030
|
+
const ret = wasm.sevquote_new(ptr0, len0);
|
|
1031
|
+
if (ret[2]) {
|
|
1032
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1033
|
+
}
|
|
1034
|
+
return SevQuote.__wrap(ret[0]);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
if (Symbol.dispose) SevQuote.prototype[Symbol.dispose] = SevQuote.prototype.free;
|
|
1038
|
+
exports.SevQuote = SevQuote;
|
|
1039
|
+
|
|
1010
1040
|
class TcbLevels {
|
|
1011
1041
|
__destroy_into_raw() {
|
|
1012
1042
|
const ptr = this.__wbg_ptr;
|
|
@@ -1023,6 +1053,12 @@ if (Symbol.dispose) TcbLevels.prototype[Symbol.dispose] = TcbLevels.prototype.fr
|
|
|
1023
1053
|
exports.TcbLevels = TcbLevels;
|
|
1024
1054
|
|
|
1025
1055
|
class TdxNonce {
|
|
1056
|
+
static __wrap(ptr) {
|
|
1057
|
+
const obj = Object.create(TdxNonce.prototype);
|
|
1058
|
+
obj.__wbg_ptr = ptr;
|
|
1059
|
+
TdxNonceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1060
|
+
return obj;
|
|
1061
|
+
}
|
|
1026
1062
|
__destroy_into_raw() {
|
|
1027
1063
|
const ptr = this.__wbg_ptr;
|
|
1028
1064
|
this.__wbg_ptr = 0;
|
|
@@ -1033,11 +1069,12 @@ class TdxNonce {
|
|
|
1033
1069
|
const ptr = this.__destroy_into_raw();
|
|
1034
1070
|
wasm.__wbg_tdxnonce_free(ptr, 0);
|
|
1035
1071
|
}
|
|
1036
|
-
|
|
1072
|
+
/**
|
|
1073
|
+
* @returns {TdxNonce}
|
|
1074
|
+
*/
|
|
1075
|
+
static generate() {
|
|
1037
1076
|
const ret = wasm.tdxnonce_generate();
|
|
1038
|
-
|
|
1039
|
-
TdxNonceFinalization.register(this, this.__wbg_ptr, this);
|
|
1040
|
-
return this;
|
|
1077
|
+
return TdxNonce.__wrap(ret);
|
|
1041
1078
|
}
|
|
1042
1079
|
/**
|
|
1043
1080
|
* @returns {string}
|
|
@@ -1093,6 +1130,32 @@ class TdxQuote {
|
|
|
1093
1130
|
if (Symbol.dispose) TdxQuote.prototype[Symbol.dispose] = TdxQuote.prototype.free;
|
|
1094
1131
|
exports.TdxQuote = TdxQuote;
|
|
1095
1132
|
|
|
1133
|
+
class TdxQuoteVerifier {
|
|
1134
|
+
__destroy_into_raw() {
|
|
1135
|
+
const ptr = this.__wbg_ptr;
|
|
1136
|
+
this.__wbg_ptr = 0;
|
|
1137
|
+
TdxQuoteVerifierFinalization.unregister(this);
|
|
1138
|
+
return ptr;
|
|
1139
|
+
}
|
|
1140
|
+
free() {
|
|
1141
|
+
const ptr = this.__destroy_into_raw();
|
|
1142
|
+
wasm.__wbg_tdxquoteverifier_free(ptr, 0);
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* @param {Collateral} collateral
|
|
1146
|
+
*/
|
|
1147
|
+
constructor(collateral) {
|
|
1148
|
+
_assertClass(collateral, Collateral);
|
|
1149
|
+
var ptr0 = collateral.__destroy_into_raw();
|
|
1150
|
+
const ret = wasm.tdxquoteverifier_new(ptr0);
|
|
1151
|
+
this.__wbg_ptr = ret;
|
|
1152
|
+
TdxQuoteVerifierFinalization.register(this, this.__wbg_ptr, this);
|
|
1153
|
+
return this;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
if (Symbol.dispose) TdxQuoteVerifier.prototype[Symbol.dispose] = TdxQuoteVerifier.prototype.free;
|
|
1157
|
+
exports.TdxQuoteVerifier = TdxQuoteVerifier;
|
|
1158
|
+
|
|
1096
1159
|
/**
|
|
1097
1160
|
* A chain which has been cryptographically verified
|
|
1098
1161
|
*/
|
|
@@ -1226,6 +1289,10 @@ function __wbg_get_imports() {
|
|
|
1226
1289
|
const ret = AttestResult.__wrap(arg0);
|
|
1227
1290
|
return ret;
|
|
1228
1291
|
},
|
|
1292
|
+
__wbg_azurequote_new: function(arg0) {
|
|
1293
|
+
const ret = AzureQuote.__wrap(arg0);
|
|
1294
|
+
return ret;
|
|
1295
|
+
},
|
|
1229
1296
|
__wbg_call_13665d9f14390edc: function() { return handleError(function (arg0, arg1) {
|
|
1230
1297
|
const ret = arg0.call(arg1);
|
|
1231
1298
|
return ret;
|
|
@@ -1234,7 +1301,7 @@ function __wbg_get_imports() {
|
|
|
1234
1301
|
const ret = arg0.call(arg1, arg2);
|
|
1235
1302
|
return ret;
|
|
1236
1303
|
}, arguments); },
|
|
1237
|
-
|
|
1304
|
+
__wbg_clearTimeout_333bba87532ab9d3: function(arg0) {
|
|
1238
1305
|
const ret = clearTimeout(arg0);
|
|
1239
1306
|
return ret;
|
|
1240
1307
|
},
|
|
@@ -1266,7 +1333,11 @@ function __wbg_get_imports() {
|
|
|
1266
1333
|
const ret = arg0.entries();
|
|
1267
1334
|
return ret;
|
|
1268
1335
|
},
|
|
1269
|
-
|
|
1336
|
+
__wbg_fetch_074561c3e313c86f: function(arg0) {
|
|
1337
|
+
const ret = fetch(arg0);
|
|
1338
|
+
return ret;
|
|
1339
|
+
},
|
|
1340
|
+
__wbg_fetch_13f5dce13e2a3778: function(arg0, arg1) {
|
|
1270
1341
|
const ret = globalThis.fetch(arg0, arg1);
|
|
1271
1342
|
return ret;
|
|
1272
1343
|
},
|
|
@@ -1274,15 +1345,11 @@ function __wbg_get_imports() {
|
|
|
1274
1345
|
const ret = arg0.fetch(arg1);
|
|
1275
1346
|
return ret;
|
|
1276
1347
|
},
|
|
1277
|
-
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
1278
|
-
const ret = fetch(arg0);
|
|
1279
|
-
return ret;
|
|
1280
|
-
},
|
|
1281
1348
|
__wbg_fetch_9dad4fe911207b37: function(arg0) {
|
|
1282
1349
|
const ret = fetch(arg0);
|
|
1283
1350
|
return ret;
|
|
1284
1351
|
},
|
|
1285
|
-
|
|
1352
|
+
__wbg_fetch_ee414d53c87db3c9: function(arg0) {
|
|
1286
1353
|
const ret = globalThis.fetch(arg0);
|
|
1287
1354
|
return ret;
|
|
1288
1355
|
},
|
|
@@ -1395,7 +1462,7 @@ function __wbg_get_imports() {
|
|
|
1395
1462
|
const a = state0.a;
|
|
1396
1463
|
state0.a = 0;
|
|
1397
1464
|
try {
|
|
1398
|
-
return
|
|
1465
|
+
return wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(a, state0.b, arg0, arg1);
|
|
1399
1466
|
} finally {
|
|
1400
1467
|
state0.a = a;
|
|
1401
1468
|
}
|
|
@@ -1434,10 +1501,6 @@ function __wbg_get_imports() {
|
|
|
1434
1501
|
const ret = NvidiaAttestResult.__wrap(arg0);
|
|
1435
1502
|
return ret;
|
|
1436
1503
|
},
|
|
1437
|
-
__wbg_parsedattestation_new: function(arg0) {
|
|
1438
|
-
const ret = ParsedAttestation.__wrap(arg0);
|
|
1439
|
-
return ret;
|
|
1440
|
-
},
|
|
1441
1504
|
__wbg_process_b2fea42461d03994: function(arg0) {
|
|
1442
1505
|
const ret = arg0.process;
|
|
1443
1506
|
return ret;
|
|
@@ -1467,7 +1530,7 @@ function __wbg_get_imports() {
|
|
|
1467
1530
|
const ret = ResponseHeaders.__wrap(arg0);
|
|
1468
1531
|
return ret;
|
|
1469
1532
|
},
|
|
1470
|
-
|
|
1533
|
+
__wbg_setTimeout_3a808dd861dd3c12: function(arg0, arg1) {
|
|
1471
1534
|
const ret = setTimeout(arg0, arg1);
|
|
1472
1535
|
return ret;
|
|
1473
1536
|
},
|
|
@@ -1506,6 +1569,10 @@ function __wbg_get_imports() {
|
|
|
1506
1569
|
__wbg_set_signal_2a5bd3615938edbc: function(arg0, arg1) {
|
|
1507
1570
|
arg0.signal = arg1;
|
|
1508
1571
|
},
|
|
1572
|
+
__wbg_sevquote_new: function(arg0) {
|
|
1573
|
+
const ret = SevQuote.__wrap(arg0);
|
|
1574
|
+
return ret;
|
|
1575
|
+
},
|
|
1509
1576
|
__wbg_signal_304beac95c8c5ea0: function(arg0) {
|
|
1510
1577
|
const ret = arg0.signal;
|
|
1511
1578
|
return ret;
|
|
@@ -1581,18 +1648,18 @@ function __wbg_get_imports() {
|
|
|
1581
1648
|
return ret;
|
|
1582
1649
|
},
|
|
1583
1650
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1584
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1585
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1651
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2326, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1652
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774);
|
|
1586
1653
|
return ret;
|
|
1587
1654
|
},
|
|
1588
1655
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1589
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1590
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1656
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1607, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1657
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h20881e39b0eb6131);
|
|
1591
1658
|
return ret;
|
|
1592
1659
|
},
|
|
1593
1660
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1594
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1595
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1661
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2103, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1662
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3c4a7dcd6cb00983);
|
|
1596
1663
|
return ret;
|
|
1597
1664
|
},
|
|
1598
1665
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
@@ -1628,23 +1695,23 @@ function __wbg_get_imports() {
|
|
|
1628
1695
|
};
|
|
1629
1696
|
}
|
|
1630
1697
|
|
|
1631
|
-
function
|
|
1632
|
-
wasm.
|
|
1698
|
+
function wasm_bindgen__convert__closures_____invoke__h20881e39b0eb6131(arg0, arg1) {
|
|
1699
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h20881e39b0eb6131(arg0, arg1);
|
|
1633
1700
|
}
|
|
1634
1701
|
|
|
1635
|
-
function
|
|
1636
|
-
wasm.
|
|
1702
|
+
function wasm_bindgen__convert__closures_____invoke__h3c4a7dcd6cb00983(arg0, arg1) {
|
|
1703
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3c4a7dcd6cb00983(arg0, arg1);
|
|
1637
1704
|
}
|
|
1638
1705
|
|
|
1639
|
-
function
|
|
1640
|
-
const ret = wasm.
|
|
1706
|
+
function wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774(arg0, arg1, arg2) {
|
|
1707
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774(arg0, arg1, arg2);
|
|
1641
1708
|
if (ret[1]) {
|
|
1642
1709
|
throw takeFromExternrefTable0(ret[0]);
|
|
1643
1710
|
}
|
|
1644
1711
|
}
|
|
1645
1712
|
|
|
1646
|
-
function
|
|
1647
|
-
wasm.
|
|
1713
|
+
function wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(arg0, arg1, arg2, arg3) {
|
|
1714
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(arg0, arg1, arg2, arg3);
|
|
1648
1715
|
}
|
|
1649
1716
|
|
|
1650
1717
|
|
|
@@ -1661,6 +1728,12 @@ const AttestHeadersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1661
1728
|
const AttestResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1662
1729
|
? { register: () => {}, unregister: () => {} }
|
|
1663
1730
|
: new FinalizationRegistry(ptr => wasm.__wbg_attestresult_free(ptr, 1));
|
|
1731
|
+
const AzureNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1732
|
+
? { register: () => {}, unregister: () => {} }
|
|
1733
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_azurenonce_free(ptr, 1));
|
|
1734
|
+
const AzureQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1735
|
+
? { register: () => {}, unregister: () => {} }
|
|
1736
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_azurequote_free(ptr, 1));
|
|
1664
1737
|
const CRLFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1665
1738
|
? { register: () => {}, unregister: () => {} }
|
|
1666
1739
|
: new FinalizationRegistry(ptr => wasm.__wbg_crl_free(ptr, 1));
|
|
@@ -1700,24 +1773,21 @@ const NvidiaAttestResultFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
1700
1773
|
const NvidiaNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1701
1774
|
? { register: () => {}, unregister: () => {} }
|
|
1702
1775
|
: new FinalizationRegistry(ptr => wasm.__wbg_nvidianonce_free(ptr, 1));
|
|
1703
|
-
const ParsedAttestationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1704
|
-
? { register: () => {}, unregister: () => {} }
|
|
1705
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_parsedattestation_free(ptr, 1));
|
|
1706
1776
|
const PcsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1707
1777
|
? { register: () => {}, unregister: () => {} }
|
|
1708
1778
|
: new FinalizationRegistry(ptr => wasm.__wbg_pcs_free(ptr, 1));
|
|
1709
1779
|
const QueryParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1710
1780
|
? { register: () => {}, unregister: () => {} }
|
|
1711
1781
|
: new FinalizationRegistry(ptr => wasm.__wbg_queryparams_free(ptr, 1));
|
|
1712
|
-
const QuoteVerifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1713
|
-
? { register: () => {}, unregister: () => {} }
|
|
1714
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_quoteverifier_free(ptr, 1));
|
|
1715
1782
|
const ResponseHeadersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1716
1783
|
? { register: () => {}, unregister: () => {} }
|
|
1717
1784
|
: new FinalizationRegistry(ptr => wasm.__wbg_responseheaders_free(ptr, 1));
|
|
1718
1785
|
const SevNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1719
1786
|
? { register: () => {}, unregister: () => {} }
|
|
1720
1787
|
: new FinalizationRegistry(ptr => wasm.__wbg_sevnonce_free(ptr, 1));
|
|
1788
|
+
const SevQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1789
|
+
? { register: () => {}, unregister: () => {} }
|
|
1790
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sevquote_free(ptr, 1));
|
|
1721
1791
|
const TcbLevelsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1722
1792
|
? { register: () => {}, unregister: () => {} }
|
|
1723
1793
|
: new FinalizationRegistry(ptr => wasm.__wbg_tcblevels_free(ptr, 1));
|
|
@@ -1727,6 +1797,9 @@ const TdxNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1727
1797
|
const TdxQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1728
1798
|
? { register: () => {}, unregister: () => {} }
|
|
1729
1799
|
: new FinalizationRegistry(ptr => wasm.__wbg_tdxquote_free(ptr, 1));
|
|
1800
|
+
const TdxQuoteVerifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1801
|
+
? { register: () => {}, unregister: () => {} }
|
|
1802
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tdxquoteverifier_free(ptr, 1));
|
|
1730
1803
|
const VerifiedChainFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1731
1804
|
? { register: () => {}, unregister: () => {} }
|
|
1732
1805
|
: new FinalizationRegistry(ptr => wasm.__wbg_verifiedchain_free(ptr, 1));
|