Struct elements::Proof[][src]

pub struct Proof {
    pub challenge: Script,
    pub solution: Script,
}

Block proof, which replaces PoW with an arbitrary script satisfaction

Fields

Block "public key"

Satisfying witness to the above challenge, or nothing

Trait Implementations

impl Clone for Proof
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Proof
[src]

Formats the value using the given formatter. Read more

impl Default for Proof
[src]

Returns the "default value" for a type. Read more

impl Eq for Proof
[src]

impl Hash for Proof
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Proof
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S: SimpleEncoder> ConsensusEncodable<S> for Proof
[src]

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for Proof
[src]

Decode an object with a well-defined format

Auto Trait Implementations

impl Send for Proof

impl Sync for Proof