Function caprock_key_identifier_public

Function Documentation

caprock_error_t caprock_key_identifier_public(caprock_field_identifier tag, void *buffer, size_t *bufsize, caprock_key const *pubkey, caprock_identifier_hash_length hash_length)

Given a public key, create an identifier from it.

Parameters
Return values
  • CAPROCK_ERR_SUCCESS – On success.

  • CAPROCK_ERR_INVALID_VALUE – If any of the inputs are invalid.

  • CAPROCK_ERR_CODEC – If the identifier could not be serialized.