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

Generate addresses with bitcoinjs-lib #48

Merged
merged 2 commits into from
May 26, 2018

Conversation

ramontayag
Copy link
Collaborator

See issue with btcruby: oleganza/btcruby#32

@ramontayag ramontayag force-pushed the bitcoinjs_addr_gen-157893180 branch from c8bc1c3 to cfabb4e Compare May 26, 2018 05:13
@ramontayag ramontayag force-pushed the bitcoinjs_addr_gen-157893180 branch from cfabb4e to 7722266 Compare May 26, 2018 05:14
var scriptPubKey = bitcoin.script.scriptHash.output.encode(bitcoin.crypto.hash160(redeemScript))
var address = bitcoin.address.fromOutputScript(scriptPubKey)

console.log(address)
Copy link
Contributor

@iamajvillalobos iamajvillalobos May 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot to remove this :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to print out from the js file the address since Ruby app reads the output.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah cool, you are using the output in app/lib/btc/address_generator.rb 👍

@ramontayag ramontayag merged commit 526cd01 into master May 26, 2018
@ramontayag ramontayag deleted the bitcoinjs_addr_gen-157893180 branch May 26, 2018 05:34
@ramontayag ramontayag restored the bitcoinjs_addr_gen-157893180 branch October 29, 2018 09:40
@ramontayag ramontayag deleted the bitcoinjs_addr_gen-157893180 branch October 29, 2018 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants