cyber

Crates.iocyber
lib.rscyber
version1.0.2
sourcesrc
created_at2020-08-02 08:43:31.080186
updated_at2023-05-25 05:51:25.873456
descriptionLibrary for cyber blockchain
homepagehttps://github.com/CipherDogs/cyber-rs
repositoryhttps://github.com/CipherDogs/cyber-rs
max_upload_size
id272165
size44,076
DEADBLACKCLOVER (deadblackclover)

documentation

README

cyber-rs

crates.io docs.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
Commit count: 24

cargo fmt