@@ -169,7 +169,7 @@ func (api *SignerAPI) determineSignatureFormat(ctx context.Context, contentType
169
169
req = & SignDataRequest {ContentType : mediaType , Rawdata : cliqueRlp , Messages : messages , Hash : sighash }
170
170
default : // also case TextPlain.Mime:
171
171
// Calculates an Ethereum ECDSA signature for:
172
- // hash = keccak256("\x19${byteVersion}Ethereum Signed Message:\n${message length}${message}")
172
+ // hash = keccak256("\x19Ethereum Signed Message:\n${message length}${message}")
173
173
// We expect it to be a string
174
174
if stringData , ok := data .(string ); ! ok {
175
175
return nil , useEthereumV , fmt .Errorf ("input for text/plain must be an hex-encoded string" )
@@ -194,7 +194,7 @@ func (api *SignerAPI) determineSignatureFormat(ctx context.Context, contentType
194
194
return req , useEthereumV , nil
195
195
}
196
196
197
- // SignTextWithValidator signs the given message which can be further recovered
197
+ // SignTextValidator signs the given message which can be further recovered
198
198
// with the given validator.
199
199
// hash = keccak256("\x19\x00"${address}${data}).
200
200
func SignTextValidator (validatorData apitypes.ValidatorData ) (hexutil.Bytes , string ) {
@@ -271,11 +271,11 @@ func (api *SignerAPI) EcRecover(ctx context.Context, data hexutil.Bytes, sig hex
271
271
//
272
272
// Note, this function is compatible with eth_sign and personal_sign. As such it recovers
273
273
// the address of:
274
- // hash = keccak256("\x19${byteVersion}Ethereum Signed Message:\n${message length}${message}")
274
+ // hash = keccak256("\x19Ethereum Signed Message:\n${message length}${message}")
275
275
// addr = ecrecover(hash, signature)
276
276
//
277
277
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
278
- // the V value must be be 27 or 28 for legacy reasons.
278
+ // the V value must be 27 or 28 for legacy reasons.
279
279
//
280
280
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
281
281
if len (sig ) != 65 {
0 commit comments