aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeremy Schlatter <jeremy.schlatter@gmail.com>2018-12-29 09:58:03 +0800
committerGitHub <noreply@github.com>2018-12-29 09:58:03 +0800
commit6537ab5dd3459b4570d5157b702d2ec5f5aadb2e (patch)
tree30cd2c482a19ceaff0fd8269ded74f8f9db72ea0 /core
parent735343430dec74a340f5c9a18822537e18165caa (diff)
downloadgo-tangerine-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.tar
go-tangerine-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.tar.gz
go-tangerine-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.tar.bz2
go-tangerine-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.tar.lz
go-tangerine-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.tar.xz
go-tangerine-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.tar.zst
go-tangerine-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.zip
core/types: update incorrect comment
Diffstat (limited to 'core')
-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 {