You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The single transaction in testnet block 49672 fails with a FAULT state when running neo-cli RC3 on OSX. The same transaction exits with a HALT state on Windows and Linux. This is due to using the system ECDSA (which was changed to here #2340) which does not support koblitz curves according to Microsoft where I tried to report the issue.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> Interop+AppleCrypto+AppleCommonCryptoCryptographicException: Unknown format in import.
at Interop.AppleCrypto.ImportEphemeralKey(ReadOnlySpan`1 keyBlob, Boolean hasPrivateKey)
at System.Security.Cryptography.EccSecurityTransforms.ImportKey(ECParameters parameters)
at System.Security.Cryptography.EccSecurityTransforms.ImportParameters(ECParameters parameters)
at System.Security.Cryptography.ECDsa.ECDsaImplementation.ECDsaSecurityTransforms.ImportParameters(ECParameters parameters)
at System.Security.Cryptography.ECDsa.Create(ECParameters parameters)
at Neo.Cryptography.Crypto.VerifySignature(ReadOnlySpan`1 message, ReadOnlySpan`1 signature, ECPoint pubkey) in /Users/erik/Documents/code/neo3-csharp-rc3/neo/src/neo/Cryptography/Crypto.cs:line 67
at Neo.Cryptography.Crypto.VerifySignature(ReadOnlySpan`1 message, ReadOnlySpan`1 signature, ReadOnlySpan`1 pubkey, ECCurve curve) in /Users/erik/Documents/code/neo3-csharp-rc3/neo/src/neo/Cryptography/Crypto.cs:line 89
at Neo.SmartContract.Native.CryptoLib.VerifyWithECDsa(Byte[] message, Byte[] pubkey, Byte[] signature, NamedCurve curve) in /Users/erik/Documents/code/neo3-csharp-rc3/neo/src/neo/SmartContract/Native/CryptoLib.cs:line 56
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Neo.SmartContract.Native.NativeContract.Invoke(ApplicationEngine engine, Byte version) in /Users/erik/Documents/code/neo3-csharp-rc3/neo/src/neo/SmartContract/Native/NativeContract.cs:line 196
To Reproduce
The following code creates the same data as the above mentioned transaction would at this failing piece of NEO code
Describe the bug
The single transaction in testnet block
49672
fails with aFAULT
state when running neo-cli RC3 on OSX. The same transaction exits with aHALT
state on Windows and Linux. This is due to using the system ECDSA (which was changed to here #2340) which does not support koblitz curves according to Microsoft where I tried to report the issue.To Reproduce
The following code creates the same data as the above mentioned transaction would at this failing piece of NEO code
Expected behavior
I expect neo-cli to produces identical results on OSX as it would on Linux and Windows.
Platform:
The text was updated successfully, but these errors were encountered: