public static final class Protos.Initiate extends com.google.protobuf.GeneratedMessageV3 implements Protos.InitiateOrBuilder
Sent from server to client once version nego is done.Protobuf type
paymentchannels.Initiate
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Initiate.Builder
Sent from server to client once version nego is done.
|
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 |
EXPIRE_TIME_SECS_FIELD_NUMBER |
static int |
MIN_ACCEPTED_CHANNEL_SIZE_FIELD_NUMBER |
static int |
MIN_PAYMENT_FIELD_NUMBER |
static int |
MULTISIG_KEY_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.Initiate> |
PARSER
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Initiate |
getDefaultInstance() |
Protos.Initiate |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getExpireTimeSecs()
Rough UNIX time for when the channel expires.
|
long |
getMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up.
|
long |
getMinPayment()
The amount of money the server requires for the initial payment.
|
com.google.protobuf.ByteString |
getMultisigKey()
This must be a raw pubkey in regular ECDSA form.
|
com.google.protobuf.Parser<Protos.Initiate> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasExpireTimeSecs()
Rough UNIX time for when the channel expires.
|
int |
hashCode() |
boolean |
hasMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up.
|
boolean |
hasMinPayment()
The amount of money the server requires for the initial payment.
|
boolean |
hasMultisigKey()
This must be a raw pubkey in regular ECDSA form.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Initiate.Builder |
newBuilder() |
static Protos.Initiate.Builder |
newBuilder(Protos.Initiate prototype) |
Protos.Initiate.Builder |
newBuilderForType() |
protected Protos.Initiate.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Initiate |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Initiate |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Initiate |
parseFrom(byte[] data) |
static Protos.Initiate |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Initiate |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Initiate |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Initiate |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Initiate |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Initiate |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Initiate |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Initiate |
parseFrom(java.io.InputStream input) |
static Protos.Initiate |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protos.Initiate> |
parser() |
Protos.Initiate.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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int MULTISIG_KEY_FIELD_NUMBER
public static final int MIN_ACCEPTED_CHANNEL_SIZE_FIELD_NUMBER
public static final int EXPIRE_TIME_SECS_FIELD_NUMBER
public static final int MIN_PAYMENT_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Protos.Initiate> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasMultisigKey()
This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is used only in the creation of the multisig contract, as outputs are created entirely by the secondary
required bytes multisig_key = 1;
hasMultisigKey
in interface Protos.InitiateOrBuilder
public com.google.protobuf.ByteString getMultisigKey()
This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is used only in the creation of the multisig contract, as outputs are created entirely by the secondary
required bytes multisig_key = 1;
getMultisigKey
in interface Protos.InitiateOrBuilder
public boolean hasMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up. So secondary indicates the minimum size it's willing to accept here. This can be lower to trade off resources against security but shouldn't be so low the transactions get rejected by the network as spam. Zero isn't a sensible value to have here, so we make the field required.
required uint64 min_accepted_channel_size = 2;
hasMinAcceptedChannelSize
in interface Protos.InitiateOrBuilder
public long getMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up. So secondary indicates the minimum size it's willing to accept here. This can be lower to trade off resources against security but shouldn't be so low the transactions get rejected by the network as spam. Zero isn't a sensible value to have here, so we make the field required.
required uint64 min_accepted_channel_size = 2;
getMinAcceptedChannelSize
in interface Protos.InitiateOrBuilder
public boolean hasExpireTimeSecs()
Rough UNIX time for when the channel expires. This is determined by the block header timestamps which can be very inaccurate when miners use the obsolete RollNTime hack. Channels could also be specified in terms of block heights but then how do you know the current chain height if you don't have internet access? Trust the server? Probably opens up attack vectors. We can assume the client has an independent clock, however. If the client considers this value too far off (eg more than a day), it may send an ERROR and close the channel.
required uint64 expire_time_secs = 3;
hasExpireTimeSecs
in interface Protos.InitiateOrBuilder
public long getExpireTimeSecs()
Rough UNIX time for when the channel expires. This is determined by the block header timestamps which can be very inaccurate when miners use the obsolete RollNTime hack. Channels could also be specified in terms of block heights but then how do you know the current chain height if you don't have internet access? Trust the server? Probably opens up attack vectors. We can assume the client has an independent clock, however. If the client considers this value too far off (eg more than a day), it may send an ERROR and close the channel.
required uint64 expire_time_secs = 3;
getExpireTimeSecs
in interface Protos.InitiateOrBuilder
public boolean hasMinPayment()
The amount of money the server requires for the initial payment. The act of opening a channel always transfers some quantity of money to the server: it's impossible to have a channel with zero value transferred. This rule ensures that you can't get a channel that can't be settled due to having paid under the dust limit. Because the dust limit will float in future, the server tells the client what it thinks it is, and the client is supposed to sanity check this value.
required uint64 min_payment = 4;
hasMinPayment
in interface Protos.InitiateOrBuilder
public long getMinPayment()
The amount of money the server requires for the initial payment. The act of opening a channel always transfers some quantity of money to the server: it's impossible to have a channel with zero value transferred. This rule ensures that you can't get a channel that can't be settled due to having paid under the dust limit. Because the dust limit will float in future, the server tells the client what it thinks it is, and the client is supposed to sanity check this value.
required uint64 min_payment = 4;
getMinPayment
in interface Protos.InitiateOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Protos.Initiate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Initiate parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Initiate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Initiate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Initiate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Initiate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Initiate parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Initiate parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Initiate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Initiate parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Initiate parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Initiate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Initiate.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.Initiate.Builder newBuilder()
public static Protos.Initiate.Builder newBuilder(Protos.Initiate prototype)
public Protos.Initiate.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.Initiate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Protos.Initiate getDefaultInstance()
public static com.google.protobuf.Parser<Protos.Initiate> parser()
public com.google.protobuf.Parser<Protos.Initiate> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Protos.Initiate getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder