<p>An important detail of the pb library is that internally it is using <code>LinkedHashMap</code> when <a href="https://github.com/protocolbuffers/protobuf/blob/f9d8138376765d229a32635c9209061e4e4aed8c/java/core/src/main/java/com/google/protobuf/MapField.java#L171">deserializing</a> a map field.</p>
<p>This means it preserves the initial order of the keys in the map across multiple de-serialization -> re-serialization passes thus enabling the hashes created in Bisq to be stable across nodes. If this implementation detail would ever change hashes computed on different nodes may no longer line up.</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=AJFFTNW7WYL75NB57TXDNWDQN55NTA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA5P4VY#issuecomment-540737111">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNTP2TAGE5BH5PI3IHDQN55NTANCNFSM4I55W3JQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNU4MV3WKZFLK6KTN5LQN55NTA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA5P4VY.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=AJFFTNW7WYL75NB57TXDNWDQN55NTA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA5P4VY#issuecomment-540737111",
"url": "https://github.com/bisq-network/bisq/issues/3367?email_source=notifications\u0026email_token=AJFFTNW7WYL75NB57TXDNWDQN55NTA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA5P4VY#issuecomment-540737111",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>