using new version of bitcoin-scodec