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, 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.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.GeneratedMessage.Builder<Protos.ScryptParameters.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.GeneratedMessage.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.GeneratedMessage.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 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.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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.ScryptParameters.Builder>
IOException
public boolean hasSalt()
required bytes salt = 1;
Salt to use in generation of the wallet password (8 bytes)
hasSalt
in interface Protos.ScryptParametersOrBuilder
public com.google.protobuf.ByteString getSalt()
required bytes salt = 1;
Salt to use in generation of the wallet password (8 bytes)
getSalt
in interface Protos.ScryptParametersOrBuilder
public 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.ScryptParametersOrBuilder
public long getN()
optional int64 n = 2 [default = 16384];
CPU/ memory cost parameter
getN
in interface Protos.ScryptParametersOrBuilder
public 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.ScryptParametersOrBuilder
public int getR()
optional int32 r = 3 [default = 8];
Block size parameter
getR
in interface Protos.ScryptParametersOrBuilder
public 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.ScryptParametersOrBuilder
public int getP()
optional int32 p = 4 [default = 1];
Parallelisation parameter
getP
in interface Protos.ScryptParametersOrBuilder
public 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 © 2016. All rights reserved.