public static final class Protos.UpdatePayment.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.UpdatePayment.Builder> implements Protos.UpdatePaymentOrBuilder
paymentchannels.UpdatePayment
This message can only be used by the primary after it has received a CHANNEL_OPEN message. It creates a new payment transaction. Note that we don't resubmit the entire TX, this is to avoid (re)parsing bugs and overhead. The payment transaction is created by the primary by: * Adding an input which spends the multisig contract * Setting this input's scriptSig to the given signature and a new signature created by the primary (the primary should ensure the signature provided correctly spends the multisig contract) * Adding an output who's scriptPubKey is the same as the refund output (the only output) in the refund transaction * Setting this output's value to client_change_value (which must be lower than the most recent client_change_value and lower than the multisig contract's output value) * Adding any number of additional outputs as desired (leaving sufficient fee, if necessary) * Adding any number of additional inputs as desired (eg to add more fee)
Modifier and Type | Method and Description |
---|---|
Protos.UpdatePayment |
build() |
Protos.UpdatePayment |
buildPartial() |
Protos.UpdatePayment.Builder |
clear() |
Protos.UpdatePayment.Builder |
clearClientChangeValue()
required uint64 client_change_value = 1; |
Protos.UpdatePayment.Builder |
clearInfo()
optional bytes info = 3; |
Protos.UpdatePayment.Builder |
clearSignature()
required bytes signature = 2; |
Protos.UpdatePayment.Builder |
clone() |
long |
getClientChangeValue()
required uint64 client_change_value = 1; |
Protos.UpdatePayment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getInfo()
optional bytes info = 3; |
com.google.protobuf.ByteString |
getSignature()
required bytes signature = 2; |
boolean |
hasClientChangeValue()
required uint64 client_change_value = 1; |
boolean |
hasInfo()
optional bytes info = 3; |
boolean |
hasSignature()
required bytes signature = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.UpdatePayment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.UpdatePayment.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.UpdatePayment.Builder |
mergeFrom(Protos.UpdatePayment other) |
Protos.UpdatePayment.Builder |
setClientChangeValue(long value)
required uint64 client_change_value = 1; |
Protos.UpdatePayment.Builder |
setInfo(com.google.protobuf.ByteString value)
optional bytes info = 3; |
Protos.UpdatePayment.Builder |
setSignature(com.google.protobuf.ByteString value)
required bytes signature = 2; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<Protos.UpdatePayment.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.UpdatePayment build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.UpdatePayment buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.UpdatePayment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder mergeFrom(Protos.UpdatePayment other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.UpdatePayment.Builder>
IOException
public boolean hasClientChangeValue()
required uint64 client_change_value = 1;
The value which is sent back to the primary. The rest of the multisig output is left for the secondary to do with as they wish.
hasClientChangeValue
in interface Protos.UpdatePaymentOrBuilder
public long getClientChangeValue()
required uint64 client_change_value = 1;
The value which is sent back to the primary. The rest of the multisig output is left for the secondary to do with as they wish.
getClientChangeValue
in interface Protos.UpdatePaymentOrBuilder
public Protos.UpdatePayment.Builder setClientChangeValue(long value)
required uint64 client_change_value = 1;
The value which is sent back to the primary. The rest of the multisig output is left for the secondary to do with as they wish.
public Protos.UpdatePayment.Builder clearClientChangeValue()
required uint64 client_change_value = 1;
The value which is sent back to the primary. The rest of the multisig output is left for the secondary to do with as they wish.
public boolean hasSignature()
required bytes signature = 2;
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which spends the primary's part of the multisig contract's output. This signature only covers the primary's refund output and thus the secondary is free to do what they wish with their part of the multisig output.
hasSignature
in interface Protos.UpdatePaymentOrBuilder
public com.google.protobuf.ByteString getSignature()
required bytes signature = 2;
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which spends the primary's part of the multisig contract's output. This signature only covers the primary's refund output and thus the secondary is free to do what they wish with their part of the multisig output.
getSignature
in interface Protos.UpdatePaymentOrBuilder
public Protos.UpdatePayment.Builder setSignature(com.google.protobuf.ByteString value)
required bytes signature = 2;
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which spends the primary's part of the multisig contract's output. This signature only covers the primary's refund output and thus the secondary is free to do what they wish with their part of the multisig output.
public Protos.UpdatePayment.Builder clearSignature()
required bytes signature = 2;
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which spends the primary's part of the multisig contract's output. This signature only covers the primary's refund output and thus the secondary is free to do what they wish with their part of the multisig output.
public boolean hasInfo()
optional bytes info = 3;
Information about this update. Used to extend this protocol.
hasInfo
in interface Protos.UpdatePaymentOrBuilder
public com.google.protobuf.ByteString getInfo()
optional bytes info = 3;
Information about this update. Used to extend this protocol.
getInfo
in interface Protos.UpdatePaymentOrBuilder
public Protos.UpdatePayment.Builder setInfo(com.google.protobuf.ByteString value)
optional bytes info = 3;
Information about this update. Used to extend this protocol.
public Protos.UpdatePayment.Builder clearInfo()
optional bytes info = 3;
Information about this update. Used to extend this protocol.
Copyright © 2016. All rights reserved.