The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CBitcoin::Script - A wrapper for handling Bitcoin Transaction Scripts

dl_load_flags

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.

SYNOPSIS

  use CBitcoin;
  use CBitcoin::Script;

  

AUTHOR

Joel De Jesus, <dejesus.joel at e-flamingo.jp>

BUGS

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.

SUPPORT

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

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

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:

Around line 28:

'=item' outside of any '=over'

Around line 442:

You forgot a '=back' before '=head1'

Around line 471:

You forgot a '=back' before '=head1'