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

22 lines
407 B
C
Raw Normal View History

2016-11-03 15:22:17 +00:00
//
// peer.h
// c-ipfs
//
// Created by John Jones on 11/3/16.
// Copyright © 2016 JMJAtlanta. All rights reserved.
//
#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 */