[][src]Enum dubp_documents::documents::block::BlockDocument

pub enum BlockDocument {
    V10(BlockDocumentV10),
}

Wrap a Block document.

Must be created by parsing a text document or using a builder.

Variants

V10(BlockDocumentV10)

Trait Implementations

impl BlockDocumentTrait for BlockDocument[src]

fn compute_inner_hash(&self) -> Hash[src]

Compute inner hash

impl Document for BlockDocument[src]

type PublicKey = PubKey

Type of the PublicKey used by the document.

fn no_as_bytes(&self) -> bool[src]

Some documents do not directly store the sequence of bytes that will be signed but generate

fn to_bytes(&self) -> Vec<u8>[src]

Get document to bytes for signature verification.

fn verify_one_signature(
    &self,
    public_key: &Self::PublicKey,
    signature: &<Self::PublicKey as PublicKey>::Signature
) -> Result<(), SigError>
[src]

Verify one signature

fn verify_signatures(&self) -> Result<(), DocumentSigsErr>[src]

Verify signatures of document content (as text format)

impl ToStringObject for BlockDocument[src]

type StringObject = BlockDocumentStringified

impl Clone for BlockDocument[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<BlockDocument> for BlockDocument[src]

impl Eq for BlockDocument[src]

impl Debug for BlockDocument[src]

impl<'de> Deserialize<'de> for BlockDocument[src]

impl Serialize for BlockDocument[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToJsonObject for T where
    T: ToStringObject
[src]

fn to_json_string(&self) -> Result<String, Error>[src]

Convert to JSON String

fn to_json_string_pretty(&self) -> Result<String, Error>[src]

Convert to JSON String pretty

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]