Commit 305fe2b 1 parent f7de71b commit 305fe2b Copy full SHA for 305fe2b
File tree 2 files changed +6
-6
lines changed
docs/diagrams/architecture
packages/core/src/transaction
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ classDiagram
34
34
+Address origin
35
35
+Uint8Array signature?
36
36
+Transaction decode(Uint8Array rawTransaction, boolean isSigned)$
37
- +Blake2b256 getTransactionHash(Address gasPayer ?)
37
+ +Blake2b256 getTransactionHash(Address sender ?)
38
38
+VTHO intrinsicGas(TransactionClause[] clauses)$
39
39
+boolean isValidBody(TransactionBody body)$
40
40
+Transaction of(TransactionBody: body, Uint8Array signature?)$
Original file line number Diff line number Diff line change @@ -380,20 +380,20 @@ class Transaction {
380
380
/**
381
381
* Computes the transaction hash, optionally incorporating a gas payer's address.
382
382
*
383
- * @param {Address } [gasPayer ] - Optional gas payer 's address to include in the hash computation.
383
+ * @param {Address } [sender ] - Optional transaction origin 's address to include in the hash computation.
384
384
* @return {Blake2b256 } - The computed transaction hash.
385
385
*
386
386
* @remarks
387
- * `gasPayer ` is used to sign a transaction on behalf of another account.
387
+ * `sender ` is used to sign a transaction on behalf of another account.
388
388
*
389
389
* @remarks Security auditable method, depends on
390
390
* - {@link Blake2b256.of}.
391
391
*/
392
- public getTransactionHash ( gasPayer ?: Address ) : Blake2b256 {
392
+ public getTransactionHash ( sender ?: Address ) : Blake2b256 {
393
393
const txHash = Blake2b256 . of ( this . encode ( false ) ) ;
394
- if ( gasPayer !== undefined ) {
394
+ if ( sender !== undefined ) {
395
395
return Blake2b256 . of (
396
- nc_utils . concatBytes ( txHash . bytes , gasPayer . bytes )
396
+ nc_utils . concatBytes ( txHash . bytes , sender . bytes )
397
397
) ;
398
398
}
399
399
return txHash ;
You can’t perform that action at this time.
0 commit comments