<p>Since I think there is some confusion about what the problem <em>really</em> is (and the way it manifests itself in the java code is a bit different than in my rust code) here is a high level description of a bug that can result from this issue:</p>
<p>Alice creates Offer A -> serializes to aliceBytes -> creates aliceHash from aliceBytes (for storing and referencing) -> then broadcasts aliceBytes to the network</p>
<p>Bob receives aliceBytes -> deserializes to Offer A -> re-rerializes to bobsBytes and creates bobsHash from bobsBytes for storing</p>
<p>so the step Offer -> bytes results in 2 different hashes on Alice and Bobs respective machine (this is the non-deterministic aspect of the serialization at play).</p>
<p>So far they each have Offer A in their Offer Book but the hashes are different on Alice and Bobs machine.</p>
<p>Now the offer is about to expire so Alice creates <code>RefreshOfferMessage</code> referencing aliceHash as the payload hash.<br>
Bob receives RefreshOfferMessage and looks up the payloadHash (= aliceHash) but doesn't find the matching offer (as he has it stored under bobsHash. So for Bob the offer will expire even though alice wants to refresh the TTL.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/3367?email_source=notifications&email_token=AJFFTNWFUNAVHUZOE2BDNK3QNXLVJA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAX32HI#issuecomment-539999517">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNUQJ2WFKWOXIKV42P3QNXLVJANCNFSM4I55W3JQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AJFFTNSRCKU2IQVJIO2XQWLQNXLVJA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAX32HI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/3367?email_source=notifications\u0026email_token=AJFFTNWFUNAVHUZOE2BDNK3QNXLVJA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAX32HI#issuecomment-539999517",
"url": "https://github.com/bisq-network/bisq/issues/3367?email_source=notifications\u0026email_token=AJFFTNWFUNAVHUZOE2BDNK3QNXLVJA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAX32HI#issuecomment-539999517",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>