Skip to content

feat(wazero): Add v2 runtime functions#3428

Merged
dimartiro merged 48 commits intodiego/trieV1/versioningfrom
diego/trieV1/runtime-functions
Sep 14, 2023
Merged

feat(wazero): Add v2 runtime functions#3428
dimartiro merged 48 commits intodiego/trieV1/versioningfrom
diego/trieV1/runtime-functions

Conversation

@dimartiro
Copy link
Contributor

@dimartiro dimartiro commented Aug 8, 2023

Changes

This PR is a continuation of #2664

Changes

  • Implement runtime functions
    • ext_trie_blake2_256_root_version_2
    • ext_trie_blake2_256_ordered_root_version_2
    • ext_trie_blake2_256_verify_proof_version_2
    • ext_default_child_storage_root_version_2
    • ext_storage_root_version_2
  • Add new test cases

Blocked by #3433

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

#2418

Primary Reviewer

@timwu20

@dimartiro dimartiro force-pushed the diego/trieV1/runtime-functions branch from f609a18 to 76767e9 Compare August 9, 2023 14:45
@dimartiro dimartiro changed the title feat(trie): Add v2 runtime functions feat(wazero): Add v2 runtime functions Aug 10, 2023
@dimartiro dimartiro changed the base branch from development to diego/trieV1/versioning August 16, 2023 14:48
testinput := []string{"dimartiro", "was", "here", "??"}
encInput, err := scale.Marshal(testinput)
require.NoError(t, err)
encInput[0] = encInput[0] >> 1
Copy link
Member

Choose a reason for hiding this comment

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

Why do you right shift the first index of encInput?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually a very good question, I based this in the one Elizabeth made for v1. I asked Tim about this right shift a few days ago to see if he knows anything. Will investigate it more about it

@dimartiro dimartiro merged commit 16ea637 into diego/trieV1/versioning Sep 14, 2023
@dimartiro dimartiro deleted the diego/trieV1/runtime-functions branch September 14, 2023 13:32
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.

2 participants