pub trait ReadOnly {
    fn get_address(
        &self,
        chain_id_alias: &str,
        network_id: u32
    ) -> Result<String>; fn get_short_address(&self) -> Id; fn get_eth_address(&self) -> String; }
Expand description

Key interface that “only” allows “read” operations.

Required Methods

Implements “crypto.PublicKeySECP256K1R.Address()” and “formatting.FormatAddress”. “human readable part” (hrp) must be valid output from “constants.GetHRP(networkID)”. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/utils/constants

Implementors

ref. https://doc.rust-lang.org/book/ch10-02-traits.html