Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mirageprivacy/sdk",
"version": "0.4.3",
"version": "0.4.4",
"description": "SDK for private transfers on Mirage",
"type": "module",
"main": "./dist/index.cjs",
Expand Down
6 changes: 5 additions & 1 deletion src/internal/attestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ export async function verifyAttestation(
);
}

const { QuoteVerifier } = await import("@phala/dcap-qvl");
const dcap = await import("@phala/dcap-qvl");
// Package is CJS with a trailing module.exports, so some bundlers only surface it as default.
const { QuoteVerifier } = dcap.QuoteVerifier
? dcap
: ((dcap as unknown as { default: typeof dcap }).default ?? dcap);

const quoteBytes = hexToBytes(attestation.quote);

Expand Down
Loading