You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tip: 43
title: TRC-43: Precompiled contract function for signature parallel verification
author: Sh11thead<ksl2945@gmail.com>
discussions to: https://github.com/tronprotocol/TIPs/issues/43
category: TRC
status: accept
created: 2019-07-10
Simple Summary
A new type of precompiled contract function for signature parallel verification
Abstract
Add a new type of build-in precompiled contract function for multisign validating instead of the compiled bytecode do the same task.
Motivation
Since the multi-signature is widely used in Tron, there needs a way for low energy cost and less CPU time multisign validating, the precompiled contract for multi-signature could be a well satisfying solution.
Specification
Adds a new precompiled contract function named batchvalidatesign , which need 3 arguments input:
output of the result of signature validating would be a bytes32, for example : 10100000000000000000000000000000 representing the first signatue and third signatue is correct
for safety concern, the number of signatures is limited to 16,when count of signatures is greater than 16,all zero output will be provided.
Energy cost
energy charge for the execution cost 1500 per signature
The text was updated successfully, but these errors were encountered:
BlueHoopor
changed the title
TRC: Precompiled contract function for multisign validating
TIP 43: Precompiled contract function for multisign validating
Sep 10, 2019
BlueHoopor
changed the title
TIP 43: Precompiled contract function for multisign validating
TRC-43: Precompiled contract function for multisign validating
Sep 10, 2019
zhaohong
changed the title
TRC-43: Precompiled contract function for multisign validating
TRC-43: Precompiled contract function for signature parallel verification
Sep 15, 2019
Simple Summary
A new type of precompiled contract function for signature parallel verification
Abstract
Add a new type of build-in precompiled contract function for multisign validating instead of the compiled bytecode do the same task.
Motivation
Since the multi-signature is widely used in Tron, there needs a way for low energy cost and less CPU time multisign validating, the precompiled contract for multi-signature could be a well satisfying solution.
Specification
Adds a new precompiled contract function named
batchvalidatesign
, which need 3 arguments input:Sample code
output of the result of signature validating would be a bytes32, for example :
10100000000000000000000000000000
representing the first signatue and third signatue is correctfor safety concern, the number of signatures is limited to 16,when count of signatures is greater than 16,all zero output will be provided.
Energy cost
energy charge for the execution cost 1500 per signature
The text was updated successfully, but these errors were encountered: