Skip to content

Try errors - #37

Merged
freesig merged 1 commit into
mainfrom
freesig/try-errors
Oct 23, 2025
Merged

Try errors#37
freesig merged 1 commit into
mainfrom
freesig/try-errors

Conversation

@freesig

@freesig freesig commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

This propogates errors along streams.
It removes the state transition and extensions helpers in favor of a simple apply_transform function.
Try versions of key helpers have been added.
Sign and Proof now return their errors.

@freesig
freesig requested review from bengybade and nfurfaro October 22, 2025 22:45
@freesig
freesig force-pushed the freesig/try-errors branch 2 times, most recently from f534c9d to bbfdc47 Compare October 23, 2025 01:43

@nfurfaro nfurfaro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, only one question.

Comment thread crates/app/tests/app.rs Outdated
.map(move |block| {
state.access(|state| apply_transition(block, state, block_state_transition))
})
// .state_transition_sync(state, block_state_transition)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we still need this?

This propogates errors along streams.
It removes the state transition and extensions helpers in favor of a
simple `apply_transform` function.
Sign and Proof now return their errors.
Implements for `TryStream` instead of `Stream`

<!-- ps-id: 9db57b75-725d-436e-9755-9876db1c7316 -->
@freesig
freesig force-pushed the freesig/try-errors branch from bbfdc47 to 6427530 Compare October 23, 2025 19:58
@freesig
freesig merged commit 12bc2e7 into main Oct 23, 2025
9 checks passed
@freesig
freesig deleted the freesig/try-errors branch October 23, 2025 19:59
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