Package Exports
- @lit-protocol/sev-snp-utils-sdk
- @lit-protocol/sev-snp-utils-sdk/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lit-protocol/sev-snp-utils-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
BLS-SDK
Read more about it here
https://github.com/LIT-Protocol/sev-snp-utils-wasm
Installation
yarn add @lit-protocol/sev-snp-utils-sdkUsage
import { initSevSnpUtilsSdk } from '@lit-protocol/sev-snp-utils-sdk';
initSevSnpUtilsSdk().then((exports) => {
globalThis.wasmExports = exports;
log(
`✅ [SEV SNP Utils SDK] wasmExports loaded. ${
Object.keys(exports).length
} functions available. Run 'wasmExports' in the console to see them.`
);
});Then
// Check an attestation report
let attestationReport = 'someAttestationReportObtainedFromSomewhere';
try {
await wasmExports.verify_attestation_report(report);
} catch (e) {
console.error(e);
}The verify_attestation_report() function will throw an error if the attestation report is invalid. Otherwise, it will return undefined.