fabric-samples icon indicating copy to clipboard operation
fabric-samples copied to clipboard

ERC-1155 multi recipient transfer can produce non deterministic endorsements

Open rootp1 opened this issue 7 months ago • 0 comments

It happens because sortedKeysToID() has an inconsistent comparator in contract.go, and its output is used to drive state writes. For keys sharing To but different ID, ordering is undefined.

It can be reproduced by calling BatchTransferFromMultiRecipient with repeated recipient and multiple token IDs; peers can iterate/write in different orders and return mismatched proposal payloads.

rootp1 avatar May 03 '26 23:05 rootp1