ergoplatform / sigmastate-interpreter

ErgoScript compiler and ErgoTree Interpreter implementation for Ergo blockchain
MIT License
63 stars 41 forks source link

Check BigInt size on serialization #996

Closed aslesarenko closed 5 months ago

aslesarenko commented 6 months ago

This PR introduces a new check during BigInt serialization in CoreDataSerializer. This prevents oversized BigInt to be put into registers or ErgoTree constants and hence create unparsable boxes, which will be rejected by the blockchain.

closes #991