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

#2360 in Magic Beans

Download history 40/week @ 2023-10-28 19/week @ 2023-11-04 16/week @ 2023-11-11 28/week @ 2023-11-18 36/week @ 2023-11-25 24/week @ 2023-12-02 18/week @ 2023-12-09 24/week @ 2023-12-16 30/week @ 2023-12-23 10/week @ 2023-12-30 16/week @ 2024-01-06 21/week @ 2024-01-13 19/week @ 2024-01-20 33/week @ 2024-01-27 19/week @ 2024-02-03 45/week @ 2024-02-10

123 downloads per month
Used in 2 crates

GPL-3.0 license

17KB
123 lines

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

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