java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Client.CryptoConfig
- Record Components:
mnemonicDictionary
- Mnemonic dictionary that will be used by default in crypto functions. If not specified, 1 dictionary will be used.mnemonicWordCount
- Mnemonic word count that will be used by default in crypto functions. If not specified the default value will be 12.hdkeyDerivationPath
- Derivation path that will be used by default in crypto functions. If not specified `m/44'/396'/0'/0/0` will be used.
- Enclosing class:
Client
public static record Client.CryptoConfig(Integer mnemonicDictionary, Integer mnemonicWordCount, String hdkeyDerivationPath)
extends Record
Crypto config.
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoConfig
(Integer mnemonicDictionary, Integer mnemonicWordCount, String hdkeyDerivationPath) Creates an instance of aCryptoConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehdkeyDerivationPath
record component.Returns the value of themnemonicDictionary
record component.Returns the value of themnemonicWordCount
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CryptoConfig
public CryptoConfig(Integer mnemonicDictionary, Integer mnemonicWordCount, String hdkeyDerivationPath) Creates an instance of aCryptoConfig
record class.- Parameters:
mnemonicDictionary
- the value for themnemonicDictionary
record componentmnemonicWordCount
- the value for themnemonicWordCount
record componenthdkeyDerivationPath
- the value for thehdkeyDerivationPath
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
mnemonicDictionary
Returns the value of themnemonicDictionary
record component.- Returns:
- the value of the
mnemonicDictionary
record component
-
mnemonicWordCount
Returns the value of themnemonicWordCount
record component.- Returns:
- the value of the
mnemonicWordCount
record component
-
hdkeyDerivationPath
Returns the value of thehdkeyDerivationPath
record component.- Returns:
- the value of the
hdkeyDerivationPath
record component
-