Skip to content

Commit 6537ab5

Browse files
core/types: update incorrect comment
1 parent 7353434 commit 6537ab5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/types/transaction.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (tx *Transaction) AsMessage(s Signer) (Message, error) {
234234
}
235235

236236
// WithSignature returns a new transaction with the given signature.
237-
// This signature needs to be formatted as described in the yellow paper (v+27).
237+
// This signature needs to be in the [R || S || V] format where V is 0 or 1.
238238
func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error) {
239239
r, s, v, err := signer.SignatureValues(tx, sig)
240240
if err != nil {

0 commit comments

Comments
 (0)