Skip to content

Commit

Permalink
fixzes from reviews + better -spec
Browse files Browse the repository at this point in the history
  • Loading branch information
klercker committed Dec 13, 2024
1 parent 802c66d commit 694e2e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aeser_hc.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%%-----------------------------------------------------------------------------
%%% @copyright (C) 2024, Aeternity Anstalt
%%% @doc
%%% Module for various Hypoerchain-related encoding tasks
%%% Module for various Hyperchain-related encoding tasks
%%% @end
%%%-----------------------------------------------------------------------------

Expand Down Expand Up @@ -53,12 +53,14 @@ decode_parent_pin_payload(Binary) ->
%% easily findable when notarized (in a spend tx to the leader of the last
%% epoch block) to the hyper chain.
%%=============================================================================
-spec encode_child_pin_payload(binary()) -> binary().
encode_child_pin_payload(TxHash) ->
<<"pin", TxHash/binary>>.

%%=============================================================================
%% Decode a pinning transacation notarization payload
%% =============================================================================
-spec decode_child_pin_payload(binary()) -> {ok, binary()} | {error, term()}.
decode_child_pin_payload(<<"pin", TxHash/binary>>) ->
{ok, TxHash};
decode_child_pin_payload(BadTxHash) ->
Expand Down

0 comments on commit 694e2e8

Please sign in to comment.