use btcec structs instead of ecdsa structs