Extract the x-only (32-byte) pubkey from a materialized descriptor.
Handles both static tr(pubkey) and materialized HD
tr([fp/..]xpub/0/<i>) shapes via the descriptors-scure expansion map.
Throws a plain Error when the descriptor is non-rangeable / unparseable;
callers that need a typed error wrap this.
Extract the x-only (32-byte) pubkey from a materialized descriptor. Handles both static
tr(pubkey)and materialized HDtr([fp/..]xpub/0/<i>)shapes via the descriptors-scure expansion map. Throws a plain Error when the descriptor is non-rangeable / unparseable; callers that need a typed error wrap this.