vulpemventures / ocean

:ocean: Elements/Liquid wallet daemon
MIT License
5 stars 7 forks source link

Add low level rpc to sign taproot inputs #61

Closed altafan closed 5 months ago

altafan commented 7 months ago

This adds a low level rpc SignPsetWithSchnorrKey that accepts and signs a partial tx.

This pset must contain the account(s) xpub as global field and each taproot input to be signed must specify a TapBip32Derivation field.

Internally, the app service retrieves the account index for a global xpub and contrcuts the derivation path required by the signing wallet to generate the correct private key.

Please @louisinger review.

tiero commented 7 months ago

I would add a test to serve as reference/example on how to use the API