-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from WeBankFinTech/feature/optimize-zkp-usage
Feature/optimize zkp usage
- Loading branch information
Showing
12 changed files
with
160 additions
and
43 deletions.
There are no files selected for viewing
Binary file not shown.
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,74 @@ | ||
/* | ||
* Copyright© (2018-2020) WeBank Co., Ltd. | ||
* | ||
* This file is part of weid-java-sdk. | ||
* | ||
* weid-java-sdk is free software: you can redistribute it and/or modify it under the terms of | ||
* the GNU Lesser General Public License as published by the Free Software Foundation, either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* weid-java-sdk is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License along with | ||
* weid-java-sdk. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.webank.weid.constant; | ||
|
||
/** | ||
* CPT type enum. | ||
* | ||
* @author tonychen 2020年2月17日 | ||
*/ | ||
public enum CptType { | ||
|
||
/** | ||
* original type, used to create original type credential. | ||
*/ | ||
ORIGINAL(0, "original"), | ||
|
||
/** | ||
* zkp type, used to create zkp type credential. | ||
*/ | ||
ZKP(1, "zkp"); | ||
|
||
/** | ||
* type code. | ||
*/ | ||
private Integer code; | ||
/** | ||
* type name. | ||
*/ | ||
private String name; | ||
|
||
/** | ||
* constructor. | ||
* | ||
* @param code cpt type code | ||
* @param name cpt type name | ||
*/ | ||
CptType(Integer code, String name) { | ||
this.code = code; | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* get type code. | ||
* | ||
* @return type code | ||
*/ | ||
public Integer getCode() { | ||
return this.code; | ||
} | ||
|
||
/** | ||
* get type name. | ||
* | ||
* @return type name | ||
*/ | ||
public String getName() { | ||
return this.name; | ||
} | ||
} |
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
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.