[][src]Struct qtum_address_rust::QtumAddress

pub struct QtumAddress { /* fields omitted */ }

Rust lib for en/decoding address to Qtum/Ethereum format

0x3a - mainnet

0x78 - testnet

Implementations

impl QtumAddress[src]

pub fn gethexaddress(&self, address: &str) -> Result<String, &str>[src]

Converts a base58 pubkeyhash address to a hex address for use in smart contracts.

pub fn fromhexaddress(&self, address: &str) -> Result<String, &str>[src]

Converts a raw hex address to a base58 pubkeyhash address

pub fn addprefix(address: &str) -> String[src]

Adding an ethereum address prefix

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.