public static final class TrezorMessage.SimpleSignTx extends com.google.protobuf.GeneratedMessage implements TrezorMessage.SimpleSignTxOrBuilder
SimpleSignTx
Request: Simplified transaction signing This method doesn't support streaming, so there are hardware limits in number of inputs and outputs. In case of success, the result is returned using TxRequest message. @next PassphraseRequest @next PinMatrixRequest @next TxRequest @next Failure
Modifier and Type | Class and Description |
---|---|
static class |
TrezorMessage.SimpleSignTx.Builder
Protobuf type
SimpleSignTx |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
COIN_NAME_FIELD_NUMBER |
static int |
INPUTS_FIELD_NUMBER |
static int |
LOCK_TIME_FIELD_NUMBER |
static int |
OUTPUTS_FIELD_NUMBER |
static com.google.protobuf.Parser<TrezorMessage.SimpleSignTx> |
PARSER |
static int |
TRANSACTIONS_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
String |
getCoinName()
optional string coin_name = 4 [default = "Bitcoin"]; |
com.google.protobuf.ByteString |
getCoinNameBytes()
optional string coin_name = 4 [default = "Bitcoin"]; |
static TrezorMessage.SimpleSignTx |
getDefaultInstance() |
TrezorMessage.SimpleSignTx |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
TrezorType.TxInputType |
getInputs(int index)
repeated .TxInputType inputs = 1; |
int |
getInputsCount()
repeated .TxInputType inputs = 1; |
List<TrezorType.TxInputType> |
getInputsList()
repeated .TxInputType inputs = 1; |
TrezorType.TxInputTypeOrBuilder |
getInputsOrBuilder(int index)
repeated .TxInputType inputs = 1; |
List<? extends TrezorType.TxInputTypeOrBuilder> |
getInputsOrBuilderList()
repeated .TxInputType inputs = 1; |
int |
getLockTime()
optional uint32 lock_time = 6 [default = 0]; |
TrezorType.TxOutputType |
getOutputs(int index)
repeated .TxOutputType outputs = 2; |
int |
getOutputsCount()
repeated .TxOutputType outputs = 2; |
List<TrezorType.TxOutputType> |
getOutputsList()
repeated .TxOutputType outputs = 2; |
TrezorType.TxOutputTypeOrBuilder |
getOutputsOrBuilder(int index)
repeated .TxOutputType outputs = 2; |
List<? extends TrezorType.TxOutputTypeOrBuilder> |
getOutputsOrBuilderList()
repeated .TxOutputType outputs = 2; |
com.google.protobuf.Parser<TrezorMessage.SimpleSignTx> |
getParserForType() |
int |
getSerializedSize() |
TrezorType.TransactionType |
getTransactions(int index)
repeated .TransactionType transactions = 3; |
int |
getTransactionsCount()
repeated .TransactionType transactions = 3; |
List<TrezorType.TransactionType> |
getTransactionsList()
repeated .TransactionType transactions = 3; |
TrezorType.TransactionTypeOrBuilder |
getTransactionsOrBuilder(int index)
repeated .TransactionType transactions = 3; |
List<? extends TrezorType.TransactionTypeOrBuilder> |
getTransactionsOrBuilderList()
repeated .TransactionType transactions = 3; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getVersion()
optional uint32 version = 5 [default = 1]; |
boolean |
hasCoinName()
optional string coin_name = 4 [default = "Bitcoin"]; |
boolean |
hasLockTime()
optional uint32 lock_time = 6 [default = 0]; |
boolean |
hasVersion()
optional uint32 version = 5 [default = 1]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TrezorMessage.SimpleSignTx.Builder |
newBuilder() |
static TrezorMessage.SimpleSignTx.Builder |
newBuilder(TrezorMessage.SimpleSignTx prototype) |
TrezorMessage.SimpleSignTx.Builder |
newBuilderForType() |
protected TrezorMessage.SimpleSignTx.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static TrezorMessage.SimpleSignTx |
parseDelimitedFrom(InputStream input) |
static TrezorMessage.SimpleSignTx |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorMessage.SimpleSignTx |
parseFrom(byte[] data) |
static TrezorMessage.SimpleSignTx |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorMessage.SimpleSignTx |
parseFrom(com.google.protobuf.ByteString data) |
static TrezorMessage.SimpleSignTx |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorMessage.SimpleSignTx |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TrezorMessage.SimpleSignTx |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorMessage.SimpleSignTx |
parseFrom(InputStream input) |
static TrezorMessage.SimpleSignTx |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrezorMessage.SimpleSignTx.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<TrezorMessage.SimpleSignTx> PARSER
public static final int INPUTS_FIELD_NUMBER
public static final int OUTPUTS_FIELD_NUMBER
public static final int TRANSACTIONS_FIELD_NUMBER
public static final int COIN_NAME_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int LOCK_TIME_FIELD_NUMBER
public static TrezorMessage.SimpleSignTx getDefaultInstance()
public TrezorMessage.SimpleSignTx getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<TrezorMessage.SimpleSignTx> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public List<TrezorType.TxInputType> getInputsList()
repeated .TxInputType inputs = 1;
transaction inputs
getInputsList
in interface TrezorMessage.SimpleSignTxOrBuilder
public List<? extends TrezorType.TxInputTypeOrBuilder> getInputsOrBuilderList()
repeated .TxInputType inputs = 1;
transaction inputs
getInputsOrBuilderList
in interface TrezorMessage.SimpleSignTxOrBuilder
public int getInputsCount()
repeated .TxInputType inputs = 1;
transaction inputs
getInputsCount
in interface TrezorMessage.SimpleSignTxOrBuilder
public TrezorType.TxInputType getInputs(int index)
repeated .TxInputType inputs = 1;
transaction inputs
getInputs
in interface TrezorMessage.SimpleSignTxOrBuilder
public TrezorType.TxInputTypeOrBuilder getInputsOrBuilder(int index)
repeated .TxInputType inputs = 1;
transaction inputs
getInputsOrBuilder
in interface TrezorMessage.SimpleSignTxOrBuilder
public List<TrezorType.TxOutputType> getOutputsList()
repeated .TxOutputType outputs = 2;
transaction outputs
getOutputsList
in interface TrezorMessage.SimpleSignTxOrBuilder
public List<? extends TrezorType.TxOutputTypeOrBuilder> getOutputsOrBuilderList()
repeated .TxOutputType outputs = 2;
transaction outputs
getOutputsOrBuilderList
in interface TrezorMessage.SimpleSignTxOrBuilder
public int getOutputsCount()
repeated .TxOutputType outputs = 2;
transaction outputs
getOutputsCount
in interface TrezorMessage.SimpleSignTxOrBuilder
public TrezorType.TxOutputType getOutputs(int index)
repeated .TxOutputType outputs = 2;
transaction outputs
getOutputs
in interface TrezorMessage.SimpleSignTxOrBuilder
public TrezorType.TxOutputTypeOrBuilder getOutputsOrBuilder(int index)
repeated .TxOutputType outputs = 2;
transaction outputs
getOutputsOrBuilder
in interface TrezorMessage.SimpleSignTxOrBuilder
public List<TrezorType.TransactionType> getTransactionsList()
repeated .TransactionType transactions = 3;
transactions whose outputs are used to build current inputs
getTransactionsList
in interface TrezorMessage.SimpleSignTxOrBuilder
public List<? extends TrezorType.TransactionTypeOrBuilder> getTransactionsOrBuilderList()
repeated .TransactionType transactions = 3;
transactions whose outputs are used to build current inputs
getTransactionsOrBuilderList
in interface TrezorMessage.SimpleSignTxOrBuilder
public int getTransactionsCount()
repeated .TransactionType transactions = 3;
transactions whose outputs are used to build current inputs
getTransactionsCount
in interface TrezorMessage.SimpleSignTxOrBuilder
public TrezorType.TransactionType getTransactions(int index)
repeated .TransactionType transactions = 3;
transactions whose outputs are used to build current inputs
getTransactions
in interface TrezorMessage.SimpleSignTxOrBuilder
public TrezorType.TransactionTypeOrBuilder getTransactionsOrBuilder(int index)
repeated .TransactionType transactions = 3;
transactions whose outputs are used to build current inputs
getTransactionsOrBuilder
in interface TrezorMessage.SimpleSignTxOrBuilder
public boolean hasCoinName()
optional string coin_name = 4 [default = "Bitcoin"];
coin to use
hasCoinName
in interface TrezorMessage.SimpleSignTxOrBuilder
public String getCoinName()
optional string coin_name = 4 [default = "Bitcoin"];
coin to use
getCoinName
in interface TrezorMessage.SimpleSignTxOrBuilder
public com.google.protobuf.ByteString getCoinNameBytes()
optional string coin_name = 4 [default = "Bitcoin"];
coin to use
getCoinNameBytes
in interface TrezorMessage.SimpleSignTxOrBuilder
public boolean hasVersion()
optional uint32 version = 5 [default = 1];
transaction version
hasVersion
in interface TrezorMessage.SimpleSignTxOrBuilder
public int getVersion()
optional uint32 version = 5 [default = 1];
transaction version
getVersion
in interface TrezorMessage.SimpleSignTxOrBuilder
public boolean hasLockTime()
optional uint32 lock_time = 6 [default = 0];
transaction lock_time
hasLockTime
in interface TrezorMessage.SimpleSignTxOrBuilder
public int getLockTime()
optional uint32 lock_time = 6 [default = 0];
transaction lock_time
getLockTime
in interface TrezorMessage.SimpleSignTxOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static TrezorMessage.SimpleSignTx parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorMessage.SimpleSignTx parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorMessage.SimpleSignTx parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorMessage.SimpleSignTx parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorMessage.SimpleSignTx parseFrom(InputStream input) throws IOException
IOException
public static TrezorMessage.SimpleSignTx parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorMessage.SimpleSignTx parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TrezorMessage.SimpleSignTx parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorMessage.SimpleSignTx parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TrezorMessage.SimpleSignTx parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorMessage.SimpleSignTx.Builder newBuilder()
public TrezorMessage.SimpleSignTx.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TrezorMessage.SimpleSignTx.Builder newBuilder(TrezorMessage.SimpleSignTx prototype)
public TrezorMessage.SimpleSignTx.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TrezorMessage.SimpleSignTx.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.