Function libindy_sys::indy_issuer_create_schema[][src]

pub unsafe extern "C" fn indy_issuer_create_schema(
    command_handle: indy_handle_t,
    issuer_did: *const c_char,
    name: *const c_char,
    version: *const c_char,
    attr_names: *const c_char,
    cb: indy_str_str_cb
) -> indy_error_t

Create credential schema entity that describes credential attributes list and allows credentials interoperability.

Schema is public and intended to be shared with all anoncreds workflow actors usually by publishing SCHEMA transaction to Indy distributed ledger.

It is IMPORTANT for current version POST Schema in Ledger and after that GET it from Ledger with correct seq_no to save compatibility with Ledger. After that can call indy_issuer_create_and_store_credential_def to build corresponding Credential Definition.

#Params command_handle: command handle to map callback to user context issuer_did: DID of schema issuer name: a name the schema version: a version of the schema attrs: a list of schema attributes descriptions cb: Callback that takes command result as parameter

#Returns schema_id: identifier of created schema schema_json: schema as json

#Errors Common* Anoncreds*