CBitcoin::Script - A wrapper for handling Bitcoin Transaction Scripts
Don't worry about this.
---++ convert_OP_to_CCOIN($string,$push_bytes_bool)
OP_HASH160 -> ccoin_OP_HASH160;
---++ convert_CCOIN_to_OP(@x)
ccoin_OP_HASH160 -> OP_HASH160;
---++ prefix('p2sh')
Map prefixes to integer.
See https://en.bitcoin.it/wiki/List_of_address_prefixes.
---++ what_network_is_address()
Are we on MAINNET ('production') or TESTNET ('test')?
---++ address_to_script
---++ script_to_address
---++ script_to_p2sh
Derive a p2sh script from another script.
---++ whatTypeOfScript
---++ serialize_script
---++ deserialize_script
---++ deserialize_scriptSig
---++ multisig_p2sh_script($m,$n,@pubksy)
Public keys must be in binary form (between 32 and 34 bytes long).
---+ extraction
---++ p2p_publickey
Get public key from script.
---++ p2pkh_ripemd
Get ripemd hash from script.
---++ chunks($script)->[]
Return an array with 0x21438 hex values in binary form.
use CBitcoin; use CBitcoin::Script;
Joel De Jesus, <dejesus.joel at e-flamingo.jp>
<dejesus.joel at e-flamingo.jp>
Please report any bugs or feature requests to https://github.com/favioflamingo/libcbitcoin-perl. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc CBitcoin::Script
You can also look for information at: https://github.com/favioflamingo/libcbitcoin-perl
Copyright 2014 Joel De Jesus.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
3 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install CBitcoin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CBitcoin
CPAN shell
perl -MCPAN -e shell install CBitcoin
For more information on module installation, please visit the detailed CPAN module installation guide.