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 4328212c2c
commit 329acaf56c

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"};
});