c-ipfs/include/ipfs/repo/config/peer.h

14 lines
282 B
C
Raw Permalink Normal View History

2016-11-03 15:22:17 +00:00
#ifndef peer_h
#define peer_h
/***
* given a public key, find the peer id
* @param public_key the public key in bytes
* @param id the resultant peer id
* @returns true(1) on success
*/
int repo_config_peer_id_from_public_key(char* public_key, char* id);
#endif /* peer_h */