Package it.unibo.ds.chainvote.asset
Class OneTimeCodeAsset
java.lang.Object
it.unibo.ds.chainvote.asset.OneTimeCodeAsset
Hyperledger Fabric
OneTimeCode
asset.-
Constructor Summary
ConstructorDescriptionOneTimeCodeAsset
(String electionId, String userId, it.unibo.ds.chainvote.codes.OneTimeCode code) Creates a new asset. -
Method Summary
-
Constructor Details
-
OneTimeCodeAsset
public OneTimeCodeAsset(@JsonProperty("electionId") String electionId, @JsonProperty("userId") String userId, @JsonProperty("code") it.unibo.ds.chainvote.codes.OneTimeCode code) Creates a new asset.- Parameters:
electionId
- the election identifieruserId
- the user identifiercode
- the code to be associated to the given election and user
-
-
Method Details