-
Notifications
You must be signed in to change notification settings - Fork 7
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
[PLA-1931] Support require signature #60
[PLA-1931] Support require signature #60
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
I will create another PR for unit test, need to check with leo how to update local network |
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.
I believe you can add a validation in the field to be a hexadecimal string of 32 size.
Do we have an existing rule for that or checking strlen with size 32 is enough? |
There is a hex rule on platform core that you can pass the size. |
I've had this but can't seem to make it pass. Is this correct?
|
It is just ValidHex(32) or ValidHex(16), I don't remember if the rule considers bytes from the top of my head...... uint32 would be the size of an uint32 variable... Btw it is a fixed size, not a size limit |
PR Type
Enhancement
Description
require_signature
and itssignature
field inlang/en/input_type.php
.requireSignature
field to theDispatchRuleInputType
GraphQL input type.RequireSignatureInputType
class with defined attributes and fields.RequireSignatureParams
'stoArray
method to return the signature.RequireSignatureParams
to the list of imports and includedrequireSignature
handling ingetDispatchRulesParams
method inSubstrate.php
.Changes walkthrough 📝
input_type.php
Add descriptions for require_signature fields
lang/en/input_type.php
require_signature
and itssignature
field.DispatchRuleInputType.php
Add requireSignature field to DispatchRuleInputType
src/GraphQL/Types/Input/DispatchRuleInputType.php
requireSignature
field to the GraphQL input type.RequireSignatureInputType.php
Create RequireSignatureInputType class
src/GraphQL/Types/Input/RequireSignatureInputType.php
RequireSignatureInputType
class.RequireSignatureInputType
.Substrate.php
Add requireSignature handling in getDispatchRulesParams
src/Services/Blockchain/Implemetations/Substrate.php
RequireSignatureParams
to the list of imports.requireSignature
handling ingetDispatchRulesParams
method.RequireSignatureParams.php
Fix return value in RequireSignatureParams toArray method
src/Models/Substrate/RequireSignatureParams.php
toArray
method to return the signature.