copy of libcoin