@@ -5,12 +5,36 @@ pragma solidity ^0.8.0;
5
5
import {Signature} from "../types/Signature.sol " ;
6
6
import {uint128x2} from "../types/uint128x2.sol " ;
7
7
8
+ interface IDIDSigners {
9
+ function authenticateHumanIDv1 (
10
+ bytes32 exposureReportID ,
11
+ uint128x2 weightThresholdAndSignatureTs ,
12
+ bytes32 commitmentR ,
13
+ Signature[3 ] calldata sigs
14
+ ) external view ;
15
+
16
+ function authenticateHumanIDv1 (
17
+ bytes32 humanID ,
18
+ uint128x2 weightThresholdAndSignatureTs ,
19
+ bytes32 commitmentR ,
20
+ Signature[5 ] calldata sigs
21
+ ) external view ;
22
+
23
+ /**
24
+ * Maps a signer node address to a bit packed struct.
25
+ */
26
+ function signerInfo (address signer ) external view returns (SignerInfo);
27
+ }
28
+
29
+ interface IDIDSignersExposureReport {
30
+ function reportExposure (bytes32 exposureReportID , uint256 signatureTs , Signature[3 ] calldata sigs ) external ;
31
+ }
32
+
8
33
uint256 constant SIGNER_INFO_END_TS_MASK = uint256 (type (uint64 ).max) << 112 ;
9
34
10
35
uint256 constant SIGNER_INFO_WITHDRAW_MASK = uint256 (type (uint48 ).max) << 176 ;
11
36
12
37
/**
13
- *
14
38
* `signerInfo` layout:
15
39
* |-- color --|-- withdraw --|-- endTs --|-- deposit --|-- startTs --|
16
40
* |-- 32 --|-- 48 --|-- 64 --|-- 48 --|-- 64 --|
@@ -73,28 +97,3 @@ using {
73
97
hasEndTs,
74
98
isZero
75
99
} for SignerInfo global ;
76
-
77
- interface IDIDSigners {
78
- function authenticateHumanIDv1 (
79
- bytes32 exposureReportID ,
80
- uint128x2 weightThresholdAndSignatureTs ,
81
- bytes32 commitmentR ,
82
- Signature[3 ] calldata sigs
83
- ) external view ;
84
-
85
- function authenticateHumanIDv1 (
86
- bytes32 humanID ,
87
- uint128x2 weightThresholdAndSignatureTs ,
88
- bytes32 commitmentR ,
89
- Signature[5 ] calldata sigs
90
- ) external view ;
91
-
92
- /**
93
- * Maps a signer node address to a bit packed struct.
94
- */
95
- function signerInfo (address signer ) external view returns (SignerInfo);
96
- }
97
-
98
- interface IDIDSignersExposureReport {
99
- function reportExposure (bytes32 exposureReportID , uint256 signatureTs , Signature[3 ] calldata sigs ) external ;
100
- }
0 commit comments