CryptoTron::SignTransaction - Perl extension for use with crypto coin Tron blockchain
# Set the transaction ID.
my $txID = "2e5c65e8eda302cd991740ced24521aec624d3a4e24ed2e192d0606e0f1a8bcd";
# Set the private key.
my $privKey = "9439BDAA137488AEFA9244A6AE894B033CDFE333E1AEC6D0F4A9358FAABD128F";
# Print the signature for private key and transaction ID.
my $signature = sign($txID, $privKey);
print $signature . "\n";
The package signs a Tron transaction. The private key must be known from the Tron account. The transaction ID is given from a transaction builder. The package gives back the signature, which is used for broadcasting the transaction.
Dr. Peter Netz, <email@example.com>
Copyright (C) 2022 by Dr. Peter Netz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.30.0 or, at your option, any later version of Perl 5 you may have available.
To install CryptoTron, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.