Crates.io | btc_sdk |
lib.rs | btc_sdk |
version | |
source | src |
created_at | 2024-12-09 07:04:08.760546 |
updated_at | 2024-12-10 04:18:24.721965 |
description | A Rust library for creating Bitcoin-like blockchain systems. It provides functionality for generating the genesis block, managing blockchain data, and preparing for P2P network connections, enabling the development of custom cryptocurrencies. |
homepage | |
repository | https://github.com/LunaStev/Envie |
max_upload_size | |
id | 1477041 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This project is a Rust library that allows you to build a Bitcoin-like blockchain system. The library provides the basic structure of a blockchain and includes the ability to create a genesis block. It provides the foundational framework for implementing basic blockchain networks and transaction systems.
With this library, you can create your own blockchain system and define the basic features of your own coin, similar to Bitcoin. It allows you to create the genesis block, store blockchain data, and define the basic configuration of the coin.
The major features currently implemented are as follows:
To use this library, you need to first add it as a dependency in your Cargo.toml
file.
In your Cargo.toml
, add the following:
btc-sdk = "0.1.1"
use btc_sdk::{CoinConfig, genesis};
fn main() {
let config = CoinConfig::new(
"MyCoin",
21_000_000,
600,
"This is the first custom coin!"
);
let genesis_block = genesis::create_genesis_block(&config);
println!("🚀 Genesis Block: {:?}", genesis_block);
}
With this library, you can build a basic blockchain network and, by extending it, create your own cryptocurrency. For example:
This project is open-source! If you'd like to contribute, please submit a Pull Request or open an Issue to suggest improvements.