mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-01 19:33:56 +01:00
8c7c0d049d80bdf5ba974649d2330547816800e3
New contract outputs were derived with next_child(), which uses the wallet's active account. During a late-lock the active account can differ from the one the contract context was created under, so an output could be created in the wrong account. Derive under context.parent_key_id instead. - WalletBackend: add next_child_for(parent_key_id, mask); next_child delegates to it. - add_outputs_to_ctx derives via next_child_for(&context.parent_key_id, ..). - parent_key_for returns Result and errors (UnknownAccountLabel) on an unknown account name instead of silently falling back to the active account. - test: a contract referencing an unknown account now errors. Addresses PR #754 review (context.rs, utils.rs).
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%