Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eqty/risc-zero-verifier-react

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eqty/risc-zero-verifier-react

Verifier for RISC Zero receipts. See also risc-zero-verifier for a package with no UI component.

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

RISC Zero Verifier

This is a verifier for RISC Zero zkVM execution receipts.

There is also a component with no UI available.

Usage

Basic usage with defaults:

import { Verifier } from "@eqty/risc-zero-verifier-react";

<Verifier />

Enable the journal parser. See the main repo for more details on the journal parser.

<Verifier enableJournalParser={true} />

Then journal parser registry can be changed, and a different IPFS gateway can be set.

<Verifier
  enableJournalParser={true}
  onStatus={onVerifierStatus}
  registryUrl="http://localhost:3000/registry.json"
  ipfsGateway="http://localhost:8080"
/>

A callback function can be passed in to receive status changes and use the status elsewhere on the page:

  const onVerifierStatus = (result) => {
    // result is either null or an object like this:
    // {
    //  verified: true/false,
    //  error: "an error message"
    // }
  };

<Verifier
  enableJournalParser={true}
  onStatus={onVerifierStatus}
/>

Styling

The component is unstyled, but has CSS classes defined, including dynamic CSS classes for verification state.

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