Skip to content
Snippets Groups Projects
Commit fe298185 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Add sign check

parent 955bd379
No related branches found
No related tags found
1 merge request!24Support 3689
...@@ -232,6 +232,10 @@ static int s_callback_event_verify(dap_chain_cs_dag_t * a_dag, dap_chain_cs_dag_ ...@@ -232,6 +232,10 @@ static int s_callback_event_verify(dap_chain_cs_dag_t * a_dag, dap_chain_cs_dag_
} }
dap_enc_key_t * l_key = dap_sign_to_enc_key( l_sign); dap_enc_key_t * l_key = dap_sign_to_enc_key( l_sign);
if ( l_key == NULL){
log_it(L_WARNING, "Event's sign has no any key");
return -5;
}
dap_chain_addr_fill (&l_addr,l_key,&a_dag->chain->net_id ); dap_chain_addr_fill (&l_addr,l_key,&a_dag->chain->net_id );
dap_enc_key_delete (l_key); // TODO cache all this operations to prevent useless memory copy ops dap_enc_key_delete (l_key); // TODO cache all this operations to prevent useless memory copy ops
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment