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

Create bsv.Address from sCrypt PubKeyHash object #11

Open
msinkec opened this issue Jul 26, 2023 · 0 comments
Open

Create bsv.Address from sCrypt PubKeyHash object #11

msinkec opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@msinkec
Copy link
Contributor

msinkec commented Jul 26, 2023

If you use want to create an Address object from a PubKeyHash or Ripemd160, the fromHex will complain, that it needs 21 bytes (the first byte is the network prefix), even if you pass the network as a second parameter. Hence you always need to append the prefix manually.

This should be done automatically under the hood.

@msinkec msinkec added the enhancement New feature or request label Jul 26, 2023
@msinkec msinkec self-assigned this Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant