case class ECPrivateKey(bytes: ByteVector) extends BaseECKey with AdaptorSign with MaskedToString with Product with Serializable

Created by chris on 2/16/16. A valid deserialized private key.

Note that there is no notion of compressed vs. decompressed as there is in Wallet Import Format (WIF), if dealing with external wallets then ECPrivateKeyBytes may be needed.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ECPrivateKey
  2. Serializable
  3. Product
  4. Equals
  5. MaskedToString
  6. AdaptorSign
  7. AsyncAdaptorSign
  8. Sign
  9. AsyncSign
  10. BaseECKey
  11. NetworkElement
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ECPrivateKey(bytes: ByteVector)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def adaptorSign(adaptorPoint: ECPublicKey, msg: ByteVector, auxRand: ByteVector): ECAdaptorSignature
    Definition Classes
    ECPrivateKeyAdaptorSign
  5. def adaptorSign(adaptorPoint: ECPublicKey, msg: ByteVector): ECAdaptorSignature
    Definition Classes
    AdaptorSign
  6. def add(other: ECPrivateKey): ECPrivateKey
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def asyncAdaptorSign(adaptorPoint: ECPublicKey, msg: ByteVector, auxRand: ByteVector): Future[ECAdaptorSignature]
    Definition Classes
    AdaptorSignAsyncAdaptorSign
  9. def asyncAdaptorSign(adaptorPoint: ECPublicKey, msg: ByteVector): Future[ECAdaptorSignature]
    Definition Classes
    AsyncAdaptorSign
  10. def asyncSign(bytes: ByteVector): Future[ECDigitalSignature]
    Definition Classes
    SignAsyncSign
  11. def asyncSignLowR(bytes: ByteVector)(implicit ec: ExecutionContext): Future[ECDigitalSignature]
    Definition Classes
    SignAsyncSign
  12. 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!

    Definition Classes
    SignAsyncSign
  13. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  14. val bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    ECPrivateKeyNetworkElement
  15. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  17. def completeAdaptorSignature(adaptorSignature: ECAdaptorSignature, hashTypeByte: Byte): ECDigitalSignature
  18. def completeAdaptorSignature(adaptorSignature: ECAdaptorSignature): ECDigitalSignature
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def fieldElement: FieldElement
  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hex: String

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  24. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def negate: ECPrivateKey
  28. def nonceKey: ECPrivateKey
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def productElementNames: Iterator[String]
    Definition Classes
    Product
  32. def publicKey: ECPublicKey

    Derives the public for a the private key

    Derives the public for a the private key

    Definition Classes
    ECPrivateKeyAsyncSign
  33. def schnorrKey: ECPrivateKey
  34. def schnorrNonce: SchnorrNonce
  35. final def schnorrPublicKey: SchnorrPublicKey
    Definition Classes
    AsyncSign
  36. def schnorrSign(dataToSign: ByteVector, auxRand: ByteVector): SchnorrDigitalSignature
    Definition Classes
    ECPrivateKeySign
  37. final def schnorrSign(dataToSign: ByteVector): SchnorrDigitalSignature
    Definition Classes
    Sign
  38. final def schnorrSignWithHashType(dataToSign: ByteVector, hashType: HashType): SchnorrDigitalSignature
    Definition Classes
    Sign
  39. def schnorrSignWithNonce(dataToSign: ByteVector, nonce: ECPrivateKey): SchnorrDigitalSignature
    Definition Classes
    ECPrivateKeySign
  40. def sign(hash: HashDigest): ECDigitalSignature
  41. def sign(dataToSign: ByteVector): ECDigitalSignature

    Signs a given sequence of bytes with the signingKey

    Signs a given sequence of bytes with the signingKey

    dataToSign

    the bytes to be signed

    returns

    the digital signature

    Definition Classes
    ECPrivateKeySign
  42. def signLowR(bytes: ByteVector): ECDigitalSignature
    Definition Classes
    Sign
  43. def signLowRWithHashType(bytes: ByteVector, hashType: HashType): ECDigitalSignature
    Definition Classes
    Sign
  44. 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
    ECPrivateKeySign
  45. def signWithHashType(bytes: ByteVector, hashType: HashType): ECDigitalSignature
    Definition Classes
    Sign
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toPrivateKeyBytes(isCompressed: Boolean = true): ECPrivateKeyBytes
  48. final def toString(): String
    Definition Classes
    MaskedToString → AnyRef → Any
  49. 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
    ECPrivateKeyMaskedToString
  50. def toXOnly: XOnlyPubKey
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MaskedToString

Inherited from AdaptorSign

Inherited from AsyncAdaptorSign

Inherited from Sign

Inherited from AsyncSign

Inherited from BaseECKey

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped