public static final class Protos.ScryptParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder> implements Protos.ScryptParametersOrBuilder
wallet.ScryptParameters
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-factors
| Modifier and Type | Method and Description |
|---|---|
Protos.ScryptParameters |
build() |
Protos.ScryptParameters |
buildPartial() |
Protos.ScryptParameters.Builder |
clear() |
Protos.ScryptParameters.Builder |
clearN()
optional int64 n = 2 [default = 16384]; |
Protos.ScryptParameters.Builder |
clearP()
optional int32 p = 4 [default = 1]; |
Protos.ScryptParameters.Builder |
clearR()
optional int32 r = 3 [default = 8]; |
Protos.ScryptParameters.Builder |
clearSalt()
required bytes salt = 1; |
Protos.ScryptParameters.Builder |
clone() |
Protos.ScryptParameters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getN()
optional int64 n = 2 [default = 16384]; |
int |
getP()
optional int32 p = 4 [default = 1]; |
int |
getR()
optional int32 r = 3 [default = 8]; |
com.google.protobuf.ByteString |
getSalt()
required bytes salt = 1; |
boolean |
hasN()
optional int64 n = 2 [default = 16384]; |
boolean |
hasP()
optional int32 p = 4 [default = 1]; |
boolean |
hasR()
optional int32 r = 3 [default = 8]; |
boolean |
hasSalt()
required bytes salt = 1; |
protected com.google.protobuf.GeneratedMessage.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 |
setN(long value)
optional int64 n = 2 [default = 16384]; |
Protos.ScryptParameters.Builder |
setP(int value)
optional int32 p = 4 [default = 1]; |
Protos.ScryptParameters.Builder |
setR(int value)
optional int32 r = 3 [default = 8]; |
Protos.ScryptParameters.Builder |
setSalt(com.google.protobuf.ByteString value)
required bytes salt = 1; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>public Protos.ScryptParameters.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>public Protos.ScryptParameters.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>public Protos.ScryptParameters getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Protos.ScryptParameters build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Protos.ScryptParameters buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Protos.ScryptParameters.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.ScryptParameters.Builder>public Protos.ScryptParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.ScryptParameters.Builder>IOExceptionpublic boolean hasSalt()
required bytes salt = 1;
Salt to use in generation of the wallet password (8 bytes)
hasSalt in interface Protos.ScryptParametersOrBuilderpublic com.google.protobuf.ByteString getSalt()
required bytes salt = 1;
Salt to use in generation of the wallet password (8 bytes)
getSalt in interface Protos.ScryptParametersOrBuilderpublic Protos.ScryptParameters.Builder setSalt(com.google.protobuf.ByteString value)
required bytes salt = 1;
Salt to use in generation of the wallet password (8 bytes)
public Protos.ScryptParameters.Builder clearSalt()
required bytes salt = 1;
Salt to use in generation of the wallet password (8 bytes)
public boolean hasN()
optional int64 n = 2 [default = 16384];
CPU/ memory cost parameter
hasN in interface Protos.ScryptParametersOrBuilderpublic long getN()
optional int64 n = 2 [default = 16384];
CPU/ memory cost parameter
getN in interface Protos.ScryptParametersOrBuilderpublic Protos.ScryptParameters.Builder setN(long value)
optional int64 n = 2 [default = 16384];
CPU/ memory cost parameter
public Protos.ScryptParameters.Builder clearN()
optional int64 n = 2 [default = 16384];
CPU/ memory cost parameter
public boolean hasR()
optional int32 r = 3 [default = 8];
Block size parameter
hasR in interface Protos.ScryptParametersOrBuilderpublic int getR()
optional int32 r = 3 [default = 8];
Block size parameter
getR in interface Protos.ScryptParametersOrBuilderpublic Protos.ScryptParameters.Builder setR(int value)
optional int32 r = 3 [default = 8];
Block size parameter
public Protos.ScryptParameters.Builder clearR()
optional int32 r = 3 [default = 8];
Block size parameter
public boolean hasP()
optional int32 p = 4 [default = 1];
Parallelisation parameter
hasP in interface Protos.ScryptParametersOrBuilderpublic int getP()
optional int32 p = 4 [default = 1];
Parallelisation parameter
getP in interface Protos.ScryptParametersOrBuilderpublic Protos.ScryptParameters.Builder setP(int value)
optional int32 p = 4 [default = 1];
Parallelisation parameter
public Protos.ScryptParameters.Builder clearP()
optional int32 p = 4 [default = 1];
Parallelisation parameter
Copyright © 2015. All rights reserved.