Refactored package to use btcec