co.topl.attestation.keyManagement.derivedKeys
ExtendedPrivateKeyEd25519
Companion class ExtendedPrivateKeyEd25519
object ExtendedPrivateKeyEd25519
- Alphabetic
- By Inheritance
- ExtendedPrivateKeyEd25519
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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 apply(entropy: Entropy, password: Password): ExtendedPrivateKeyEd25519
Instantiates an
ExtendedPrivateKeyEd25519from entropy and a password.Instantiates an
ExtendedPrivateKeyEd25519from entropy and a password.- entropy
some random entropy
- password
an optional password for an extra layer of security
- returns
an
ExtendedPrivateKeyEd25519
- def apply(bytes: ByteVector96): ExtendedPrivateKeyEd25519
Instantiates an
ExtendedPrivateKeyEd25519from a 96-byte vector with little endian ordering.Instantiates an
ExtendedPrivateKeyEd25519from a 96-byte vector with little endian ordering.- bytes
96 bytes representing the left/right keys with a chain code in little-endian
- returns
an
ExtendedPrivateKeyEd25519representing the bytes
- def apply(leftKey: ByteVector32, rightKey: ByteVector32, chainCode: ByteVector32): ExtendedPrivateKeyEd25519
Instantiates an
ExtendedPrivateKeyEd25519from a 32-byte left/right key and 32-byte chain code with little-endian orderingInstantiates an
ExtendedPrivateKeyEd25519from a 32-byte left/right key and 32-byte chain code with little-endian ordering- leftKey
the 32-byte left key
- rightKey
the 32-byte right key
- chainCode
the 32-byte chain code
- returns
the
ExtendedPrivateKeyEd25519representing the bytes
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def copy(value: ExtendedPrivateKeyEd25519): ExtendedPrivateKeyEd25519
Creates a copy of an
ExtendedPrivateKey.Creates a copy of an
ExtendedPrivateKey.- value
the private key to copy
- returns
the copied
ExtendedPrivateKey
- val edBaseN: BigInt
ED-25519 Base Order N
ED-25519 Base Order N
Equivalent to
2^252 + 27742317777372353535851937790883648493 - 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
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validate(value: ExtendedPrivateKeyEd25519): Either[InvalidDerivedKey, ExtendedPrivateKeyEd25519]
Validates that the given key is a valid derived key.
Validates that the given key is a valid derived key. Keys are invalid if their left private keys are divisible by the ED-25519 Base Order N.
- value
the private key value
- returns
either an invalid error or the private key
- 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()
- case object InvalidDerivedKey extends Product with Serializable
- object implicits extends Instances