PrivateKey

case class PrivateKey(value: ByteVector32)

Secp256k1 private key, which a 32 bytes value We assume that private keys are compressed i.e. that the corresponding public key is compressed

Value parameters:
value

value to initialize this key with

Companion:
object
Source:
Crypto.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Negate a private key This is a naive slow implementation but works on every platform

Negate a private key This is a naive slow implementation but works on every platform

Returns:

negation of private key

Source:
Crypto.scala
def toBase58(prefix: Byte): String
Value parameters:
prefix

Private key prefix

Returns:

the private key in Base58 (WIF) compressed format

Source:
Crypto.scala

Tweak this private key with the scalar value of tweak32

Tweak this private key with the scalar value of tweak32

Value parameters:
tweak32

the value (possibly a merkleRoot) used to tweak the private key

Returns:

tweaked private key

Source:
Crypto.scala

Inherited methods

Inherited from:
PrivateKeyPlatform (hidden)
Source:
CryptoPlatform.scala
Inherited from:
PrivateKeyPlatform (hidden)
Source:
CryptoPlatform.scala
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
Inherited from:
PrivateKeyPlatform (hidden)
Source:
CryptoPlatform.scala
Inherited from:
PrivateKeyPlatform (hidden)
Source:
CryptoPlatform.scala

Inherited fields

lazy val underlying: PrivateKey
Inherited from:
PrivateKeyPlatform (hidden)
Source:
CryptoPlatform.scala