XonlyPublicKey

data class XonlyPublicKey(val value: ByteVector32)

x-only pubkey, used with Schnorr signatures (see https://github.com/bitcoin/bips/tree/master/bip-0340) we only store the x coordinate of the pubkey, the y coordinate is always even

Constructors

Link copied to clipboard
fun XonlyPublicKey(pub: PublicKey)
Link copied to clipboard
fun XonlyPublicKey(value: ByteVector32)

Functions

Link copied to clipboard
fun outputKey(tapTweak: Crypto.TaprootTweak): Pair<XonlyPublicKey, Boolean>

"tweaks" this key with an optional merkle root

Link copied to clipboard
operator fun plus(that: PublicKey): Pair<XonlyPublicKey, Boolean>

add a public key to this x-only key

Link copied to clipboard
fun tweak(tapTweak: Crypto.TaprootTweak): ByteVector32

Properties

Link copied to clipboard
val publicKey: PublicKey
Link copied to clipboard
val value: ByteVector32