from xrpl.core.binarycodec import decode from xrpl.core.binarycodec import encode_for_signing from xrpl.core.keypairs import is_valid_message transaction_hex = '2280000000240000000268400000000000000C73210333C718C9CB716E0575454F4A343D46B284ED51151B9C7383524B82C10B262095744730450221009A4D99017F8FD6881D888047E2F9F90C068C09EC9308BC8526116B539D6DD44102207FAA7E8756F67FE7EE1A88884F120A00A8EC37E7D3E5ED3E02FEA7B1D97AA05581146C0994D3FCB140CAB36BAE9465137448883FA487' decoded = decode(transaction_hex) expected_account = 'rwiETSee2wMz3SBnAG8hkMsCgvGy9LWbZ1' assert decoded['Account'] == expected_account is_valid_message( bytes.fromhex(encode_for_signing(decoded)), bytes.fromhex(decoded['TxnSignature']), decoded['SigningPubKey'], )
It seemed to make sense to wrap this up into a helper library and open source it. Let me know if you see any mistakes!
- posts of a similar ilk
- audiotarky announced!
- feeling twitchy
- embeddable playlists & the ilp jailbreak
- webmonetization 10 second test
- debugging github actions
- webmonetization for musicians
- jekyll & web monetisation
- payid & cloud functions live coding twitch, part 2
- payid & cloud functions live coding twitch
- visualising graphs
- on blockquote