paritytech / paritytech/revive

Support the `IPFS` hash type

Open
#379 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
102
Forks
26
Avg merge
1d 13h
Merged PRs (30d)
6

Description

Should be implemented same as in solc:

  • Check if PVM bytecode format allows for appending arbitrary data (presumably the case - implement the necessary change in PolkaVM if necessary).
  • Implement the feature:
    • Generate the IPFS hash
    • Append the CBOR header
  • Implement basic tests that ensure "Perfect verification"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the Solidity compiler behavior described in the issue with the PolkaVM bytecode format, checking whether arbitrary data can be appended. Trace the compiler path for metadata generation and CBOR output, then add the requested basic tests for “Perfect verification.” Done means the IPFS hash and CBOR header are appended correctly and those tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, solidity
Domain
blockchain, compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.