citadel-tech / coinswap

Functioning, minimal-viable binaries and libraries to perform a trustless, p2p Maxwell-Belcher Coinswap Protocol
https://gist.github.com/chris-belcher/9144bd57a91c194e332fb5ca371d0964
Other
64 stars 36 forks source link

`SoB/BDKWallet`: Explore on BDK `signers` (make it compatible for Swapcoin kind.) #173

Open wthrajat opened 1 month ago

wthrajat commented 1 month ago

Part of #142

15IITian commented 1 month ago

I'' take this up

15IITian commented 1 month ago

Overview

Wallet Struct

SignersContainer Creation

KeyMap Generation

Issue with Non-Extended Descriptors

Conclusion

15IITian commented 1 month ago

Solution

Handling ExtendedDescriptor

Handling Non-ExtendedDescriptor (Swapcoin)

Proposed Solution:

  1. Create a Function: Develop a function similar to into_wallet_descriptor.
  2. Function Responsibilities:
    • Perform checksum-related checks.
    • Call parse_descriptor to obtain Descriptor<DescriptorPublicKey> and its KeyMap.

Reference:

Difference Between Handling ExtendedDescriptor and Non-ExtendedDescriptor


By following these steps, we can effectively manage both ExtendedDescriptor and Non-ExtendedDescriptor

15IITian commented 1 month ago

Create a Function: Develop a function similar to into_wallet_descriptor. Function Responsibilities: Perform checksum-related checks. Call parse_descriptor to obtain Descriptor and its KeyMap.

This will also remove the need of using rpc-call to create discriptor from the string

mojoX911 commented 2 weeks ago

ACK on all the approaches. Yes, we will need to build whats missing in BDK. Excited to see the product.