pub struct TurnkeySigner {
pub organization_id: String,
pub private_key_id: String,
pub api_public_key: String,
pub api_private_key: String,
pub public_key: String,
pub client: Client,
}
Fields§
§organization_id: String
§private_key_id: String
§api_public_key: String
§api_private_key: String
§public_key: String
§client: Client
Implementations§
Source§impl TurnkeySigner
impl TurnkeySigner
pub fn new( api_public_key: String, api_private_key: String, organization_id: String, private_key_id: String, public_key: String, ) -> Result<Self, Error>
pub async fn sign(&self, message: &[u8]) -> Result<Vec<u8>, Error>
pub async fn sign_solana(&self, message: &[u8]) -> Result<Signature, Error>
pub fn solana_pubkey(&self) -> Pubkey
Trait Implementations§
Source§impl Clone for TurnkeySigner
impl Clone for TurnkeySigner
Source§fn clone(&self) -> TurnkeySigner
fn clone(&self) -> TurnkeySigner
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TurnkeySigner
impl !RefUnwindSafe for TurnkeySigner
impl Send for TurnkeySigner
impl Sync for TurnkeySigner
impl Unpin for TurnkeySigner
impl !UnwindSafe for TurnkeySigner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more