// // SovrinLedger.h // libsovrin // #import #import "SovrinTypes.h" @interface SovrinLedger : NSObject + (NSError *)signAndSubmitRequestWithWalletHandle:(SovrinHandle)walletHandle poolHandle:(SovrinHandle)poolHandle submitterDID:(NSString *)submitterDid requestJSON:(NSString *)request completion:(void (^)(NSError *error, NSString *requestResultJSON)) handler; + (NSError *)submitRequestWithPoolHandle:(SovrinHandle)poolHandle requestJSON:(NSString *)request completion:(void (^)(NSError *error, NSString *requestResultJSON)) handler; + (NSError *)buildGetDdoRequestWithSubmitterDid:(NSString *)submitterDid targetDID:(NSString *)targetDid completion:(void (^)(NSError *error, NSString *requestResultJSON)) handler; + (NSError *)buildNymRequestWithSubmitterDid:(NSString *)submitterDid targetDID:(NSString *)targetDid verkey:(NSString *)key alias:(NSString *)alias role:(NSString *)role completion:(void (^)(NSError *error, NSString *requestJSON)) handler; + (NSError *)buildAttribRequestWithSubmitterDid:(NSString *)submitterDid targetDID:(NSString *)targetDid hash:(NSString *)hash raw:(NSString *)raw enc:(NSString *)enc completion:(void (^)(NSError *error, NSString *requestJSON)) handler; + (NSError *)buildGetAttribRequestWithSubmitterDid:(NSString *)submitterDid targetDID:(NSString *)targetDid data:(NSString *)data completion:(void (^)(NSError *error, NSString *requestJSON)) handler; + (NSError *)buildGetNymRequestWithSubmitterDid:(NSString *)submitterDid targetDID:(NSString *)targetDid completion:(void (^)(NSError *error, NSString *requestJSON)) handler; + (NSError *)buildSchemaRequestWithSubmitterDid:(NSString *)submitterDid data:(NSString *)data completion:(void (^)(NSError *error, NSString *requestJSON)) handler; + (NSError *)buildGetSchemaRequestWithSubmitterDid:(NSString *)submitterDid dest:(NSString *)dest data:(NSString *)data completion:(void (^)(NSError *error, NSString *requestJSON)) handler; + (NSError *)buildClaimDefTxnWithSubmitterDid:(NSString *)submitterDid xref:(NSString *)xref signatureType:(NSString *)signatureType data:(NSString *)data completion:(void (^)(NSError *error, NSString *requestJSON)) handler; + (NSError *)buildGetClaimDefTxnWithSubmitterDid:(NSString *) submitterDid xref:(NSString *) xref signatureType:(NSString *) signatureType origin:(NSString *) origin completion:(void (^)(NSError *error, NSString *requestJSON)) handler; + (NSError *)buildNodeRequestWithSubmitterDid:(NSString *)submitterDid targetDid:(NSString *)targetDid data:(NSString *)data completion:(void (^)(NSError *error, NSString *requestJSON)) handler; @end