public static final class Protos.ScryptParameters.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder> implements Protos.ScryptParametersOrBuilder
The parameters used in the scrypt key derivation function. The default values are taken from http://www.tarsnap.com/scrypt/scrypt-slides.pdf. They can be increased - n is the number of iterations performed and r and p can be used to tweak the algorithm - see: http://stackoverflow.com/questions/11126315/what-are-optimal-scrypt-work-factorsProtobuf type
wallet.ScryptParameters
Modifier and Type | Method and Description |
---|---|
Protos.ScryptParameters.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.ScryptParameters |
build() |
Protos.ScryptParameters |
buildPartial() |
Protos.ScryptParameters.Builder |
clear() |
Protos.ScryptParameters.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.ScryptParameters.Builder |
clearN()
CPU/ memory cost parameter
|
Protos.ScryptParameters.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.ScryptParameters.Builder |
clearP()
Parallelisation parameter
|
Protos.ScryptParameters.Builder |
clearR()
Block size parameter
|
Protos.ScryptParameters.Builder |
clearSalt()
Salt to use in generation of the wallet password (8 bytes)
|
Protos.ScryptParameters.Builder |
clone() |
Protos.ScryptParameters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getN()
CPU/ memory cost parameter
|
int |
getP()
Parallelisation parameter
|
int |
getR()
Block size parameter
|
com.google.protobuf.ByteString |
getSalt()
Salt to use in generation of the wallet password (8 bytes)
|
boolean |
hasN()
CPU/ memory cost parameter
|
boolean |
hasP()
Parallelisation parameter
|
boolean |
hasR()
Block size parameter
|
boolean |
hasSalt()
Salt to use in generation of the wallet password (8 bytes)
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.ScryptParameters.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.ScryptParameters.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.ScryptParameters.Builder |
mergeFrom(Protos.ScryptParameters other) |
Protos.ScryptParameters.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.ScryptParameters.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.ScryptParameters.Builder |
setN(long value)
CPU/ memory cost parameter
|
Protos.ScryptParameters.Builder |
setP(int value)
Parallelisation parameter
|
Protos.ScryptParameters.Builder |
setR(int value)
Block size parameter
|
Protos.ScryptParameters.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.ScryptParameters.Builder |
setSalt(com.google.protobuf.ByteString value)
Salt to use in generation of the wallet password (8 bytes)
|
Protos.ScryptParameters.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.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.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.ScryptParameters build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.ScryptParameters buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.ScryptParameters.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder mergeFrom(Protos.ScryptParameters other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public Protos.ScryptParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ScryptParameters.Builder>
java.io.IOException
public boolean hasSalt()
Salt to use in generation of the wallet password (8 bytes)
required bytes salt = 1;
hasSalt
in interface Protos.ScryptParametersOrBuilder
public com.google.protobuf.ByteString getSalt()
Salt to use in generation of the wallet password (8 bytes)
required bytes salt = 1;
getSalt
in interface Protos.ScryptParametersOrBuilder
public Protos.ScryptParameters.Builder setSalt(com.google.protobuf.ByteString value)
Salt to use in generation of the wallet password (8 bytes)
required bytes salt = 1;
public Protos.ScryptParameters.Builder clearSalt()
Salt to use in generation of the wallet password (8 bytes)
required bytes salt = 1;
public boolean hasN()
CPU/ memory cost parameter
optional int64 n = 2 [default = 16384];
hasN
in interface Protos.ScryptParametersOrBuilder
public long getN()
CPU/ memory cost parameter
optional int64 n = 2 [default = 16384];
getN
in interface Protos.ScryptParametersOrBuilder
public Protos.ScryptParameters.Builder setN(long value)
CPU/ memory cost parameter
optional int64 n = 2 [default = 16384];
public Protos.ScryptParameters.Builder clearN()
CPU/ memory cost parameter
optional int64 n = 2 [default = 16384];
public boolean hasR()
Block size parameter
optional int32 r = 3 [default = 8];
hasR
in interface Protos.ScryptParametersOrBuilder
public int getR()
Block size parameter
optional int32 r = 3 [default = 8];
getR
in interface Protos.ScryptParametersOrBuilder
public Protos.ScryptParameters.Builder setR(int value)
Block size parameter
optional int32 r = 3 [default = 8];
public Protos.ScryptParameters.Builder clearR()
Block size parameter
optional int32 r = 3 [default = 8];
public boolean hasP()
Parallelisation parameter
optional int32 p = 4 [default = 1];
hasP
in interface Protos.ScryptParametersOrBuilder
public int getP()
Parallelisation parameter
optional int32 p = 4 [default = 1];
getP
in interface Protos.ScryptParametersOrBuilder
public Protos.ScryptParameters.Builder setP(int value)
Parallelisation parameter
optional int32 p = 4 [default = 1];
public Protos.ScryptParameters.Builder clearP()
Parallelisation parameter
optional int32 p = 4 [default = 1];
public final Protos.ScryptParameters.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>
public final Protos.ScryptParameters.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ScryptParameters.Builder>