final class JsonSecretStorage extends SecretStorage
Secret storage backend. Stores encrypted seed in json file (structure is described by EncryptedSecret). Responsible for managing access to the secrets. (detailed storage specification: https://github.com/ergoplatform/ergo-wallet/wiki/Ergo-Secret-Storage)
- Alphabetic
- By Inheritance
- JsonSecretStorage
- SecretStorage
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkSeed(mnemonic: SecretString, mnemonicPassOpt: Option[SecretString]): Boolean
- mnemonic
- SecretString mnemonic string to be erased after use.
- mnemonicPassOpt
- optional SecretString mnemonic password to be erased after use.
- Definition Classes
- JsonSecretStorage → SecretStorage
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLocked: Boolean
Tells if
secretsIndiceswere locked and destroyed.Tells if
secretsIndiceswere locked and destroyed.- Definition Classes
- JsonSecretStorage → SecretStorage
- def lock(): Unit
Destroys all loaded secrets.
Destroys all loaded secrets.
- Definition Classes
- JsonSecretStorage → SecretStorage
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def secret: Option[ExtendedSecretKey]
Returns the
secretsIndicesif already unlocked, or nothing.Returns the
secretsIndicesif already unlocked, or nothing.- Definition Classes
- JsonSecretStorage → SecretStorage
- val secretFile: File
Path to the secret file containing encrypted seed and all the required cipher parameters to decrypt the seed providing the correct password.
Path to the secret file containing encrypted seed and all the required cipher parameters to decrypt the seed providing the correct password.
- Definition Classes
- JsonSecretStorage → SecretStorage
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unlock(pass: SecretString): Try[Unit]
Checks the seed can be decrypted, provided mnemonic with optional mnemonic password.
Checks the seed can be decrypted, provided mnemonic with optional mnemonic password. Makes secrets with
secretsIndicesavailable throughsecretscall.- pass
- password to be used to decrypt secret, also SecretString to be erased after use
- Definition Classes
- JsonSecretStorage → SecretStorage
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()