Crates.io | nanopyrs |
lib.rs | nanopyrs |
version | 0.4.0 |
source | src |
created_at | 2023-12-17 01:49:37.794397 |
updated_at | 2024-03-17 07:02:04.153726 |
description | Rust rewrite of the Python nanopy library |
homepage | https://github.com/expiredhotdog/nanopyrs |
repository | https://github.com/expiredhotdog/nanopyrs |
max_upload_size | |
id | 1072092 |
size | 180,433 |
Mid- and low-level access to functions and data types related to the Nano cryptocurrency.
This is, partially, a Rust rewrite of the Python nanopy library. nanopyrs
was initially part of another project, so some behaviors may seem odd.
There is not very much documentation at this time.
Use at your own risk. I cannot guarantee that this library is perfect.
RPC functionality is enabled by the rpc
feature, which is disabled by default.
Currently, only the following commands are officially supported: account_balance
, account_history
, account_info
, account_representative
, accounts_balances
, accounts_frontiers
, accounts_receivable
, accounts_representatives
, block_info
, blocks_info
, process
, work_generate
. . . but any other command can be implemented manually with the help of the command()
method of nanopyrs::rpc::Rpc
, and various functions in nanopyrs::rpc::util
.
Camo Nano functionality is enabled by the camo
feature, which is disabled by default.
Note that Camo Nano is a custom, experimental, and non-standard feature of this library, and is generally not supported by wallets or the wider Nano ecosystem.
See the CAMO-PROTOCOL.md
file for details on the Camo Nano protocol.
When using this library to implement a Camo Nano wallet, make sure to abide by the protocol standards, particularly the minimum-send requirements.
While not likely to significantly change, version one of the Camo Nano protocol should not be considered finalized until version 1.0.0
.
Serde support is enabled by the serde
feature, which is disabled by default.
Maybe, but the name "nanors" was taken :(
This crate is open source and licensed under the MIT license. See the LICENSE
file for more details.
This library is heavily inspired by, and partially derived from, the nanopy library, written by npy0.
The Base32 code was copied from the feeless library, written by gak