# Change the score INSIDE the signed bytes, leave the signature alone.
import base64, json
r = json.load(open('receipt.json'))
payload = base64.b64decode(r['payload_b64']).replace(b'0.97', b'0.99')
r['payload_b64'] = base64.b64encode(payload).decode()
json.dump(r, open('receipt_payload_edit.json', 'w'), indent=2)
print('edited signed payload: score 0.97 -> 0.99')
