package blockchain import ( "github.com/p9c/p9/pkg/ecc" "github.com/p9c/p9/pkg/txscript" ) // In order to reduce the size of stored scripts, a domain specific compression algorithm is used which recognizes // standard scripts and stores them using less bytes than the original script. The compression algorithm used here was // obtained from Bitcoin Core, so all credits for the algorithm go to it. // // The general serialized format is: // //