Implements an example for "proof of location". This can be used to show that a secret location given as GPS coordinates on the advice stack is within a certain radius around another fixed location given as public input (or hardcoded).
For implementation details, see the description in the example itself.
I'm happy to receive feedback on anything! I know that a lot could be made more efficient but for time-reasons I left those parts as-is. But I'm sure there are some idioms I've missed regarding masm or things that could be done simpler or generally better. Thank you!
Description
Implements an example for "proof of location". This can be used to show that a secret location given as GPS coordinates on the advice stack is within a certain radius around another fixed location given as public input (or hardcoded).
For implementation details, see the description in the example itself.
I'm happy to receive feedback on anything! I know that a lot could be made more efficient but for time-reasons I left those parts as-is. But I'm sure there are some idioms I've missed regarding masm or things that could be done simpler or generally better. Thank you!