1616 - BearerAuth : []
1717 responses :
1818 " 200 " :
19- description : " All public keys available to the module: consensus pubkeys (BLS) and proxy pubkeys (BLS and ECDSA)"
19+ description : " All public keys available to the module: consensus pubkeys (BLS) and proxies (BLS pubkeys and ECDSA addresses )"
2020 content :
2121 application/json :
2222 schema :
@@ -32,15 +32,15 @@ paths:
3232 description : Consensus validator pubkey
3333 $ref : " #/components/schemas/BlsPubkey"
3434 proxy_bls :
35- description : BLS proxy validator pubkeys
35+ description : BLS proxy pubkeys
3636 type : array
3737 items :
3838 $ref : " #/components/schemas/BlsPubkey"
3939 proxy_ecdsa :
40- description : ECDSA proxy validator pubkeys
40+ description : ECDSA proxy addresses
4141 type : array
4242 items :
43- $ref : " #/components/schemas/EcdsaPubkey "
43+ $ref : " #/components/schemas/EcdsaAddress "
4444 " 500 " :
4545 description : Internal error
4646 content :
@@ -71,17 +71,23 @@ paths:
7171 application/json :
7272 schema :
7373 type : object
74- required : [type, pubkey, object_root]
74+ required : [type, object_root]
75+ oneOf :
76+ - required : [pubkey]
77+ - required : [proxy]
7578 properties :
7679 type :
7780 description : Type of the sign request
7881 type : string
7982 enum : [consensus, proxy_bls, proxy_ecdsa]
8083 pubkey :
81- description : Public key of the validator
84+ description : Public key of the validator for consensus signatures
85+ $ref : " #/components/schemas/BlsPubkey"
86+ proxy :
87+ description : BLS proxy pubkey or ECDSA address for proxy signatures
8288 oneOf :
8389 - $ref : " #/components/schemas/BlsPubkey"
84- - $ref : " #/components/schemas/EcdsaPubkey "
90+ - $ref : " #/components/schemas/EcdsaAddress "
8591 object_root :
8692 description : The root of the object to be signed
8793 type : string
@@ -97,12 +103,12 @@ paths:
97103 ProxyBls :
98104 value :
99105 type : " proxy_bls"
100- pubkey : " 0xa3ffa9241f78279f1af04644cb8c79c2d8f02bcf0e28e2f186f6dcccac0a869c2be441fda50f0dea895cfce2e53f0989"
106+ proxy : " 0xa3ffa9241f78279f1af04644cb8c79c2d8f02bcf0e28e2f186f6dcccac0a869c2be441fda50f0dea895cfce2e53f0989"
101107 object_root : " 0x3e9f4a78b5c21d64f0b8e3d9a7f5c02b4d1e67a3c8f29b5d6e4a3b1c8f72e6d9"
102108 ProxyEcdsa :
103109 value :
104110 type : " proxy_ecdsa"
105- pubkey : " 0x023b2806b1b1dfa34dd90b01546906cef3e4c8e0fc0cba60480e9eb4d0a0828311 "
111+ proxy : " 0x71f65e9f6336770e22d148bd5e89b391a1c3b0bb "
106112 object_root : " 0x3e9f4a78b5c21d64f0b8e3d9a7f5c02b4d1e67a3c8f29b5d6e4a3b1c8f72e6d9"
107113 responses :
108114 " 200 " :
@@ -119,7 +125,7 @@ paths:
119125 ProxyBls :
120126 value : " 0xa3ffa9241f78279f1af04644cb8c79c2d8f02bcf0e28e2f186f6dcccac0a869c2be441fda50f0dea895cfce2e53f0989a3ffa9241f78279f1af04644cb8c79c2d8f02bcf0e28e2f186f6dcccac0a869c2be441fda50f0dea895cfce2e53f0989"
121127 ProxyEcdsa :
122- value : " 0xe6a0c0c41a6d4af9794882c18c5280376cbfb7921453612dea02ed8f47b1208455f07931dc12c4b70c4e8ae216db0136000ec2cf17244189f012de356ac46cec "
128+ value : " 0x985b495f49d1b96db3bba3f6c5dd1810950317c10d4c2042bd316f338cdbe74359072e209b85e56ac492092d7860063dd096ca31b4e164ef27e3f8d508e656801c "
123129 " 404 " :
124130 description : Unknown value (pubkey, etc.)
125131 content :
@@ -201,10 +207,10 @@ paths:
201207 allOf :
202208 - $ref : " #/components/schemas/BlsPubkey"
203209 proxy :
204- description : the generated proxy public key
210+ description : the generated proxy identifier (BLS pubkey or ECDSA address)
205211 oneOf :
206212 - $ref : " #/components/schemas/BlsPubkey"
207- - $ref : " #/components/schemas/EcdsaPubkey "
213+ - $ref : " #/components/schemas/EcdsaAddress "
208214 signature :
209215 description : The signature of the proxy delegation
210216 allOf :
@@ -220,7 +226,7 @@ paths:
220226 value :
221227 message :
222228 delegator : " 0xa9e9cff900de07e295a044789fd4bdb6785eb0651ad282f9e76d12afd87e75180bdd64caf2e315b815d7322bd31ab48a"
223- proxy : " 0x023b2806b1b1dfa34dd90b01546906cef3e4c8e0fc0cba60480e9eb4d0a0828311 "
229+ proxy : " 0x71f65e9f6336770e22d148bd5e89b391a1c3b0bb "
224230 signature : " 0xb5b5b71d1701cc45086af3d3d86bf9d3c509442835e5b9f7734923edc9a6c538e743d70613cdef90b7e5b171fbbe6a29075b3f155e4bd66d81ff9dbc3b6d7fa677d169b2ceab727ffa079a31fe1fc0e478752e9da9566a9408e4db24ac6104db"
225231 " 404 " :
226232 description : Unknown value (pubkey, etc.)
@@ -281,11 +287,11 @@ components:
281287 format : hex
282288 pattern : " ^0x[a-fA-F0-9]{96}$"
283289 example : " 0xa9e9cff900de07e295a044789fd4bdb6785eb0651ad282f9e76d12afd87e75180bdd64caf2e315b815d7322bd31ab48a"
284- EcdsaPubkey :
290+ EcdsaAddress :
285291 type : string
286292 format : hex
287- pattern : " ^0x[a-fA-F0-9]{66 }$"
288- example : " 0x023b2806b1b1dfa34dd90b01546906cef3e4c8e0fc0cba60480e9eb4d0a0828311 "
293+ pattern : " ^0x[a-fA-F0-9]{40 }$"
294+ example : " 0x71f65e9f6336770e22d148bd5e89b391a1c3b0bb "
289295 BlsSignature :
290296 type : string
291297 format : hex
@@ -294,5 +300,5 @@ components:
294300 EcdsaSignature :
295301 type : string
296302 format : hex
297- pattern : " ^0x[a-fA-F0-9]{128 }$"
298- example : " 0xe6a0c0c41a6d4af9794882c18c5280376cbfb7921453612dea02ed8f47b1208455f07931dc12c4b70c4e8ae216db0136000ec2cf17244189f012de356ac46cec "
303+ pattern : " ^0x[a-fA-F0-9]{130 }$"
304+ example : " 0x985b495f49d1b96db3bba3f6c5dd1810950317c10d4c2042bd316f338cdbe74359072e209b85e56ac492092d7860063dd096ca31b4e164ef27e3f8d508e656801c "
0 commit comments