Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Update src/ledger/v1/blockchain_ledger_poc_v3.erl
Browse files Browse the repository at this point in the history
Co-authored-by: Siraaj Khandkar <[email protected]>
  • Loading branch information
vihu and xandkar authored May 18, 2022
1 parent 684c189 commit 9569a43
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/ledger/v1/blockchain_ledger_poc_v3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,18 @@ start_height(PoC) ->
start_height(Height, PoC) ->
PoC#poc_v3{start_height=Height}.

-spec verify(poc(), libp2p_crypto:pubkey_bin(), binary()) -> ok | {error, any()}.
-spec verify(poc(), libp2p_crypto:pubkey_bin(), binary()) -> ok | {error, Reason}
when
Reason ::
[
{onion_key_hash , binary()},
{txn_challenger , string()},
{ledger_challenger, string()},
{txn_blockhash , string()},
{ledger_blockhash , string()},
{equal_challenger , boolean()},
{equal_blockhash , boolean()}
].
verify(PoC, Challenger, BlockHash) ->
POCChallenger = ?MODULE:challenger(PoC),
POCBlockHash = ?MODULE:block_hash(PoC),
Expand Down

0 comments on commit 9569a43

Please sign in to comment.