https://github.com/hazae41/secp256k1
Secp256k1 adapter for WebAssembly and JS implementations
https://github.com/hazae41/secp256k1
Last synced: 5 months ago
JSON representation
Secp256k1 adapter for WebAssembly and JS implementations
- Host: GitHub
- URL: https://github.com/hazae41/secp256k1
- Owner: hazae41
- Created: 2023-09-06T20:36:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-25T14:12:37.000Z (about 1 year ago)
- Last Synced: 2025-10-19T15:52:56.811Z (9 months ago)
- Language: TypeScript
- Size: 172 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-ccamel - hazae41/secp256k1 - Secp256k1 for the web (TypeScript)
README
# Secp256k1
Secp256k1 adapter for WebAssembly and JS implementations
```bash
npm i @hazae41/secp256k1
```
[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/secp256k1)
## Features
### Current features
- 100% TypeScript and ESM
- No external dependencies
## Usage
### WebAssembly
```bash
npm i @hazae41/secp256k1.wasm
```
```typescript
import { Secp256k1 } from "@hazae41/secp256k1"
import { Secp256k1Wasm } from "@hazae41/secp256k1.wasm"
await Secp256k1Wasm.initBundled()
Secp256k1.set(Secp256k1.fromWasm(Secp256k1Wasm))
```
### Noble (JavaScript)
```bash
npm i @noble/curves
```
```typescript
import { Secp256k1 } from "@hazae41/secp256k1"
import * as Secp256k1Noble from "@noble/curves/secp256k1"
Secp256k1.set(Secp256k1.fromNoble(Secp256k1Noble))
```