[−][src]Struct private_currency::api::WalletProof
Cryptographically authenticated proof of the state for a single wallet.
The proof contains several parts:
- Block header together with authorizing
Precommits - Proof connecting the block header with the wallets table in the storage, and then with a particular wallet.
- Information about new events in the wallet history and unaccepted incoming transfers, if any.
Proof of absence
The proof can also be used to prove the absence of a wallet. In this case, the last part of the proof (history and unaccepted transfers) is empty.
Methods
impl WalletProof[src]
impl WalletProofpub fn check(
&self,
trust_anchor: &TrustAnchor,
query: &WalletQuery
) -> Result<CheckedWalletProof, VerifyError>[src]
pub fn check(
&self,
trust_anchor: &TrustAnchor,
query: &WalletQuery
) -> Result<CheckedWalletProof, VerifyError>Checks the proof, returning information contained in the proof that might be interesting to client applications.
Trait Implementations
impl Debug for WalletProof[src]
impl Debug for WalletProofimpl Serialize for WalletProof[src]
impl Serialize for WalletProoffn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, impl<'de> Deserialize<'de> for WalletProof[src]
impl<'de> Deserialize<'de> for WalletProoffn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Auto Trait Implementations
impl Send for WalletProof
impl Send for WalletProofimpl Sync for WalletProof
impl Sync for WalletProofBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, impl<T> Erased for T
impl<T> Erased for Timpl<T> Erased for T
impl<T> Erased for Timpl<T> SerializeContent for T where
T: Serialize, [src]
impl<T> SerializeContent for T where
T: Serialize, fn serialize_content<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, [src]
fn serialize_content<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, impl<T> Same for T
impl<T> Same for Ttype Output = T
Should always be Self