public static final class Protos.DeterministicKey extends com.google.protobuf.GeneratedMessage implements Protos.DeterministicKeyOrBuilder
wallet.DeterministicKey
Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm.
| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.DeterministicKey.Builder
Protobuf type
wallet.DeterministicKey |
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 |
CHAIN_CODE_FIELD_NUMBER |
static int |
ISFOLLOWING_FIELD_NUMBER |
static int |
ISSUED_SUBKEYS_FIELD_NUMBER |
static int |
LOOKAHEAD_SIZE_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.DeterministicKey> |
PARSER |
static int |
PATH_FIELD_NUMBER |
static int |
SIGSREQUIREDTOSPEND_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getChainCode()
required bytes chain_code = 1; |
static Protos.DeterministicKey |
getDefaultInstance() |
Protos.DeterministicKey |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIsFollowing()
optional bool isFollowing = 5; |
int |
getIssuedSubkeys()
optional uint32 issued_subkeys = 3; |
int |
getLookaheadSize()
optional uint32 lookahead_size = 4; |
com.google.protobuf.Parser<Protos.DeterministicKey> |
getParserForType() |
int |
getPath(int index)
repeated uint32 path = 2; |
int |
getPathCount()
repeated uint32 path = 2; |
List<Integer> |
getPathList()
repeated uint32 path = 2; |
int |
getSerializedSize() |
int |
getSigsRequiredToSpend()
optional uint32 sigsRequiredToSpend = 6 [default = 1]; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasChainCode()
required bytes chain_code = 1; |
boolean |
hasIsFollowing()
optional bool isFollowing = 5; |
boolean |
hasIssuedSubkeys()
optional uint32 issued_subkeys = 3; |
boolean |
hasLookaheadSize()
optional uint32 lookahead_size = 4; |
boolean |
hasSigsRequiredToSpend()
optional uint32 sigsRequiredToSpend = 6 [default = 1]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.DeterministicKey.Builder |
newBuilder() |
static Protos.DeterministicKey.Builder |
newBuilder(Protos.DeterministicKey prototype) |
Protos.DeterministicKey.Builder |
newBuilderForType() |
protected Protos.DeterministicKey.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static Protos.DeterministicKey |
parseDelimitedFrom(InputStream input) |
static Protos.DeterministicKey |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DeterministicKey |
parseFrom(byte[] data) |
static Protos.DeterministicKey |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DeterministicKey |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.DeterministicKey |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DeterministicKey |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.DeterministicKey |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DeterministicKey |
parseFrom(InputStream input) |
static Protos.DeterministicKey |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.DeterministicKey.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<Protos.DeterministicKey> PARSER
public static final int CHAIN_CODE_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
public static final int ISSUED_SUBKEYS_FIELD_NUMBER
public static final int LOOKAHEAD_SIZE_FIELD_NUMBER
public static final int ISFOLLOWING_FIELD_NUMBER
public static final int SIGSREQUIREDTOSPEND_FIELD_NUMBER
public static Protos.DeterministicKey getDefaultInstance()
public Protos.DeterministicKey getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<Protos.DeterministicKey> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasChainCode()
required bytes chain_code = 1;
Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and should just treat it as a regular ORIGINAL type key.
hasChainCode in interface Protos.DeterministicKeyOrBuilderpublic com.google.protobuf.ByteString getChainCode()
required bytes chain_code = 1;
Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and should just treat it as a regular ORIGINAL type key.
getChainCode in interface Protos.DeterministicKeyOrBuilderpublic List<Integer> getPathList()
repeated uint32 path = 2;
The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation and high bit unset for public derivation.
getPathList in interface Protos.DeterministicKeyOrBuilderpublic int getPathCount()
repeated uint32 path = 2;
The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation and high bit unset for public derivation.
getPathCount in interface Protos.DeterministicKeyOrBuilderpublic int getPath(int index)
repeated uint32 path = 2;
The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation and high bit unset for public derivation.
getPath in interface Protos.DeterministicKeyOrBuilderpublic boolean hasIssuedSubkeys()
optional uint32 issued_subkeys = 3;
How many children of this key have been issued, that is, given to the user when they requested a fresh key? For the parents of keys being handed out, this is always less than the true number of children: the difference is called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of this wallet - for instance when restoring from backup or if the seed was shared between devices. If this field is missing it means we're not issuing subkeys of this key to users.
hasIssuedSubkeys in interface Protos.DeterministicKeyOrBuilderpublic int getIssuedSubkeys()
optional uint32 issued_subkeys = 3;
How many children of this key have been issued, that is, given to the user when they requested a fresh key? For the parents of keys being handed out, this is always less than the true number of children: the difference is called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of this wallet - for instance when restoring from backup or if the seed was shared between devices. If this field is missing it means we're not issuing subkeys of this key to users.
getIssuedSubkeys in interface Protos.DeterministicKeyOrBuilderpublic boolean hasLookaheadSize()
optional uint32 lookahead_size = 4;hasLookaheadSize in interface Protos.DeterministicKeyOrBuilderpublic int getLookaheadSize()
optional uint32 lookahead_size = 4;getLookaheadSize in interface Protos.DeterministicKeyOrBuilderpublic boolean hasIsFollowing()
optional bool isFollowing = 5;
Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. Following/followed chains concept is used for married keychains, where the set of keys combined together to produce a single P2SH multisignature address
hasIsFollowing in interface Protos.DeterministicKeyOrBuilderpublic boolean getIsFollowing()
optional bool isFollowing = 5;
Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. Following/followed chains concept is used for married keychains, where the set of keys combined together to produce a single P2SH multisignature address
getIsFollowing in interface Protos.DeterministicKeyOrBuilderpublic boolean hasSigsRequiredToSpend()
optional uint32 sigsRequiredToSpend = 6 [default = 1];
Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
hasSigsRequiredToSpend in interface Protos.DeterministicKeyOrBuilderpublic int getSigsRequiredToSpend()
optional uint32 sigsRequiredToSpend = 6 [default = 1];
Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
getSigsRequiredToSpend in interface Protos.DeterministicKeyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static Protos.DeterministicKey parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.DeterministicKey parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.DeterministicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.DeterministicKey parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.DeterministicKey parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.DeterministicKey parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.DeterministicKey parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.DeterministicKey parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.DeterministicKey parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protos.DeterministicKey parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.DeterministicKey.Builder newBuilder()
public Protos.DeterministicKey.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.DeterministicKey.Builder newBuilder(Protos.DeterministicKey prototype)
public Protos.DeterministicKey.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.DeterministicKey.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.