Merge pull request 'zomp' (#1) from zomp into master

Reviewed-on: #1
This commit is contained in:
Craig Everett 2025-01-21 12:56:42 +09:00
commit 89efd84d5e
9 changed files with 23 additions and 22 deletions

1
Emakefile Normal file
View File

@ -0,0 +1 @@
{"src/*", [debug_info, {i, "include/"}, {outdir, "ebin/"}]}.

View File

View File

@ -1,9 +1,11 @@
Erl-Base58
==========
Version: 0.1.0
Version: 0.1.1
This is a simple implementation of a Base58 encoder and decoder for Integers and Binaries. Base58 is most prevalent in the [Bitcoin](http://bitcoin.org) virtual currency system. The Base58 representation makes use of a representation that is mostly free from ambiguous characters, this makes is easier for a human to verify that the Base58 string is correct.
This is a simple implementation of a Base58 encoder and decoder for Integers and Binaries.
Base58 is most prevalent in cryptocurrency systems.
The Base58 representation makes use of a representation that is mostly free from ambiguous characters, this makes is easier for a human to verify that the Base58 string is correct.
Usage
-----

View File

@ -1,8 +0,0 @@
#!/bin/bash
git clone https://github.com/basho/rebar.git rebar-tmp
cd rebar-tmp
make
cp rebar ..
cd ..
rm -rf rebar-tmp

BIN
rebar vendored

Binary file not shown.

View File

@ -1 +0,0 @@
{plugins, [rebar3_hex]}.

View File

@ -1,11 +0,0 @@
{application, base58,
[
{description, "A simple Erlang module to perform Base58 encoding and decoding"},
{vsn, "0.0.1"},
{registered, []},
{applications, [
kernel,
stdlib
]},
{licenses, ["Apache-2.0"]},
{links, [{"GitHub", "https://github.com/aeternity/erl-base58"}]}]}.

View File

@ -7,6 +7,7 @@
%%
%% This module is distributed under an Apache 2.0 Licence
-module(base58).
-vsn("0.1.1").
-export([check_base58/1, binary_to_base58/1, integer_to_base58/1, base58_to_integer/1, base58_to_binary/1]).
%% @doc This is an internal function that encodes the equivalent base58 number

17
zomp.meta Normal file
View File

@ -0,0 +1,17 @@
{name,"Erlang Base58"}.
{type,lib}.
{modules,[]}.
{prefix,none}.
{author,"David Ellefsen"}.
{desc,"A simple implementation of a Base58 encoder and decoder for Integers and Binaries."}.
{package_id,{"otpr","erl_base58",{0,1,1}}}.
{deps,[]}.
{key_name,none}.
{a_email,[]}.
{c_email,[]}.
{copyright,"David Ellefsen"}.
{file_exts,[]}.
{license,"Apache-2.0"}.
{repo_url,"https://git.qpq.swiss/QPQ-AG/erl-base58"}.
{tags,["base58"]}.
{ws_url,[]}.