Skip to content

Commit

Permalink
[#287] Move WebAuthnVerifier to passkey package
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Mar 5, 2024
1 parent d778646 commit 2b3d60b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions modules/4337/contracts/Imports.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.8.0;

import {P256Verifier} from "@safe-global/safe-passkey/contracts/verifiers/P256Verifier.sol";
import {WebAuthnVerifier} from "@safe-global/safe-passkey/contracts/verifiers/WebAuthnVerifier.sol";
2 changes: 1 addition & 1 deletion modules/4337/contracts/experimental/WebAuthnSigner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {SignatureValidatorConstants} from "./SignatureValidatorConstants.sol";
import {IUniqueSignerFactory} from "./SafeSignerLaunchpad.sol";
import {SignatureValidator} from "./SignatureValidator.sol";
import {SignatureValidatorConstants} from "./SignatureValidatorConstants.sol";
import {IWebAuthnVerifier, WebAuthnConstants} from "./verifiers/WebAuthnVerifier.sol";
import {IWebAuthnVerifier, WebAuthnConstants} from "@safe-global/safe-passkey/contracts/verifiers/WebAuthnVerifier.sol";

struct SignatureData {
bytes authenticatorData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity >=0.8.0;

import {SignatureValidator} from "./SignatureValidator.sol";
import {IWebAuthnVerifier, WebAuthnConstants} from "./verifiers/WebAuthnVerifier.sol";
import {IWebAuthnVerifier, WebAuthnConstants} from "@safe-global/safe-passkey/contracts/verifiers/WebAuthnVerifier.sol";

/**
* @title WebAuthnSingletonSigner
Expand Down
3 changes: 2 additions & 1 deletion modules/4337/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
}
},
"dependencies": {
"@safe-global/safe-contracts": "^1.4.1"
"@safe-global/safe-contracts": "^1.4.1",
"@safe-global/safe-passkey": "^0.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* solhint-disable payable-fallback */
pragma solidity >=0.8.0;

import {FCL_ecdsa} from "../../vendor/FCL/FCL_ecdsa.sol";
import {FCL_ecdsa} from "../vendor/FCL/FCL_ecdsa.sol";

/**
* @title P256VerifierWithFallback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pragma solidity >=0.8.0;

import {P256Wrapper} from "./P256Wrapper.sol";
import {Base64Url} from "../../vendor/FCL/utils/Base64Url.sol";
import {Base64Url} from "../vendor/FCL/utils/Base64Url.sol";

/**
* @title WebAuthnConstants
Expand Down

0 comments on commit 2b3d60b

Please sign in to comment.