Struct bitcoin::blockdata::script::Script[][src]

pub struct Script(_);

A Bitcoin script

Methods

impl Script
[src]

Creates a new empty script

The length in bytes of the script

Whether the script is the empty script

Convert the script into a byte vector

returns a copy of the script data

Compute the P2SH output corresponding to this redeem script

Compute the P2WSH output corresponding to this redeem script

Checks whether a script pubkey is a p2sh output

Checks whether a script pubkey is a p2pkh output

Checks whether a script pubkey is a p2pkh output

Checks whether a script pubkey is a p2wsh output

Checks whether a script pubkey is a p2wpkh output

Whether a script can be proven to have no satisfying input

Trait Implementations

impl Clone for Script
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Script
[src]

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

This method tests for !=.

impl Eq for Script
[src]

impl Hash for Script
[src]

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

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

impl Debug for Script
[src]

Formats the value using the given formatter. Read more

impl Display for Script
[src]

Formats the value using the given formatter. Read more

impl LowerHex for Script
[src]

Formats the value using the given formatter.

impl UpperHex for Script
[src]

Formats the value using the given formatter.

impl Default for Script
[src]

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

impl From<Vec<u8>> for Script
[src]

Creates a new script from an existing vector

Performs the conversion.

impl Index<Range<usize>> for Script
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<RangeTo<usize>> for Script
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<RangeFrom<usize>> for Script
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<RangeFull> for Script
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<'a> IntoIterator for &'a Script
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for Instructions<'a>

Creates an iterator from a value. Read more

impl Serialize for Script
[src]

Serializes this value into this serializer.

impl Deserialize for Script
[src]

Deserialize this value given this Deserializer.

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

Encode an object with a well-defined format

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

Decode an object with a well-defined format

Auto Trait Implementations

impl Send for Script

impl Sync for Script