Skip to content

docs: add B512 type documentation#3958

Open
airope wants to merge 1 commit intoFuelLabs:masterfrom
airope:feat/document-b512-sdk-issue-3241
Open

docs: add B512 type documentation#3958
airope wants to merge 1 commit intoFuelLabs:masterfrom
airope:feat/document-b512-sdk-issue-3241

Conversation

@airope
Copy link

@airope airope commented Mar 3, 2026

Closes #3241

Adds comprehensive documentation for the B512 type including:

  • Overview and use cases (signatures, public keys)
  • Code examples with region markers
  • Creating and converting B512 values
  • Contract integration examples

Follows the same pattern as the B256 documentation.

@cursor
Copy link

cursor bot commented Mar 3, 2026

PR Summary

Low Risk
Low risk documentation-only change; no runtime or protocol logic is modified. Main risk is broken snippet includes or minor inaccuracies in examples.

Overview
Updates the B512 docs to clearly define its size/representation and highlight common use cases (signatures, public keys), and reorganizes the guide around SDK usage, contract interaction, and Sway usage.

Adds a new Sway snippet file (sway-b512-examples.sw) demonstrating creating a B512 from two b256 halves, passing it through a function, and using it with ec_recover_address.

Written by Cursor Bugbot for commit 42b0b9b. This will update automatically on new commits. Configure here.

@github-actions github-actions bot added the docs Requests pertinent to documentation label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla:signed docs Requests pertinent to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation for B512

1 participant