| 635 | |
| 636 | |
| 637 | def test_bip353(node_factory): |
| 638 | l1 = node_factory.get_node() |
| 639 | |
| 640 | bip353_result = l1.rpc.call("fetchbip353", "rusty@rustcorp.com.au") |
| 641 | |
| 642 | assert "proof" in bip353_result |
| 643 | assert bip353_result["instructions"] == [{'description': 'Rusty via BIP353', |
| 644 | 'offer': 'lno1pgg9yatnw3ujqanfvysyyj2sxv6nx93pqf9e58aguqr0rcun0ajlvmzq3ek63cw2w282gv3z5uupmuwvgjtq2'}] |
| 645 | |
| 646 | with pytest.raises(RpcError, match=r"failed to fetch payment instructions"): |
| 647 | l1.rpc.call("fetchbip353", "invalid@address") |