mirror of https://github.com/status-im/EIPs.git
cosmetics
This commit is contained in:
parent
3e9e531fd9
commit
b8b5f87015
|
@ -46,17 +46,17 @@ The proposal adds a new precompiled function `ED25519VFY` with the following inp
|
|||
|
||||
### Address
|
||||
|
||||
The address of `ED25519VFY` is `0x08`.
|
||||
The address of `ED25519VFY` is **`0x8`.**
|
||||
|
||||
### Gas costs
|
||||
|
||||
Gas cost for `ED25519VFY` is 2000.
|
||||
Gas cost for `ED25519VFY` is **2000**.
|
||||
|
||||
## Rationale
|
||||
|
||||
The proposed `ed25519verify` function takes the signer public key as a call parameter, as with Ed25519, I don't believe it is possible to derive the signers public key from the signature and message alone.
|
||||
The proposed `ED25519VFY` function takes the signer public key as a call parameter, as with Ed25519, I don't believe it is possible to derive the signers public key from the signature and message alone.
|
||||
|
||||
The proposed `ed25519verify` function uses a zero return value to indicate success, since this allows for different errors to be distinguished by return value, as all non-zero return values signal a verification failure.
|
||||
The proposed `ED25519VFY` function uses a zero return value to indicate success, since this allows for different errors to be distinguished by return value, as all non-zero return values signal a verification failure.
|
||||
|
||||
`ECRECOVER` has a gas cost of 3000. Since Ed25519 is computationally cheaper, the gas price should be less.
|
||||
|
||||
|
|
Loading…
Reference in New Issue