# scrypt-ts-lib

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

Latest version **0.1.28** (published 2024-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install scrypt-ts-lib
pnpm add scrypt-ts-lib
yarn add scrypt-ts-lib
bun add scrypt-ts-lib
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.28 |
| Published | 2024-03-07 |
| First published | 2022-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 666.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | sCrypt.Inc |
| Maintainers | zhfnjust, msinkec, aaron67 |
| Keywords | scrypt-ts |

## Links

- npm: https://www.npmjs.com/package/scrypt-ts-lib
- Repository: https://github.com/sCrypt-Inc/scrypt-ts-lib
- Homepage: https://github.com/sCrypt-Inc/scrypt-ts-lib#readme
- Issues: https://github.com/sCrypt-Inc/scrypt-ts-lib/issues
- npm.io page: https://npm.io/package/scrypt-ts-lib

## Dependencies (2)

- [rabinsig](https://npm.io/package/rabinsig.md) ^4.2.1
- [scrypt-ts](https://npm.io/package/scrypt-ts.md) ^1.3.2

## Recent versions

- 0.1.28 (latest) — 2024-03-07
- 0.1.29-test.1 (test) — 2024-03-07
- 0.1.27 — 2024-02-07
- 0.1.26 — 2024-01-17
- 0.1.25 — 2023-11-29
- 0.1.24 — 2023-09-19
- 0.1.23 — 2023-08-29
- 0.1.22 — 2023-08-28
- 0.1.21 — 2023-08-22
- 0.1.20 — 2023-07-29
- 0.1.19 — 2023-07-28
- 0.1.18 — 2023-07-12
- 0.1.17 — 2023-05-02
- 0.1.16 — 2023-04-28
- 0.1.15 — 2023-04-07
- … 15 more at https://npm.io/package/scrypt-ts-lib/versions

## README

[![CI-Test](https://github.com/sCrypt-Inc/scrypt-ts-lib/actions/workflows/ci.yml/badge.svg)](https://github.com/sCrypt-Inc/scrypt-ts-lib/actions/workflows/ci.yml)
[![Build Status](https://app.travis-ci.com/sCrypt-Inc/scrypt-ts-lib.svg?branch=master)](https://app.travis-ci.com/sCrypt-Inc/scrypt-ts-lib)

# scrypt-ts-lib

A collection of contracts and libraries for writing smart contracts with [`scrypt-ts`](https://www.npmjs.com/package/scrypt-ts).

## Installation

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

```sh
npm install scrypt-ts-lib
```

## Usage

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

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

or

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

Then use them in your contract like:

```ts
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](https://scrypt.io/scrypt-ts/).

---
_Source: https://npm.io/package/scrypt-ts-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
