Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add BIP70 protobuf features in new PayPro lib file #401

Merged
merged 2 commits into from Jul 3, 2014
Merged

add BIP70 protobuf features in new PayPro lib file #401

merged 2 commits into from Jul 3, 2014

Conversation

ryanxcharles
Copy link
Contributor

BIP70 uses protobufs to for the message format. This PR adds support for all the standard BIP70 message formats using a library called protobuf.js (protobufjs on npm) which works in both node and the browser, with optimizations for node (buffers rather than arraybuffers). Since protobufjs adds hundreds of kilobytes to the bundle, it is includede in "all", but not "main". You have to build "all" to get this.

No BIP70 in the browser: node browser/build.js --includemain

BIP70 in the browser: node browser/build.js --includeall

Ryan X. Charles added 2 commits July 2, 2014 11:39
...and add to the "main" bundle, but not the "all" bundle, since it adds
hundreds of kilobytes to the bundle.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) when pulling 0bea06f on ryanxcharles:feature/bip70-protobuf into 3842ed6 on bitpay:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) when pulling 0722ce4 on ryanxcharles:feature/bip70-protobuf into 3842ed6 on bitpay:master.

@maraoz
Copy link
Contributor

maraoz commented Jul 2, 2014

Great work! PayPro sounds cool 👍

ryanxcharles pushed a commit that referenced this pull request Jul 3, 2014
add BIP70 protobuf features in new PayPro lib file
@ryanxcharles ryanxcharles merged commit e485613 into bitpay:master Jul 3, 2014
micahriggan pushed a commit to micahriggan/bitcore that referenced this pull request Dec 27, 2018
add BIP70 protobuf features in new PayPro lib file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants