Skip to content

Refactor bs::ops::open to depend on traits instead of callbacks #8

@dhuseby

Description

@dhuseby

The code here https://github.com/cryptidtech/bs/blob/main/crates/bs/src/ops/open/mod.rs should be refactored to depend on traits for the key loading and the payload signing.

Going with traits allows us to have a cleaner separation of concerns. Also, we need to embrace async since loading a key and signing a payload might be done remotely and shouldn't be blocking operations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions