@@ -169,7 +169,7 @@ func (api *SignerAPI) determineSignatureFormat(ctx context.Context, contentType
169169 req = & SignDataRequest {ContentType : mediaType , Rawdata : cliqueRlp , Messages : messages , Hash : sighash }
170170 default : // also case TextPlain.Mime:
171171 // 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}")
173173 // We expect it to be a string
174174 if stringData , ok := data .(string ); ! ok {
175175 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
194194 return req , useEthereumV , nil
195195}
196196
197- // SignTextWithValidator signs the given message which can be further recovered
197+ // SignTextValidator signs the given message which can be further recovered
198198// with the given validator.
199199// hash = keccak256("\x19\x00"${address}${data}).
200200func SignTextValidator (validatorData apitypes.ValidatorData ) (hexutil.Bytes , string ) {
@@ -271,11 +271,11 @@ func (api *SignerAPI) EcRecover(ctx context.Context, data hexutil.Bytes, sig hex
271271 //
272272 // Note, this function is compatible with eth_sign and personal_sign. As such it recovers
273273 // 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}")
275275 // addr = ecrecover(hash, signature)
276276 //
277277 // 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.
279279 //
280280 // https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
281281 if len (sig ) != 65 {
0 commit comments