@lit-protocol/sev-snp-utils-sdk
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

BLS-SDK

Read more about it here

https://github.com/LIT-Protocol/sev-snp-utils-wasm

Installation

yarn add @lit-protocol/sev-snp-utils-sdk

Usage

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.

Readme

Keywords

Package Sidebar

Install

npm i @lit-protocol/sev-snp-utils-sdk

Weekly Downloads

2,416

Version

5.0.0

License

MIT

Unpacked Size

369 kB

Total Files

8

Last publish

Collaborators

  • maximushaximus
  • famura
  • josh-long
  • hwrdtm
  • websaam
  • adarsh-kumar28
  • glitch003