diff options
author | Jeremy Schlatter <jeremy.schlatter@gmail.com> | 2018-12-29 09:58:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-29 09:58:03 +0800 |
commit | 6537ab5dd3459b4570d5157b702d2ec5f5aadb2e (patch) | |
tree | 30cd2c482a19ceaff0fd8269ded74f8f9db72ea0 | |
parent | 735343430dec74a340f5c9a18822537e18165caa (diff) | |
download | dexon-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.tar.gz dexon-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.tar.zst dexon-6537ab5dd3459b4570d5157b702d2ec5f5aadb2e.zip |
core/types: update incorrect comment
-rw-r--r-- | core/types/transaction.go | 2 |
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 { |