浏览代码

core/types: document RawSignatureValues (#19695)

Felix Lange 6 年之前
父节点
当前提交
50e3795eef
共有 1 个文件被更改,包括 3 次插入1 次删除
  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
 }
 
-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
 }