[][src]Function indyrs::ledger::build_schema_request

pub fn build_schema_request(
    submitter_did: &str,
    data: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>

Builds a SCHEMA request. Request to add Credential's schema.

Arguments

  • submitter_did - DID of the submitter stored in secured Wallet.
  • data - Credential schema. { id: identifier of schema attrNames: array of attribute name strings (the number of attributes should be less or equal than 125) name: Schema's name string version: Schema's version string, ver: Version of the Schema json }

Returns

Request result as json.