Packages

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)

Linear Supertypes
SecretStorage, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonSecretStorage
  2. SecretStorage
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsonSecretStorage(secretFile: File, encryptionSettings: EncryptionSettings)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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
    JsonSecretStorageSecretStorage
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isLocked: Boolean

    Tells if secretsIndices were locked and destroyed.

    Tells if secretsIndices were locked and destroyed.

    Definition Classes
    JsonSecretStorageSecretStorage
  14. def lock(): Unit

    Destroys all loaded secrets.

    Destroys all loaded secrets.

    Definition Classes
    JsonSecretStorageSecretStorage
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def secret: Option[ExtendedSecretKey]

    Returns the secretsIndices if already unlocked, or nothing.

    Returns the secretsIndices if already unlocked, or nothing.

    Definition Classes
    JsonSecretStorageSecretStorage
  19. 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
    JsonSecretStorageSecretStorage
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. 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 secretsIndices available through secrets call.

    pass

    - password to be used to decrypt secret, also SecretString to be erased after use

    Definition Classes
    JsonSecretStorageSecretStorage
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from SecretStorage

Inherited from AnyRef

Inherited from Any

Ungrouped