-
Notifications
You must be signed in to change notification settings - Fork 72
[Infra] Enable passing signatures to SC method calls #502
New issue
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
[Infra] Enable passing signatures to SC method calls #502
Conversation
| if (encodedSigs == null) | ||
| { | ||
| var sigs = (signatures ?? new string[0]).Select(s => Convert.FromBase64String(s)).ToArray(); | ||
| if (sigs.Any(s => s.Length != 65 || s[0] < 27 || s[0] > 34)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Magic numbers 👀 could these be made into constants?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
rowandh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just fix the magic numbers 👍
Required by #490. Also see stratisproject/Stratis.SmartContracts#14.