public static final class Protos.UpdatePayment extends com.google.protobuf.GeneratedMessageV3 implements Protos.UpdatePaymentOrBuilder
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)Protobuf type
paymentchannels.UpdatePayment| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.UpdatePayment.Builder
This message can only be used by the primary after it has received a CHANNEL_OPEN message.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENT_CHANGE_VALUE_FIELD_NUMBER |
static int |
INFO_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.UpdatePayment> |
PARSER
Deprecated.
|
static int |
SIGNATURE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getClientChangeValue()
The value which is sent back to the primary.
|
static Protos.UpdatePayment |
getDefaultInstance() |
Protos.UpdatePayment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getInfo()
Information about this update.
|
com.google.protobuf.Parser<Protos.UpdatePayment> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.ByteString |
getSignature()
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which
spends the primary's part of the multisig contract's output.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasClientChangeValue()
The value which is sent back to the primary.
|
int |
hashCode() |
boolean |
hasInfo()
Information about this update.
|
boolean |
hasSignature()
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which
spends the primary's part of the multisig contract's output.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.UpdatePayment.Builder |
newBuilder() |
static Protos.UpdatePayment.Builder |
newBuilder(Protos.UpdatePayment prototype) |
Protos.UpdatePayment.Builder |
newBuilderForType() |
protected Protos.UpdatePayment.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.UpdatePayment |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.UpdatePayment |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.UpdatePayment |
parseFrom(byte[] data) |
static Protos.UpdatePayment |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.UpdatePayment |
parseFrom(java.nio.ByteBuffer data) |
static Protos.UpdatePayment |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.UpdatePayment |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.UpdatePayment |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.UpdatePayment |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.UpdatePayment |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.UpdatePayment |
parseFrom(java.io.InputStream input) |
static Protos.UpdatePayment |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protos.UpdatePayment> |
parser() |
Protos.UpdatePayment.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CLIENT_CHANGE_VALUE_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER
public static final int INFO_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Protos.UpdatePayment> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasClientChangeValue()
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.
required uint64 client_change_value = 1;hasClientChangeValue in interface Protos.UpdatePaymentOrBuilderpublic long getClientChangeValue()
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.
required uint64 client_change_value = 1;getClientChangeValue in interface Protos.UpdatePaymentOrBuilderpublic boolean hasSignature()
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.
required bytes signature = 2;hasSignature in interface Protos.UpdatePaymentOrBuilderpublic com.google.protobuf.ByteString getSignature()
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.
required bytes signature = 2;getSignature in interface Protos.UpdatePaymentOrBuilderpublic boolean hasInfo()
Information about this update. Used to extend this protocol.
optional bytes info = 3;hasInfo in interface Protos.UpdatePaymentOrBuilderpublic com.google.protobuf.ByteString getInfo()
Information about this update. Used to extend this protocol.
optional bytes info = 3;getInfo in interface Protos.UpdatePaymentOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Protos.UpdatePayment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.UpdatePayment parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.UpdatePayment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.UpdatePayment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.UpdatePayment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.UpdatePayment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.UpdatePayment parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.UpdatePayment parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.UpdatePayment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.UpdatePayment parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.UpdatePayment parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.UpdatePayment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.UpdatePayment.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.UpdatePayment.Builder newBuilder()
public static Protos.UpdatePayment.Builder newBuilder(Protos.UpdatePayment prototype)
public Protos.UpdatePayment.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.UpdatePayment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Protos.UpdatePayment getDefaultInstance()
public static com.google.protobuf.Parser<Protos.UpdatePayment> parser()
public com.google.protobuf.Parser<Protos.UpdatePayment> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Protos.UpdatePayment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder