-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 更新PIR算法 * 更新PIR算法,隐藏部分敏感信息 * 清理ide自动编译class文件 * 清理所有.class * 更新PIR算法 * 更新PIR算法,隐藏部分敏感信息 * 清理ide自动编译class文件 * 清理所有.class --------- Co-authored-by: zachma(马晨) <[email protected]>
- Loading branch information
1 parent
97726a1
commit af6f5d9
Showing
36 changed files
with
756 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
java/ppc-pir-services/sdk/src/main/java/com/wedpr/pir/sdk/entity/body/ServiceConfigBody.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.wedpr.pir.sdk.entity.body; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @author zachma | ||
* @date 2024/9/3 | ||
*/ | ||
@Data | ||
public class ServiceConfigBody { | ||
private String datasetId; | ||
private String[] exists; | ||
private String[] values; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...pc-pir-services/sdk/src/main/java/com/wedpr/pir/sdk/entity/request/ClientAuthRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.wedpr.pir.sdk.entity.request; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @author zachma | ||
* @date 2024/9/3 | ||
*/ | ||
@Data | ||
public class ClientAuthRequest { | ||
String serviceId; | ||
String accessKeyId; | ||
} |
16 changes: 16 additions & 0 deletions
16
...-pir-services/sdk/src/main/java/com/wedpr/pir/sdk/entity/request/ClientDirectRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.wedpr.pir.sdk.entity.request; | ||
|
||
import com.wedpr.pir.sdk.entity.body.ServiceConfigBody; | ||
import java.util.List; | ||
import lombok.Data; | ||
|
||
/** | ||
* @author zachma | ||
* @date 2024/9/5 | ||
*/ | ||
@Data | ||
public class ClientDirectRequest { | ||
private String algorithmType; | ||
private List<String> searchIds; | ||
private ServiceConfigBody serviceConfigBody; | ||
} |
13 changes: 7 additions & 6 deletions
13
java/ppc-pir-services/sdk/src/main/java/com/wedpr/pir/sdk/entity/request/PirBaseRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
package com.wedpr.pir.sdk.entity.request; | ||
|
||
import com.wedpr.pir.sdk.enums.ParamEnum; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class PirBaseRequest { | ||
// 任务ID | ||
String jobId; | ||
// 任务类型(0: 查询存在性, 1: 查询对应值) | ||
String serviceId; | ||
|
||
String accessKeyId; | ||
|
||
String jobType; | ||
// 数据方机构id | ||
String participateAgencyId; | ||
// 数据集id | ||
String datasetId; | ||
// 发起方用户名 | ||
String jobCreator; | ||
// 匿踪算法类型(0: hash披露算法, 1: hash混淆算法) | ||
String jobAlgorithmType; | ||
// 查询范围 | ||
Integer obfuscationOrder = 9; | ||
|
||
Integer pirInvokeType = ParamEnum.JobMode.SDKMode.getValue(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...-pir-services/sdk/src/main/java/com/wedpr/pir/sdk/entity/response/ClientAuthResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.wedpr.pir.sdk.entity.response; | ||
|
||
import com.wedpr.pir.sdk.entity.body.ServiceConfigBody; | ||
import lombok.Data; | ||
|
||
/** | ||
* @author zachma | ||
* @date 2024/9/3 | ||
*/ | ||
@Data | ||
public class ClientAuthResponse { | ||
String code; | ||
String message; | ||
ServiceConfigBody data; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.