npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@reclaimprotocol/verifier-solidity-sdk

v1.0.4

Published

A verifier-oriented version of reclaim's solidity sdk.

Downloads

85

Readme

@reclaimprotocol/verifier-solidity-sdk

A verifier-oriented version of Reclaim's Solidity SDK, designed to make deploying and verifying Reclaim contracts easier.

Overview

@reclaimprotocol/verifier-solidity-sdk allows you to deploy a Reclaim contract that can be used to verify proofs in your Solidity smart contracts. This SDK is tailored specifically for verifiers who want to integrate Reclaim proof verification into their Ethereum or EVM-compatible smart contracts.

Installation

Start using @reclaimprotocol/verifier-solidity-sdk in your project by running:

npm i @reclaimprotocol/verifier-solidity-sdk

Usage

Below is an example of how to use the SDK to deploy a Reclaim contract and verify proofs:

// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "@reclaimprotocol/verifier-solidity-sdk/contracts/Reclaim.sol";
import "@reclaimprotocol/verifier-solidity-sdk/contracts/Addresses.sol";

contract Attestor {
   address public reclaimAddress;

   constructor() {
      // Replace with the network you are deploying on
      reclaimAddress = Addresses.PLOYGON_MUMBAI_TESTNET; 
   }

   function verifyProof(Reclaim.Proof memory proof) public view {
       Reclaim(reclaimAddress).verifyProof(proof);
       // Your business logic upon successful verification
       // Example: Verify that proof.context matches your expectations
   }
}

Key Features

  • Verifier Oriented: Tailored specifically for users who want to verify Reclaim proofs.
  • Easy Network Configuration: Use predefined network addresses (e.g., Addresses.ETHEREUM).
  • Proof Verification: Easily integrate Reclaim proof verification in your contracts.

Addresses

The package includes a list of predefined addresses for different networks that you can use when deploying your contract. You can find these in contracts/Addresses.sol or preferably in Reclaim Documentation