sealed abstract class ExtPrivateKey extends ExtKey with ExtSign with MaskedToString
- Alphabetic
- By Inheritance
- ExtPrivateKey
- MaskedToString
- ExtSign
- AdaptorSign
- Sign
- AsyncExtSign
- AsyncAdaptorSign
- AsyncSign
- ExtKey
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type VersionType = ExtKeyPrivVersion
- Attributes
- protected
- Definition Classes
- ExtPrivateKey → ExtKey
Abstract Value Members
- abstract def 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
- ExtKey
- abstract def 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
- ExtKey
- abstract def depth: UInt8
0 for master nodes, 1 for level-1 derived keys, ....
0 for master nodes, 1 for level-1 derived keys, ....
- Definition Classes
- ExtKey
- abstract def fingerprint: ByteVector
The fingerprint of the parent key
The fingerprint of the parent key
- Definition Classes
- ExtKey
- abstract def key: ECPrivateKey
The key at this path
The key at this path
- Definition Classes
- ExtPrivateKey → ExtKey
- abstract def version: VersionType
The network and private/public key identifier for this key
The network and private/public key identifier for this key
- Definition Classes
- ExtKey
Concrete 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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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(child: BIP32Node): ExtPrivateKey
- def deriveChildPrivKey(idx: Long): Try[ExtPrivateKey]
- def deriveChildPrivKey(idx: UInt32): ExtPrivateKey
- def deriveChildPrivKey(path: BIP32Path): ExtPrivateKey
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.
- See also
HDPath for a more specialized version of a BIP32 path
- 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 equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extPublicKey: ExtPublicKey
- 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()
- 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
- 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 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
- 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
- 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()