0.1.28 • Published 2 months ago

scrypt-ts-lib v0.1.28

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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.

0.1.29-test.1

2 months ago

0.1.28

2 months ago

0.1.27

3 months ago

0.1.26

4 months ago

0.1.25

6 months ago

0.1.24

8 months ago

0.1.20

10 months ago

0.1.21

9 months ago

0.1.22

9 months ago

0.1.23

9 months ago

0.1.18

10 months ago

0.1.19

10 months ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.16

1 year ago

0.1.8

1 year ago

0.1.17

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.0-alpha-1

1 year ago