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

6.0.1 • 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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

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

    Weekly Downloads

    3,584

    Version

    6.0.1

    License

    MIT

    Unpacked Size

    369 kB

    Total Files

    8

    Last publish

    Collaborators

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