pwr-rs 0.3.9

Complete PWR Chain library in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use k256::ecdsa::VerifyingKey;
use serde::Serialize;

#[derive(Clone, PartialEq, Debug, Serialize)]
#[serde(try_from = "String", into = "String")]
pub struct PublicKey {
    pub verifying_key: VerifyingKey,
}

pub struct Wallet {
    pub public_key: Vec<u8>,
    pub private_key: Vec<u8>,
    pub address: Vec<u8>,
    pub seed_phrase: Vec<u8>,
    pub rpc_url: String,
}