using new functions of bitcoin-bufferlist