Bitcoinjs / bitcore

BitPay did a fork of bitcoinjs, which they call bitcore. Is there something similar to that for Peercoin? For Peerunity (stupid question perhaps)?

It should be kind of a straight forward process to port that, right?

I like your thinking. Providing an application platform to simplify the process for developers to interact with Peercoin infrastructure. Here are the links for Bitcore. Website: http://bitcore.io and on Github on bitpay/bitcore.

Hope one of our devs can spend a bit of their precious time to answer OP’s question.

[ul][li]Forking/Porting would probably save a lot of time.[/li]
[li]Added bonus: collaboration is smart (read explanation below)[/li]
[li]Forking bitcore, would make it possible for all those projects and businesses out there already using bictore to plug-and-play Peercoin.[/li]
[li]Whenever there is a library that does all of the heavy lifting, that could mean the difference between doing “that thing” and not doing it. [/li]
[li]I don’t think that it’s even necessary to support minting and other Peercoin specific features. It would be enough to just port bitcore.[/li][/ul]

Added bonus, explained
The Litecoin development was stagnating and getting old, when Warren stepped into the scene. Bringing his experience with him from previous open source projects, he decided that Litecoin should work together with Bitcoin, adding value to Bitcoin by porting Litecoin code upstream.

That was a smart move, because its the kind of non-hostile kind of activism that is hard to argue against. How could Bitcoin devs talk badly of the Litecoin guys, when they get so much help from them. Collaboration is smart!

If we forked bitcore and made pull requests upstream, that would for sure add value to BitPay. I think it would be very much in our interest to add value to BitPay, because those guys are good friends to have. Actually, it’s very good if those guys realize how competent Peercoin devs are and perhaps their understanding of Peercoin would also increase, if there is more collaboration.

EDIT: If porting would be so simple that it’s just about generating Peercoin formatted keys and changing the port numbers, I could actually do this myself. But I suspect there is a whole lot more protocol related stuff, right? Or is it really that easy? Honestly, one reason to why I’m staying away from coding crypto stuff is the responsibility of so much money flowing through my code… brrr… the horror. You guys (n girls?) doing are heroes!

Oh-look http://bitcoinjs.org, it says its:

Altcoin-ready - Capable of working with bitcoin-derived currencies

The integration of proof of stake into Bitcore (a “Peercore” fork) would be the more complex component, if I had to wager.

Ben, do you think it would be smarter to port (or whatever work it entails) bitcoinjs first?

Did you have a luck to finish PoS implementing in bitcore ?

Feel free to support the related peer4commit project:

http://peer4commit.com/projects/158

How much we need to finish this?

A few thousands ppc at least.

I take it no work has been done by anyone to port this yet?

We should try to outline the necessary dev work needed for the port through issues raised on the repo, i’ll see what I can do when I get some time but please feel free to raise issues yourself.

Fuzzybear

actually, based on what I ve read on https://wiki.peercointalk.org/index.php?title=Transactions
, I was in the process of adding the creation_timestamp to transaction.js…

[quote=“thehuntergames, post:12, topic:2466”]actually, based on what I ve read on https://wiki.peercointalk.org/index.php?title=Transactions
, I was in the process of adding the creation_timestamp to transaction.js…[/quote]
Should we rather start working on a bitcoinjs fork or bitcore one ?

fuzzies peercore
I made changes in one file, but cant commit. Need to press pull request instead. Didnt feel like it as it was just one file…

[quote=“thehuntergames, post:14, topic:2466”]fuzzies peercore
I made changes in one file, but cant commit. Need to press pull request instead. Didnt feel like it as it was just one file…[/quote]
Hey thehuntergames could you send us your PR url so we could have a look at it?

:stuck_out_tongue:
https://github.com/jointhepartypooper/peercore/blob/master/lib/transaction/transaction.js

[quote=“thehuntergames, post:16, topic:2466”][emoji14]
https://github.com/jointhepartypooper/peercore/blob/master/lib/transaction/transaction.js[/quote]
Nice work ! May be we should try to stay consistent in variable naming. It looks like they use camel case in bitcore. What do you think?

EDIT: May be we could use a simple “time” variable as done in blockheader.js.

EDIT2: May be you should use a specific git branch for each feature you work on. It will then be easier to merge them in Fuzzy repository.

ok changed to time

i am not well versed in git. I’ll try to make a feature branch next time…?

[quote=“thehuntergames, post:18, topic:2466”]ok changed to time

i am not well versed in git. I’ll try to make a feature branch next time…?[/quote]
Should be ok, I discovered git just one year ago while hacking on ppcd. Found this, could be of some help: http://gitready.com

FuzzyBear how would you like to proceed?