object ECPrivateKeyUtil
- Alphabetic
- By Inheritance
- ECPrivateKeyUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- 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 compressedKeyPrefixes: Seq[Some[Char]]
The Base58 prefixes that represent compressed private keys
- 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])
- def fromWIFToPrivateKey(WIF: String): ECPrivateKeyBytes
Takes in a base58 string and converts it into a private key.
Takes in a base58 string and converts it into a private key. Private keys starting with 'K', 'L', or 'c' correspond to compressed public keys. https://en.bitcoin.it/wiki/Wallet_import_format
- WIF
Wallet Import Format. Encoded in Base58
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isCompressed(WIF: String): Boolean
- def isCompressed(bytes: ByteVector): Boolean
Takes in WIF private key as a sequence of bytes and determines if it corresponds to a compressed public key.
Takes in WIF private key as a sequence of bytes and determines if it corresponds to a compressed public key. If the private key corresponds to a compressed public key, the last byte should be 0x01, and the WIF string will have started with K or L instead of 5 (or c instead of 9 on testnet).
- bytes
private key in bytes
- 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 parseNetworkFromWIF(wif: String): Try[NetworkParameters]
Returns the NetworkParameters from a serialized WIF key
- def privateKeyPrefixes: Vector[Char]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toWIF(privKey: ECPrivateKeyBytes, network: NetworkParameters): String
Converts a ECPrivateKey to WIF
- def uncompressedKeyPrefixes: Seq[Some[Char]]
The Base58 prefixes that represent uncompressed private keys
- 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()