We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in EnrollmentTransaction.cs the publickKey is not checked as part of DeserializeExclusiveData.
in contrast, in RegisterTransaction.cs you do check and throw a FormatException.
compare RegisterTransaction.DeserializeExclusiveData line 70-72 Owner = ECPoint.DeserializeFrom(reader, ECCurve.Secp256r1); if (Owner.IsInfinity && AssetType != AssetType.SystemShare && AssetType != AssetType.SystemCoin) throw new FormatException();
to EnrollmentTransaction.DeserializeExclusiveData line 47 PublicKey = ECPoint.DeserializeFrom(reader, ECCurve.Secp256r1);
The text was updated successfully, but these errors were encountered:
As you know EnrollmentTransaction is marked as "Obsolete", it is no longer to be used any more. As an alternative, Validator.Register() in contract API will check the pubkey. See https://github.com/neo-project/neo/blob/master/neo/SmartContract/StateMachine.cs#L114
Sorry, something went wrong.
TryGetValue instead of ContainsKey and Get (neo-project#31)
TryGetValue
ContainsKey
Get
b1338d4
v2.9.3 (#31)
768b885
* Update packages reference * Fix claim (#34)
No branches or pull requests
in EnrollmentTransaction.cs the publickKey is not checked as part of DeserializeExclusiveData.
in contrast, in RegisterTransaction.cs you do check and throw a FormatException.
compare RegisterTransaction.DeserializeExclusiveData line 70-72
Owner = ECPoint.DeserializeFrom(reader, ECCurve.Secp256r1);
if (Owner.IsInfinity && AssetType != AssetType.SystemShare && AssetType != AssetType.SystemCoin)
throw new FormatException();
to EnrollmentTransaction.DeserializeExclusiveData line 47
PublicKey = ECPoint.DeserializeFrom(reader, ECCurve.Secp256r1);
The text was updated successfully, but these errors were encountered: