sealed abstract class ECPrivateKey extends BaseECKey with Sign with MaskedToString
Created by chris on 2/16/16.
- Alphabetic
- By Inheritance
- ECPrivateKey
- MaskedToString
- Sign
- BaseECKey
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- NetworkElement
- abstract def isCompressed: Boolean
Signifies if the this private key corresponds to a compressed public key
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): ECAdaptorSignature
- def add(other: ECPrivateKey): ECPrivateKey
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- 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 completeAdaptorSignature(adaptorSignature: ECAdaptorSignature, hashTypeByte: Byte): ECDigitalSignature
- def completeAdaptorSignature(adaptorSignature: ECAdaptorSignature): ECDigitalSignature
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fieldElement: FieldElement
- 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
- def negate: ECPrivateKey
- def nonceKey: ECPrivateKey
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def publicKey: ECPublicKey
Derives the public for a the private key
Derives the public for a the private key
- Definition Classes
- ECPrivateKey → Sign
- def schnorrKey: ECPrivateKey
- def schnorrNonce: SchnorrNonce
- def schnorrPublicKey: SchnorrPublicKey
- def schnorrSign(dataToSign: ByteVector, auxRand: ByteVector): SchnorrDigitalSignature
- def schnorrSign(dataToSign: ByteVector): SchnorrDigitalSignature
- def schnorrSignWithNonce(dataToSign: ByteVector, nonce: ECPrivateKey): SchnorrDigitalSignature
- def sign(hash: HashDigest): ECDigitalSignature
- 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
- ECPrivateKey → Sign
- def signFunction: (ByteVector) => Future[ECDigitalSignature]
- Definition Classes
- ECPrivateKey → Sign
- def signFuture(hash: HashDigest)(implicit ec: ExecutionContext): Future[ECDigitalSignature]
- def signFuture(bytes: ByteVector): Future[ECDigitalSignature]
- Definition Classes
- Sign
- def signLowR(bytes: ByteVector)(implicit ec: ExecutionContext): ECDigitalSignature
- Definition Classes
- Sign
- def signLowRFuture(bytes: ByteVector)(implicit ec: ExecutionContext): Future[ECDigitalSignature]
- Definition Classes
- Sign
- def signWithEntropy(bytes: ByteVector, entropy: ByteVector): ECDigitalSignature
- Definition Classes
- ECPrivateKey → Sign
- def signWithEntropyFunction: (ByteVector, 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
- ECPrivateKey → Sign
- def signWithEntropyFuture(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
- Sign
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- ECPrivateKey → 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()