sway/forc-util/tests/fixtures/bytecode
Sophie Dankel 6245ee6018
feat: add function for generating bytecode identifier (#6674)
## Description

Depends on https://github.com/FuelLabs/sway/pull/6522
Related https://github.com/FuelLabs/forc.pub/issues/16

Adds a function, `get_bytecode_id` that generates a sha256 hash of the
bytecode with the configurables section of the bytecode removed. This
will be used for indexing and lookups of the corresponding ABIs for
contracts, predicates, and scripts in the package registry (forc.pub).

## Checklist

- [ ] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] If my change requires substantial documentation changes, I have
[requested support from the DevRel
team](https://github.com/FuelLabs/devrel-requests/issues/new/choose)
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [ ] I have requested a review from the relevant team or maintainers.

---------

Co-authored-by: Vaivaswatha Nagaraj <vaivaswatha.nagaraj@fuel.sh>
Co-authored-by: IGI-111 <igi-111@protonmail.com>
Co-authored-by: Marcos Henrich <marcoshenrich@gmail.com>
Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
2024-11-19 08:49:41 -08:00
..
debug-configurable_constants-missing-offset.bin feat: add function for generating bytecode identifier (#6674) 2024-11-19 08:49:41 -08:00
debug-configurable_constants.bin feat: add function for generating bytecode identifier (#6674) 2024-11-19 08:49:41 -08:00
debug-counter.bin feat: add function for generating bytecode identifier (#6674) 2024-11-19 08:49:41 -08:00
release-configurable_constants.bin feat: add function for generating bytecode identifier (#6674) 2024-11-19 08:49:41 -08:00
release-counter.bin feat: add function for generating bytecode identifier (#6674) 2024-11-19 08:49:41 -08:00