Merge pull request #20 from aeternity/update-enacl-api
Update to latest enacl with updated API
This commit is contained in:
commit
ccdf1ef040
@ -12,7 +12,7 @@
|
||||
|
||||
%% This is used just in one place, just to get blake2b_256 hash.
|
||||
{enacl, {git, "https://github.com/aeternity/enacl.git",
|
||||
{ref, "26180f4"}}}
|
||||
{ref, "793ddb5"}}}
|
||||
]}.
|
||||
|
||||
{plugins, [{rebar_aecuckooprebuilt_dep, {git, "https://github.com/aeternity/rebar3-cuckoo-prebuilt-plugin.git",
|
||||
|
@ -10,7 +10,7 @@
|
||||
0},
|
||||
{<<"enacl">>,
|
||||
{git,"https://github.com/aeternity/enacl.git",
|
||||
{ref,"26180f42c0b3a450905d2efd8bc7fd5fd9cece75"}},
|
||||
{ref,"793ddb502f7fe081302e1c42227dca70b09f8e17"}},
|
||||
0},
|
||||
{<<"hut">>,{pkg,<<"hut">>,<<"1.3.0">>},0}]}.
|
||||
[
|
||||
|
@ -14,6 +14,5 @@
|
||||
|
||||
-spec hash(hashable()) -> hash().
|
||||
hash(Bin) ->
|
||||
{ok, Hash} = enacl:generichash(?HASH_BYTES_SIZE, Bin),
|
||||
Hash.
|
||||
enacl:generichash(?HASH_BYTES_SIZE, Bin).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user