项目介绍:
The RLP rule is based on the source code of Ethereum.HOW TO USE
- import "RLP-iOS.h"
复制代码
First we should change ‘int’,’long’ or ‘NSString’ into NSData,I have provided tools ‘DataUtil’ to convert.
- NSData *data = [DataUtil longToData:98765432123456789];
复制代码
Then use ‘RLPUtil’ to start RLP
- NSData *element = [RLPUtil encodeElement:data];NSData *list = [RLPUtil encodeList:@[element]];
复制代码
下载地址