Skip to content

generateAppActionCommitment fixes#4678

Merged
Lezek123 merged 3 commits intoJoystream:apps-metaprotocolfrom
Lezek123:app-action-commitment
Mar 2, 2023
Merged

generateAppActionCommitment fixes#4678
Lezek123 merged 3 commits intoJoystream:apps-metaprotocolfrom
Lezek123:app-action-commitment

Conversation

@Lezek123
Copy link
Copy Markdown
Contributor

@Lezek123 Lezek123 commented Mar 1, 2023

  • Include new ownerType filed in app action commitment to simplify differentiation between different types of owners (member, curator group, channel)
  • Remove nonce and actionType fields from AppAction message. They don't actually need to be there, since the correct values are known by the QN, so they can be only included in the commitment/signature
  • ActionType and CreatorType enums are still included in App.proto for the purpose of standarizing the encoding of those values across different apps.
  • I simplified generateAppActionCommitment so that it doesn't rely on values like rawAction and rawAppActionMetadata being provided as Bytes. The Bytes type is @polkadot/types-specific and is harder to construct than Uint8Array (which is universal), as it requires a type registry, importing from @polkadot/types or @joystream/types library etc. Also now the encoidng of those values is more consistent with assets
  • Fixed a few other small issues

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
pioneer-testnet ⬜️ Ignored (Inspect) Mar 2, 2023 at 10:34AM (UTC)

Copy link
Copy Markdown
Contributor

@WRadoslaw WRadoslaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Leszek Wiesner and others added 2 commits March 2, 2023 11:34
Co-authored-by: Bartosz Dryl <drylbartosz@gmail.com>
Co-authored-by: Bartosz Dryl <drylbartosz@gmail.com>
@Lezek123 Lezek123 requested a review from drillprop March 2, 2023 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants