Skip to content

Commit ae7e06d

Browse files
authored
Remove TeeEnclaveChallengeSignature and TestUtils classes (#137)
1 parent 1bc68c9 commit ae7e06d

File tree

4 files changed

+4
-117
lines changed

4 files changed

+4
-117
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ All notable changes to this project will be documented in this file.
3939
- Rename `ChainApp` and `ChainDataset` `uri` field to `multiaddr` to be consistent with Smart Contracts. (#127)
4040
- Move `ValidNonZeroEthereumAddress` from `iexec-common` to `iexec-commons-poco`. (#130)
4141
- Remove `ChainAppParams` and `IexecHubSmartContractValidator` classes as well as several methods. (#131)
42+
- Remove `TeeEnclaveChallengeSignature` and `TestUtils` classes. (#136)
4243

4344
### Dependency Upgrades
4445

src/main/java/com/iexec/commons/poco/tee/TeeEnclaveChallengeSignature.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/main/java/com/iexec/commons/poco/utils/BytesUtils.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@
1717
package com.iexec.commons.poco.utils;
1818

1919
import jakarta.xml.bind.DatatypeConverter;
20+
import lombok.AccessLevel;
21+
import lombok.NoArgsConstructor;
2022
import org.web3j.utils.Numeric;
2123

2224
import java.math.BigInteger;
2325
import java.util.Arrays;
2426
import java.util.regex.Pattern;
2527

28+
@NoArgsConstructor(access = AccessLevel.PRIVATE)
2629
public class BytesUtils {
2730

2831
// "0x0000000000000000000000000000000000000000"
@@ -31,21 +34,12 @@ public class BytesUtils {
3134
public static final int BYTES_32_SIZE = 32;
3235
//"0x0000000000000000000000000000000000000000000000000000000000000000"
3336
public static final String EMPTY_HEX_STRING_32 = BytesUtils.bytesToString(new byte[BYTES_32_SIZE]);
34-
/**
35-
* @deprecated Use {@link BytesUtils#EMPTY_HEX_STRING_32} instead.
36-
*/
37-
@Deprecated
38-
public static final String EMPTY_HEXASTRING_64 = BytesUtils.bytesToString(new byte[BYTES_32_SIZE]);
3937
private static final int BYTES_32_HEX_STRING_SIZE = BYTES_32_SIZE * 2; // 64
4038
private static final int BYTES_32_HEX_STRING_WITH_PREFIX_SIZE = 2 + BYTES_32_HEX_STRING_SIZE;// 2 + 64
4139
private static final String HEX_REGEX = "\\p{XDigit}+$";
4240
private static final Pattern HEX_PATTERN = Pattern.compile("(?i)^(0x)?" + HEX_REGEX);
4341
private static final Pattern HEX_WITH_PREFIX_PATTERN = Pattern.compile("^0x" + HEX_REGEX);
4442

45-
private BytesUtils() {
46-
throw new UnsupportedOperationException();
47-
}
48-
4943
public static String bytesToString(byte[] bytes) {
5044
return Numeric.toHexString(bytes);
5145
}

src/main/java/com/iexec/commons/poco/utils/TestUtils.java

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)