p2sh – What determines if a descriptor can have ranges?

on

|

views

and

comments


For instance, an deal with for a easy P2SH script puzzle like x+5=6 will all the time be the identical deal with, so my understanding is that shouldn’t be ranged.

Descriptors can’t categorical such a script, in order that instance is irrelevant.

The place can I perceive the final logic for ranged vs non ranged descriptors?

A descriptor is ranged if it has a /* in a derivation path someplace, as that can be expanded in a different way for every place. If there are not any expressions with * in it, then it’s not ranged as clearly each place will yield the identical script.

See the descriptors reference doc for Bitcoin Core for particulars of the descriptor language.

And in addition particularly, for the case of P2SH the place the script will be nearly something.

The identical is true for P2WSH or P2TR; inside, arbitrary scripts will be positioned, however descriptors can solely categorical a small portion of that. In Bitcoin Core 24.0, miniscript descriptors can be utilized inside P2WSH (simply watchonly, although), which significantly expands the facility descriptors have. Even with that, it can’t categorical arbitrary scripts just like the x+5=6 puzzle.

Share this
Tags

Must-read

US regulators open inquiry into Waymo self-driving automobile that struck youngster in California | Expertise

The US’s federal transportation regulator stated Thursday it had opened an investigation after a Waymo self-driving car struck a toddler close to an...

US robotaxis bear coaching for London’s quirks earlier than deliberate rollout this yr | London

American robotaxis as a consequence of be unleashed on London’s streets earlier than the tip of the yr have been quietly present process...

Nvidia CEO reveals new ‘reasoning’ AI tech for self-driving vehicles | Nvidia

The billionaire boss of the chipmaker Nvidia, Jensen Huang, has unveiled new AI know-how that he says will assist self-driving vehicles assume like...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here