public static final class Protos.DeterministicKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.DeterministicKey.Builder> 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 | Method and Description |
---|---|
Protos.DeterministicKey.Builder |
addAllPath(Iterable<? extends Integer> values)
repeated uint32 path = 2; |
Protos.DeterministicKey.Builder |
addPath(int value)
repeated uint32 path = 2; |
Protos.DeterministicKey |
build() |
Protos.DeterministicKey |
buildPartial() |
Protos.DeterministicKey.Builder |
clear() |
Protos.DeterministicKey.Builder |
clearChainCode()
required bytes chain_code = 1; |
Protos.DeterministicKey.Builder |
clearIsFollowing()
optional bool isFollowing = 5; |
Protos.DeterministicKey.Builder |
clearIssuedSubkeys()
optional uint32 issued_subkeys = 3; |
Protos.DeterministicKey.Builder |
clearLookaheadSize()
optional uint32 lookahead_size = 4; |
Protos.DeterministicKey.Builder |
clearPath()
repeated uint32 path = 2; |
Protos.DeterministicKey.Builder |
clearSigsRequiredToSpend()
optional uint32 sigsRequiredToSpend = 6 [default = 1]; |
Protos.DeterministicKey.Builder |
clone() |
com.google.protobuf.ByteString |
getChainCode()
required bytes chain_code = 1; |
Protos.DeterministicKey |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsFollowing()
optional bool isFollowing = 5; |
int |
getIssuedSubkeys()
optional uint32 issued_subkeys = 3; |
int |
getLookaheadSize()
optional uint32 lookahead_size = 4; |
int |
getPath(int index)
repeated uint32 path = 2; |
int |
getPathCount()
repeated uint32 path = 2; |
List<Integer> |
getPathList()
repeated uint32 path = 2; |
int |
getSigsRequiredToSpend()
optional uint32 sigsRequiredToSpend = 6 [default = 1]; |
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() |
Protos.DeterministicKey.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.DeterministicKey.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.DeterministicKey.Builder |
mergeFrom(Protos.DeterministicKey other) |
Protos.DeterministicKey.Builder |
setChainCode(com.google.protobuf.ByteString value)
required bytes chain_code = 1; |
Protos.DeterministicKey.Builder |
setIsFollowing(boolean value)
optional bool isFollowing = 5; |
Protos.DeterministicKey.Builder |
setIssuedSubkeys(int value)
optional uint32 issued_subkeys = 3; |
Protos.DeterministicKey.Builder |
setLookaheadSize(int value)
optional uint32 lookahead_size = 4; |
Protos.DeterministicKey.Builder |
setPath(int index,
int value)
repeated uint32 path = 2; |
Protos.DeterministicKey.Builder |
setSigsRequiredToSpend(int value)
optional uint32 sigsRequiredToSpend = 6 [default = 1]; |
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.DeterministicKey.Builder>
public Protos.DeterministicKey.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.DeterministicKey.Builder>
public Protos.DeterministicKey.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.DeterministicKey.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.DeterministicKey.Builder>
public Protos.DeterministicKey getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.DeterministicKey build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.DeterministicKey buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.DeterministicKey.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.DeterministicKey.Builder>
public Protos.DeterministicKey.Builder mergeFrom(Protos.DeterministicKey other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.DeterministicKey.Builder>
public Protos.DeterministicKey.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.DeterministicKey.Builder>
IOException
public 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.DeterministicKeyOrBuilder
public 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.DeterministicKeyOrBuilder
public Protos.DeterministicKey.Builder setChainCode(com.google.protobuf.ByteString value)
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.
public Protos.DeterministicKey.Builder clearChainCode()
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.
public 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.DeterministicKeyOrBuilder
public 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.DeterministicKeyOrBuilder
public 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.DeterministicKeyOrBuilder
public Protos.DeterministicKey.Builder setPath(int index, int value)
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.
public Protos.DeterministicKey.Builder addPath(int value)
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.
public Protos.DeterministicKey.Builder addAllPath(Iterable<? extends Integer> values)
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.
public Protos.DeterministicKey.Builder clearPath()
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.
public 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.DeterministicKeyOrBuilder
public 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.DeterministicKeyOrBuilder
public Protos.DeterministicKey.Builder setIssuedSubkeys(int value)
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.
public Protos.DeterministicKey.Builder clearIssuedSubkeys()
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.
public boolean hasLookaheadSize()
optional uint32 lookahead_size = 4;
hasLookaheadSize
in interface Protos.DeterministicKeyOrBuilder
public int getLookaheadSize()
optional uint32 lookahead_size = 4;
getLookaheadSize
in interface Protos.DeterministicKeyOrBuilder
public Protos.DeterministicKey.Builder setLookaheadSize(int value)
optional uint32 lookahead_size = 4;
public Protos.DeterministicKey.Builder clearLookaheadSize()
optional uint32 lookahead_size = 4;
public 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.DeterministicKeyOrBuilder
public 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.DeterministicKeyOrBuilder
public Protos.DeterministicKey.Builder setIsFollowing(boolean value)
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
public Protos.DeterministicKey.Builder clearIsFollowing()
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
public 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.DeterministicKeyOrBuilder
public 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.DeterministicKeyOrBuilder
public Protos.DeterministicKey.Builder setSigsRequiredToSpend(int value)
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.
public Protos.DeterministicKey.Builder clearSigsRequiredToSpend()
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.
Copyright © 2016. All rights reserved.