Struct waves_rust::model::account::PrivateKey
source · [−]pub struct PrivateKey { /* private fields */ }Implementations
sourceimpl PrivateKey
impl PrivateKey
pub fn from_seed(seed_phrase: &str, nonce: u8) -> Result<Self>
pub fn from_bytes(bytes: [u8; 32]) -> Result<Self>
pub fn encoded(&self) -> String
pub fn bytes(&self) -> [u8; 32]
pub fn public_key(&self) -> PublicKey
pub fn sign(&self, message: &[u8]) -> Result<Vec<u8>>
pub fn is_signature_valid(&self, message: &[u8], signature: &[u8]) -> Result<bool>
Auto Trait Implementations
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request