-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functions to interfaces for FederatedAttestations and Escrow #9655
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
pragma solidity ^0.5.13; | ||
|
||
// TODO ASv2 add external, view, and only owner function sigs | ||
// separated into these three groups for clarity | ||
interface IFederatedAttestations { | ||
function registerAttestationAsIssuer( | ||
bytes32 identifier, | ||
address issuer, | ||
address account, | ||
uint64 issuedOn | ||
) external; | ||
function registerAttestation( | ||
bytes32 identifier, | ||
address issuer, | ||
address account, | ||
address signer, | ||
uint64 issuedOn, | ||
uint8 v, | ||
bytes32 r, | ||
bytes32 s | ||
) external; | ||
function revokeAttestation(bytes32, address, address) external; | ||
function batchRevokeAttestations( | ||
address issuer, | ||
bytes32[] calldata identifiers, | ||
address[] calldata accounts | ||
) external; | ||
|
||
// view functions | ||
function lookupAttestations(bytes32, address[] calldata) | ||
external | ||
view | ||
|
@@ -13,4 +35,26 @@ interface IFederatedAttestations { | |
uint64[] memory, | ||
uint64[] memory | ||
); | ||
function lookupIdentifiers(address, address[] calldata) | ||
external | ||
view | ||
returns (uint256[] memory, bytes32[] memory); | ||
|
||
function validateAttestationSig( | ||
bytes32 identifier, | ||
address issuer, | ||
address account, | ||
address signer, | ||
uint64 issuedOn, | ||
uint8 v, | ||
bytes32 r, | ||
bytes32 s | ||
) external view; | ||
function getUniqueAttestationHash( | ||
bytes32 identifier, | ||
address issuer, | ||
address account, | ||
address signer, | ||
uint64 issuedOn | ||
) external pure returns (bytes32); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure why, but it seems like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also not sure, though there is one in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure, no harm in adding :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depending on whether we go with named parameters or not, let's make all the functions in the file consistent; reminder to possibly add param names to the lookup functions