Enabled and fixed compiler warnings. (#359)

This commit is contained in:
Ravin Perera
2022-01-28 16:03:34 +05:30
committed by GitHub
parent cf695af30b
commit 5cef95c9f6
28 changed files with 132 additions and 102 deletions

View File

@@ -29,10 +29,10 @@ namespace crypto
// Currently using ed25519. So append prefix byte to represent that.
pubkey.resize(crypto_sign_ed25519_PUBLICKEYBYTES + 1);
pubkey[0] = KEYPFX_ed25519;
pubkey[0] = crypto::KEYPFX_ed25519;
seckey.resize(crypto_sign_ed25519_SECRETKEYBYTES + 1);
seckey[0] = KEYPFX_ed25519;
seckey[0] = crypto::KEYPFX_ed25519;
crypto_sign_ed25519_keypair(
reinterpret_cast<unsigned char *>(pubkey.data() + 1), // +1 to skip the prefix byte.