Struct elements::Proof [−][src]
Block proof, which replaces PoW with an arbitrary script satisfaction
Fields
challenge: Script
Block "public key"
solution: Script
Satisfying witness to the above challenge, or nothing
Trait Implementations
impl Clone for Proof
[src]
impl Clone for Proof
fn clone(&self) -> Proof
[src]
fn clone(&self) -> Proof
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Proof
[src]
impl Debug for Proof
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Proof
[src]
impl Default for Proof
impl Eq for Proof
[src]
impl Eq for Proof
impl Hash for Proof
[src]
impl Hash for Proof
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Proof
[src]
impl PartialEq for Proof
fn eq(&self, other: &Proof) -> bool
[src]
fn eq(&self, other: &Proof) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Proof) -> bool
[src]
fn ne(&self, other: &Proof) -> bool
This method tests for !=
.
impl<S: SimpleEncoder> ConsensusEncodable<S> for Proof
[src]
impl<S: SimpleEncoder> ConsensusEncodable<S> for Proof
fn consensus_encode(&self, s: &mut S) -> Result<(), Error>
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), Error>
Encode an object with a well-defined format
impl<D: SimpleDecoder> ConsensusDecodable<D> for Proof
[src]
impl<D: SimpleDecoder> ConsensusDecodable<D> for Proof