Module java4ever.binding
Package tech.deplant.java4ever.binding
Record Class Crypto.CryptoBoxSecret.RandomSeedPhrase
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Crypto.CryptoBoxSecret.RandomSeedPhrase
- All Implemented Interfaces:
Crypto.CryptoBoxSecret
- Enclosing interface:
Crypto.CryptoBoxSecret
public static record Crypto.CryptoBoxSecret.RandomSeedPhrase(Crypto.MnemonicDictionary dictionary, Integer wordcount)
extends Record
implements Crypto.CryptoBoxSecret
This type should be used 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. Creates Crypto Box from a random seed phrase. This option can be used if a developer doesn't want the seed phrase to leave the core library's memory, where it is stored encrypted.
-
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
ConstructorsConstructorDescriptionRandomSeedPhrase
(Crypto.MnemonicDictionary dictionary, Integer wordcount) Creates an instance of aRandomSeedPhrase
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.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thewordcount
record component.
-
Constructor Details
-
RandomSeedPhrase
Creates an instance of aRandomSeedPhrase
record class.- Parameters:
dictionary
- 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)
. -
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
-