unisat-wallet / wallet-utils

ISC License
50 stars 37 forks source link

Add RAW_P2TR address type with signing capability #17

Open dannydeezy opened 7 months ago

dannydeezy commented 7 months ago

A proposed update to solve this: https://github.com/unisat-wallet/wallet-sdk/issues/16

By the way, I know this is not the proper way to do taproot addresses, but it's just an unfortunate mistake I made in the early ordinals days and we need to be able to recover assets on this type of address

As a follow up, we would add the address type here: https://github.com/unisat-wallet/extension/blob/e2fecaacf1e12d7879187d08b94914251f99f58f/src/shared/types.ts#L10

And then add an option when creating a Single Key wallet to use the new address type