交易无法解码:无法恢复 secp256k1 密钥:计算出的 Rx 大于曲线 P

transaction could not be decoded: could not recover secp256k1 key: calculated Rx is larger than curve P

我在尝试编译 solidity 合约时遇到以下错误:

transaction could not be decoded: could not recover secp256k1 key: calculated Rx is larger than curve P

就我而言,将 package.json 中 @truffle/hdwallet-provider 的版本从 1.2.4 降级到 1.2.3 有帮助:

"@truffle/hdwallet-provider": "1.2.3",

同样的问题,我按照这个答案解决了here

您需要将 @truffle/hdwallet-provider 降级到版本 1.0.40