Revert me: debug print the msg/sig/signer

This commit is contained in:
Jason Rhinelander 2023-12-11 15:17:35 -04:00 committed by dr7ana
parent daa3a6fd94
commit 636de93b1a
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ namespace llarp
throw std::runtime_error{err};
}
log::error(log::Cat("FIXME"), "ABOUT TO VERIFY THIS: {}, WITH SIG {}, SIGNED BY {}",
oxenc::to_hex(msg), oxenc::to_hex(sig), oxenc::to_hex(router_id().ToHex()));
if (not crypto::verify(router_id(), msg, sig))
throw std::runtime_error{"Failed to verify RemoteRC signature"};
});