Class/Object

org.ergoplatform.wallet.secrets

JsonSecretStorage

Related Docs: object JsonSecretStorage | package secrets

Permalink

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
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. All

Instance Constructors

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def checkSeed(mnemonic: SecretString, mnemonicPassOpt: Option[SecretString]): Boolean

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def isLocked: Boolean

    Permalink

    Tells if secretsIndices were locked and destroyed.

    Tells if secretsIndices were locked and destroyed.

    Definition Classes
    JsonSecretStorageSecretStorage
  14. def lock(): Unit

    Permalink

    Destroys all loaded secrets.

    Destroys all loaded secrets.

    Definition Classes
    JsonSecretStorageSecretStorage
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def secret: Option[ExtendedSecretKey]

    Permalink

    Returns the secretsIndices if already unlocked, or nothing.

    Returns the secretsIndices if already unlocked, or nothing.

    Definition Classes
    JsonSecretStorageSecretStorage
  19. val secretFile: File

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def unlock(pass: SecretString): Try[Unit]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SecretStorage

Inherited from AnyRef

Inherited from Any

Ungrouped