Add list of allowed packet data keys to Allocation
of TransferAuthorization
#5169
Labels
20-transfer
change: state machine breaking
Issues or PRs that break consensus (need to be released in at least a new minor version)
type: feature
New features, sub-features or integrations
Milestone
Thanks @colin-axner for the idea.
Currently a transfer grantee can submit a
MsgTransfer
with a non-empty memo field and any packet data. We should give the granter the possibility to specify what packet data keys they allow.Add here a constant string that holds the value that we expect if a granter wishes to allow any packet data key in the memo field of
MsgTransfer
:Add an extra field to message
Allocation
inauthz.proto
that may hold the keys allowed to be used in the memo field:Implement function to check that the memo field contains only allowed packet data keys:
Use the above function here:
The text was updated successfully, but these errors were encountered: