Update to latest enacle with updated API

This commit is contained in:
Sean Hinde 2021-11-01 18:31:59 +01:00
parent 0338cfc249
commit 0ff27e51c7
3 changed files with 3 additions and 4 deletions

View File

@ -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",

View File

@ -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}]}.
[

View File

@ -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).