PubkeyTrait

Trait PubkeyTrait 

Source
pub trait PubkeyTrait {
    // Required methods
    fn to_solana_pubkey(&self) -> Pubkey;
    fn to_array(&self) -> [u8; 32];
}

Required Methods§

Source

fn to_solana_pubkey(&self) -> Pubkey

Source

fn to_array(&self) -> [u8; 32]

Implementations on Foreign Types§

Source§

impl PubkeyTrait for Pubkey

Available on non-crate feature anchor only.
Source§

impl PubkeyTrait for [u8; 32]

Implementors§