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

scrypt-ts-lib

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrypt-ts-lib

A collection of smart contract libraries for `scrypt-ts`.

  • 0.1.28
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32
decreased by-34.69%
Maintainers
3
Weekly downloads
 
Created
Source

CI-Test Build Status

scrypt-ts-lib

A collection of contracts and libraries for writing smart contracts with scrypt-ts.

Installation

You can install scrypt-ts-lib to your project with this command:

npm install scrypt-ts-lib

Usage

You can use the contracts or libraries by importing them like this:

import { Mimc7 } from "scrypt-ts-lib";

or

import { Mimc7 } from "scrypt-ts-lib/dist/hash/mimc7";

Then use them in your contract like:

class MyContract extends SmartContract {
  @method
  public unlock(x: bigint, k: bigint, h: bigint) {
    // call imported library method
    assert(Mimc7.hash(x, k) == h);
  }
}

Contributing

Pull requests are welcome.

Learn More

You can learn more about how to write smart contracts with scrypt-ts from here.

Keywords

FAQs

Package last updated on 07 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