Skip to content
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

Secondary Wallet Attestation Implementation #10

Open
sshubhamagg opened this issue Feb 17, 2025 · 0 comments
Open

Secondary Wallet Attestation Implementation #10

sshubhamagg opened this issue Feb 17, 2025 · 0 comments
Assignees

Comments

@sshubhamagg
Copy link
Member

  1. Implement attestation function:
function attestSecondaryWallet(
    uint256 id,
    address secondaryWallet,
    bytes memory primarySignature,
    bytes memory secondarySignature
) external onlyRegistrar

  1. Implement dual signature verification:
function verifyAttestationSignatures(
    uint256 id,
    address secondaryWallet,
    bytes memory primarySignature,
    bytes memory secondarySignature
) internal view returns (bool)

Requirements:

  1. ID must exist
  2. Secondary wallet must not be registered
  3. Both signatures must be valid

Events Emitted:

event AttestationCompleted(
    uint256 indexed id,
    address indexed primaryWallet,
    address indexed secondaryWallet
);

event AttestationFailed(
    uint256 indexed id,
    address secondaryWallet,
    string reason
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants