public class ConfidentialUtil extends Object
| 构造器和说明 |
|---|
ConfidentialUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decrypt(String userKey,
byte[] oldOutput,
String txHash) |
static byte[] |
decryptReceiptData(byte[] data,
String txHexEncodedKey)
解密交易回执中的 Output、Log
格式:
|
static byte[] |
decryptSM4CBC_V1(String userSymKeySeed,
byte[] cipher,
String txHash) |
static Transaction |
decryptTransactionData(byte[] data,
String txHexEncodedKey)
解密链上被加密的 TEE 交易
格式 <16bits Header>
|
static byte[] |
keyGenerate(String userKey,
byte[] txHash) |
static byte[] |
keyGenerate(String userKey,
byte[] txHash,
HashTypeEnum hashTypeEnum) |
public static byte[] decrypt(String userKey, byte[] oldOutput, String txHash)
userKey - oldOutput - txHash - public static byte[] decryptReceiptData(byte[] data,
String txHexEncodedKey)
throws Exception
data - txHexEncodedKey - Exceptionpublic static byte[] decryptSM4CBC_V1(String userSymKeySeed, byte[] cipher, String txHash)
userSymKeySeed - cipher - txHash - public static byte[] keyGenerate(String userKey, byte[] txHash)
userKey - txHash - public static byte[] keyGenerate(String userKey, byte[] txHash, HashTypeEnum hashTypeEnum)
userKey - txHash - hashTypeEnum - public static Transaction decryptTransactionData(byte[] data, String txHexEncodedKey) throws Exception
data - txHexEncodedKey - ExceptionCopyright © 2022. All rights reserved.