Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

CipherDogs/cyber-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages