You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
688 B

  1. pragma solidity 0.4;
  2. contract DarkID {
  3. struct IdStruct {
  4. string pubK;
  5. string date;
  6. string hashed;
  7. string unblindedSig;
  8. string serverVerifier;
  9. string signerID;
  10. }
  11. IdStruct public ID;
  12. function DarkID(string _pubK, string _hashed, string _unblindedSig, string _serverVerifier, string _signerID) public {
  13. ID = IdStruct(_pubK, "this will be the date", _hashed, _unblindedSig, _serverVerifier, _signerID);
  14. }
  15. function getDarkID() public constant returns(string, string, string, string, string, string) {
  16. return (ID.pubK, ID.date, ID.hashed, ID.unblindedSig, ID.serverVerifier, ID.signerID);
  17. }
  18. }