Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.34 KB

README.md

File metadata and controls

40 lines (32 loc) · 1.34 KB

Casper Keys Manager

Full instructions for first-time contributors are found in the Multi-Signature Tutorial.

The steps below are a quick start if you have already set up your develoment environment, the casper node, the nctl testing tool, and the Casper client SDK.

Install

Set up the Rust toolchain

You need the Rust toolchain to develop smart contracts.

$ cd contract
$ rustup install $(cat rust-toolchain)
$ rustup target add --toolchain $(cat rust-toolchain) wasm32-unknown-unknown

Compile Account Code (Smart Contracts)

Create a WASM file that will be used by the JS client.

$ cargo build --release

Install the JS packages

$ cd client
$ npm install

Prepare the local nctl network

  1. Set up nctl
  2. Update client/src/utils.js:
    • Set baseKeyPath to your nctl faucet key.

Run

Run the client code.

$ cd client
$ node src/keys-manager.js
$ node src/keys-manager-set-all.js