Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Sep 1, 2024
1 parent af2f58e commit 89b7dbd
Showing 1 changed file with 3 additions and 51 deletions.
54 changes: 3 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,63 +80,15 @@ You can bring your own implementation for some algorithms

#### Keccak256 (required for almost everything)

Noble-hashes includes a small implementation of Keccak256

https://github.com/paulmillr/noble-hashes

```bash
npm i @noble/hashes
```

`keccak256.ts`

```typescript
import { Keccak256 } from "@hazae41/keccak256"

Keccak256.set(await Keccak256.fromNoble())
```

See https://github.com/hazae41/keccak256 for more
See https://github.com/hazae41/keccak256 for setup

#### Secp256k1 (required for signatures)

Noble-curves includes a small implementation of Secp256k1

https://github.com/paulmillr/noble-curves

```bash
npm i @noble/curves
```

`secp256k1.ts`

```typescript
import { Secp256k1 } from "@hazae41/secp256k1"

Secp256k1.set(await Secp256k1.fromNoble())
```

See https://github.com/hazae41/secp256k1 for more
See https://github.com/hazae41/secp256k1 for setup

#### Base16 (optional)

Scure-base includes a small implementation of Base16

https://github.com/paulmillr/scure-base

```bash
npm i @scure/base
```

`base16.ts`

```typescript
import { Base16 } from "@hazae41/base16"

Base16.set(await Base16.fromBufferOrScure())
```

See https://github.com/hazae41/base16 for more
See https://github.com/hazae41/base16 for setup

## Usage

Expand Down

0 comments on commit 89b7dbd

Please sign in to comment.