Merge pull request #20 from aeternity/update-enacl-api

Update to latest enacl with updated API
This commit is contained in:
seanhinde 2021-11-02 09:40:56 +01:00 committed by GitHub
commit ccdf1ef040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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).