Skip to content

Extend Koba Auth to Support Non-Local Signers #12

Description

@emnul

At the moment koba expects private keys to reside on the local file system, while this works for most use cases it doesn't account for cloud based signers or hardware wallet signers. I propose modifying the deployer::deploy function signature as follows:

pub async fn deploy(config: &Deploy, signer: Option<Signer>) -> eyre::Result<TransactionReceipt> 

Signer will take precedence over config.auth. Modifying the function signature in this way enables CLI users to continue using koba without any breaking changes and allows the use of custom signers for library users.

Happy to implement!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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