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

Get rid of bcrypto dependency #693

Merged
merged 3 commits into from
Sep 19, 2023
Merged

Get rid of bcrypto dependency #693

merged 3 commits into from
Sep 19, 2023

Commits on Sep 6, 2023

  1. Get rid of bcrypto dependency

    We use `bcrypto` to compute hashes, but since this library is a bit
    problematic, here we replace it with hashing algorithms from the
    `ethers` library. `ethers` has no `hash160` algorithm but under the hood
    `HASH160 = RIPEMD160(SHA256(X))` so it's possible to compute `hash160`
    using `ethers`.
    r-czajkowski committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    e022bdc View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Add basic tests to compute hashes functions

    Adds basic tests to `computeHash160`, `computeHash256` and `computeScriptHash`
    functions so that we are sure they are working exactly the same as when we used
    `bcrypto` library inside them.
    michalsmiarowski committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    85c1a45 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c2567c6 View commit details
    Browse the repository at this point in the history