Skip to content

Explain why sign button is disabled #30

@Sjors

Description

@Sjors

The sign button is disabled when psbt.canSign returns false. We should make it more clear why this happens. This may require a PR to libwally-swift.

canSign is implemented here:
https://github.com/blockchain/libwally-swift/blob/master/LibWally/PSBT.swift#L54-L73

Some reasons why it can fail:

  • wrong network: the network is not specified in the PSBT, but you can tell from the derivation path, e.g. m/84h/0h is mainnet and m/84h/1h is testnet
  • change address derivation is not what we expect
  • we don't have matching keys (wrong derivation path?); this might be where we should check if any of the other wallets do match

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions