#address #lib #blockchain #format #velas #velas-ether #en-decoding

velas-address-rust

Rust lib for en/decoding address to velas/ether format

5 releases

0.2.3 Apr 29, 2023
0.2.2 Apr 6, 2020
0.2.1 Apr 5, 2020
0.2.0 Apr 5, 2020
0.1.0 Apr 5, 2020

#175 in #address

GPL-3.0 license

15KB
111 lines

velas-address-rust

crates.io docs.rs

Rust lib for en/decoding address to velas/ether format

Usage

use velas_address_rust::*;

fn main() {
    let eth_addresses = "0x32Be343B94f860124dC4fEe278FDCBD38C102D88";
    let vlx_addr = eth_to_vlx(eth_addresses).unwrap(); // V5dJeCa7bmkqmZF53TqjRbnB4fG6hxuu4f
    let eth_addr = vlx_to_eth(&vlx_addr).unwrap(); // 0x32be343b94f860124dc4fee278fdcbd38c102d88
}

lib.rs:

velas-address-rust

Rust lib for en/decoding address to velas/ether format

use velas_address_rust::*;

let eth_addresses = "0x32Be343B94f860124dC4fEe278FDCBD38C102D88";
let vlx_addr = eth_to_vlx(eth_addresses).unwrap(); // V5dJeCa7bmkqmZF53TqjRbnB4fG6hxuu4f
let eth_addr = vlx_to_eth(&vlx_addr).unwrap(); // 0x32be343b94f860124dc4fee278fdcbd38c102d88

Dependencies

~2.4–3.5MB
~58K SLoC