move crypto library out of Coin.jl