Struct stack_epic_wallet_libwallet::TxProof
source · pub struct TxProof {
pub address: EpicboxAddress,
pub message: String,
pub signature: Signature,
pub key: [u8; 32],
pub amount: u64,
pub fee: u64,
pub inputs: Vec<Commitment>,
pub outputs: Vec<Commitment>,
}Fields§
§address: EpicboxAddress§message: String§signature: Signature§key: [u8; 32]§amount: u64§fee: u64§inputs: Vec<Commitment>§outputs: Vec<Commitment>Implementations§
source§impl TxProof
impl TxProof
pub fn verify_extract( &self, expected_destination: Option<&EpicboxAddress> ) -> Result<(EpicboxAddress, VersionedSlate), Error>
pub fn from_response( from: String, message: String, signature: String, secret_key: &SecretKey, expected_destination: Option<&EpicboxAddress> ) -> Result<(VersionedSlate, TxProof), Error>
Trait Implementations§
source§impl<'de> Deserialize<'de> for TxProof
impl<'de> Deserialize<'de> for TxProof
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TxProof
impl Send for TxProof
impl Sync for TxProof
impl Unpin for TxProof
impl UnwindSafe for TxProof
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr, which was obtained from a prior call to Self::borrow(),
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self. Read more