XOnlyPublicKey

case class XOnlyPublicKey(value: ByteVector32)
Companion:
object
Source:
Crypto.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Implicitly added by xonlyOps
def outputKey(merkleRoot: Option[ByteVector32]): XOnlyPublicKey

Construct a new XOnlyPublicKey by (optionally) tweaking this one with a merkleRoot (the tweak). The tweak is used to create a private key t with corresponding public key T and the returned public key is this.pointAdd(T).

Construct a new XOnlyPublicKey by (optionally) tweaking this one with a merkleRoot (the tweak). The tweak is used to create a private key t with corresponding public key T and the returned public key is this.pointAdd(T).

Returns:

tweaked XOnlyPublicKey

Source:
Crypto.scala
Implicitly added by xonlyOps
Implicitly added by xonlyOps
def toHex: String
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any
Source:
Crypto.scala
def tweak(merkleRoot: Option[ByteVector32]): ByteVector32

Calculates a taggedHash(m,"TapTweak") where m:ByteVector32 is calculated as: val m = if(merkleRoot.isEmpty) thisXOnlyPublicKey.value ++ merkleRoot else thisXOnlyPublicKey.value

Calculates a taggedHash(m,"TapTweak") where m:ByteVector32 is calculated as: val m = if(merkleRoot.isEmpty) thisXOnlyPublicKey.value ++ merkleRoot else thisXOnlyPublicKey.value

Returns:

a unique "tweak" corresponding to

Source:
Crypto.scala

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields