New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eqty/risc-zero-verifier

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eqty/risc-zero-verifier

Verifier for RISC Zero receipts. See also risc-zero-verifier-react for a UI component.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

RISC Zero Verifier

This is a verifier for RISC Zero zkVM execution receipts. It's built from rust source code (in order to use the official RISC Zero receipt verification API) using WASM.

There is also a React component available.

Usage

import("@eqty/risc-zero-verifier")

// Verify a bincode formatted receipt https://docs.rs/bincode/latest/bincode/
verifier.verify_receipt_binary(guestCodeId, receiptBinary);

// Verify a JSON receipt
verifier.verify_receipt_json(guestCodeId, receiptJson);

// Convert a bincode formatted receipt to JSON
verifier.binary_to_json(receiptBinary);

Usage from React

Since it's a wasm package it needs to be loaded asynchronously:

useEffect(() => {
  (async () => {
    const wasmPackage = await import("@eqty/risc-zero-verifier");
    const verifier = await wasmPackage.default;
    setVerifier(verifier);
  })();
}, []);

For more info see https://github.com/eqtylab/risc-zero-verifier

FAQs

Package last updated on 15 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc