conform for type NewKeypair for secp256k1