Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
TRC-60:Precompiled contract function for multi-signature verification #60
This doc describes a native TVM function which is used to validate multi-signature for a provided account.
TRON provided multiple signature functions allowing for permission grading, and each permission can correspond to multiple private keys. But in TVM, currently we only have
Developer hope to validate multi-sign for account with specific permission in smart contracts.
Add a new function named validatemultisign in solidity compiler .
This function could takes 4 parameters:
Pay special attention to the parameter
This function will call to a specific address (for example,
In TVM , we could reuse
energy charge for the execution cost 1500 per signature
This function allows validating multi-sign in TVM could improve smart contract access to TRON blockchain which is good for both DApp developer and users.
Adding a new precompiledContract cause no backwards compatibility concerns.
1.Verifying both correct and incorrect signatures in smart contract.