class KeyRing[S <: Secret, KF <: Keyfile[S]] extends AnyRef
- Alphabetic
- By Inheritance
- KeyRing
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new KeyRing(keyDirectory: Option[File], secrets: Set[S] = Set())(implicit networkPrefix: NetworkPrefix, secretGenerator: SecretGenerator[S], keyfileCompanion: KeyfileCompanion[S, KF])
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
- def addresses: Set[Address]
Retrieves a list of public images for the secrets currently held in the keyring
Retrieves a list of public images for the secrets currently held in the keyring
- returns
- the public keys as ProofOfKnowledgePropositions
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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])
- def generateAttestation(addresses: Set[Address])(messageToSign: Array[Byte]): Map[PK, PR]
- def generateAttestation(addr: Address)(messageToSign: Array[Byte]): Map[PK, PR]
Generate an attestation map using the given address and message to sign
Generate an attestation map using the given address and message to sign
- addr
address to lookup the proposition associated with the proof that is needed
- messageToSign
the message that should be committed to
- returns
a map that can be inserted into a transaction
- def generateNewKeyPairs(num: Int = 1, seedOpt: Option[String] = None): Try[Set[S]]
Generates a new keypair and updates the key ring with the new secret
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def importKeyPair(keyfile: KF, password: String): Try[Address]
Attempts to import a keyfile into the key ring
Attempts to import a keyfile into the key ring
- keyfile
encrypted keyfile that will be added
- password
password for decrypting the keyfile
- returns
the address of the key pair for this network
- def importPhrase(password: String, mnemonic: String, lang: String)(implicit sg: SecretGenerator[S]): Try[Address]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lookupPublicKey(addr: Address): Try[PK]
Lookup the public key associated with an address
- 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 removeFromKeyring(address: Address): Try[Unit]
Removes an address from the keyring so that it is not available for signing any longer
Removes an address from the keyring so that it is not available for signing any longer
- address
network specific address to be removed
- returns
a try indicating whether the key ring was successfully mutated or not
- def signWithAddress(addr: Address)(messageToSign: Array[Byte]): Try[PR]
Generate a signature using the secret key associated with an Address
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- object DiskOps