Make pubkeys, set_xo, ... ge instead of gej

This commit is contained in:
Pieter Wuille
2013-05-05 01:18:23 +02:00
parent 42cccdaf55
commit 764332d05d
7 changed files with 41 additions and 28 deletions

View File

@@ -45,8 +45,8 @@ int main() {
random_num_order(&s);
random_num_order(&m);
secp256k1_ecdsa_sig_set_rs(&sig, &r, &s);
secp256k1_gej_t pubkey; secp256k1_gej_set_xo(&pubkey, &x, 1);
if (secp256k1_gej_is_valid(&pubkey)) {
secp256k1_ge_t pubkey; secp256k1_ge_set_xo(&pubkey, &x, 1);
if (secp256k1_ge_is_valid(&pubkey)) {
cnt++;
good += secp256k1_ecdsa_sig_verify(&sig, &pubkey, &m);
}