nanopyrs

Crates.ionanopyrs
lib.rsnanopyrs
version0.4.0
sourcesrc
created_at2023-12-17 01:49:37.794397
updated_at2024-03-17 07:02:04.153726
descriptionRust rewrite of the Python nanopy library
homepagehttps://github.com/expiredhotdog/nanopyrs
repositoryhttps://github.com/expiredhotdog/nanopyrs
max_upload_size
id1072092
size180,433
(expiredhotdog)

documentation

README

nanopyrs

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.

Feature Flags

RPC

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

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

Serde support is enabled by the serde feature, which is disabled by default.

Shouldn't this be called 'nanors' since the 'py' in 'nanopy' means Python?

Maybe, but the name "nanors" was taken :(

Licensing

This crate is open source and licensed under the MIT license. See the LICENSE file for more details.

Credits

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

Commit count: 32

cargo fmt