fix function rename in secp256k1

secp256k1_ec_privkey_tweak_add was renamed and is now
secp256k1_ec_seckey_tweak_add in upstream 41fc785602 and
22911ee6da.

Removes a warning.
This commit is contained in:
Patrick Lodder 2022-10-16 20:31:01 +02:00
parent 93f989df7d
commit 6bd20c061c
No known key found for this signature in database
GPG Key ID: 7C523F5FBABE80E7

View File

@ -236,7 +236,7 @@ bool CKey::Derive(CKey& keyChild, ChainCode &ccChild, unsigned int nChild, const
}
memcpy(ccChild.begin(), vout.data()+32, 32);
memcpy((unsigned char*)keyChild.begin(), begin(), 32);
bool ret = secp256k1_ec_privkey_tweak_add(secp256k1_context_sign, (unsigned char*)keyChild.begin(), vout.data());
bool ret = secp256k1_ec_seckey_tweak_add(secp256k1_context_sign, (unsigned char*)keyChild.begin(), vout.data());
keyChild.fCompressed = true;
keyChild.fValid = ret;
return ret;