Browse Source

core/types: document RawSignatureValues (#19695)

Felix Lange 6 years ago
parent
commit
50e3795eef
1 changed files with 3 additions and 1 deletions
  1. 3 1
      core/types/transaction.go

+ 3 - 1
core/types/transaction.go

@@ -252,7 +252,9 @@ func (tx *Transaction) Cost() *big.Int {
 	return total
 	return total
 }
 }
 
 
-func (tx *Transaction) RawSignatureValues() (*big.Int, *big.Int, *big.Int) {
+// RawSignatureValues returns the V, R, S signature values of the transaction.
+// The return values should not be modified by the caller.
+func (tx *Transaction) RawSignatureValues() (v, r, s *big.Int) {
 	return tx.data.V, tx.data.R, tx.data.S
 	return tx.data.V, tx.data.R, tx.data.S
 }
 }