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

Added Base58 support, with tests. #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added Base58 support, with tests. #22

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 19, 2016

Summary:

  • Added very trivial Base58 support - more or less PoC (for basic encode/decode handling of Bitcoin addresses, BitMessage addresses, Ripple payment addresses, Flickr URLs, etc.).
  • Added Base58 test (also very trivial).
  • Improved tests.jl with printing comments.

_NOTE:_ May not completely suit for upstream, missing generalisation of functions (currently only Int -> String and vice versa), limited functionality for intended use with all sorts of addresses, as Int64 isn't big enough to handle all of decoded data. I intend to create an additional PR fixing this in the near future.

@randyzwitch randyzwitch mentioned this pull request Aug 4, 2016
for i in n
@test decode(Base58, encode(Base58, i)) == i
end
println("... [DONE]")
Copy link
Contributor

Choose a reason for hiding this comment

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

@vinctux, admittedly I'm not familiar with Base58....can you add a few tests as string literals that are independently verifiable? Right now, your tests are validating that encode/decode are inverses, but only implicitly that encode and decode return the expected values.

Thanks!

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.

1 participant