cbor_decode_pubkey
if (cbor_decode_pubkey(item, &attcred->type, &attcred->pubkey) < 0) {
if (cbor_decode_pubkey(val, &cred->attcred.type,
int cbor_decode_pubkey(const cbor_item_t *, int *, void *);