aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-01-04 16:14:17 +0800
committerGitHub <noreply@github.com>2019-01-04 16:14:17 +0800
commitc1c43011211e70ffdd2a78fb1a467adb5db9f65e (patch)
treef564db7903c0e7064ae9c76165a467ec27ae683e
parent391d4cb9b53eb9f71862cbb8a6cca332d5a76f94 (diff)
parent6537ab5dd3459b4570d5157b702d2ec5f5aadb2e (diff)
downloaddexon-c1c43011211e70ffdd2a78fb1a467adb5db9f65e.tar.gz
dexon-c1c43011211e70ffdd2a78fb1a467adb5db9f65e.tar.zst
dexon-c1c43011211e70ffdd2a78fb1a467adb5db9f65e.zip
Merge pull request #18371 from jeremyschlatter/patch-1
core/types: update incorrect comment
-rw-r--r--core/types/transaction.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go
index 7b53cac2c..ba3d5de91 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -234,7 +234,7 @@ func (tx *Transaction) AsMessage(s Signer) (Message, error) {
}
// WithSignature returns a new transaction with the given signature.
-// This signature needs to be formatted as described in the yellow paper (v+27).
+// This signature needs to be in the [R || S || V] format where V is 0 or 1.
func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error) {
r, s, v, err := signer.SignatureValues(tx, sig)
if err != nil {