0.2.1 • Published 1 year ago

@eqty/risc-zero-verifier-react v0.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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

0.2.1

1 year ago

0.2.0

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago