@premai/reticle 0.4.8 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -26
- package/package.json +1 -1
- package/reticle.d.ts +48 -32
- package/reticle.js +1 -1
- package/reticle_bg.js +219 -186
- package/reticle_bg.wasm +0 -0
- package/reticle_main.cjs +223 -188
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);
|
|
@@ -313,7 +394,7 @@ class ClientBuilder {
|
|
|
313
394
|
return ClientBuilder.__wrap(ret);
|
|
314
395
|
}
|
|
315
396
|
/**
|
|
316
|
-
* sets
|
|
397
|
+
* sets the confidential policy provider to URL source with the specified url
|
|
317
398
|
* @param {string} url
|
|
318
399
|
* @returns {ClientBuilder}
|
|
319
400
|
*/
|
|
@@ -322,7 +403,10 @@ class ClientBuilder {
|
|
|
322
403
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
323
404
|
const len0 = WASM_VECTOR_LEN;
|
|
324
405
|
const ret = wasm.clientbuilder_with_policies_url(ptr, ptr0, len0);
|
|
325
|
-
|
|
406
|
+
if (ret[2]) {
|
|
407
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
408
|
+
}
|
|
409
|
+
return ClientBuilder.__wrap(ret[0]);
|
|
326
410
|
}
|
|
327
411
|
}
|
|
328
412
|
if (Symbol.dispose) ClientBuilder.prototype[Symbol.dispose] = ClientBuilder.prototype.free;
|
|
@@ -350,11 +434,12 @@ if (Symbol.dispose) Collateral.prototype[Symbol.dispose] = Collateral.prototype.
|
|
|
350
434
|
exports.Collateral = Collateral;
|
|
351
435
|
|
|
352
436
|
/**
|
|
353
|
-
* @enum {0 | 1}
|
|
437
|
+
* @enum {0 | 1 | 2}
|
|
354
438
|
*/
|
|
355
439
|
const CpuModule = Object.freeze({
|
|
356
440
|
Sev: 0, "0": "Sev",
|
|
357
441
|
Tdx: 1, "1": "Tdx",
|
|
442
|
+
Azure: 2, "2": "Azure",
|
|
358
443
|
});
|
|
359
444
|
exports.CpuModule = CpuModule;
|
|
360
445
|
|
|
@@ -564,21 +649,21 @@ class Kds {
|
|
|
564
649
|
wasm.__wbg_kds_free(ptr, 0);
|
|
565
650
|
}
|
|
566
651
|
/**
|
|
567
|
-
* @param {
|
|
652
|
+
* @param {SevQuote} attestation
|
|
568
653
|
* @returns {Promise<VerifiedChain>}
|
|
569
654
|
*/
|
|
570
655
|
fetch_certificates(attestation) {
|
|
571
|
-
_assertClass(attestation,
|
|
656
|
+
_assertClass(attestation, SevQuote);
|
|
572
657
|
const ret = wasm.kds_fetch_certificates(this.__wbg_ptr, attestation.__wbg_ptr);
|
|
573
658
|
return ret;
|
|
574
659
|
}
|
|
575
660
|
/**
|
|
576
661
|
* Fetches the certificate revocation list from AMD's KDS
|
|
577
|
-
* @param {
|
|
662
|
+
* @param {SevQuote} attestation
|
|
578
663
|
* @returns {Promise<CRL>}
|
|
579
664
|
*/
|
|
580
665
|
fetch_crl(attestation) {
|
|
581
|
-
_assertClass(attestation,
|
|
666
|
+
_assertClass(attestation, SevQuote);
|
|
582
667
|
const ret = wasm.kds_fetch_crl(this.__wbg_ptr, attestation.__wbg_ptr);
|
|
583
668
|
return ret;
|
|
584
669
|
}
|
|
@@ -727,72 +812,6 @@ class NvidiaNonce {
|
|
|
727
812
|
if (Symbol.dispose) NvidiaNonce.prototype[Symbol.dispose] = NvidiaNonce.prototype.free;
|
|
728
813
|
exports.NvidiaNonce = NvidiaNonce;
|
|
729
814
|
|
|
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
815
|
class Pcs {
|
|
797
816
|
__destroy_into_raw() {
|
|
798
817
|
const ptr = this.__wbg_ptr;
|
|
@@ -880,45 +899,6 @@ class QueryParams {
|
|
|
880
899
|
if (Symbol.dispose) QueryParams.prototype[Symbol.dispose] = QueryParams.prototype.free;
|
|
881
900
|
exports.QueryParams = QueryParams;
|
|
882
901
|
|
|
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
902
|
class ResponseHeaders {
|
|
923
903
|
static __wrap(ptr) {
|
|
924
904
|
const obj = Object.create(ResponseHeaders.prototype);
|
|
@@ -1007,6 +987,59 @@ class SevNonce {
|
|
|
1007
987
|
if (Symbol.dispose) SevNonce.prototype[Symbol.dispose] = SevNonce.prototype.free;
|
|
1008
988
|
exports.SevNonce = SevNonce;
|
|
1009
989
|
|
|
990
|
+
/**
|
|
991
|
+
* Represents a parsed attestation report with some already
|
|
992
|
+
* parsed commonly accessed fields
|
|
993
|
+
*/
|
|
994
|
+
class SevQuote {
|
|
995
|
+
static __wrap(ptr) {
|
|
996
|
+
const obj = Object.create(SevQuote.prototype);
|
|
997
|
+
obj.__wbg_ptr = ptr;
|
|
998
|
+
SevQuoteFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
999
|
+
return obj;
|
|
1000
|
+
}
|
|
1001
|
+
__destroy_into_raw() {
|
|
1002
|
+
const ptr = this.__wbg_ptr;
|
|
1003
|
+
this.__wbg_ptr = 0;
|
|
1004
|
+
SevQuoteFinalization.unregister(this);
|
|
1005
|
+
return ptr;
|
|
1006
|
+
}
|
|
1007
|
+
free() {
|
|
1008
|
+
const ptr = this.__destroy_into_raw();
|
|
1009
|
+
wasm.__wbg_sevquote_free(ptr, 0);
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* @returns {number}
|
|
1013
|
+
*/
|
|
1014
|
+
cpu_fam_id() {
|
|
1015
|
+
const ret = wasm.sevquote_cpu_fam_id(this.__wbg_ptr);
|
|
1016
|
+
return ret;
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* @returns {number}
|
|
1020
|
+
*/
|
|
1021
|
+
cpu_mod_id() {
|
|
1022
|
+
const ret = wasm.sevquote_cpu_mod_id(this.__wbg_ptr);
|
|
1023
|
+
return ret;
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Parses and constructs a new attestation report from a stream of binary data
|
|
1027
|
+
* @param {Uint8Array} bytes
|
|
1028
|
+
* @returns {SevQuote}
|
|
1029
|
+
*/
|
|
1030
|
+
static new(bytes) {
|
|
1031
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1032
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1033
|
+
const ret = wasm.sevquote_new(ptr0, len0);
|
|
1034
|
+
if (ret[2]) {
|
|
1035
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1036
|
+
}
|
|
1037
|
+
return SevQuote.__wrap(ret[0]);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
if (Symbol.dispose) SevQuote.prototype[Symbol.dispose] = SevQuote.prototype.free;
|
|
1041
|
+
exports.SevQuote = SevQuote;
|
|
1042
|
+
|
|
1010
1043
|
class TcbLevels {
|
|
1011
1044
|
__destroy_into_raw() {
|
|
1012
1045
|
const ptr = this.__wbg_ptr;
|
|
@@ -1023,6 +1056,12 @@ if (Symbol.dispose) TcbLevels.prototype[Symbol.dispose] = TcbLevels.prototype.fr
|
|
|
1023
1056
|
exports.TcbLevels = TcbLevels;
|
|
1024
1057
|
|
|
1025
1058
|
class TdxNonce {
|
|
1059
|
+
static __wrap(ptr) {
|
|
1060
|
+
const obj = Object.create(TdxNonce.prototype);
|
|
1061
|
+
obj.__wbg_ptr = ptr;
|
|
1062
|
+
TdxNonceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1063
|
+
return obj;
|
|
1064
|
+
}
|
|
1026
1065
|
__destroy_into_raw() {
|
|
1027
1066
|
const ptr = this.__wbg_ptr;
|
|
1028
1067
|
this.__wbg_ptr = 0;
|
|
@@ -1033,11 +1072,12 @@ class TdxNonce {
|
|
|
1033
1072
|
const ptr = this.__destroy_into_raw();
|
|
1034
1073
|
wasm.__wbg_tdxnonce_free(ptr, 0);
|
|
1035
1074
|
}
|
|
1036
|
-
|
|
1075
|
+
/**
|
|
1076
|
+
* @returns {TdxNonce}
|
|
1077
|
+
*/
|
|
1078
|
+
static generate() {
|
|
1037
1079
|
const ret = wasm.tdxnonce_generate();
|
|
1038
|
-
|
|
1039
|
-
TdxNonceFinalization.register(this, this.__wbg_ptr, this);
|
|
1040
|
-
return this;
|
|
1080
|
+
return TdxNonce.__wrap(ret);
|
|
1041
1081
|
}
|
|
1042
1082
|
/**
|
|
1043
1083
|
* @returns {string}
|
|
@@ -1093,6 +1133,32 @@ class TdxQuote {
|
|
|
1093
1133
|
if (Symbol.dispose) TdxQuote.prototype[Symbol.dispose] = TdxQuote.prototype.free;
|
|
1094
1134
|
exports.TdxQuote = TdxQuote;
|
|
1095
1135
|
|
|
1136
|
+
class TdxQuoteVerifier {
|
|
1137
|
+
__destroy_into_raw() {
|
|
1138
|
+
const ptr = this.__wbg_ptr;
|
|
1139
|
+
this.__wbg_ptr = 0;
|
|
1140
|
+
TdxQuoteVerifierFinalization.unregister(this);
|
|
1141
|
+
return ptr;
|
|
1142
|
+
}
|
|
1143
|
+
free() {
|
|
1144
|
+
const ptr = this.__destroy_into_raw();
|
|
1145
|
+
wasm.__wbg_tdxquoteverifier_free(ptr, 0);
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* @param {Collateral} collateral
|
|
1149
|
+
*/
|
|
1150
|
+
constructor(collateral) {
|
|
1151
|
+
_assertClass(collateral, Collateral);
|
|
1152
|
+
var ptr0 = collateral.__destroy_into_raw();
|
|
1153
|
+
const ret = wasm.tdxquoteverifier_new(ptr0);
|
|
1154
|
+
this.__wbg_ptr = ret;
|
|
1155
|
+
TdxQuoteVerifierFinalization.register(this, this.__wbg_ptr, this);
|
|
1156
|
+
return this;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
if (Symbol.dispose) TdxQuoteVerifier.prototype[Symbol.dispose] = TdxQuoteVerifier.prototype.free;
|
|
1160
|
+
exports.TdxQuoteVerifier = TdxQuoteVerifier;
|
|
1161
|
+
|
|
1096
1162
|
/**
|
|
1097
1163
|
* A chain which has been cryptographically verified
|
|
1098
1164
|
*/
|
|
@@ -1226,19 +1292,15 @@ function __wbg_get_imports() {
|
|
|
1226
1292
|
const ret = AttestResult.__wrap(arg0);
|
|
1227
1293
|
return ret;
|
|
1228
1294
|
},
|
|
1229
|
-
|
|
1230
|
-
const ret =
|
|
1295
|
+
__wbg_azurequote_new: function(arg0) {
|
|
1296
|
+
const ret = AzureQuote.__wrap(arg0);
|
|
1231
1297
|
return ret;
|
|
1232
|
-
},
|
|
1298
|
+
},
|
|
1233
1299
|
__wbg_call_dfde26266607c996: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1234
1300
|
const ret = arg0.call(arg1, arg2);
|
|
1235
1301
|
return ret;
|
|
1236
1302
|
}, arguments); },
|
|
1237
|
-
|
|
1238
|
-
const ret = clearTimeout(arg0);
|
|
1239
|
-
return ret;
|
|
1240
|
-
},
|
|
1241
|
-
__wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
|
|
1303
|
+
__wbg_clearTimeout_333bba87532ab9d3: function(arg0) {
|
|
1242
1304
|
const ret = clearTimeout(arg0);
|
|
1243
1305
|
return ret;
|
|
1244
1306
|
},
|
|
@@ -1266,23 +1328,19 @@ function __wbg_get_imports() {
|
|
|
1266
1328
|
const ret = arg0.entries();
|
|
1267
1329
|
return ret;
|
|
1268
1330
|
},
|
|
1269
|
-
|
|
1270
|
-
const ret = arg0.fetch(arg1);
|
|
1271
|
-
return ret;
|
|
1272
|
-
},
|
|
1273
|
-
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
1331
|
+
__wbg_fetch_074561c3e313c86f: function(arg0) {
|
|
1274
1332
|
const ret = fetch(arg0);
|
|
1275
1333
|
return ret;
|
|
1276
1334
|
},
|
|
1277
|
-
|
|
1278
|
-
const ret =
|
|
1335
|
+
__wbg_fetch_2998af8c54e0997c: function(arg0, arg1) {
|
|
1336
|
+
const ret = arg0.fetch(arg1);
|
|
1279
1337
|
return ret;
|
|
1280
1338
|
},
|
|
1281
|
-
|
|
1282
|
-
const ret = fetch(arg0);
|
|
1339
|
+
__wbg_fetch_8319d82c48626664: function(arg0) {
|
|
1340
|
+
const ret = globalThis.fetch(arg0);
|
|
1283
1341
|
return ret;
|
|
1284
1342
|
},
|
|
1285
|
-
|
|
1343
|
+
__wbg_fetch_afeeccd67d9f27cd: function(arg0, arg1) {
|
|
1286
1344
|
const ret = globalThis.fetch(arg0, arg1);
|
|
1287
1345
|
return ret;
|
|
1288
1346
|
},
|
|
@@ -1300,10 +1358,6 @@ function __wbg_get_imports() {
|
|
|
1300
1358
|
const ret = arg0.getTime();
|
|
1301
1359
|
return ret;
|
|
1302
1360
|
},
|
|
1303
|
-
__wbg_get_3e9a707ab7d352eb: function() { return handleError(function (arg0, arg1) {
|
|
1304
|
-
const ret = Reflect.get(arg0, arg1);
|
|
1305
|
-
return ret;
|
|
1306
|
-
}, arguments); },
|
|
1307
1361
|
__wbg_get_98fdf51d029a75eb: function(arg0, arg1) {
|
|
1308
1362
|
const ret = arg0[arg1 >>> 0];
|
|
1309
1363
|
return ret;
|
|
@@ -1340,10 +1394,6 @@ function __wbg_get_imports() {
|
|
|
1340
1394
|
const ret = Array.isArray(arg0);
|
|
1341
1395
|
return ret;
|
|
1342
1396
|
},
|
|
1343
|
-
__wbg_iterator_1441b47f341dc34f: function() {
|
|
1344
|
-
const ret = Symbol.iterator;
|
|
1345
|
-
return ret;
|
|
1346
|
-
},
|
|
1347
1397
|
__wbg_keychain_new: function(arg0) {
|
|
1348
1398
|
const ret = KeyChain.__wrap(arg0);
|
|
1349
1399
|
return ret;
|
|
@@ -1395,7 +1445,7 @@ function __wbg_get_imports() {
|
|
|
1395
1445
|
const a = state0.a;
|
|
1396
1446
|
state0.a = 0;
|
|
1397
1447
|
try {
|
|
1398
|
-
return
|
|
1448
|
+
return wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(a, state0.b, arg0, arg1);
|
|
1399
1449
|
} finally {
|
|
1400
1450
|
state0.a = a;
|
|
1401
1451
|
}
|
|
@@ -1414,10 +1464,6 @@ function __wbg_get_imports() {
|
|
|
1414
1464
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1415
1465
|
return ret;
|
|
1416
1466
|
}, arguments); },
|
|
1417
|
-
__wbg_next_2a4e19f4f5083b0f: function(arg0) {
|
|
1418
|
-
const ret = arg0.next;
|
|
1419
|
-
return ret;
|
|
1420
|
-
},
|
|
1421
1467
|
__wbg_next_6429a146bf756f93: function() { return handleError(function (arg0) {
|
|
1422
1468
|
const ret = arg0.next();
|
|
1423
1469
|
return ret;
|
|
@@ -1434,10 +1480,6 @@ function __wbg_get_imports() {
|
|
|
1434
1480
|
const ret = NvidiaAttestResult.__wrap(arg0);
|
|
1435
1481
|
return ret;
|
|
1436
1482
|
},
|
|
1437
|
-
__wbg_parsedattestation_new: function(arg0) {
|
|
1438
|
-
const ret = ParsedAttestation.__wrap(arg0);
|
|
1439
|
-
return ret;
|
|
1440
|
-
},
|
|
1441
1483
|
__wbg_process_b2fea42461d03994: function(arg0) {
|
|
1442
1484
|
const ret = arg0.process;
|
|
1443
1485
|
return ret;
|
|
@@ -1467,11 +1509,7 @@ function __wbg_get_imports() {
|
|
|
1467
1509
|
const ret = ResponseHeaders.__wrap(arg0);
|
|
1468
1510
|
return ret;
|
|
1469
1511
|
},
|
|
1470
|
-
|
|
1471
|
-
const ret = setTimeout(arg0, arg1);
|
|
1472
|
-
return ret;
|
|
1473
|
-
},
|
|
1474
|
-
__wbg_setTimeout_f757f00851f76c42: function(arg0, arg1) {
|
|
1512
|
+
__wbg_setTimeout_3a808dd861dd3c12: function(arg0, arg1) {
|
|
1475
1513
|
const ret = setTimeout(arg0, arg1);
|
|
1476
1514
|
return ret;
|
|
1477
1515
|
},
|
|
@@ -1506,6 +1544,10 @@ function __wbg_get_imports() {
|
|
|
1506
1544
|
__wbg_set_signal_2a5bd3615938edbc: function(arg0, arg1) {
|
|
1507
1545
|
arg0.signal = arg1;
|
|
1508
1546
|
},
|
|
1547
|
+
__wbg_sevquote_new: function(arg0) {
|
|
1548
|
+
const ret = SevQuote.__wrap(arg0);
|
|
1549
|
+
return ret;
|
|
1550
|
+
},
|
|
1509
1551
|
__wbg_signal_304beac95c8c5ea0: function(arg0) {
|
|
1510
1552
|
const ret = arg0.signal;
|
|
1511
1553
|
return ret;
|
|
@@ -1530,10 +1572,6 @@ function __wbg_get_imports() {
|
|
|
1530
1572
|
const ret = arg0.status;
|
|
1531
1573
|
return ret;
|
|
1532
1574
|
},
|
|
1533
|
-
__wbg_stringify_ef0c105b1ccc3849: function() { return handleError(function (arg0) {
|
|
1534
|
-
const ret = JSON.stringify(arg0);
|
|
1535
|
-
return ret;
|
|
1536
|
-
}, arguments); },
|
|
1537
1575
|
__wbg_subarray_7c6a0da8f3b4a1ba: function(arg0, arg1, arg2) {
|
|
1538
1576
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1539
1577
|
return ret;
|
|
@@ -1581,31 +1619,26 @@ function __wbg_get_imports() {
|
|
|
1581
1619
|
return ret;
|
|
1582
1620
|
},
|
|
1583
1621
|
__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,
|
|
1622
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2325, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1623
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774);
|
|
1586
1624
|
return ret;
|
|
1587
1625
|
},
|
|
1588
1626
|
__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,
|
|
1627
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2101, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1628
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc164a5141a8f3733);
|
|
1591
1629
|
return ret;
|
|
1592
1630
|
},
|
|
1593
1631
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1594
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 902, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1595
|
-
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb48ee18b811a2652);
|
|
1596
|
-
return ret;
|
|
1597
|
-
},
|
|
1598
|
-
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1599
1632
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1600
1633
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1601
1634
|
return ret;
|
|
1602
1635
|
},
|
|
1603
|
-
|
|
1636
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1604
1637
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1605
1638
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1606
1639
|
return ret;
|
|
1607
1640
|
},
|
|
1608
|
-
|
|
1641
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1609
1642
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
1610
1643
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
1611
1644
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
@@ -1628,23 +1661,19 @@ function __wbg_get_imports() {
|
|
|
1628
1661
|
};
|
|
1629
1662
|
}
|
|
1630
1663
|
|
|
1631
|
-
function
|
|
1632
|
-
wasm.
|
|
1664
|
+
function wasm_bindgen__convert__closures_____invoke__hc164a5141a8f3733(arg0, arg1) {
|
|
1665
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc164a5141a8f3733(arg0, arg1);
|
|
1633
1666
|
}
|
|
1634
1667
|
|
|
1635
|
-
function
|
|
1636
|
-
wasm.
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
function wasm_bindgen__convert__closures_____invoke__hae26513a56be1c77(arg0, arg1, arg2) {
|
|
1640
|
-
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hae26513a56be1c77(arg0, arg1, arg2);
|
|
1668
|
+
function wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774(arg0, arg1, arg2) {
|
|
1669
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774(arg0, arg1, arg2);
|
|
1641
1670
|
if (ret[1]) {
|
|
1642
1671
|
throw takeFromExternrefTable0(ret[0]);
|
|
1643
1672
|
}
|
|
1644
1673
|
}
|
|
1645
1674
|
|
|
1646
|
-
function
|
|
1647
|
-
wasm.
|
|
1675
|
+
function wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(arg0, arg1, arg2, arg3) {
|
|
1676
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(arg0, arg1, arg2, arg3);
|
|
1648
1677
|
}
|
|
1649
1678
|
|
|
1650
1679
|
|
|
@@ -1661,6 +1690,12 @@ const AttestHeadersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1661
1690
|
const AttestResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1662
1691
|
? { register: () => {}, unregister: () => {} }
|
|
1663
1692
|
: new FinalizationRegistry(ptr => wasm.__wbg_attestresult_free(ptr, 1));
|
|
1693
|
+
const AzureNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1694
|
+
? { register: () => {}, unregister: () => {} }
|
|
1695
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_azurenonce_free(ptr, 1));
|
|
1696
|
+
const AzureQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1697
|
+
? { register: () => {}, unregister: () => {} }
|
|
1698
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_azurequote_free(ptr, 1));
|
|
1664
1699
|
const CRLFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1665
1700
|
? { register: () => {}, unregister: () => {} }
|
|
1666
1701
|
: new FinalizationRegistry(ptr => wasm.__wbg_crl_free(ptr, 1));
|
|
@@ -1700,24 +1735,21 @@ const NvidiaAttestResultFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
1700
1735
|
const NvidiaNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1701
1736
|
? { register: () => {}, unregister: () => {} }
|
|
1702
1737
|
: 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
1738
|
const PcsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1707
1739
|
? { register: () => {}, unregister: () => {} }
|
|
1708
1740
|
: new FinalizationRegistry(ptr => wasm.__wbg_pcs_free(ptr, 1));
|
|
1709
1741
|
const QueryParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1710
1742
|
? { register: () => {}, unregister: () => {} }
|
|
1711
1743
|
: 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
1744
|
const ResponseHeadersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1716
1745
|
? { register: () => {}, unregister: () => {} }
|
|
1717
1746
|
: new FinalizationRegistry(ptr => wasm.__wbg_responseheaders_free(ptr, 1));
|
|
1718
1747
|
const SevNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1719
1748
|
? { register: () => {}, unregister: () => {} }
|
|
1720
1749
|
: new FinalizationRegistry(ptr => wasm.__wbg_sevnonce_free(ptr, 1));
|
|
1750
|
+
const SevQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1751
|
+
? { register: () => {}, unregister: () => {} }
|
|
1752
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sevquote_free(ptr, 1));
|
|
1721
1753
|
const TcbLevelsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1722
1754
|
? { register: () => {}, unregister: () => {} }
|
|
1723
1755
|
: new FinalizationRegistry(ptr => wasm.__wbg_tcblevels_free(ptr, 1));
|
|
@@ -1727,6 +1759,9 @@ const TdxNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1727
1759
|
const TdxQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1728
1760
|
? { register: () => {}, unregister: () => {} }
|
|
1729
1761
|
: new FinalizationRegistry(ptr => wasm.__wbg_tdxquote_free(ptr, 1));
|
|
1762
|
+
const TdxQuoteVerifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1763
|
+
? { register: () => {}, unregister: () => {} }
|
|
1764
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tdxquoteverifier_free(ptr, 1));
|
|
1730
1765
|
const VerifiedChainFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1731
1766
|
? { register: () => {}, unregister: () => {} }
|
|
1732
1767
|
: new FinalizationRegistry(ptr => wasm.__wbg_verifiedchain_free(ptr, 1));
|