This project is currently a work in progress. It is provided as-is, without any warranty of correctness, functionality, or fitness for any particular purpose. There is no guarantee that it works as intended, and it may contain bugs, incomplete features, or incorrect cryptographic behavior.
Do not use this software for security-critical or production purposes. Use at your own risk.
An application that uses AshMaize PoW algorithm to scavenge for night.
cargo build --releaseIf you encounter issue with the build try to run cargo fix --bin "shadow-harvester"
Run
cargo run --release -- <args>OR
./target/release/shadow-harvester <args>The below commands will use nix for running the command, if you don't use nix you can use cargo or just build ./target/release/shadow-harvester <args>
To run Shadow Harvester with a mnemonic file:
nix run .\#shadow-harvester -- --api-url https://scavenger.prod.gd.midnighttge.io --accept-tos --mnemonic-file wallet.mnemonicIf you haven't created a wallet yet, you can generate a recovery phrase using cardano-address:
cardano-address recovery-phrase generate > wallet.mnemonicSecurity Note: There is always a security risk when using plain text mnemonics. For Midnight, it is recommended that you transfer your NIGHT tokens to your preferred secure wallets after the glacier drop period concludes.
If you just want to mine with a single key:
nix run .\#shadow-harvester -- --api-url https://scavenger.prod.gd.midnighttge.io --accept-tos --payment-key "YOURED25519PRIVATEKEY"Note on Ephemeral Keys
Ephemeral keys are not recommended for use. Currently, the donate-to endpoint is not active, which means any keys generated ephemerally are discarded and never persisted to disk. While this approach was initially considered, the implementation was switched to mnemonic-based keys due to the non-functional donate-to endpoint. Use mnemonic files or payment keys instead until the donate-to functionality becomes available.
This project is licensed under either of the following licenses:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)