[Dev Feature] Method signature scanning to handle InvalidNativeSignature exceptions.#446
[Dev Feature] Method signature scanning to handle InvalidNativeSignature exceptions.#446do-gamer wants to merge 1 commit intodarkbot-reloaded:masterfrom
Conversation
|
I believe this has been the first time a method simply moved without its signature having changed at all, often its not as easy and you gotta doublecheck manually. We could also simply call methods without checking the signature, but its a security feature that it avoids calling if it changes, and a developer needs to look into it. |
|
Thank you for clarifying. Then, this code can only be used for my own purposes in my fork in a separate branch. I will take a look at how to print the methods in Tanos API, it would be helpful. |
|
@Pablete1234 I have explored the Tanos API library a bit and found that we already have the logs to detect the correct signature. It prints like this: utils::log("Signature: {} == {}\n", signature, flashSignature);Result in the log But first, we need to scan the correct index, as mentioned in the pull request. If it doesn't work, we can matching the signature from Thank you for pointing my thoughts in the right direction. |
Example of how it works (for the last fixed AD Offer issue):
We can simply take a new index from the log
[SignatureScan] match at index 283: 23(2626)1016321600and quickly fix the problem.
Also, to not always keep it enabled, there may be settings in the bot to enable it only if necessary.