Struct waves_rust::model::account::PrivateKey
source · pub struct PrivateKey { /* private fields */ }
Implementations§
source§impl 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§
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request