[−][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
- Identifier (DID) of the transaction author as base58-encoded string. Actual request sender may differ if Endorser is used (look atappend_request_endorser
)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.