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

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 name: Schema’s name string version: Schema’s version string, ver: Version of the Schema json }

Returns

Request result as json.