Module java4ever.binding
Package tech.deplant.java4ever.binding
Record Class Crypto.CryptoBoxSecret.PredefinedSeedPhrase
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Crypto.CryptoBoxSecret.PredefinedSeedPhrase
- All Implemented Interfaces:
Crypto.CryptoBoxSecret
- Enclosing interface:
Crypto.CryptoBoxSecret
public static record Crypto.CryptoBoxSecret.PredefinedSeedPhrase(String phrase, Crypto.MnemonicDictionary dictionary, Integer wordcount)
extends Record
implements Crypto.CryptoBoxSecret
This type should be used only upon the first wallet initialization, all further
initializations should use `EncryptedSecret` type instead.
Get `encrypted_secret` with `get_crypto_box_info` function and store it on your side. Restores crypto box instance from an existing seed phrase. This type should be used when Crypto Box is initialized from a seed phrase, entered by a user.
-
Nested Class Summary
Nested classes/interfaces inherited from interface tech.deplant.java4ever.binding.Crypto.CryptoBoxSecret
Crypto.CryptoBoxSecret.EncryptedSecret, Crypto.CryptoBoxSecret.PredefinedSeedPhrase, Crypto.CryptoBoxSecret.RandomSeedPhrase
-
Constructor Summary
ConstructorsConstructorDescriptionPredefinedSeedPhrase
(String phrase, Crypto.MnemonicDictionary dictionary, Integer wordcount) Creates an instance of aPredefinedSeedPhrase
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedictionary
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.phrase()
Returns the value of thephrase
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thewordcount
record component.
-
Constructor Details
-
PredefinedSeedPhrase
Creates an instance of aPredefinedSeedPhrase
record class.- Parameters:
phrase
- the value for thephrase
record componentdictionary
- the value for thedictionary
record componentwordcount
- the value for thewordcount
record component
-
-
Method Details
-
type
-
toString
-
hashCode
-
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)
. -
phrase
Returns the value of thephrase
record component.- Returns:
- the value of the
phrase
record component
-
dictionary
Returns the value of thedictionary
record component.- Returns:
- the value of the
dictionary
record component
-
wordcount
Returns the value of thewordcount
record component.- Returns:
- the value of the
wordcount
record component
-