Go to the source code of this file.
Macros | |
#define | GNUNET_RECLAIM_DID_METHOD_PREFIX "did:gns:" |
Functions | |
char * | DID_ego_to_did (struct GNUNET_IDENTITY_Ego *ego) |
Create a DID string from an ego in the format did:gns:<pubkey> More... | |
enum GNUNET_GenericReturnValue | DID_public_key_from_did (const char *did, struct GNUNET_CRYPTO_PublicKey *pk) |
Extract the public key from a DID in the format did:gns:<pubkey> More... | |
char * DID_ego_to_did | ( | struct GNUNET_IDENTITY_Ego * | ego | ) |
Create a DID string from an ego in the format did:gns:<pubkey>
ego | the Ego to use |
Definition at line 34 of file did_misc.c.
References GNUNET_asprintf(), GNUNET_CRYPTO_public_key_to_string(), GNUNET_free, GNUNET_IDENTITY_ego_get_public_key(), GNUNET_RECLAIM_DID_METHOD_PREFIX, and pkey.
enum GNUNET_GenericReturnValue DID_public_key_from_did | ( | const char * | did, |
struct GNUNET_CRYPTO_PublicKey * | pk | ||
) |
Extract the public key from a DID in the format did:gns:<pubkey>
did | the DID parse |
pk | where to store the public key |
Definition at line 53 of file did_misc.c.
References did, GNUNET_CRYPTO_public_key_from_string(), GNUNET_OK, GNUNET_RECLAIM_DID_METHOD_PREFIX, GNUNET_SYSERR, and pk.