Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/client error handling and incorporate latest Sia consensus changes #10

Open
wants to merge 16 commits into
base: release_candidate_1
Choose a base branch
from

Conversation

Alrighttt
Copy link
Member

Generalizes the error handling of ApiClient trait. The newly introduced WasmClientError and NativeClientError types follow the same pattern as Sia errors within KDF. They are purposefully verbose to allow each variant to represent a unique logical path.

Simplifies ApiClient trait by consolidating methods.

Incorporates changes to Sia consensus from:
SiaFoundation/core#224
SiaFoundation/core#220

add Hash256 doc comment
remove `HelperError` in favor of individual error enums for each helper. Previous design made it extremely difficult to do clean error handling in case one helper called another.
renames wasm::Client -> wasm::WasmClient
…KDF module - ie, each logic path is represented verbosely with a unique error variant
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.

1 participant