MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_bip353

Function test_bip353

tests/test_cln_rs.py:637–647  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

635
636
637def 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")

Callers

nothing calls this directly

Calls 2

get_nodeMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected