chapter266, [SORA][SORA Network] [fixed] prevent to accept in the pubkey that is infinity by the secp256k1_ge.

We are implementing BIP32 and BIP66.
Therefore, we will implement to use OpenSSL for random wallet and secp256k1 (libsecp256k1) for HD wallet.

This leaves you with the option of using a random wallet if you don’t want to be affected by the stricter DER signatures.
Certainly, for PoW reward, a random wallet is enough.

By the way, we implemented secp256k1 in CPubKey, and there was something that was worried about.
When secp256k1_ge is infinity, error checking is no opetrate and that bytes array is accepted as a public key as it is.
So we put in some error handling and put in the code to disable.

pubkey.h
https://github.com/FromHDDtoSSD/SorachanCoin-qt/blob/develop/src/key/pubkey.h

pubkey.cpp
https://github.com/FromHDDtoSSD/SorachanCoin-qt/blob/develop/src/key/pubkey.cpp

暗号通貨短編