New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dleq-tools

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dleq-tools

This package is a set of crypto tools to empower cross-chain atomic swaps.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

DLEQ Tools

This package is a set of crypto tools to empower cross-chain atomic swaps.

It has routines to compute and verify Discrete logarithm equality proofs for points on Secp256k1 and Ed25519 elliptic curves as well as routines to compute and verify adaptor signatures.

Its primary goal is to expose these functions to JavaScript environment via WebAssembly produced by wasm-pack.

Building

Project requies wasm-pack to build WebAssembly, install it with cargo install wasm-pack

To build the project, run wasm-pack build --target nodejs --release ./ -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort

If you have build issues on macOS, try to install LLVM via homebrew: brew install llvm, then build with PATH=/opt/homebrew/opt/llvm/bin:$PATH wasm-pack build --target nodejs --release ./ -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort

Usage

See SwapWorkflowTest in lib.rs, it employs all exported routines from this package

FAQs

Package last updated on 17 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts