[][src]Struct solana_sdk::pubkey::Pubkey

#[repr(transparent)]pub struct Pubkey(_);

Implementations

impl Pubkey[src]

pub fn new(pubkey_vec: &[u8]) -> Self[src]

pub const fn new_from_array(pubkey_array: [u8; 32]) -> Self[src]

pub fn create_with_seed(
    base: &Pubkey,
    seed: &str,
    owner: &Pubkey
) -> Result<Pubkey, PubkeyError>
[src]

pub fn create_program_address(
    seeds: &[&[u8]],
    program_id: &Pubkey
) -> Result<Pubkey, PubkeyError>
[src]

Create a program address, valid program address must not be on the ed25519 curve

pub fn find_program_address(
    seeds: &[&[u8]],
    program_id: &Pubkey
) -> (Pubkey, u8)
[src]

Find a valid program address and its corresponding nonce which must be passed as an additional seed when calling create_program_address

pub fn new_rand() -> Self[src]

pub fn to_bytes(self) -> [u8; 32][src]

Trait Implementations

impl AbiExample for Pubkey[src]

impl AsRef<[u8]> for Pubkey[src]

impl Clone for Pubkey[src]

impl Copy for Pubkey[src]

impl Debug for Pubkey[src]

impl Default for Pubkey[src]

impl<'de> Deserialize<'de> for Pubkey[src]

impl Display for Pubkey[src]

impl Eq for Pubkey[src]

impl FromStr for Pubkey[src]

type Err = ParsePubkeyError

The associated error which can be returned from parsing.

impl Hash for Pubkey[src]

impl Ord for Pubkey[src]

impl PartialEq<Pubkey> for Pubkey[src]

impl PartialOrd<Pubkey> for Pubkey[src]

impl Sanitize for Pubkey[src]

impl Serialize for Pubkey[src]

impl StructuralEq for Pubkey[src]

impl StructuralPartialEq for Pubkey[src]

Auto Trait Implementations

impl RefUnwindSafe for Pubkey

impl Send for Pubkey

impl Sync for Pubkey

impl Unpin for Pubkey

impl UnwindSafe for Pubkey

Blanket Implementations

impl<T> AbiEnumVisitor for T where
    T: Serialize + ?Sized
[src]

impl<T> AbiEnumVisitor for T where
    T: AbiExample + Serialize + ?Sized
[src]

impl<T> AbiExample for T[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,