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> | |
| enum GNUNET_GenericReturnValue | DID_public_key_from_did (const char *did, struct GNUNET_CRYPTO_BlindablePublicKey *pk) |
| Extract the public key from a DID in the format did:gns:<pubkey> | |
| 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_blindable_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_BlindablePublicKey * | 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 54 of file did_misc.c.
References did, GNUNET_CRYPTO_blindable_public_key_from_string(), GNUNET_OK, GNUNET_RECLAIM_DID_METHOD_PREFIX, GNUNET_SYSERR, and pk.