Intro

forge_wallet implement by Rust. Based on forgecrypter, forgehasher, forgesigner, forgedid.

The crate provides some help functions to help user create wallet.

Struct Wallet

rust pub struct Wallet { pub w_type: WalletType, pub sk: Vec<u8>, pub pk: Vec<u8>, pub address: String, }

API

Usage

```rust let wallettype = WalletType { roletype: Some(RoleType::Application), keytype: Some(KeyType::Ed25519), hashtype: Some(HashType::Sha3), }; let wallet = fromwallettype(&wallettype)?; asserteq!(wallet, fromsk(&wallet.sk, &wallettype)?);

let message = b"hello rust";
let signature = wallet.sign(message)?;
assert!(wallet.verify(message, &signature))?;

```