case class ExtPrivateKeyHardened(version: ExtKeyPrivVersion, depth: UInt8, fingerprint: ByteVector, childNum: UInt32, chainCode: ChainCode, key: ECPrivateKey) extends ExtPrivateKey with Product with Serializable
- Alphabetic
- By Inheritance
- ExtPrivateKeyHardened
- Serializable
- Product
- Equals
- ExtPrivateKey
- MaskedToString
- ExtSign
- AdaptorSign
- Sign
- AsyncExtSign
- AsyncAdaptorSign
- AsyncSign
- ExtKey
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ExtPrivateKeyHardened(version: ExtKeyPrivVersion, depth: UInt8, fingerprint: ByteVector, childNum: UInt32, chainCode: ChainCode, key: ECPrivateKey)
Type Members
- type VersionType = ExtKeyPrivVersion
- Attributes
- protected
- Definition Classes
- ExtPrivateKey → ExtKey
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 adaptorSign(adaptorPoint: ECPublicKey, msg: ByteVector, auxRand: ByteVector): ECAdaptorSignature
- Definition Classes
- ExtPrivateKey → AdaptorSign
- def adaptorSign(adaptorPoint: ECPublicKey, msg: ByteVector): ECAdaptorSignature
- Definition Classes
- AdaptorSign
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asyncAdaptorSign(adaptorPoint: ECPublicKey, msg: ByteVector, auxRand: ByteVector): Future[ECAdaptorSignature]
- Definition Classes
- AdaptorSign → AsyncAdaptorSign
- def asyncAdaptorSign(adaptorPoint: ECPublicKey, msg: ByteVector): Future[ECAdaptorSignature]
- Definition Classes
- AsyncAdaptorSign
- def asyncDeriveAndSign(bytes: ByteVector, path: BIP32Path): Future[ECDigitalSignature]
- Definition Classes
- ExtSign → AsyncExtSign
- def asyncSign(bytes: ByteVector): Future[ECDigitalSignature]
- def asyncSign(bytes: ByteVector, path: BIP32Path): Future[ECDigitalSignature]
First derives the child key that corresponds to path and then signs
First derives the child key that corresponds to path and then signs
- Definition Classes
- AsyncExtSign
- def asyncSignLowR(bytes: ByteVector)(implicit ec: ExecutionContext): Future[ECDigitalSignature]
- def asyncSignWithEntropy(bytes: ByteVector, entropy: ByteVector): Future[ECDigitalSignature]
Note that using this function to generate digital signatures with specific properties (by trying a bunch of entropy values) can reduce privacy as it will fingerprint your wallet.
Note that using this function to generate digital signatures with specific properties (by trying a bunch of entropy values) can reduce privacy as it will fingerprint your wallet. Additionally it could lead to a loss of entropy in the resulting nonce should the property you are interested in cause a constraint on the input space.
In short, ALL USES OF THIS FUNCTION THAT SIGN THE SAME DATA WITH DIFFERENT ENTROPY HAVE THE POTENTIAL TO CAUSE REDUCTIONS IN SECURITY AND PRIVACY, BEWARE!
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- def bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- ExtKey → NetworkElement
- def bytesLE: ByteVector
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- val chainCode: ChainCode
In order to prevent these from depending solely on the key itself, we extend both private and public keys first with an extra 256 bits of entropy.
In order to prevent these from depending solely on the key itself, we extend both private and public keys first with an extra 256 bits of entropy. This extension, called the chain code, is identical for corresponding private and public keys, and consists of 32 bytes.
- Definition Classes
- ExtPrivateKeyHardened → ExtKey
- val childNum: UInt32
Child number.
Child number. This is ser32(i) for i in xi = xpar/i, with xi the key being serialized. (0x00000000 if master key)
- Definition Classes
- ExtPrivateKeyHardened → ExtKey
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val depth: UInt8
0 for master nodes, 1 for level-1 derived keys, ....
0 for master nodes, 1 for level-1 derived keys, ....
- Definition Classes
- ExtPrivateKeyHardened → ExtKey
- def deriveAndSign(bytes: ByteVector, path: BIP32Path): ECDigitalSignature
Signs the given bytes with the given path
Signs the given bytes with the given path
- Definition Classes
- ExtPrivateKey → ExtSign
- def deriveChildPrivKey(idx: Long): Try[ExtPrivateKeyHardened]
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
- Definition Classes
- ExtPrivateKeyHardened → ExtPrivateKey
- def deriveChildPrivKey(idx: UInt32): ExtPrivateKeyHardened
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
- Definition Classes
- ExtPrivateKeyHardened → ExtPrivateKey
- def deriveChildPrivKey(path: BIP32Path): ExtPrivateKeyHardened
Derives the child key corresponding to the given path.
Derives the child key corresponding to the given path. The given path could signify account levels, one sublevel for each currency, or how to derive change addresses.
- Definition Classes
- ExtPrivateKeyHardened → ExtPrivateKey
- def deriveChildPrivKey(child: BIP32Node): ExtPrivateKey
- Definition Classes
- ExtPrivateKey
- def deriveChildPubKey(path: BIP32Path): Try[ExtPublicKey]
Derives the child pubkey at the specified path
Derives the child pubkey at the specified path
- Definition Classes
- ExtKey
- def deriveChildPubKey(child: BIP32Node): Try[ExtPublicKey]
Derives the child pubkey at the specified index and hardening value
Derives the child pubkey at the specified index and hardening value
- Definition Classes
- ExtKey
- def deriveChildPubKey(idx: Long): Try[ExtPublicKey]
Derives the child pubkey at the specified index
Derives the child pubkey at the specified index
- Definition Classes
- ExtKey
- def deriveChildPubKey(idx: UInt32): Try[ExtPublicKey]
Derives the child pubkey at the specified index
Derives the child pubkey at the specified index
- Definition Classes
- ExtKey
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def extPublicKey: ExtPublicKey
- Definition Classes
- ExtPrivateKey
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val fingerprint: ByteVector
The fingerprint of the parent key
The fingerprint of the parent key
- Definition Classes
- ExtPrivateKeyHardened → ExtKey
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hex: String
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
- Definition Classes
- NetworkElement
- def hexLE: String
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val key: ECPrivateKey
The key at this path
The key at this path
- Definition Classes
- ExtPrivateKeyHardened → ExtPrivateKey → ExtKey
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- def publicKey: ECPublicKey
- Definition Classes
- ExtPrivateKey → AsyncSign
- final def schnorrPublicKey: SchnorrPublicKey
- Definition Classes
- AsyncSign
- def schnorrSign(dataToSign: ByteVector, auxRand: ByteVector): SchnorrDigitalSignature
- Definition Classes
- ExtPrivateKey → Sign
- final def schnorrSign(dataToSign: ByteVector): SchnorrDigitalSignature
- Definition Classes
- Sign
- final def schnorrSignWithHashType(dataToSign: ByteVector, hashType: HashType): SchnorrDigitalSignature
- Definition Classes
- Sign
- def schnorrSignWithNonce(dataToSign: ByteVector, nonce: ECPrivateKey): SchnorrDigitalSignature
- Definition Classes
- ExtPrivateKey → Sign
- def sign(bytes: ByteVector): ECDigitalSignature
- Definition Classes
- ExtPrivateKey → Sign
- def sign(bytes: ByteVector, path: BIP32Path): ECDigitalSignature
First derives the child key that corresponds to path and then signs
First derives the child key that corresponds to path and then signs
- Definition Classes
- ExtSign
- def signLowR(bytes: ByteVector): ECDigitalSignature
- Definition Classes
- Sign
- def signLowRWithHashType(bytes: ByteVector, hashType: HashType): ECDigitalSignature
- Definition Classes
- Sign
- def signWithEntropy(bytes: ByteVector, entropy: ByteVector): ECDigitalSignature
Note that using this function to generate digital signatures with specific properties (by trying a bunch of entropy values) can reduce privacy as it will fingerprint your wallet.
Note that using this function to generate digital signatures with specific properties (by trying a bunch of entropy values) can reduce privacy as it will fingerprint your wallet. Additionally it could lead to a loss of entropy in the resulting nonce should the property you are interested in cause a constraint on the input space.
In short, ALL USES OF THIS FUNCTION THAT SIGN THE SAME DATA WITH DIFFERENT ENTROPY HAVE THE POTENTIAL TO CAUSE REDUCTIONS IN SECURITY AND PRIVACY, BEWARE!
- Definition Classes
- ExtPrivateKey → Sign
- def signWithHashType(bytes: ByteVector, hashType: HashType): ECDigitalSignature
- Definition Classes
- Sign
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toHardened: ExtPrivateKeyHardened
- Definition Classes
- ExtPrivateKey
- final def toString(): String
- Definition Classes
- MaskedToString → AnyRef → Any
- def toStringSensitive: String
Returns the real value of a sensitive string This should be considered unsafe in the sense that this information is sensitive and could cause loss of funds if used anywhere things are persisted like logs
Returns the real value of a sensitive string This should be considered unsafe in the sense that this information is sensitive and could cause loss of funds if used anywhere things are persisted like logs
- Definition Classes
- ExtPrivateKey → MaskedToString
- val version: ExtKeyPrivVersion
The network and private/public key identifier for this key
The network and private/public key identifier for this key
- Definition Classes
- ExtPrivateKeyHardened → ExtKey
- 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()