Struct libyobicash::models::input::Input [] [src]

pub struct Input {
    pub id: Digest,
    pub proof: ZKPProof,
}

An Input is a reference to a past output used in transactions to spend the output.

Fields

The id of the referenced output.

The zero-knowledge-proof proof used to spend the referenced output.

Methods

impl Input
[src]

[src]

Creates an Input.

[src]

Verifies the Input against an Output.

Trait Implementations

impl Copy for Input
[src]

impl Clone for Input
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Input
[src]

impl PartialEq for Input
[src]

[src]

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

[src]

This method tests for !=.

impl Default for Input
[src]

[src]

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

impl Debug for Input
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Identify<'a> for Input
[src]

Type of the identifier.

[src]

Returns the ID of the implementor.

[src]

Converts an ID to bytes.

[src]

Converts a binary to an ID.

[src]

Returns the binary representation of the ID of the object.

[src]

Converts a string to an ID.

[src]

Converts an ID to string.

[src]

Returns the string representation of the ID of the object.

impl Validate for Input
[src]

[src]

Validate the object.

impl<'a> Serialize<'a> for Input
[src]

[src]

Serialize to a json string.

[src]

Deserialize from a json string.

[src]

Serialize to a binary.

[src]

Deserialize from a binary.

[src]

Serialize to a hex.

[src]

Deserialize from a hex.

Auto Trait Implementations

impl Send for Input

impl Sync for Input