Struct ckb_sdk::OldAddress
source · pub struct OldAddress { /* private fields */ }Implementations§
source§impl Address
impl Address
pub fn new_default(hash: H160) -> Address
pub fn hash(&self) -> &H160
pub fn lock_script(&self, code_hash: H256) -> Script
pub fn from_pubkey(
format: AddressFormat,
pubkey: &Pubkey
) -> Result<Address, String>
pub fn from_lock_arg(bytes: &[u8]) -> Result<Address, String>
pub fn from_input(network: NetworkType, input: &str) -> Result<Address, String>
pub fn display_with_prefix(&self, network: NetworkType) -> String
pub fn to_string(&self, network: NetworkType) -> String
👎Deprecated since 0.25.0: Name conflicts with the inherent to_string method. Use display_with_prefix instead.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Address> for Address
impl PartialEq<Address> for Address
impl Eq for Address
impl StructuralEq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.