Giter Club home page Giter Club logo

libcbitcoin-perl's Introduction

libcbitcoin-perl

There is one debian package and several perl modules encapsulated in this repository. The main module is CBitcoin.
This module contains no subroutines. Instead, it is used as a placeholder for the XS modules. All of the XS modules for the other perl modules are chained to CBitcoin.xs. Unfortunately, in some situations (unknown to the author), require symlinking the shared library CBitcoin.so into where Dynaloader (via bootloader) automatically looks for shared libraries of the perl module being run. For example, bootloader looks for the XS binary in auto/CBitcoin/CBHD/CBHD.so when running CBHD::xs_sub.
So, we have to symlink auto/CBitcoin/CBitcoin.so to auto/CBitcoin/CBHD/CBHD.so.

To create Hierarchial Deterministic keys, see CBitcoin::CBHD and t/02-CBHD.t To create scripts, see CBitcoin::Script. To create transactions, see CBitcoin::Transaction, CBitcoin::TransactionInput and CBitcoin::TransactionOutput, and more importantly see t/05-Transaction.t

To see how an spv client works, check out the t/spv.t.no script. It contains an example of how to implement an spv client in perl. Though, this section is work in progress.

For more information, please take a look (http://e-flamingo.net/pages/)[at this blog post].

DEBIAN INSTALLATION

To compile a debian package, first install libccoin0, which is https://github.com/favioflamingo/picocoin. Once you compile and install the cbitcoin source package, go into the main directory and type:

    dh_make -p libcbitcoin-perl_0.01 --createorig -l
    debuild -uc

INSTALLATION

To install this module manually, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the perldoc command.

    perldoc CBitcoin
or
    perldoc CBitcoin::CBHD

LICENSE AND COPYRIGHT

CBitcoin perl modules is a wrapper for the picocoin library written by Jeff Garzik.
Copyright (C) 2015  Joel De Jesus

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

libcbitcoin-perl's People

Contributors

joeldejesus1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

libcbitcoin-perl's Issues

Block misread causes headers to stop downloading

2017/03/04 11:08:57 DEBUG> Peer.pm:541 CBitcoin::Peer::read_data - Have 998193 bytes read into the buffer
2017/03/04 11:08:57 DEBUG> Peer.pm:546 CBitcoin::Peer::read_data - Got command=block
2017/03/04 11:08:57 DEBUG> SPV.pm:1576 CBitcoin::SPV::callback_run - Running callback with command=block
Use of uninitialized value in subroutine entry at /src/code/blib/lib/CBitcoin/Block.pm line 190.
	(in cleanup) failed. error=failed to parse at /src/code/blib/lib/CBitcoin/Block.pm line 191.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.