Implementation of finite block chian algorithm on top of libcoin