DynamicSDK.instance.bitcoin.signMessage produces a signature for an arbitrary message using the connected Bitcoin wallet. The default signing protocol is ecdsa; pass protocol: 'bip322-simple' for BIP-322 sign-in flows.
Basic usage
With protocol and address type
Override the defaults when you need a BIP-322 signature or want to sign with the ordinals address rather than the payment address:
Parameters
Returns
Future<String> — the signature as a string. The encoding depends on the chosen protocol.Last modified on May 12, 2026