https://github.com/CipherDogs/cyber-rs
~ Library for cyber blockchain
https://github.com/CipherDogs/cyber-rs
blockchain bostrom cyber library rust
Last synced: 2 months ago
JSON representation
~ Library for cyber blockchain
- Host: GitHub
- URL: https://github.com/CipherDogs/cyber-rs
- Owner: CipherDogs
- License: gpl-3.0
- Archived: true
- Created: 2020-08-02T08:35:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-25T05:51:07.000Z (about 2 years ago)
- Last Synced: 2025-04-29T03:20:42.545Z (2 months ago)
- Topics: blockchain, bostrom, cyber, library, rust
- Language: Rust
- Homepage: https://docs.rs/cyber/
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cyber-rs

Library for cyber blockchain
## Seed phrase
Seed phrase generation function```rust
use cyber::mnemonic::*;
let phrase = generate_phrase();
```## Wallet
Wallet generation function```rust
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
```