C# Class BitSharper.TransactionInput

Inheritance: Message
Show file Open project: TangibleCryptography/BitSharper Class Usage Examples

Public Properties

Property Type Description
EmptyArray byte[]

Private Properties

Property Type Description
Connect ConnectionResult
Disconnect bool
GetConnectedOutput TransactionOutput
TransactionInput System
TransactionInput System

Public Methods

Method Description
BitcoinSerializeToStream ( Stream stream ) : void
ToString ( ) : string

Returns a human readable debug string.

TransactionInput ( NetworkParameters @params, Transaction parentTransaction, byte payload, int offset ) : System

Deserializes an input message. This is usually part of a transaction message.

Protected Methods

Method Description
Parse ( ) : void

Private Methods

Method Description
Connect ( Transaction>.IDictionary transactions, bool disconnect ) : ConnectionResult

Connects this input to the relevant output of the referenced transaction if it's in the given map. Connecting means updating the internal pointers and spent flags.

Disconnect ( ) : bool

Release the connected output, making it spendable once again.

GetConnectedOutput ( Transaction>.IDictionary transactions ) : TransactionOutput

Locates the referenced output from the given pool of transactions.

TransactionInput ( NetworkParameters @params, Transaction parentTransaction, TransactionOutput output ) : System

Creates an UNSIGNED input that links to the given output

TransactionInput ( NetworkParameters @params, Transaction parentTransaction, byte scriptBytes ) : System

Used only in creation of the genesis block.

Method Details

BitcoinSerializeToStream() public method

public BitcoinSerializeToStream ( Stream stream ) : void
stream Stream
return void

Parse() protected method

protected Parse ( ) : void
return void

ToString() public method

Returns a human readable debug string.
public ToString ( ) : string
return string

TransactionInput() public method

Deserializes an input message. This is usually part of a transaction message.
public TransactionInput ( NetworkParameters @params, Transaction parentTransaction, byte payload, int offset ) : System
@params NetworkParameters
parentTransaction Transaction
payload byte
offset int
return System

Property Details

EmptyArray public static property

public static byte[] EmptyArray
return byte[]