public static final class Protos.Initiate extends com.google.protobuf.GeneratedMessage implements Protos.InitiateOrBuilder
paymentchannels.Initiate
Sent from server to client once version nego is done.
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Initiate.Builder
Protobuf type
paymentchannels.Initiate |
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 |
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 |
Modifier and Type | Method and Description |
---|---|
static Protos.Initiate |
getDefaultInstance() |
Protos.Initiate |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getExpireTimeSecs()
required uint64 expire_time_secs = 3; |
long |
getMinAcceptedChannelSize()
required uint64 min_accepted_channel_size = 2; |
long |
getMinPayment()
required uint64 min_payment = 4; |
com.google.protobuf.ByteString |
getMultisigKey()
required bytes multisig_key = 1; |
com.google.protobuf.Parser<Protos.Initiate> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasExpireTimeSecs()
required uint64 expire_time_secs = 3; |
boolean |
hasMinAcceptedChannelSize()
required uint64 min_accepted_channel_size = 2; |
boolean |
hasMinPayment()
required uint64 min_payment = 4; |
boolean |
hasMultisigKey()
required bytes multisig_key = 1; |
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) |
static Protos.Initiate |
parseDelimitedFrom(InputStream input) |
static Protos.Initiate |
parseDelimitedFrom(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(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(InputStream input) |
static Protos.Initiate |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Initiate.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<Protos.Initiate> PARSER
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
public static Protos.Initiate getDefaultInstance()
public Protos.Initiate 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<Protos.Initiate> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasMultisigKey()
required bytes multisig_key = 1;
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
hasMultisigKey
in interface Protos.InitiateOrBuilder
public com.google.protobuf.ByteString getMultisigKey()
required bytes multisig_key = 1;
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
getMultisigKey
in interface Protos.InitiateOrBuilder
public boolean hasMinAcceptedChannelSize()
required uint64 min_accepted_channel_size = 2;
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.
hasMinAcceptedChannelSize
in interface Protos.InitiateOrBuilder
public long getMinAcceptedChannelSize()
required uint64 min_accepted_channel_size = 2;
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.
getMinAcceptedChannelSize
in interface Protos.InitiateOrBuilder
public boolean hasExpireTimeSecs()
required uint64 expire_time_secs = 3;
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.
hasExpireTimeSecs
in interface Protos.InitiateOrBuilder
public long getExpireTimeSecs()
required uint64 expire_time_secs = 3;
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.
getExpireTimeSecs
in interface Protos.InitiateOrBuilder
public boolean hasMinPayment()
required uint64 min_payment = 4;
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.
hasMinPayment
in interface Protos.InitiateOrBuilder
public long getMinPayment()
required uint64 min_payment = 4;
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.
getMinPayment
in interface Protos.InitiateOrBuilder
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 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(InputStream input) throws IOException
IOException
public static Protos.Initiate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Initiate parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.Initiate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Initiate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.Initiate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Initiate.Builder newBuilder()
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(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.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2016. All rights reserved.