NAME

CryptoTron::SignTransaction - Perl extension for use with crypto coin Tron blockchain

SYNOPSIS

use CryptoTron::SignTx;

# 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";

DESCRIPTION

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.

SEE ALSO

Inline::Python

AUTHOR

Dr. Peter Netz, <ztenretep@cpan.org>

COPYRIGHT AND LICENSE

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.