mop-flutter-sdk/ios/Classes/Api/MOP_smsign.m

22 lines
505 B
Dart
Raw Permalink Normal View History

2021-04-21 21:19:48 +08:00
//
// MOP_smsign.m
// mop
//
// Created by beetle_92 on 2021/4/21.
//
#import "MOP_smsign.h"
#import <FinApplet/FinApplet.h>
@implementation MOP_smsign
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel
{
NSLog(@"smsign");
NSString *signature = [[FATClient sharedClient] getSM3String:self.plainText];
NSLog(@"signature = %@", signature);
success(@{@"data": signature});
}
@end