@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_bg.js
CHANGED
|
@@ -66,6 +66,68 @@ export class AttestResult {
|
|
|
66
66
|
}
|
|
67
67
|
if (Symbol.dispose) AttestResult.prototype[Symbol.dispose] = AttestResult.prototype.free;
|
|
68
68
|
|
|
69
|
+
export class AzureNonce {
|
|
70
|
+
static __wrap(ptr) {
|
|
71
|
+
const obj = Object.create(AzureNonce.prototype);
|
|
72
|
+
obj.__wbg_ptr = ptr;
|
|
73
|
+
AzureNonceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
__destroy_into_raw() {
|
|
77
|
+
const ptr = this.__wbg_ptr;
|
|
78
|
+
this.__wbg_ptr = 0;
|
|
79
|
+
AzureNonceFinalization.unregister(this);
|
|
80
|
+
return ptr;
|
|
81
|
+
}
|
|
82
|
+
free() {
|
|
83
|
+
const ptr = this.__destroy_into_raw();
|
|
84
|
+
wasm.__wbg_azurenonce_free(ptr, 0);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @returns {AzureNonce}
|
|
88
|
+
*/
|
|
89
|
+
static generate() {
|
|
90
|
+
const ret = wasm.azurenonce_generate();
|
|
91
|
+
return AzureNonce.__wrap(ret);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @returns {string}
|
|
95
|
+
*/
|
|
96
|
+
to_hex() {
|
|
97
|
+
let deferred1_0;
|
|
98
|
+
let deferred1_1;
|
|
99
|
+
try {
|
|
100
|
+
const ret = wasm.azurenonce_to_hex(this.__wbg_ptr);
|
|
101
|
+
deferred1_0 = ret[0];
|
|
102
|
+
deferred1_1 = ret[1];
|
|
103
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
104
|
+
} finally {
|
|
105
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (Symbol.dispose) AzureNonce.prototype[Symbol.dispose] = AzureNonce.prototype.free;
|
|
110
|
+
|
|
111
|
+
export class AzureQuote {
|
|
112
|
+
static __wrap(ptr) {
|
|
113
|
+
const obj = Object.create(AzureQuote.prototype);
|
|
114
|
+
obj.__wbg_ptr = ptr;
|
|
115
|
+
AzureQuoteFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
116
|
+
return obj;
|
|
117
|
+
}
|
|
118
|
+
__destroy_into_raw() {
|
|
119
|
+
const ptr = this.__wbg_ptr;
|
|
120
|
+
this.__wbg_ptr = 0;
|
|
121
|
+
AzureQuoteFinalization.unregister(this);
|
|
122
|
+
return ptr;
|
|
123
|
+
}
|
|
124
|
+
free() {
|
|
125
|
+
const ptr = this.__destroy_into_raw();
|
|
126
|
+
wasm.__wbg_azurequote_free(ptr, 0);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (Symbol.dispose) AzureQuote.prototype[Symbol.dispose] = AzureQuote.prototype.free;
|
|
130
|
+
|
|
69
131
|
/**
|
|
70
132
|
* A parsed certificate revocation list
|
|
71
133
|
*/
|
|
@@ -143,6 +205,13 @@ export class Client {
|
|
|
143
205
|
const ret = wasm.client_attest(this.__wbg_ptr);
|
|
144
206
|
return ret;
|
|
145
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* @returns {Promise<void>}
|
|
210
|
+
*/
|
|
211
|
+
attest_azure() {
|
|
212
|
+
const ret = wasm.client_attest_azure(this.__wbg_ptr);
|
|
213
|
+
return ret;
|
|
214
|
+
}
|
|
146
215
|
/**
|
|
147
216
|
* Completes end-to-end nvidia attestation. Generates nonce and validates claims all in one
|
|
148
217
|
* @returns {Promise<ResponseHeaders>}
|
|
@@ -167,6 +236,16 @@ export class Client {
|
|
|
167
236
|
const ret = wasm.client_attest_tdx(this.__wbg_ptr);
|
|
168
237
|
return ret;
|
|
169
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* Requests and parses an Azure Quote
|
|
241
|
+
* @param {AzureNonce} nonce
|
|
242
|
+
* @returns {Promise<AzureQuote>}
|
|
243
|
+
*/
|
|
244
|
+
request_azure(nonce) {
|
|
245
|
+
_assertClass(nonce, AzureNonce);
|
|
246
|
+
const ret = wasm.client_request_azure(this.__wbg_ptr, nonce.__wbg_ptr);
|
|
247
|
+
return ret;
|
|
248
|
+
}
|
|
170
249
|
/**
|
|
171
250
|
* Gather available attestable modules from remote attestation endpoint
|
|
172
251
|
* @returns {Promise<Modules>}
|
|
@@ -198,7 +277,7 @@ export class Client {
|
|
|
198
277
|
* or measurement checks on the attestation. If you want to perform end-to-end attestation
|
|
199
278
|
* please refer to [`Self::attest_sev`]
|
|
200
279
|
* @param {SevNonce} nonce
|
|
201
|
-
* @returns {Promise<
|
|
280
|
+
* @returns {Promise<SevQuote>}
|
|
202
281
|
*/
|
|
203
282
|
request_sev(nonce) {
|
|
204
283
|
_assertClass(nonce, SevNonce);
|
|
@@ -342,11 +421,12 @@ export class Collateral {
|
|
|
342
421
|
if (Symbol.dispose) Collateral.prototype[Symbol.dispose] = Collateral.prototype.free;
|
|
343
422
|
|
|
344
423
|
/**
|
|
345
|
-
* @enum {0 | 1}
|
|
424
|
+
* @enum {0 | 1 | 2}
|
|
346
425
|
*/
|
|
347
426
|
export const CpuModule = Object.freeze({
|
|
348
427
|
Sev: 0, "0": "Sev",
|
|
349
428
|
Tdx: 1, "1": "Tdx",
|
|
429
|
+
Azure: 2, "2": "Azure",
|
|
350
430
|
});
|
|
351
431
|
|
|
352
432
|
export class DecodedClaims {
|
|
@@ -550,21 +630,21 @@ export class Kds {
|
|
|
550
630
|
wasm.__wbg_kds_free(ptr, 0);
|
|
551
631
|
}
|
|
552
632
|
/**
|
|
553
|
-
* @param {
|
|
633
|
+
* @param {SevQuote} attestation
|
|
554
634
|
* @returns {Promise<VerifiedChain>}
|
|
555
635
|
*/
|
|
556
636
|
fetch_certificates(attestation) {
|
|
557
|
-
_assertClass(attestation,
|
|
637
|
+
_assertClass(attestation, SevQuote);
|
|
558
638
|
const ret = wasm.kds_fetch_certificates(this.__wbg_ptr, attestation.__wbg_ptr);
|
|
559
639
|
return ret;
|
|
560
640
|
}
|
|
561
641
|
/**
|
|
562
642
|
* Fetches the certificate revocation list from AMD's KDS
|
|
563
|
-
* @param {
|
|
643
|
+
* @param {SevQuote} attestation
|
|
564
644
|
* @returns {Promise<CRL>}
|
|
565
645
|
*/
|
|
566
646
|
fetch_crl(attestation) {
|
|
567
|
-
_assertClass(attestation,
|
|
647
|
+
_assertClass(attestation, SevQuote);
|
|
568
648
|
const ret = wasm.kds_fetch_crl(this.__wbg_ptr, attestation.__wbg_ptr);
|
|
569
649
|
return ret;
|
|
570
650
|
}
|
|
@@ -708,71 +788,6 @@ export class NvidiaNonce {
|
|
|
708
788
|
}
|
|
709
789
|
if (Symbol.dispose) NvidiaNonce.prototype[Symbol.dispose] = NvidiaNonce.prototype.free;
|
|
710
790
|
|
|
711
|
-
/**
|
|
712
|
-
* Represents a parsed attestation report with some already
|
|
713
|
-
* parsed commonly accessed fields
|
|
714
|
-
*/
|
|
715
|
-
export class ParsedAttestation {
|
|
716
|
-
static __wrap(ptr) {
|
|
717
|
-
const obj = Object.create(ParsedAttestation.prototype);
|
|
718
|
-
obj.__wbg_ptr = ptr;
|
|
719
|
-
ParsedAttestationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
720
|
-
return obj;
|
|
721
|
-
}
|
|
722
|
-
__destroy_into_raw() {
|
|
723
|
-
const ptr = this.__wbg_ptr;
|
|
724
|
-
this.__wbg_ptr = 0;
|
|
725
|
-
ParsedAttestationFinalization.unregister(this);
|
|
726
|
-
return ptr;
|
|
727
|
-
}
|
|
728
|
-
free() {
|
|
729
|
-
const ptr = this.__destroy_into_raw();
|
|
730
|
-
wasm.__wbg_parsedattestation_free(ptr, 0);
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* @returns {number}
|
|
734
|
-
*/
|
|
735
|
-
cpu_fam_id() {
|
|
736
|
-
const ret = wasm.parsedattestation_cpu_fam_id(this.__wbg_ptr);
|
|
737
|
-
return ret;
|
|
738
|
-
}
|
|
739
|
-
/**
|
|
740
|
-
* @returns {number}
|
|
741
|
-
*/
|
|
742
|
-
cpu_mod_id() {
|
|
743
|
-
const ret = wasm.parsedattestation_cpu_mod_id(this.__wbg_ptr);
|
|
744
|
-
return ret;
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
* Parses and constructs a new attestation report from a stream of binary data
|
|
748
|
-
* @param {Uint8Array} bytes
|
|
749
|
-
* @returns {ParsedAttestation}
|
|
750
|
-
*/
|
|
751
|
-
static new(bytes) {
|
|
752
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
753
|
-
const len0 = WASM_VECTOR_LEN;
|
|
754
|
-
const ret = wasm.parsedattestation_new(ptr0, len0);
|
|
755
|
-
if (ret[2]) {
|
|
756
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
757
|
-
}
|
|
758
|
-
return ParsedAttestation.__wrap(ret[0]);
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* Verifies the attestation report against a certificate chain
|
|
762
|
-
* @param {VerifiedChain} chain
|
|
763
|
-
* @param {SevNonce} nonce
|
|
764
|
-
*/
|
|
765
|
-
verify(chain, nonce) {
|
|
766
|
-
_assertClass(chain, VerifiedChain);
|
|
767
|
-
_assertClass(nonce, SevNonce);
|
|
768
|
-
const ret = wasm.parsedattestation_verify(this.__wbg_ptr, chain.__wbg_ptr, nonce.__wbg_ptr);
|
|
769
|
-
if (ret[1]) {
|
|
770
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
if (Symbol.dispose) ParsedAttestation.prototype[Symbol.dispose] = ParsedAttestation.prototype.free;
|
|
775
|
-
|
|
776
791
|
export class Pcs {
|
|
777
792
|
__destroy_into_raw() {
|
|
778
793
|
const ptr = this.__wbg_ptr;
|
|
@@ -858,44 +873,6 @@ export class QueryParams {
|
|
|
858
873
|
}
|
|
859
874
|
if (Symbol.dispose) QueryParams.prototype[Symbol.dispose] = QueryParams.prototype.free;
|
|
860
875
|
|
|
861
|
-
export class QuoteVerifier {
|
|
862
|
-
__destroy_into_raw() {
|
|
863
|
-
const ptr = this.__wbg_ptr;
|
|
864
|
-
this.__wbg_ptr = 0;
|
|
865
|
-
QuoteVerifierFinalization.unregister(this);
|
|
866
|
-
return ptr;
|
|
867
|
-
}
|
|
868
|
-
free() {
|
|
869
|
-
const ptr = this.__destroy_into_raw();
|
|
870
|
-
wasm.__wbg_quoteverifier_free(ptr, 0);
|
|
871
|
-
}
|
|
872
|
-
/**
|
|
873
|
-
* @param {Collateral} collateral
|
|
874
|
-
* @param {TdxQuote} quote
|
|
875
|
-
*/
|
|
876
|
-
constructor(collateral, quote) {
|
|
877
|
-
_assertClass(collateral, Collateral);
|
|
878
|
-
var ptr0 = collateral.__destroy_into_raw();
|
|
879
|
-
_assertClass(quote, TdxQuote);
|
|
880
|
-
var ptr1 = quote.__destroy_into_raw();
|
|
881
|
-
const ret = wasm.quoteverifier_new(ptr0, ptr1);
|
|
882
|
-
this.__wbg_ptr = ret;
|
|
883
|
-
QuoteVerifierFinalization.register(this, this.__wbg_ptr, this);
|
|
884
|
-
return this;
|
|
885
|
-
}
|
|
886
|
-
/**
|
|
887
|
-
* @param {TdxNonce} nonce
|
|
888
|
-
*/
|
|
889
|
-
verify(nonce) {
|
|
890
|
-
_assertClass(nonce, TdxNonce);
|
|
891
|
-
const ret = wasm.quoteverifier_verify(this.__wbg_ptr, nonce.__wbg_ptr);
|
|
892
|
-
if (ret[1]) {
|
|
893
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
if (Symbol.dispose) QuoteVerifier.prototype[Symbol.dispose] = QuoteVerifier.prototype.free;
|
|
898
|
-
|
|
899
876
|
export class ResponseHeaders {
|
|
900
877
|
static __wrap(ptr) {
|
|
901
878
|
const obj = Object.create(ResponseHeaders.prototype);
|
|
@@ -982,6 +959,58 @@ export class SevNonce {
|
|
|
982
959
|
}
|
|
983
960
|
if (Symbol.dispose) SevNonce.prototype[Symbol.dispose] = SevNonce.prototype.free;
|
|
984
961
|
|
|
962
|
+
/**
|
|
963
|
+
* Represents a parsed attestation report with some already
|
|
964
|
+
* parsed commonly accessed fields
|
|
965
|
+
*/
|
|
966
|
+
export class SevQuote {
|
|
967
|
+
static __wrap(ptr) {
|
|
968
|
+
const obj = Object.create(SevQuote.prototype);
|
|
969
|
+
obj.__wbg_ptr = ptr;
|
|
970
|
+
SevQuoteFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
971
|
+
return obj;
|
|
972
|
+
}
|
|
973
|
+
__destroy_into_raw() {
|
|
974
|
+
const ptr = this.__wbg_ptr;
|
|
975
|
+
this.__wbg_ptr = 0;
|
|
976
|
+
SevQuoteFinalization.unregister(this);
|
|
977
|
+
return ptr;
|
|
978
|
+
}
|
|
979
|
+
free() {
|
|
980
|
+
const ptr = this.__destroy_into_raw();
|
|
981
|
+
wasm.__wbg_sevquote_free(ptr, 0);
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* @returns {number}
|
|
985
|
+
*/
|
|
986
|
+
cpu_fam_id() {
|
|
987
|
+
const ret = wasm.sevquote_cpu_fam_id(this.__wbg_ptr);
|
|
988
|
+
return ret;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* @returns {number}
|
|
992
|
+
*/
|
|
993
|
+
cpu_mod_id() {
|
|
994
|
+
const ret = wasm.sevquote_cpu_mod_id(this.__wbg_ptr);
|
|
995
|
+
return ret;
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* Parses and constructs a new attestation report from a stream of binary data
|
|
999
|
+
* @param {Uint8Array} bytes
|
|
1000
|
+
* @returns {SevQuote}
|
|
1001
|
+
*/
|
|
1002
|
+
static new(bytes) {
|
|
1003
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1004
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1005
|
+
const ret = wasm.sevquote_new(ptr0, len0);
|
|
1006
|
+
if (ret[2]) {
|
|
1007
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1008
|
+
}
|
|
1009
|
+
return SevQuote.__wrap(ret[0]);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
if (Symbol.dispose) SevQuote.prototype[Symbol.dispose] = SevQuote.prototype.free;
|
|
1013
|
+
|
|
985
1014
|
export class TcbLevels {
|
|
986
1015
|
__destroy_into_raw() {
|
|
987
1016
|
const ptr = this.__wbg_ptr;
|
|
@@ -997,6 +1026,12 @@ export class TcbLevels {
|
|
|
997
1026
|
if (Symbol.dispose) TcbLevels.prototype[Symbol.dispose] = TcbLevels.prototype.free;
|
|
998
1027
|
|
|
999
1028
|
export class TdxNonce {
|
|
1029
|
+
static __wrap(ptr) {
|
|
1030
|
+
const obj = Object.create(TdxNonce.prototype);
|
|
1031
|
+
obj.__wbg_ptr = ptr;
|
|
1032
|
+
TdxNonceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1033
|
+
return obj;
|
|
1034
|
+
}
|
|
1000
1035
|
__destroy_into_raw() {
|
|
1001
1036
|
const ptr = this.__wbg_ptr;
|
|
1002
1037
|
this.__wbg_ptr = 0;
|
|
@@ -1007,11 +1042,12 @@ export class TdxNonce {
|
|
|
1007
1042
|
const ptr = this.__destroy_into_raw();
|
|
1008
1043
|
wasm.__wbg_tdxnonce_free(ptr, 0);
|
|
1009
1044
|
}
|
|
1010
|
-
|
|
1045
|
+
/**
|
|
1046
|
+
* @returns {TdxNonce}
|
|
1047
|
+
*/
|
|
1048
|
+
static generate() {
|
|
1011
1049
|
const ret = wasm.tdxnonce_generate();
|
|
1012
|
-
|
|
1013
|
-
TdxNonceFinalization.register(this, this.__wbg_ptr, this);
|
|
1014
|
-
return this;
|
|
1050
|
+
return TdxNonce.__wrap(ret);
|
|
1015
1051
|
}
|
|
1016
1052
|
/**
|
|
1017
1053
|
* @returns {string}
|
|
@@ -1065,6 +1101,31 @@ export class TdxQuote {
|
|
|
1065
1101
|
}
|
|
1066
1102
|
if (Symbol.dispose) TdxQuote.prototype[Symbol.dispose] = TdxQuote.prototype.free;
|
|
1067
1103
|
|
|
1104
|
+
export class TdxQuoteVerifier {
|
|
1105
|
+
__destroy_into_raw() {
|
|
1106
|
+
const ptr = this.__wbg_ptr;
|
|
1107
|
+
this.__wbg_ptr = 0;
|
|
1108
|
+
TdxQuoteVerifierFinalization.unregister(this);
|
|
1109
|
+
return ptr;
|
|
1110
|
+
}
|
|
1111
|
+
free() {
|
|
1112
|
+
const ptr = this.__destroy_into_raw();
|
|
1113
|
+
wasm.__wbg_tdxquoteverifier_free(ptr, 0);
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* @param {Collateral} collateral
|
|
1117
|
+
*/
|
|
1118
|
+
constructor(collateral) {
|
|
1119
|
+
_assertClass(collateral, Collateral);
|
|
1120
|
+
var ptr0 = collateral.__destroy_into_raw();
|
|
1121
|
+
const ret = wasm.tdxquoteverifier_new(ptr0);
|
|
1122
|
+
this.__wbg_ptr = ret;
|
|
1123
|
+
TdxQuoteVerifierFinalization.register(this, this.__wbg_ptr, this);
|
|
1124
|
+
return this;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
if (Symbol.dispose) TdxQuoteVerifier.prototype[Symbol.dispose] = TdxQuoteVerifier.prototype.free;
|
|
1128
|
+
|
|
1068
1129
|
/**
|
|
1069
1130
|
* A chain which has been cryptographically verified
|
|
1070
1131
|
*/
|
|
@@ -1193,6 +1254,10 @@ export function __wbg_attestresult_new(arg0) {
|
|
|
1193
1254
|
const ret = AttestResult.__wrap(arg0);
|
|
1194
1255
|
return ret;
|
|
1195
1256
|
}
|
|
1257
|
+
export function __wbg_azurequote_new(arg0) {
|
|
1258
|
+
const ret = AzureQuote.__wrap(arg0);
|
|
1259
|
+
return ret;
|
|
1260
|
+
}
|
|
1196
1261
|
export function __wbg_call_13665d9f14390edc() { return handleError(function (arg0, arg1) {
|
|
1197
1262
|
const ret = arg0.call(arg1);
|
|
1198
1263
|
return ret;
|
|
@@ -1201,7 +1266,7 @@ export function __wbg_call_dfde26266607c996() { return handleError(function (arg
|
|
|
1201
1266
|
const ret = arg0.call(arg1, arg2);
|
|
1202
1267
|
return ret;
|
|
1203
1268
|
}, arguments); }
|
|
1204
|
-
export function
|
|
1269
|
+
export function __wbg_clearTimeout_333bba87532ab9d3(arg0) {
|
|
1205
1270
|
const ret = clearTimeout(arg0);
|
|
1206
1271
|
return ret;
|
|
1207
1272
|
}
|
|
@@ -1233,7 +1298,11 @@ export function __wbg_entries_8c373da97ea5ada5(arg0) {
|
|
|
1233
1298
|
const ret = arg0.entries();
|
|
1234
1299
|
return ret;
|
|
1235
1300
|
}
|
|
1236
|
-
export function
|
|
1301
|
+
export function __wbg_fetch_074561c3e313c86f(arg0) {
|
|
1302
|
+
const ret = fetch(arg0);
|
|
1303
|
+
return ret;
|
|
1304
|
+
}
|
|
1305
|
+
export function __wbg_fetch_13f5dce13e2a3778(arg0, arg1) {
|
|
1237
1306
|
const ret = globalThis.fetch(arg0, arg1);
|
|
1238
1307
|
return ret;
|
|
1239
1308
|
}
|
|
@@ -1241,15 +1310,11 @@ export function __wbg_fetch_2998af8c54e0997c(arg0, arg1) {
|
|
|
1241
1310
|
const ret = arg0.fetch(arg1);
|
|
1242
1311
|
return ret;
|
|
1243
1312
|
}
|
|
1244
|
-
export function __wbg_fetch_43b2f110608a59ff(arg0) {
|
|
1245
|
-
const ret = fetch(arg0);
|
|
1246
|
-
return ret;
|
|
1247
|
-
}
|
|
1248
1313
|
export function __wbg_fetch_9dad4fe911207b37(arg0) {
|
|
1249
1314
|
const ret = fetch(arg0);
|
|
1250
1315
|
return ret;
|
|
1251
1316
|
}
|
|
1252
|
-
export function
|
|
1317
|
+
export function __wbg_fetch_ee414d53c87db3c9(arg0) {
|
|
1253
1318
|
const ret = globalThis.fetch(arg0);
|
|
1254
1319
|
return ret;
|
|
1255
1320
|
}
|
|
@@ -1362,7 +1427,7 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
|
|
|
1362
1427
|
const a = state0.a;
|
|
1363
1428
|
state0.a = 0;
|
|
1364
1429
|
try {
|
|
1365
|
-
return
|
|
1430
|
+
return wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(a, state0.b, arg0, arg1);
|
|
1366
1431
|
} finally {
|
|
1367
1432
|
state0.a = a;
|
|
1368
1433
|
}
|
|
@@ -1401,10 +1466,6 @@ export function __wbg_nvidiaattestresult_new(arg0) {
|
|
|
1401
1466
|
const ret = NvidiaAttestResult.__wrap(arg0);
|
|
1402
1467
|
return ret;
|
|
1403
1468
|
}
|
|
1404
|
-
export function __wbg_parsedattestation_new(arg0) {
|
|
1405
|
-
const ret = ParsedAttestation.__wrap(arg0);
|
|
1406
|
-
return ret;
|
|
1407
|
-
}
|
|
1408
1469
|
export function __wbg_process_b2fea42461d03994(arg0) {
|
|
1409
1470
|
const ret = arg0.process;
|
|
1410
1471
|
return ret;
|
|
@@ -1434,7 +1495,7 @@ export function __wbg_responseheaders_new(arg0) {
|
|
|
1434
1495
|
const ret = ResponseHeaders.__wrap(arg0);
|
|
1435
1496
|
return ret;
|
|
1436
1497
|
}
|
|
1437
|
-
export function
|
|
1498
|
+
export function __wbg_setTimeout_3a808dd861dd3c12(arg0, arg1) {
|
|
1438
1499
|
const ret = setTimeout(arg0, arg1);
|
|
1439
1500
|
return ret;
|
|
1440
1501
|
}
|
|
@@ -1473,6 +1534,10 @@ export function __wbg_set_name_e500733c75ec36b0(arg0, arg1, arg2) {
|
|
|
1473
1534
|
export function __wbg_set_signal_2a5bd3615938edbc(arg0, arg1) {
|
|
1474
1535
|
arg0.signal = arg1;
|
|
1475
1536
|
}
|
|
1537
|
+
export function __wbg_sevquote_new(arg0) {
|
|
1538
|
+
const ret = SevQuote.__wrap(arg0);
|
|
1539
|
+
return ret;
|
|
1540
|
+
}
|
|
1476
1541
|
export function __wbg_signal_304beac95c8c5ea0(arg0) {
|
|
1477
1542
|
const ret = arg0.signal;
|
|
1478
1543
|
return ret;
|
|
@@ -1548,18 +1613,18 @@ export function __wbg_versions_215a3ab1c9d5745a(arg0) {
|
|
|
1548
1613
|
return ret;
|
|
1549
1614
|
}
|
|
1550
1615
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1551
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1552
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1616
|
+
// 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`.
|
|
1617
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774);
|
|
1553
1618
|
return ret;
|
|
1554
1619
|
}
|
|
1555
1620
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1556
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1557
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1621
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1607, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1622
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h20881e39b0eb6131);
|
|
1558
1623
|
return ret;
|
|
1559
1624
|
}
|
|
1560
1625
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
1561
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1562
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1626
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2103, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1627
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3c4a7dcd6cb00983);
|
|
1563
1628
|
return ret;
|
|
1564
1629
|
}
|
|
1565
1630
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
@@ -1588,23 +1653,23 @@ export function __wbindgen_init_externref_table() {
|
|
|
1588
1653
|
table.set(offset + 2, true);
|
|
1589
1654
|
table.set(offset + 3, false);
|
|
1590
1655
|
}
|
|
1591
|
-
function
|
|
1592
|
-
wasm.
|
|
1656
|
+
function wasm_bindgen__convert__closures_____invoke__h20881e39b0eb6131(arg0, arg1) {
|
|
1657
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h20881e39b0eb6131(arg0, arg1);
|
|
1593
1658
|
}
|
|
1594
1659
|
|
|
1595
|
-
function
|
|
1596
|
-
wasm.
|
|
1660
|
+
function wasm_bindgen__convert__closures_____invoke__h3c4a7dcd6cb00983(arg0, arg1) {
|
|
1661
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3c4a7dcd6cb00983(arg0, arg1);
|
|
1597
1662
|
}
|
|
1598
1663
|
|
|
1599
|
-
function
|
|
1600
|
-
const ret = wasm.
|
|
1664
|
+
function wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774(arg0, arg1, arg2) {
|
|
1665
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774(arg0, arg1, arg2);
|
|
1601
1666
|
if (ret[1]) {
|
|
1602
1667
|
throw takeFromExternrefTable0(ret[0]);
|
|
1603
1668
|
}
|
|
1604
1669
|
}
|
|
1605
1670
|
|
|
1606
|
-
function
|
|
1607
|
-
wasm.
|
|
1671
|
+
function wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(arg0, arg1, arg2, arg3) {
|
|
1672
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(arg0, arg1, arg2, arg3);
|
|
1608
1673
|
}
|
|
1609
1674
|
|
|
1610
1675
|
|
|
@@ -1621,6 +1686,12 @@ const AttestHeadersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1621
1686
|
const AttestResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1622
1687
|
? { register: () => {}, unregister: () => {} }
|
|
1623
1688
|
: new FinalizationRegistry(ptr => wasm.__wbg_attestresult_free(ptr, 1));
|
|
1689
|
+
const AzureNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1690
|
+
? { register: () => {}, unregister: () => {} }
|
|
1691
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_azurenonce_free(ptr, 1));
|
|
1692
|
+
const AzureQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1693
|
+
? { register: () => {}, unregister: () => {} }
|
|
1694
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_azurequote_free(ptr, 1));
|
|
1624
1695
|
const CRLFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1625
1696
|
? { register: () => {}, unregister: () => {} }
|
|
1626
1697
|
: new FinalizationRegistry(ptr => wasm.__wbg_crl_free(ptr, 1));
|
|
@@ -1660,24 +1731,21 @@ const NvidiaAttestResultFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
1660
1731
|
const NvidiaNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1661
1732
|
? { register: () => {}, unregister: () => {} }
|
|
1662
1733
|
: new FinalizationRegistry(ptr => wasm.__wbg_nvidianonce_free(ptr, 1));
|
|
1663
|
-
const ParsedAttestationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1664
|
-
? { register: () => {}, unregister: () => {} }
|
|
1665
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_parsedattestation_free(ptr, 1));
|
|
1666
1734
|
const PcsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1667
1735
|
? { register: () => {}, unregister: () => {} }
|
|
1668
1736
|
: new FinalizationRegistry(ptr => wasm.__wbg_pcs_free(ptr, 1));
|
|
1669
1737
|
const QueryParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1670
1738
|
? { register: () => {}, unregister: () => {} }
|
|
1671
1739
|
: new FinalizationRegistry(ptr => wasm.__wbg_queryparams_free(ptr, 1));
|
|
1672
|
-
const QuoteVerifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1673
|
-
? { register: () => {}, unregister: () => {} }
|
|
1674
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_quoteverifier_free(ptr, 1));
|
|
1675
1740
|
const ResponseHeadersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1676
1741
|
? { register: () => {}, unregister: () => {} }
|
|
1677
1742
|
: new FinalizationRegistry(ptr => wasm.__wbg_responseheaders_free(ptr, 1));
|
|
1678
1743
|
const SevNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1679
1744
|
? { register: () => {}, unregister: () => {} }
|
|
1680
1745
|
: new FinalizationRegistry(ptr => wasm.__wbg_sevnonce_free(ptr, 1));
|
|
1746
|
+
const SevQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1747
|
+
? { register: () => {}, unregister: () => {} }
|
|
1748
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sevquote_free(ptr, 1));
|
|
1681
1749
|
const TcbLevelsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1682
1750
|
? { register: () => {}, unregister: () => {} }
|
|
1683
1751
|
: new FinalizationRegistry(ptr => wasm.__wbg_tcblevels_free(ptr, 1));
|
|
@@ -1687,6 +1755,9 @@ const TdxNonceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1687
1755
|
const TdxQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1688
1756
|
? { register: () => {}, unregister: () => {} }
|
|
1689
1757
|
: new FinalizationRegistry(ptr => wasm.__wbg_tdxquote_free(ptr, 1));
|
|
1758
|
+
const TdxQuoteVerifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1759
|
+
? { register: () => {}, unregister: () => {} }
|
|
1760
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tdxquoteverifier_free(ptr, 1));
|
|
1690
1761
|
const VerifiedChainFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1691
1762
|
? { register: () => {}, unregister: () => {} }
|
|
1692
1763
|
: new FinalizationRegistry(ptr => wasm.__wbg_verifiedchain_free(ptr, 1));
|
package/reticle_bg.wasm
CHANGED
|
Binary file
|