ScorexFoundation / sigmastate-interpreter

ErgoScript compiler and ErgoTree Interpreter implementation for Ergo blockchain
MIT License
62 stars 40 forks source link

Check BigInt size on serialization #996

Closed aslesarenko closed 3 months ago

aslesarenko commented 3 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