-
Notifications
You must be signed in to change notification settings - Fork 18
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 P2WPKH to Bitcoinex.Address.Encode #87
base: master
Are you sure you want to change the base?
add P2WPKH to Bitcoinex.Address.Encode #87
Conversation
test/address_test.exs
Outdated
@@ -249,5 +249,15 @@ defmodule Bitcoinex.AddressTest do | |||
script_hash = Base.decode16!("6d77fa9de297e9c536c6b23cfda1a8450bb5f765", case: :lower) | |||
assert "3BfqJjn7H2jsbKd2NVHGP4sQWQ2bQWBRLv" == Address.encode(script_hash, :mainnet, :p2sh) | |||
end | |||
|
|||
test "return true for encoding p2wpkh" do | |||
# script_hash = "0014751e76e8199196d454941c45d1b3a323f1433bd6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# script_hash = "0014751e76e8199196d454941c45d1b3a323f1433bd6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mix.exs
Outdated
@@ -34,7 +34,8 @@ defmodule Bitcoinex.MixProject do | |||
{:timex, "~> 3.1"}, | |||
{:decimal, "~> 1.0 or ~> 2.0"}, | |||
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, | |||
{:benchee, ">= 1.0.0", only: :dev} | |||
{:benchee, ">= 1.0.0", only: :dev}, | |||
{:binary, "~> 0.0.5"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious as to why we'd add a dependency that will do a pass through to :binary.bin_to_list/1
?
Seem's like we can remove the dependency and call :binary.bin_to_list/1
directly, am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
407bdae
to
eb8cf16
Compare
Resolves #82