co.topl.attestation.keyManagement.derivedKeys
ExtendedPrivateKeyEd25519
Companion object ExtendedPrivateKeyEd25519
class ExtendedPrivateKeyEd25519 extends AnyRef
An ED-25519 extended private key.
See https://drive.google.com/file/d/0ByMtMw2hul0EMFJuNnZORDR2NDA/view?resourcekey=0-5yJh8wV--HB7ve2NuqfQ6A for the BIP32-ED25519 specification
- Alphabetic
- By Inheritance
- ExtendedPrivateKeyEd25519
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ExtendedPrivateKeyEd25519(leftKey: ByteVector32, rightKey: ByteVector32, chainCode: ByteVector32)
- leftKey
the left 32 bytes of the private key
- rightKey
the right 32 bytes of the private key
- chainCode
the 32-byte chain code
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
- val chainCode: ByteVector32
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def derive(index: DerivedKeyIndex): Either[InvalidDerivedKey, ExtendedPrivateKeyEd25519]
Deterministically derives a child
ExtendedPrivateKeyat the given index from this extended private key.Deterministically derives a child
ExtendedPrivateKeyat the given index from this extended private key.Follows section V.C from BIP32-ED25519 spec.
- index
the index of the child key to derive
- returns
the derived
ExtendedPrivateKey
- 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
- val leftKey: ByteVector32
- val leftNumber: BigInt
- 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 public: ExtendedPublicKeyEd25519
Gets the public key paired with this private key.
Gets the public key paired with this private key.
- returns
a
ExtendedPublicKeyEd25519for verifying signatures made with this private key
- lazy val publicImage: PublicKeyPropositionEd25519
- val rightKey: ByteVector32
- val rightNumber: BigInt
- lazy val serializer: BifrostSerializer[ExtendedPrivateKeyEd25519]
- def sign(message: Array[Byte]): SignatureEd25519
Signs a message using this private key.
Signs a message using this private key.
- message
the message to sign serialized as a
MessageToSign- returns
the signature
- 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()