TridentPubkey#
TridentPubkey is a wrapper around Pubkey and AccountId.
Pubkey is a type from solana-sdk crate, corresponds to Solana account address.
AccountId is randomly generated number which is used to identify account within its corresponding AccountStorage.
Implemented Methods#
The following section contains the methods that are available for the TridentPubkey struct.
set_pubkey#
Sets the public key for this instance.
get_pubkey#
Returns the stored public key.
Implemented Traits#
From<AccountId>- Creates a new instance with the given account_id and default pubkeyBorshSerialize- Serializes only the pubkey fieldBorshDeserialize- Deserializes only the pubkey field, sets default account_idSerialize(serde) - Serializes only the pubkey fieldDeserialize(serde) - Deserializes only the pubkey field, sets default account_idArbitrary- Generates random account_id and default pubkey