mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 15:21:39 +02:00
5cc1683a1bbb9d2a4fb88c150bee9c0c8bc820f6
num_participants is divided into the kernel cost, so 0 caused a divide-by-zero (inf -> garbage fee). Validate it in context::create, the common setup path for every party: the initiator's value comes from args and the signer's from the slate, so this also rejects a tampered slate. Only 1 (self-spend) and 2 (standard) are supported today; lift the upper bound when multi-party contracts are implemented. Addresses PR #754 review (wallet_args.rs:1039).
Grin Wallet
This is the reference implementation of Grin's wallet. It consists of 2 major pieces:
-
The Grin Wallet APIs, which are intended for use by Grin community wallet developers. The wallet APIs can be directly linked into other projects or invoked via a JSON-RPC interface.
-
A reference command-line wallet, which provides a baseline wallet for Grin and demonstrates how the wallet APIs should be called.
Usage
To use the command-line wallet, we recommend using the latest release from the Releases page. There are distributions for Linux, MacOS and Windows.
Full documentation outlining how to use the command line wallet can be found on Grin's Wiki
License
Apache License v2.0
Languages
Rust
99.9%
Shell
0.1%