8 releases (3 stable)
1.0.2 | May 25, 2023 |
---|---|
1.0.1 | Nov 21, 2022 |
0.1.4 | Jun 7, 2022 |
0.1.3 | Sep 14, 2020 |
0.1.0 | Aug 2, 2020 |
#15 in #phrase
Used in 2 crates
17KB
123 lines
cyber-rs
Library for cyber blockchain
Seed phrase
Seed phrase generation function
use cyber::mnemonic::*;
let phrase = generate_phrase();
Wallet
Wallet generation function
let phrase = String::from("soap weird dutch gap region blossom antique economy legend loan ugly boring");
let sk = PrivateKeyWallet::from_seed(phrase, None);
let pk = PublicKeyWallet::from_private_key(sk.to_secret_key());
pk.to_address("cyber") // cyber1gw824ephm676c93ur3zgefctj3frvupc4tmn3v
lib.rs
:
cyber
Library for cyber blockchain (https://cyb.ai/)
cyber - consensus supercomputer for computing relevance in The Great Web or, simply, decentralized Google.
Dependencies
~15MB
~343K SLoC