Skip to content

utxostack/mutiny-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e916f7f · Dec 13, 2024
Oct 12, 2024
Dec 5, 2024
Jun 11, 2024
Dec 13, 2024
Dec 13, 2024
Nov 22, 2023
Apr 12, 2024
Dec 13, 2024
Oct 18, 2024
Jan 3, 2024
Dec 6, 2024
Oct 14, 2024
Feb 13, 2024
Sep 20, 2024
Oct 12, 2024

Repository files navigation

mutiny-node

MIT licensed npm version

The mutiny node that powers the mutiny web frontend.

Importing

The web front end imports the NPM package that this project creates here.

Development

Nixos

A flake.nix file has been added for easier nix development and testing. Pretty much all cargo / wasm commands work, though right now optimized for aarch64-unknown-linux-gnu and wasm32-unknown-unknown compilation in the nix shell.

To start:

nix develop

Then the following just examples that work:

just clippy-nix
just test-nix
just pack
just release

Building on the mac

See the discussion here: rust-bitcoin/rust-secp256k1#283

You may have to either prefix some environment variables or set them in your env or shell file:

AR=/opt/homebrew/opt/llvm/bin/llvm-ar CC=/opt/homebrew/opt/llvm/bin/clang

Dependencies

  • rust (specifically, nightly: rustup toolchain install nightly-2024-09-19 and rustup target add wasm32-unknown-unknown --toolchain nightly)

  • node

  • wasm-pack

cargo install wasm-pack
brew install chromedriver

Build

Get all the dependencies above first.

Build the rust wasm stuff:

just pack

Testing

To run the local tests you can simply use

just test

Acknowledgments

This project was initially forked from mutiny-node. We are grateful for the solid work done by the original contributors.

Languages

  • Rust 99.6%
  • Other 0.4%