Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - type SigningOutput
 - func (*SigningOutput) Descriptor() ([]byte, []int)deprecated
 - func (x *SigningOutput) GetEncoded() []byte
 - func (x *SigningOutput) GetError() common.SigningError
 - func (x *SigningOutput) GetErrorMessage() string
 - func (x *SigningOutput) GetSigningResultV2() *bitcoinv2.SigningOutput
 - func (x *SigningOutput) GetTransaction() *Transaction
 - func (x *SigningOutput) GetTransactionId() string
 - func (*SigningOutput) ProtoMessage()
 - func (x *SigningOutput) ProtoReflect() protoreflect.Message
 - func (x *SigningOutput) Reset()
 - func (x *SigningOutput) String() string
 
- type Transaction
 - func (*Transaction) Descriptor() ([]byte, []int)deprecated
 - func (x *Transaction) GetExpiry() uint32
 - func (x *Transaction) GetInputs() []*TransactionInput
 - func (x *Transaction) GetLockTime() uint32
 - func (x *Transaction) GetOutputs() []*TransactionOutput
 - func (x *Transaction) GetSerializeType() uint32
 - func (x *Transaction) GetVersion() uint32
 - func (*Transaction) ProtoMessage()
 - func (x *Transaction) ProtoReflect() protoreflect.Message
 - func (x *Transaction) Reset()
 - func (x *Transaction) String() string
 
- type TransactionInput
 - func (*TransactionInput) Descriptor() ([]byte, []int)deprecated
 - func (x *TransactionInput) GetBlockHeight() uint32
 - func (x *TransactionInput) GetBlockIndex() uint32
 - func (x *TransactionInput) GetPreviousOutput() *bitcoin.OutPoint
 - func (x *TransactionInput) GetScript() []byte
 - func (x *TransactionInput) GetSequence() uint32
 - func (x *TransactionInput) GetValueIn() int64
 - func (*TransactionInput) ProtoMessage()
 - func (x *TransactionInput) ProtoReflect() protoreflect.Message
 - func (x *TransactionInput) Reset()
 - func (x *TransactionInput) String() string
 
- type TransactionOutput
 - func (*TransactionOutput) Descriptor() ([]byte, []int)deprecated
 - func (x *TransactionOutput) GetScript() []byte
 - func (x *TransactionOutput) GetValue() int64
 - func (x *TransactionOutput) GetVersion() uint32
 - func (*TransactionOutput) ProtoMessage()
 - func (x *TransactionOutput) ProtoReflect() protoreflect.Message
 - func (x *TransactionOutput) Reset()
 - func (x *TransactionOutput) String() string
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var File_Decred_proto protoreflect.FileDescriptor
    Functions ¶
