Skip to content

additional information for sign when returning false  #73

@reez

Description

@reez

Describe the enhancement
I'm wondering if anyone has potentially thought of any alternatives to the return type than what currently exists for sign Result<bool, SignerError>

Use case
I'm specifically thinking about a client app signing a transaction and getting bool of false back without additional information of why sign returned false.

Maybe they were expecting it to return false but maybe not; that client app may expect successful signing, not receive true or SignerError back, but get back false instead without extra context, on what could be considered an imporant operation for their app.

Additional context
Just looking for feedback/thoughts if there has been conversation about this historically/presently, and any possible thoughts.

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Type

No type

Projects

Status

Discussion

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions