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

Re-export secp256k1::SecretKey. #633

Merged
merged 5 commits into from
Jun 5, 2023

Commits on May 9, 2022

  1. Re-export secp256k1::SecretKey.

    `secp256k1::SecretKey` is required in order to use the offline signing functionality but it's not re-exported. 
    
    This is a simple PR that re-exports the `SecretKey` which allows the following:
    
    ```rust
    let s = web3::SecretKey::from_str("XYZ");
    web3.accounts().sign_transaction(my_tx, &prvk).await?;
    ```
    
    without having to import `secp256k1` as an explicit dependency alongside `web3`.
    dandanlen authored May 9, 2022
    Configuration menu
    Copy the full SHA
    c300468 View commit details
    Browse the repository at this point in the history
  2. Update the example

    dandanlen authored May 9, 2022
    Configuration menu
    Copy the full SHA
    8de6077 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2023

  1. Configuration menu
    Copy the full SHA
    0a5870b View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Configuration menu
    Copy the full SHA
    303251b View commit details
    Browse the repository at this point in the history
  2. fix: reorder imports

    dandanlen authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    7c543e5 View commit details
    Browse the repository at this point in the history