arnaucube
arnaucube/darkID-prototypePublic Self-hosted repository
darkID-prototype/eth/darkID_contract.sol
eth/darkID_contract.solRaw
 1pragma solidity 0.4;
 2
 3
 4contract DarkID {
 5
 6    struct IdStruct {
 7        string pubK;
 8        string date;
 9        string hashed;
10        string unblindedSig;
11        string serverVerifier;
12        string signerID;
13    }
14
15
16    IdStruct public ID;
17
18
19    function DarkID(string _pubK, string _hashed, string _unblindedSig, string _serverVerifier, string _signerID) public {
20        ID = IdStruct(_pubK, "this will be the date", _hashed, _unblindedSig, _serverVerifier, _signerID);
21    }
22
23
24    function getDarkID() public constant returns(string, string, string, string, string, string) {
25        return (ID.pubK, ID.date, ID.hashed, ID.unblindedSig, ID.serverVerifier, ID.signerID);
26    }
27}