|
11 | 11 | summary: Get a list of public keys for which signatures may be requested |
12 | 12 | tags: |
13 | 13 | - Signer |
| 14 | + security: |
| 15 | + - BearerAuth: [] |
14 | 16 | responses: |
15 | 17 | "200": |
16 | 18 | description: A list of Bls pubkeys |
|
35 | 37 | format: hex |
36 | 38 | pattern: "^0x[a-fA-F0-9]{96}$" |
37 | 39 | example: "0xa3ffa9241f78279f1af04644cb8c79c2d8f02bcf0e28e2f186f6dcccac0a869c2be441fda50f0dea895cfce2e53f0989" |
38 | | - |
39 | 40 | "500": |
40 | 41 | description: Internal error |
41 | 42 | content: |
@@ -67,10 +68,6 @@ paths: |
67 | 68 | schema: |
68 | 69 | type: object |
69 | 70 | properties: |
70 | | - id: |
71 | | - description: The module ID |
72 | | - type: string |
73 | | - example: "MY_MODULE_ID" |
74 | 71 | pubkey: |
75 | 72 | description: BLS public key of validator |
76 | 73 | type: string |
|
99 | 96 | pattern: "^0x[a-fA-F0-9]{192}$" |
100 | 97 | example: "0xa3ffa9241f78279f1af04644cb8c79c2d8f02bcf0e28e2f186f6dcccac0a869c2be441fda50f0dea895cfce2e53f0989a3ffa9241f78279f1af04644cb8c79c2d8f02bcf0e28e2f186f6dcccac0a869c2be441fda50f0dea895cfce2e53f0989" |
101 | 98 | "404": |
102 | | - description: Unknown value (pubkey, module id) |
| 99 | + description: Unknown value (pubkey, etc.) |
103 | 100 | content: |
104 | 101 | application/json: |
105 | 102 | schema: |
@@ -130,6 +127,89 @@ paths: |
130 | 127 | message: |
131 | 128 | type: string |
132 | 129 | example: "Internal error" |
| 130 | + |
| 131 | + /signer/v1/generate_proxy_key: |
| 132 | + post: |
| 133 | + summary: Request a proxy key be generated for a specific consensus pubkey |
| 134 | + tags: |
| 135 | + - Signer |
| 136 | + security: |
| 137 | + - BearerAuth: [] |
| 138 | + requestBody: |
| 139 | + required: true |
| 140 | + content: |
| 141 | + application/json: |
| 142 | + schema: |
| 143 | + type: object |
| 144 | + properties: |
| 145 | + pubkey: |
| 146 | + description: a validator BLS public key for which to generate a proxy key |
| 147 | + type: string |
| 148 | + format: hex |
| 149 | + pattern: "^0x[a-fA-F0-9]{96}$" |
| 150 | + example: "0xac5e059177afc33263e95d0be0690138b9a1d79a6e19018086a0362e0c30a50bf9e05a08cb44785724d0b2718c5c7118" |
| 151 | + responses: |
| 152 | + "200": |
| 153 | + description: Successs |
| 154 | + content: |
| 155 | + application/json: |
| 156 | + schema: |
| 157 | + type: object |
| 158 | + properties: |
| 159 | + message: |
| 160 | + type: object |
| 161 | + properties: |
| 162 | + delegator: |
| 163 | + description: the validator BLS public key for which the proxy key was generated (the same one as requested) |
| 164 | + type: string |
| 165 | + format: hex |
| 166 | + pattern: "^0x[a-fA-F0-9]{96}$" |
| 167 | + example: "0xac5e059177afc33263e95d0be0690138b9a1d79a6e19018086a0362e0c30a50bf9e05a08cb44785724d0b2718c5c7118" |
| 168 | + proxy: |
| 169 | + description: the generated proxy public key |
| 170 | + type: string |
| 171 | + format: hex |
| 172 | + pattern: "^0x[a-fA-F0-9]{96}$" |
| 173 | + example: "0x8a481a7a51c430a9bafa64366bc4934f5880f5f1d97646f91680936a53f2a268fdde5369430a2b4bb700c5f82cfbab3f" |
| 174 | + signature: |
| 175 | + description: The signature of the proxy delegation |
| 176 | + type: string |
| 177 | + format: hex |
| 178 | + pattern: "^0x[a-fA-F0-9]{192}$" |
| 179 | + example: "0xabfacf1cd17d80abfc6fa6b8e534ab25cdb1f95a855706ef604672c8695401a84c7834008e57925d4259c551b7c03d1a16f05b082294fadcba802a61a5cccfb5e96dd1dce4c9dac3f6d15254495019146346670be1f374a67cb0cda2aaf72d00" |
| 180 | + "404": |
| 181 | + description: Unknown value (pubkey, etc.) |
| 182 | + content: |
| 183 | + application/json: |
| 184 | + schema: |
| 185 | + type: object |
| 186 | + required: |
| 187 | + - code |
| 188 | + - message |
| 189 | + properties: |
| 190 | + code: |
| 191 | + type: number |
| 192 | + example: 404 |
| 193 | + message: |
| 194 | + type: string |
| 195 | + example: "Unknown pubkey" |
| 196 | + "500": |
| 197 | + description: Internal error |
| 198 | + content: |
| 199 | + application/json: |
| 200 | + schema: |
| 201 | + type: object |
| 202 | + required: |
| 203 | + - code |
| 204 | + - message |
| 205 | + properties: |
| 206 | + code: |
| 207 | + type: number |
| 208 | + example: 500 |
| 209 | + message: |
| 210 | + type: string |
| 211 | + example: "Internal error" |
| 212 | + |
133 | 213 | components: |
134 | 214 | securitySchemes: |
135 | 215 | BearerAuth: |
|
0 commit comments