snt-gas-relay/test-dapp/contracts/identity/ERC735.sol

23 lines
1.3 KiB
Solidity
Raw Normal View History

pragma solidity ^0.4.21;
2018-01-09 01:00:07 +00:00
contract ERC735 {
event ClaimRequested(bytes32 indexed claimRequestId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);
event ClaimAdded(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);
event ClaimRemoved(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);
event ClaimChanged(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);
2018-01-09 01:00:07 +00:00
struct Claim {
uint256 topic;
uint256 scheme;
2018-01-09 01:00:07 +00:00
address issuer; // msg.sender
bytes signature; // this.address + topic + data
bytes data;
2018-01-09 01:00:07 +00:00
string uri;
}
function getClaim(bytes32 _claimId) public view returns(uint256 topic, uint256 scheme, address issuer, bytes signature, bytes data, string uri);
function getClaimIdsByTopic(uint256 _topic) public view returns(bytes32[] claimIds);
function addClaim(uint256 _topic, uint256 _scheme, address _issuer, bytes _signature, bytes _data, string _uri) public returns (bytes32 claimRequestId);
2018-01-09 01:00:07 +00:00
function removeClaim(bytes32 _claimId) public returns (bool success);
}