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

Add function that returns Bitcoin address from output script #646

Merged
merged 6 commits into from
Jul 12, 2023

Commits on Jul 6, 2023

  1. Add getAddressFromScriptPubKey fn

    Add the new function that returns the Bitcoin address based on the
    script pub key placed on the output of a Bitcoin transaction.
    r-czajkowski committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    ea33c65 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Configuration menu
    Copy the full SHA
    8e628b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ceed1e View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Configuration menu
    Copy the full SHA
    51a63a7 View commit details
    Browse the repository at this point in the history
  2. Rename fn that converts script to BTC address

    The `scriptPubKey` is a field specific to transaction outputs but
    basically, this function converts any script to a Bitcoin address. Here
    we make this function more generic and rename to
    `createAddressFromOutputScript`.
    r-czajkowski committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    c6f94f6 View commit details
    Browse the repository at this point in the history
  3. Update createAddressFromOutputScript fn param

    Rename `scriptPubKey` to `script` and update docs. The `scriptPubKey` is
    a field specific to transaction outputs but basically, this function
    converts any script to a Bitcoin address. Here we also update type of
    this param to `Hex` instead of `string`.
    r-czajkowski committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    1c9b91b View commit details
    Browse the repository at this point in the history