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

Commit 9569a43

Browse files
vihuxandkar
andauthored
Update src/ledger/v1/blockchain_ledger_poc_v3.erl
Co-authored-by: Siraaj Khandkar <[email protected]>
1 parent 684c189 commit 9569a43

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/ledger/v1/blockchain_ledger_poc_v3.erl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,18 @@ start_height(PoC) ->
8282
start_height(Height, PoC) ->
8383
PoC#poc_v3{start_height=Height}.
8484

85-
-spec verify(poc(), libp2p_crypto:pubkey_bin(), binary()) -> ok | {error, any()}.
85+
-spec verify(poc(), libp2p_crypto:pubkey_bin(), binary()) -> ok | {error, Reason}
86+
when
87+
Reason ::
88+
[
89+
{onion_key_hash , binary()},
90+
{txn_challenger , string()},
91+
{ledger_challenger, string()},
92+
{txn_blockhash , string()},
93+
{ledger_blockhash , string()},
94+
{equal_challenger , boolean()},
95+
{equal_blockhash , boolean()}
96+
].
8697
verify(PoC, Challenger, BlockHash) ->
8798
POCChallenger = ?MODULE:challenger(PoC),
8899
POCBlockHash = ?MODULE:block_hash(PoC),

0 commit comments

Comments
 (0)