axelarnetwork / tofn

A threshold cryptography library in Rust
Apache License 2.0
112 stars 23 forks source link

Potential GMP support issue on ARM Mac OS #143

Closed milapsheth closed 4 months ago

milapsheth commented 3 years ago

GMP's release notes state that:

Issues with GMP 6.2.1: While we added support for Apple's new Arm based computers, our support has a problem. The problem is that Apple reserves CPU register x18, but GMP's mpn/arm64 assembly code uses that register. While GMP runs fine in our tests, we expect things to go awry in some execution situation. (Apple has not been kind enough to specify how they use x18. Therefore, we don't know what the consequences of using x18 might be.)

While we haven't observed any failures in practice, we should keep an eye out for any issues and new GMP releases that resolve this.