0.1.28 • Published 1 year ago
scrypt-ts-lib v0.1.28
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
1 year ago
0.1.28
1 year ago
0.1.27
1 year ago
0.1.26
1 year ago
0.1.25
2 years ago
0.1.24
2 years ago
0.1.20
2 years ago
0.1.21
2 years ago
0.1.22
2 years ago
0.1.23
2 years ago
0.1.18
2 years ago
0.1.19
2 years ago
0.1.10
2 years ago
0.1.11
2 years ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.14
2 years ago
0.1.15
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.16
2 years ago
0.1.8
2 years ago
0.1.17
2 years ago
0.1.7
2 years ago
0.1.9
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.0-alpha-1
2 years ago