mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-18 21:34:39 +01:00
Add descriptor for TaprootScriptPubKey (#4595)
This commit is contained in:
parent
326cb9845e
commit
26492d2449
@ -1357,6 +1357,8 @@ case class TaprootScriptPubKey(override val asm: Vector[ScriptToken])
|
||||
s"pubKeyBytes must be 32 bytes in length, got=${asm(2).byteSize}")
|
||||
XOnlyPubKey.fromBytes(asm(2).bytes)
|
||||
}
|
||||
|
||||
override def toString = s"rawtr(${pubKey.hex})"
|
||||
}
|
||||
|
||||
object TaprootScriptPubKey extends ScriptFactory[TaprootScriptPubKey] {
|
||||
|
Loading…
Reference in New Issue
Block a user