You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/signer-api.yml
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ paths:
86
86
application/json:
87
87
schema:
88
88
type: object
89
-
required: [pubkey, object_root]
89
+
required: [pubkey, object_root, nonce]
90
90
properties:
91
91
pubkey:
92
92
description: The 48-byte BLS public key, with optional `0x` prefix, of the proposer key that you want to request a signature from.
@@ -234,7 +234,7 @@ paths:
234
234
application/json:
235
235
schema:
236
236
type: object
237
-
required: [proxy, object_root]
237
+
required: [proxy, object_root, nonce]
238
238
properties:
239
239
proxy:
240
240
description: The 48-byte BLS public key (for `proxy_bls` mode) or the 20-byte Ethereum address (for `proxy_ecdsa` mode), with optional `0x` prefix, of the proxy key that you want to request a signature from.
@@ -382,7 +382,7 @@ paths:
382
382
application/json:
383
383
schema:
384
384
type: object
385
-
required: [proxy, object_root]
385
+
required: [proxy, object_root, nonce]
386
386
properties:
387
387
proxy:
388
388
description: The 20-byte Ethereum address, with optional `0x` prefix, of the proxy key that you want to request a signature from.
@@ -695,7 +695,12 @@ components:
695
695
$ref: "#/components/schemas/EcdsaSignature"
696
696
Nonce:
697
697
type: integer
698
-
description: If your module tracks nonces per signature (e.g., to prevent replay attacks), this is the unique nonce to use for the signature. It should be an unsigned 64-bit integer in big-endian format. It must be between 0 and 2^64-2, inclusive. If your module doesn't use nonces, we suggest setting this to 2^64-1 instead of 0 because 0 is a legal nonce and will cause complications with your module if you ever want to use a nonce in the future.
698
+
description: |
699
+
Replay-protection nonce, always mixed into the signing root via `PropCommitSigningInfo`. It
700
+
must be an unsigned 64-bit integer between 0 and 2^64-2 (18446744073709551614), inclusive.
701
+
702
+
Modules that track nonces for replay protection should use a monotonically increasing value
703
+
per key. Modules that do not use replay protection should always send `0`.
0 commit comments