This section is empty.
Types ¶
type SigningOutput ¶
type SigningOutput struct {
	// Resulting transaction. Note that the amount may be different than the requested amount to account for fees and available funds.
	Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// Signed and encoded transaction bytes.
	Encoded []byte `protobuf:"bytes,2,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// Transaction id
	TransactionId string `protobuf:"bytes,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	// Optional error
	Error        common.SigningError `protobuf:"varint,4,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	ErrorMessage string              `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// Result of a transaction signing using the Bitcoin 2.0 protocol.
	// Set if `Bitcoin.Proto.SigningInput.signing_v2` used.
	SigningResultV2 *bitcoinv2.SigningOutput `protobuf:"bytes,6,opt,name=signing_result_v2,json=signingResultV2,proto3" json:"signing_result_v2,omitempty"`
	// contains filtered or unexported fields
}
    Result containing the signed and encoded transaction.
        
          
            func (*SigningOutput) Descriptor
            deprecated
            
          
  
    
  
      
      func (*SigningOutput) Descriptor() ([]byte, []int)
Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.
func (*SigningOutput) GetEncoded ¶
func (x *SigningOutput) GetEncoded() []byte
func (*SigningOutput) GetError ¶
func (x *SigningOutput) GetError() common.SigningError
func (*SigningOutput) GetErrorMessage ¶
func (x *SigningOutput) GetErrorMessage() string
func (*SigningOutput) GetSigningResultV2 ¶
func (x *SigningOutput) GetSigningResultV2() *bitcoinv2.SigningOutput
func (*SigningOutput) GetTransaction ¶
func (x *SigningOutput) GetTransaction() *Transaction
func (*SigningOutput) GetTransactionId ¶
func (x *SigningOutput) GetTransactionId() string
func (*SigningOutput) ProtoMessage ¶
func (*SigningOutput) ProtoMessage()
func (*SigningOutput) ProtoReflect ¶
func (x *SigningOutput) ProtoReflect() protoreflect.Message
func (*SigningOutput) Reset ¶
func (x *SigningOutput) Reset()
func (*SigningOutput) String ¶
func (x *SigningOutput) String() string
type Transaction ¶
type Transaction struct {
	// Serialization format
	SerializeType uint32 `protobuf:"varint,1,opt,name=serializeType,proto3" json:"serializeType,omitempty"`
	// Transaction data format version
	Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// A list of 1 or more transaction inputs or sources for coins.
	Inputs []*TransactionInput `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// A list of 1 or more transaction outputs or destinations for coins
	Outputs []*TransactionOutput `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// The time when a transaction can be spent (usually zero, in which case it has no effect).
	LockTime uint32 `protobuf:"varint,5,opt,name=lockTime,proto3" json:"lockTime,omitempty"`
	// The block height at which the transaction expires and is no longer valid.
	Expiry uint32 `protobuf:"varint,6,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// contains filtered or unexported fields
}
    A transfer transaction
        
          
            func (*Transaction) Descriptor
            deprecated
            
          
  
    
  
      
      func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetExpiry ¶
func (x *Transaction) GetExpiry() uint32
func (*Transaction) GetInputs ¶
func (x *Transaction) GetInputs() []*TransactionInput
func (*Transaction) GetLockTime ¶
func (x *Transaction) GetLockTime() uint32
func (*Transaction) GetOutputs ¶
func (x *Transaction) GetOutputs() []*TransactionOutput
func (*Transaction) GetSerializeType ¶
func (x *Transaction) GetSerializeType() uint32
func (*Transaction) GetVersion ¶
func (x *Transaction) GetVersion() uint32
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionInput ¶
type TransactionInput struct {
	// Reference to the previous transaction's output.
	PreviousOutput *bitcoin.OutPoint `protobuf:"bytes,1,opt,name=previousOutput,proto3" json:"previousOutput,omitempty"`
	// Transaction version as defined by the sender.
	Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// The amount of the input
	ValueIn int64 `protobuf:"varint,3,opt,name=valueIn,proto3" json:"valueIn,omitempty"`
	// Creation block height
	BlockHeight uint32 `protobuf:"varint,4,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	// Index within the block
	BlockIndex uint32 `protobuf:"varint,5,opt,name=blockIndex,proto3" json:"blockIndex,omitempty"`
	// Computational script for confirming transaction authorization.
	Script []byte `protobuf:"bytes,6,opt,name=script,proto3" json:"script,omitempty"`
	// contains filtered or unexported fields
}
    Decred transaction input.
        
          
            func (*TransactionInput) Descriptor
            deprecated
            
          
  
    
  
      
      func (*TransactionInput) Descriptor() ([]byte, []int)
Deprecated: Use TransactionInput.ProtoReflect.Descriptor instead.
func (*TransactionInput) GetBlockHeight ¶
func (x *TransactionInput) GetBlockHeight() uint32
func (*TransactionInput) GetBlockIndex ¶
func (x *TransactionInput) GetBlockIndex() uint32
func (*TransactionInput) GetPreviousOutput ¶
func (x *TransactionInput) GetPreviousOutput() *bitcoin.OutPoint
func (*TransactionInput) GetScript ¶
func (x *TransactionInput) GetScript() []byte
func (*TransactionInput) GetSequence ¶
func (x *TransactionInput) GetSequence() uint32
func (*TransactionInput) GetValueIn ¶
func (x *TransactionInput) GetValueIn() int64
func (*TransactionInput) ProtoMessage ¶
func (*TransactionInput) ProtoMessage()
func (*TransactionInput) ProtoReflect ¶
func (x *TransactionInput) ProtoReflect() protoreflect.Message
func (*TransactionInput) Reset ¶
func (x *TransactionInput) Reset()
func (*TransactionInput) String ¶
func (x *TransactionInput) String() string
type TransactionOutput ¶
type TransactionOutput struct {
	// Transaction amount.
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// Transaction output version.
	Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// Usually contains the public key as a Decred script setting up conditions to claim this output.
	Script []byte `protobuf:"bytes,3,opt,name=script,proto3" json:"script,omitempty"`
	// contains filtered or unexported fields
}
    Decred transaction output.
        
          
            func (*TransactionOutput) Descriptor
            deprecated
            
          
  
    
  
      
      func (*TransactionOutput) Descriptor() ([]byte, []int)
Deprecated: Use TransactionOutput.ProtoReflect.Descriptor instead.
func (*TransactionOutput) GetScript ¶
func (x *TransactionOutput) GetScript() []byte
func (*TransactionOutput) GetValue ¶
func (x *TransactionOutput) GetValue() int64
func (*TransactionOutput) GetVersion ¶
func (x *TransactionOutput) GetVersion() uint32
func (*TransactionOutput) ProtoMessage ¶
func (*TransactionOutput) ProtoMessage()
func (*TransactionOutput) ProtoReflect ¶
func (x *TransactionOutput) ProtoReflect() protoreflect.Message
func (*TransactionOutput) Reset ¶
func (x *TransactionOutput) Reset()
func (*TransactionOutput) String ¶
func (x *TransactionOutput) String() string
 Click to show internal directories. 
   Click to hide internal directories.