Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcore-payment-protocol

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcore-payment-protocol - npm Package Compare versions

Comparing version 1.2.2 to 1.5.0

2

bower.json
{
"name": "bitcore-payment-protocol",
"main": "./bitcore-payment-protocol.min.js",
"version": "1.1.2",
"version": "1.1.1",
"homepage": "https://github.com/bitpay/bitcore-payment-protocol",

@@ -6,0 +6,0 @@ "authors": [

@@ -6,3 +6,3 @@ 'use strict';

var RootCerts = require('./rootcerts');
var rfc5280 = require('asn1.js/rfc/5280');
var rfc5280 = require('asn1.js-rfc5280');

@@ -84,3 +84,3 @@ // Documentation:

pem = KJUR.asn1.ASN1Util.getPEMStringFromHex(der, 'CERTIFICATE');
jsrsaSig.initVerifyByCertificatePEM(pem);
jsrsaSig.init(pem);
jsrsaSig.updateHex(buf.toString('hex'));

@@ -182,3 +182,3 @@ verified = jsrsaSig.verify(sig.toString('hex'));

});
js.initVerifyByCertificatePEM(npem);
js.init(npem);
npubKey = js.pubKey;

@@ -206,3 +206,3 @@ }

});
jsrsaSig.initVerifyByPublicKey(npubKey);
jsrsaSig.init(npubKey);

@@ -209,0 +209,0 @@ // Get the raw DER TBSCertificate

@@ -6,3 +6,3 @@ 'use strict';

var RootCerts = require('./rootcerts');
var rfc5280 = require('asn1.js/rfc/5280');
var rfc5280 = require('asn1.js-rfc5280');

@@ -9,0 +9,0 @@ var PublicKey = bitcore.PublicKey;

@@ -6,3 +6,3 @@ 'use strict';

var PaymentProtocol = require('./common');
var rfc5280 = require('asn1.js/rfc/5280');
var rfc5280 = require('asn1.js-rfc5280');

@@ -51,2 +51,3 @@ PaymentProtocol.prototype.x509Sign = function(key, returnTrust) {

var pki_data = this.get('pki_data');
pki_data = PaymentProtocol.X509Certificates.decode(pki_data);

@@ -53,0 +54,0 @@ pki_data = pki_data.certificate;

{
"name": "bitcore-payment-protocol",
"version": "1.2.2",
"version": "1.5.0",
"description": "Payment Protocol (BIP70 and related) support for bitcore",

@@ -34,2 +34,6 @@ "author": "BitPay <dev@bitpay.com>",

"email": "eordano@gmail.com"
},
{
"name": "Matias Alejo Garcia",
"email": "ematiu@gmail.com"
}

@@ -39,3 +43,5 @@ ],

"bitcoin",
"bitcore"
"bitcore",
"payment protocol",
"BIP70"
],

@@ -48,9 +54,12 @@ "repository": {

"dependencies": {
"asn1.js": "=4.5.2",
"bitcore-lib": "^0.14.0",
"jsrsasign": "=5.0.10",
"asn1.js": "=4.9.1",
"asn1.js-rfc3280": "=4.0.0",
"asn1.js-rfc5280": "=2.0.0",
"bitcore-lib": "^0.15.0",
"bs58": "^4.0.1",
"jsrsasign": "^8.0.4",
"protobufjs": "=5.0.1"
},
"devDependencies": {
"bitcore-build": "git://github.com/bitpay/bitcore-build.git",
"bitcore-build": "https://github.com/bitpay/bitcore-build.git#d4e8b2b2f1e2c065c3a807dcb6a6250f61d67ab3",
"brfs": "^1.2.0",

@@ -57,0 +66,0 @@ "chai": "~1.10.0",

@@ -10,2 +10,3 @@ 'use strict';

var PublicKey = bitcore.PublicKey;
var KJUR = require('jsrsasign');

@@ -560,4 +561,5 @@ var is_browser = process.browser;

describe('#x509+sha256Sign', function() {
it('should sign assuming pki_type is x509+sha256', function() {
describe('#x509+sha256Sign and #x509+sha256Verify ', function() {
it('should sign and verify assuming pki_type is x509+sha256', function() {
var pd = new PaymentProtocol.PaymentDetails();

@@ -586,7 +588,5 @@ pd.set('time', 0);

x509.sig2.length.should.be.greaterThan(0);
});
});
describe('#x509+sha256Verify', function() {
it('should verify assuming pki_type is x509+sha256', function() {
// Verify
//
var pd = new PaymentProtocol.PaymentDetails();

@@ -740,3 +740,3 @@ pd.set('time', 0);

var pem = KJUR.asn1.ASN1Util.getPEMStringFromHex(der, 'CERTIFICATE');
jsrsaSig.initVerifyByCertificatePEM(pem);
jsrsaSig.init(pem);
jsrsaSig.updateHex(buf.toString('hex'));

@@ -799,3 +799,3 @@ jsrsaSig.verify(sig.toString('hex')).should.equal(true);

it('should verify a real PaymentRequest without Root Cert', function() {
var data = PaymentProtocol.PaymentRequest.decode(SampleRequest.bitpay2);
var data = PaymentProtocol.PaymentRequest.decode(SampleRequest.bitpay3);
var pr = new PaymentProtocol();

@@ -830,3 +830,3 @@ pr = pr.makePaymentRequest(data);

var pem = KJUR.asn1.ASN1Util.getPEMStringFromHex(der, 'CERTIFICATE');
jsrsaSig.initVerifyByCertificatePEM(pem);
jsrsaSig.init(pem);
jsrsaSig.updateHex(buf.toString('hex'));

@@ -841,5 +841,10 @@ jsrsaSig.verify(sig.toString('hex')).should.equal(true);

verifier.update(buf);
verifier.verify(pem, sig).should.equal(true);
var verified = verifier.verify(pem, sig);
verified.should.equal(true);
}
var trust = pr.x509Verify(true);
// Verify Signature

@@ -873,8 +878,8 @@ var verified = pr.x509Verify();

outputs[0].script.should.not.equal(undefined);
time.should.equal(1442409238);
expires.should.equal(1442410138);
memo.should.equal('Payment request for BitPay invoice PAQtNxX7KL8BtJBnfXyTaH for merchant BitGive Foundation');
payment_url.should.equal('https://bitpay.com/i/PAQtNxX7KL8BtJBnfXyTaH');
time.should.equal(1508936331);
expires.should.equal(1508937231);
memo.should.equal('Payment request for BitPay invoice 4aKTwZemfhdmsBZATUkcaQ for merchant BitGive');
payment_url.should.equal('https://bitpay.com/i/4aKTwZemfhdmsBZATUkcaQ');
var merchant_data = pd.get('merchant_data');
should.equal('{"invoiceId":"PAQtNxX7KL8BtJBnfXyTaH","merchantId":"TxZ5RyChmZw2isKjJWGhBc"}', merchant_data.toString());
should.equal('{"invoiceId":"4aKTwZemfhdmsBZATUkcaQ","merchantId":"TxZ5RyChmZw2isKjJWGhBc"}', merchant_data.toString());
});

@@ -915,3 +920,3 @@

var pem = KJUR.asn1.ASN1Util.getPEMStringFromHex(der, 'CERTIFICATE');
jsrsaSig.initVerifyByCertificatePEM(pem);
jsrsaSig.init(pem);
jsrsaSig.updateHex(buf.toString('hex'));

@@ -918,0 +923,0 @@ jsrsaSig.verify(sig.toString('hex')).should.equal(true);

@@ -183,164 +183,5 @@ 'use strict';

// Livenet, with root cert missing
SampleRequest.bitpay2 = new Buffer(''
+ '0801120b783530392b7368613235361a88210aaa0e308207263082060ea0'
+ '03020102020900ba55847ce9a10f59300d06092a864886f70d01010b0500'
+ '3081b4310b30090603550406130255533110300e06035504081307417269'
+ '7a6f6e61311330110603550407130a53636f74747364616c65311a301806'
+ '0355040a1311476f44616464792e636f6d2c20496e632e312d302b060355'
+ '040b1324687474703a2f2f63657274732e676f64616464792e636f6d2f72'
+ '65706f7369746f72792f313330310603550403132a476f20446164647920'
+ '53656375726520436572746966696361746520417574686f72697479202d'
+ '204732301e170d3135303432303231323134365a170d3137303432353139'
+ '313130305a3081be31133011060b2b0601040182373c0201031302555331'
+ '193017060b2b0601040182373c020102130844656c6177617265311d301b'
+ '060355040f131450726976617465204f7267616e697a6174696f6e311030'
+ '0e0603550405130735313633393636310b30090603550406130255533110'
+ '300e0603550408130747656f726769613110300e0603550407130741746c'
+ '616e746131153013060355040a130c4269745061792c20496e632e311330'
+ '110603550403130a6269747061792e636f6d30820122300d06092a864886'
+ 'f70d01010105000382010f003082010a0282010100e42025369a803c1b44'
+ '234a279d123b610ec1178452fc7c57f2576492e1123166bed5eec11d12a8'
+ 'b824904f77aa6166ce6e111538204121069b5ecff81fd1ab27b1b9475c49'
+ 'd7680ef5f406f57a1871b77392a7b5c4370f504ba175617f78fe24c9ed76'
+ '154b46aa677cf6463a202909711b34ceecbe0ee7b9766cfd7018886b67e5'
+ '18f1ac39a3715152d62e59547f34d440ed3dfa01a92a42ed0b221c093144'
+ 'ed63f86c2300b8cf192b75929732af63c41526e4fd69735f0062c61c2dbc'
+ 'b56f6439ff9bbe62507da52752c1d99f24afbb3a6b5c98989d2196fb6bd9'
+ 'cc83a5ab21f060e955e7f45a01c9efe782f15cd48ab824d6272db2b71c89'
+ '88d02071e805df0203010001a382032d30820329300c0603551d130101ff'
+ '04023000301d0603551d250416301406082b0601050507030106082b0601'
+ '0505070302300e0603551d0f0101ff0404030205a030350603551d1f042e'
+ '302c302aa028a0268624687474703a2f2f63726c2e676f64616464792e63'
+ '6f6d2f676469673273332d312e63726c30530603551d20044c304a304806'
+ '0b6086480186fd6d010717033039303706082b06010505070201162b6874'
+ '74703a2f2f6365727469666963617465732e676f64616464792e636f6d2f'
+ '7265706f7369746f72792f307606082b06010505070101046a3068302406'
+ '082b060105050730018618687474703a2f2f6f6373702e676f6461646479'
+ '2e636f6d2f304006082b060105050730028634687474703a2f2f63657274'
+ '69666963617465732e676f64616464792e636f6d2f7265706f7369746f72'
+ '792f67646967322e637274301f0603551d2304183016801440c2bd278ecc'
+ '348330a233d7fb6cb3f0b42c80ce30250603551d11041e301c820a626974'
+ '7061792e636f6d820e7777772e6269747061792e636f6d301d0603551d0e'
+ '04160414a5698a70daa1405dbcdd1a02e95db8a51aaadd7f3082017d060a'
+ '2b06010401d6790204020482016d0482016901670076005614069a2fd7c2'
+ 'ecd3f5e1bd44b23ec74676b9bc99115cc0ef949855d689d0dd0000014cd8'
+ 'b6d73a000004030047304502210095e5768670ea27ed35075e484b7c42cd'
+ '20176c7263b4e879deb418639144079d02204911ae1cf0fcda5a2b6b3cec'
+ '528ccd689e7371a34c99460c2ca063b44ba6fbca00750068f698f81f6482'
+ 'be3a8ceeb9281d4cfc71515d6793d444d10a67acbb4f4ffbc40000014cd8'
+ 'b6d93e0000040300463044022030c89215d7081b372a1b033eb77ff5abbe'
+ '9c6822b38c9a0f5e4b166c7532fabf02200a481b330414d0076aa0d925dc'
+ '84096b8cb7585fc0b1ff28c744cfa85e17ab8e007600a4b90990b4185814'
+ '87bb13a2cc67700a3c359804f91bdfb8e377cd0ec80ddc100000014cd8b6'
+ 'dc34000004030047304502201f085d25b292b34185a182e314a3c64c9b51'
+ '62526c90cfc3ff7136b137bc98ee022100b28a7fbaa53c2fff07bdf23300'
+ '551e0b52ff1d823bb89df9eeb9079327adfe2c300d06092a864886f70d01'
+ '010b0500038201010013eeaf33325800bb0f252a091b1a9cdf2e10de3abf'
+ 'b9f566b94a60e63401598f68c4086cf170881f1b856e51dc45edce992f58'
+ '9a7c4acbfb7c28a10c28c1ce4d1425c5b795b764367f0446dde5bb5710e5'
+ 'a1994a02f0b02334458e4950a876e48363aee4a32d1904d6d9c6af2906f4'
+ 'e4e03122e35bf943cf17b0e05a8ebaa5154a86f40676e779bb1dcd2672d7'
+ '5887e1bcb51186596d749bc6c1ecfedcf60b24eb503ac9460dc3682fe74e'
+ '7acf16e9ab0014f6719322de534e14e90e7638e854546087c6a33d7743f5'
+ '8ee3b589dbd8fa5800af9b0ecdef0c041a2bf2126b908e3bf84881c1a323'
+ '929bca34f0830373a8b28f62b2133880ff6f20ffb19c38a7280ad4093082'
+ '04d0308203b8a003020102020107300d06092a864886f70d01010b050030'
+ '8183310b30090603550406130255533110300e060355040813074172697a'
+ '6f6e61311330110603550407130a53636f74747364616c65311a30180603'
+ '55040a1311476f44616464792e636f6d2c20496e632e3131302f06035504'
+ '031328476f20446164647920526f6f742043657274696669636174652041'
+ '7574686f72697479202d204732301e170d3131303530333037303030305a'
+ '170d3331303530333037303030305a3081b4310b30090603550406130255'
+ '533110300e060355040813074172697a6f6e61311330110603550407130a'
+ '53636f74747364616c65311a3018060355040a1311476f44616464792e63'
+ '6f6d2c20496e632e312d302b060355040b1324687474703a2f2f63657274'
+ '732e676f64616464792e636f6d2f7265706f7369746f72792f3133303106'
+ '03550403132a476f20446164647920536563757265204365727469666963'
+ '61746520417574686f72697479202d20473230820122300d06092a864886'
+ 'f70d01010105000382010f003082010a0282010100b9e0cb10d4af76bdd4'
+ '9362eb3064b881086cc304d962178e2fff3e65cf8fce62e63c521cda1645'
+ '4b55ab786b63836290ce0f696c99c81a148b4ccc4533ea88dc9ea3af2bfe'
+ '80619d7957c4cf2ef43f303c5d47fc9a16bcc3379641518e114b54f828be'
+ 'd08cbef030381ef3b026f86647636dde7126478f384753d1461db4e3dc00'
+ 'ea45acbdbc71d9aa6f00dbdbcd303a794f5f4c47f81def5bc2c49d603bb1'
+ 'b24391d8a4334eeab3d6274fad258aa5c6f4d5d0a6ae7405645788b54455'
+ 'd42d2a3a3ef8b8bde9320a029464c4163a50f14aaee77933af0c20077fe8'
+ 'df0439c269026c6352fa77c11bc87487c8b993185054354b694ebc3bd349'
+ '2e1fdcc1d252fb0203010001a382011a30820116300f0603551d130101ff'
+ '040530030101ff300e0603551d0f0101ff040403020106301d0603551d0e'
+ '0416041440c2bd278ecc348330a233d7fb6cb3f0b42c80ce301f0603551d'
+ '230418301680143a9a8507106728b6eff6bd05416e20c194da0fde303406'
+ '082b0601050507010104283026302406082b060105050730018618687474'
+ '703a2f2f6f6373702e676f64616464792e636f6d2f30350603551d1f042e'
+ '302c302aa028a0268624687474703a2f2f63726c2e676f64616464792e63'
+ '6f6d2f6764726f6f742d67322e63726c30460603551d20043f303d303b06'
+ '04551d20003033303106082b06010505070201162568747470733a2f2f63'
+ '657274732e676f64616464792e636f6d2f7265706f7369746f72792f300d'
+ '06092a864886f70d01010b05000382010100087e6c9310c838b896a9904b'
+ 'ffa15f4f04ef6c3e9c8806c9508fa673f757311bbebce42fdbf8bad35be0'
+ 'b4e7e679620e0ca2d76a637331b5f5a848a43b082da25d90d7b47c254f11'
+ '5630c4b6449d7b2c9de55ee6ef0c61aabfe42a1bee849eb8837dc143ce44'
+ 'a713700d911ff4c813ad8360d9d872a873241eb5ac220eca17896258441b'
+ 'ab892501000fcdc41b62db51b4d30f512a9bf4bc73fc76ce36a4cdd9d82c'
+ 'eaae9bf52ab290d14d75188a3f8a4190237d5b4bfea403589b46b2c36060'
+ '83f87d5041cec2a190c3bbef022fd21554ee4415d90aaea78a33edb12d76'
+ '3626dc04eb9ff7611f15dc876fee469628ada1267d0a09a72e04a38dbcf8'
+ 'bc0430010a81093082047d30820365a00302010202031be715300d06092a'
+ '864886f70d01010b05003063310b30090603550406130255533121301f06'
+ '0355040a131854686520476f2044616464792047726f75702c20496e632e'
+ '3131302f060355040b1328476f20446164647920436c6173732032204365'
+ '7274696669636174696f6e20417574686f72697479301e170d3134303130'
+ '313037303030305a170d3331303533303037303030305a308183310b3009'
+ '0603550406130255533110300e060355040813074172697a6f6e61311330'
+ '110603550407130a53636f74747364616c65311a3018060355040a131147'
+ '6f44616464792e636f6d2c20496e632e3131302f06035504031328476f20'
+ '446164647920526f6f7420436572746966696361746520417574686f7269'
+ '7479202d20473230820122300d06092a864886f70d01010105000382010f'
+ '003082010a0282010100bf716208f1fa5934f71bc918a3f7804958e92283'
+ '13a6c52043013b84f1e685499f27eaf6841b4ea0b4db7098c73201b1053e'
+ '074eeef4fa4f2f593022e7ab19566be28007fcf316758039517be5f935b6'
+ '744ea98d8213e4b63fa90383faa2be8a156a7fde0bc3b6191405caeac3a8'
+ '04943b467c320df3006622c88d696d368c1118b7d3b21c60b438fa028cce'
+ 'd3dd4607de0a3eeb5d7cc87cfbb02b53a4926269512505611a44818c2ca9'
+ '439623dfac3a819a0e29c51ca9e95d1eb69e9e300a39cef18880fb4b5dcc'
+ '32ec85624325340256270191b43b702a3f6eb1e89c88017d9fd4f9db536d'
+ '609dbf2ce758abb85f46fccec41b033c09eb49315c6946b3e04702030100'
+ '01a382011730820113300f0603551d130101ff040530030101ff300e0603'
+ '551d0f0101ff040403020106301d0603551d0e041604143a9a8507106728'
+ 'b6eff6bd05416e20c194da0fde301f0603551d23041830168014d2c4b0d2'
+ '91d44c1171b361cb3da1fedda86ad4e3303406082b060105050701010428'
+ '3026302406082b060105050730018618687474703a2f2f6f6373702e676f'
+ '64616464792e636f6d2f30320603551d1f042b30293027a025a023862168'
+ '7474703a2f2f63726c2e676f64616464792e636f6d2f6764726f6f742e63'
+ '726c30460603551d20043f303d303b0604551d20003033303106082b0601'
+ '0505070201162568747470733a2f2f63657274732e676f64616464792e63'
+ '6f6d2f7265706f7369746f72792f300d06092a864886f70d01010b050003'
+ '82010100590b53bd928611a7247bed5b31cf1d1f6c70c5b86ebe4ebbf6be'
+ '9750e1307fba285c6294c2e37e33f7fb427685db951c8c225875090c8865'
+ '67390a1609c5a03897a4c523933fb418a601064491e3a76927b45a257f3a'
+ 'b732cddd84ff2a382933a4dd67b285fea188201c5089c8dc2af64203374c'
+ 'e688dfd5af24f2b1c3dfccb5ece0995eb74954203c94180cc71c521849a4'
+ '6de1b3580bc9d8ecd9ae1c328e28700de2fea6179e840fbd5770b35ae91f'
+ 'a08653bbef7cff690be048c3b7930bc80a54c4ac5d1467376ccaa52f3108'
+ '37aa6e6f8cbc9be2575d2481af97979c84ad6cac374c66f361911120e4be'
+ '309f7aa42909b0e1345f6477184051df8c30a6af2289020a046d61696e12'
+ '1f08c0843d121976a914e4ea045fc0f08208d452187ad401ab2a874d0b6d'
+ '88ac1896d6e5af05209adde5af052a595061796d656e7420726571756573'
+ '7420666f722042697450617920696e766f69636520504151744e7858374b'
+ '4c3842744a426e66587954614820666f72206d65726368616e7420426974'
+ '4769766520466f756e646174696f6e322b68747470733a2f2f6269747061'
+ '792e636f6d2f692f504151744e7858374b4c3842744a426e665879546148'
+ '3a4c7b22696e766f6963654964223a22504151744e7858374b4c3842744a'
+ '426e665879546148222c226d65726368616e744964223a2254785a355279'
+ '43686d5a773269734b6a4a5747684263227d2a8002dca72518e1951edeb8'
+ '32ad680b5b99f29e0d5d9b9bf4c6d3a6e327436a8c9e44328b9c4738703b'
+ '3407033f13cfc90ac7201dbbb612ee00f81a94169b4f4994b310c1779488'
+ '77e440d1347a64aa55c351fd08a3ce9af7598b8d103b24a0928a23cba006'
+ '7d35aa86de6fc664c017233cd22db0ec204cacb00c87dd58abfdeae7c2fc'
+ '61e5666a41c1be2f633d925f97a088b1fabc0b6634fff7f0034437a8d4cf'
+ '52d94d739dc67327a1b3757358f2799bda1e0af4e897a8fae0ec77f2baa8'
+ 'fb6a9b315bf1a19e09dc806d3269e5544c98da2a3bfd1fcc70389539b1c9'
+ 'ad0c16cd34f62cd1533e3b491115814746c47914bd2c45cf947ac239b1e1'
+ '251907cfd99036',
'hex');
SampleRequest.bitpay3 = new Buffer([
8,1,18,11,120,53,48,57,43,115,104,97,50,53,54,26,145,33,10,179,14,48,130,7,47,48,130,6,23,160,3,2,1,2,2,9,0,132,145,79,189,177,108,195,183,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,129,180,49,11,48,9,6,3,85,4,6,19,2,85,83,49,16,48,14,6,3,85,4,8,19,7,65,114,105,122,111,110,97,49,19,48,17,6,3,85,4,7,19,10,83,99,111,116,116,115,100,97,108,101,49,26,48,24,6,3,85,4,10,19,17,71,111,68,97,100,100,121,46,99,111,109,44,32,73,110,99,46,49,45,48,43,6,3,85,4,11,19,36,104,116,116,112,58,47,47,99,101,114,116,115,46,103,111,100,97,100,100,121,46,99,111,109,47,114,101,112,111,115,105,116,111,114,121,47,49,51,48,49,6,3,85,4,3,19,42,71,111,32,68,97,100,100,121,32,83,101,99,117,114,101,32,67,101,114,116,105,102,105,99,97,116,101,32,65,117,116,104,111,114,105,116,121,32,45,32,71,50,48,30,23,13,49,55,48,51,50,51,49,56,50,50,48,48,90,23,13,49,57,48,52,50,53,49,57,49,49,48,48,90,48,129,190,49,19,48,17,6,11,43,6,1,4,1,130,55,60,2,1,3,19,2,85,83,49,25,48,23,6,11,43,6,1,4,1,130,55,60,2,1,2,19,8,68,101,108,97,119,97,114,101,49,29,48,27,6,3,85,4,15,19,20,80,114,105,118,97,116,101,32,79,114,103,97,110,105,122,97,116,105,111,110,49,16,48,14,6,3,85,4,5,19,7,53,49,54,51,57,54,54,49,11,48,9,6,3,85,4,6,19,2,85,83,49,16,48,14,6,3,85,4,8,19,7,71,101,111,114,103,105,97,49,16,48,14,6,3,85,4,7,19,7,65,116,108,97,110,116,97,49,21,48,19,6,3,85,4,10,19,12,66,105,116,80,97,121,44,32,73,110,99,46,49,19,48,17,6,3,85,4,3,19,10,98,105,116,112,97,121,46,99,111,109,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,228,32,37,54,154,128,60,27,68,35,74,39,157,18,59,97,14,193,23,132,82,252,124,87,242,87,100,146,225,18,49,102,190,213,238,193,29,18,168,184,36,144,79,119,170,97,102,206,110,17,21,56,32,65,33,6,155,94,207,248,31,209,171,39,177,185,71,92,73,215,104,14,245,244,6,245,122,24,113,183,115,146,167,181,196,55,15,80,75,161,117,97,127,120,254,36,201,237,118,21,75,70,170,103,124,246,70,58,32,41,9,113,27,52,206,236,190,14,231,185,118,108,253,112,24,136,107,103,229,24,241,172,57,163,113,81,82,214,46,89,84,127,52,212,64,237,61,250,1,169,42,66,237,11,34,28,9,49,68,237,99,248,108,35,0,184,207,25,43,117,146,151,50,175,99,196,21,38,228,253,105,115,95,0,98,198,28,45,188,181,111,100,57,255,155,190,98,80,125,165,39,82,193,217,159,36,175,187,58,107,92,152,152,157,33,150,251,107,217,204,131,165,171,33,240,96,233,85,231,244,90,1,201,239,231,130,241,92,212,138,184,36,214,39,45,178,183,28,137,136,208,32,113,232,5,223,2,3,1,0,1,163,130,3,54,48,130,3,50,48,12,6,3,85,29,19,1,1,255,4,2,48,0,48,29,6,3,85,29,37,4,22,48,20,6,8,43,6,1,5,5,7,3,1,6,8,43,6,1,5,5,7,3,2,48,14,6,3,85,29,15,1,1,255,4,4,3,2,5,160,48,53,6,3,85,29,31,4,46,48,44,48,42,160,40,160,38,134,36,104,116,116,112,58,47,47,99,114,108,46,103,111,100,97,100,100,121,46,99,111,109,47,103,100,105,103,50,115,51,45,55,46,99,114,108,48,92,6,3,85,29,32,4,85,48,83,48,72,6,11,96,134,72,1,134,253,109,1,7,23,3,48,57,48,55,6,8,43,6,1,5,5,7,2,1,22,43,104,116,116,112,58,47,47,99,101,114,116,105,102,105,99,97,116,101,115,46,103,111,100,97,100,100,121,46,99,111,109,47,114,101,112,111,115,105,116,111,114,121,47,48,7,6,5,103,129,12,1,1,48,118,6,8,43,6,1,5,5,7,1,1,4,106,48,104,48,36,6,8,43,6,1,5,5,7,48,1,134,24,104,116,116,112,58,47,47,111,99,115,112,46,103,111,100,97,100,100,121,46,99,111,109,47,48,64,6,8,43,6,1,5,5,7,48,2,134,52,104,116,116,112,58,47,47,99,101,114,116,105,102,105,99,97,116,101,115,46,103,111,100,97,100,100,121,46,99,111,109,47,114,101,112,111,115,105,116,111,114,121,47,103,100,105,103,50,46,99,114,116,48,31,6,3,85,29,35,4,24,48,22,128,20,64,194,189,39,142,204,52,131,48,162,51,215,251,108,179,240,180,44,128,206,48,37,6,3,85,29,17,4,30,48,28,130,10,98,105,116,112,97,121,46,99,111,109,130,14,119,119,119,46,98,105,116,112,97,121,46,99,111,109,48,29,6,3,85,29,14,4,22,4,20,165,105,138,112,218,161,64,93,188,221,26,2,233,93,184,165,26,170,221,127,48,130,1,125,6,10,43,6,1,4,1,214,121,2,4,2,4,130,1,109,4,130,1,105,1,103,0,118,0,86,20,6,154,47,215,194,236,211,245,225,189,68,178,62,199,70,118,185,188,153,17,92,192,239,148,152,85,214,137,208,221,0,0,1,90,252,104,175,199,0,0,4,3,0,71,48,69,2,33,0,235,151,195,31,196,176,22,241,181,150,113,177,184,185,126,129,244,193,62,243,11,183,85,160,220,123,250,104,239,131,22,21,2,32,121,107,28,254,2,126,232,38,149,125,242,22,115,6,156,58,112,223,33,221,134,139,248,252,197,33,187,102,96,100,109,86,0,117,0,238,75,189,183,117,206,96,186,225,66,105,31,171,225,158,102,163,15,126,95,176,114,216,131,0,196,123,137,122,168,253,203,0,0,1,90,252,104,180,42,0,0,4,3,0,70,48,68,2,32,18,70,1,35,114,116,214,52,45,28,249,10,80,72,78,252,87,139,79,8,151,183,192,123,193,49,238,27,132,95,130,132,2,32,118,114,255,79,171,189,66,175,212,250,248,91,33,148,81,223,15,136,235,107,60,66,75,214,242,105,6,200,240,214,11,84,0,118,0,164,185,9,144,180,24,88,20,135,187,19,162,204,103,112,10,60,53,152,4,249,27,223,184,227,119,205,14,200,13,220,16,0,0,1,90,252,104,180,224,0,0,4,3,0,71,48,69,2,33,0,185,8,32,27,186,160,33,80,70,30,105,97,216,179,117,162,48,101,220,103,88,178,35,86,135,143,42,176,134,78,137,26,2,32,104,75,86,208,190,225,209,65,241,125,209,80,170,181,60,118,232,73,241,247,26,87,186,102,5,95,78,120,83,254,48,225,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,32,16,146,183,128,136,147,128,107,160,143,171,254,235,215,108,218,18,150,13,84,146,29,185,15,222,34,109,9,111,117,80,151,130,47,78,76,91,192,255,76,183,160,211,251,171,0,254,18,99,198,0,27,80,110,210,207,158,116,141,5,138,212,2,116,145,0,9,141,135,108,25,5,170,131,79,186,255,163,96,170,100,167,84,63,209,27,221,92,179,44,11,122,185,49,171,17,202,109,182,58,187,180,137,228,107,23,91,174,126,204,145,77,174,162,179,137,139,245,205,152,2,34,161,176,203,155,250,194,184,214,144,91,99,136,29,204,216,67,32,227,193,171,115,37,146,226,109,120,156,215,115,220,128,231,128,57,129,190,179,225,99,196,90,158,58,54,89,213,221,176,52,62,248,141,241,86,207,229,64,186,155,182,99,169,243,14,218,126,23,158,107,139,106,95,14,168,135,67,84,63,52,14,80,238,84,140,158,26,72,54,67,104,144,250,21,215,198,36,84,113,128,73,252,39,36,26,174,132,250,214,138,204,43,123,38,140,33,53,6,176,203,74,45,111,217,84,65,191,157,240,177,115,145,142,199,10,212,9,48,130,4,208,48,130,3,184,160,3,2,1,2,2,1,7,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,129,131,49,11,48,9,6,3,85,4,6,19,2,85,83,49,16,48,14,6,3,85,4,8,19,7,65,114,105,122,111,110,97,49,19,48,17,6,3,85,4,7,19,10,83,99,111,116,116,115,100,97,108,101,49,26,48,24,6,3,85,4,10,19,17,71,111,68,97,100,100,121,46,99,111,109,44,32,73,110,99,46,49,49,48,47,6,3,85,4,3,19,40,71,111,32,68,97,100,100,121,32,82,111,111,116,32,67,101,114,116,105,102,105,99,97,116,101,32,65,117,116,104,111,114,105,116,121,32,45,32,71,50,48,30,23,13,49,49,48,53,48,51,48,55,48,48,48,48,90,23,13,51,49,48,53,48,51,48,55,48,48,48,48,90,48,129,180,49,11,48,9,6,3,85,4,6,19,2,85,83,49,16,48,14,6,3,85,4,8,19,7,65,114,105,122,111,110,97,49,19,48,17,6,3,85,4,7,19,10,83,99,111,116,116,115,100,97,108,101,49,26,48,24,6,3,85,4,10,19,17,71,111,68,97,100,100,121,46,99,111,109,44,32,73,110,99,46,49,45,48,43,6,3,85,4,11,19,36,104,116,116,112,58,47,47,99,101,114,116,115,46,103,111,100,97,100,100,121,46,99,111,109,47,114,101,112,111,115,105,116,111,114,121,47,49,51,48,49,6,3,85,4,3,19,42,71,111,32,68,97,100,100,121,32,83,101,99,117,114,101,32,67,101,114,116,105,102,105,99,97,116,101,32,65,117,116,104,111,114,105,116,121,32,45,32,71,50,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,185,224,203,16,212,175,118,189,212,147,98,235,48,100,184,129,8,108,195,4,217,98,23,142,47,255,62,101,207,143,206,98,230,60,82,28,218,22,69,75,85,171,120,107,99,131,98,144,206,15,105,108,153,200,26,20,139,76,204,69,51,234,136,220,158,163,175,43,254,128,97,157,121,87,196,207,46,244,63,48,60,93,71,252,154,22,188,195,55,150,65,81,142,17,75,84,248,40,190,208,140,190,240,48,56,30,243,176,38,248,102,71,99,109,222,113,38,71,143,56,71,83,209,70,29,180,227,220,0,234,69,172,189,188,113,217,170,111,0,219,219,205,48,58,121,79,95,76,71,248,29,239,91,194,196,157,96,59,177,178,67,145,216,164,51,78,234,179,214,39,79,173,37,138,165,198,244,213,208,166,174,116,5,100,87,136,181,68,85,212,45,42,58,62,248,184,189,233,50,10,2,148,100,196,22,58,80,241,74,174,231,121,51,175,12,32,7,127,232,223,4,57,194,105,2,108,99,82,250,119,193,27,200,116,135,200,185,147,24,80,84,53,75,105,78,188,59,211,73,46,31,220,193,210,82,251,2,3,1,0,1,163,130,1,26,48,130,1,22,48,15,6,3,85,29,19,1,1,255,4,5,48,3,1,1,255,48,14,6,3,85,29,15,1,1,255,4,4,3,2,1,6,48,29,6,3,85,29,14,4,22,4,20,64,194,189,39,142,204,52,131,48,162,51,215,251,108,179,240,180,44,128,206,48,31,6,3,85,29,35,4,24,48,22,128,20,58,154,133,7,16,103,40,182,239,246,189,5,65,110,32,193,148,218,15,222,48,52,6,8,43,6,1,5,5,7,1,1,4,40,48,38,48,36,6,8,43,6,1,5,5,7,48,1,134,24,104,116,116,112,58,47,47,111,99,115,112,46,103,111,100,97,100,100,121,46,99,111,109,47,48,53,6,3,85,29,31,4,46,48,44,48,42,160,40,160,38,134,36,104,116,116,112,58,47,47,99,114,108,46,103,111,100,97,100,100,121,46,99,111,109,47,103,100,114,111,111,116,45,103,50,46,99,114,108,48,70,6,3,85,29,32,4,63,48,61,48,59,6,4,85,29,32,0,48,51,48,49,6,8,43,6,1,5,5,7,2,1,22,37,104,116,116,112,115,58,47,47,99,101,114,116,115,46,103,111,100,97,100,100,121,46,99,111,109,47,114,101,112,111,115,105,116,111,114,121,47,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,8,126,108,147,16,200,56,184,150,169,144,75,255,161,95,79,4,239,108,62,156,136,6,201,80,143,166,115,247,87,49,27,190,188,228,47,219,248,186,211,91,224,180,231,230,121,98,14,12,162,215,106,99,115,49,181,245,168,72,164,59,8,45,162,93,144,215,180,124,37,79,17,86,48,196,182,68,157,123,44,157,229,94,230,239,12,97,170,191,228,42,27,238,132,158,184,131,125,193,67,206,68,167,19,112,13,145,31,244,200,19,173,131,96,217,216,114,168,115,36,30,181,172,34,14,202,23,137,98,88,68,27,171,137,37,1,0,15,205,196,27,98,219,81,180,211,15,81,42,155,244,188,115,252,118,206,54,164,205,217,216,44,234,174,155,245,42,178,144,209,77,117,24,138,63,138,65,144,35,125,91,75,254,164,3,88,155,70,178,195,96,96,131,248,125,80,65,206,194,161,144,195,187,239,2,47,210,21,84,238,68,21,217,10,174,167,138,51,237,177,45,118,54,38,220,4,235,159,247,97,31,21,220,135,111,238,70,150,40,173,161,38,125,10,9,167,46,4,163,141,188,248,188,4,48,1,10,129,9,48,130,4,125,48,130,3,101,160,3,2,1,2,2,3,27,231,21,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,99,49,11,48,9,6,3,85,4,6,19,2,85,83,49,33,48,31,6,3,85,4,10,19,24,84,104,101,32,71,111,32,68,97,100,100,121,32,71,114,111,117,112,44,32,73,110,99,46,49,49,48,47,6,3,85,4,11,19,40,71,111,32,68,97,100,100,121,32,67,108,97,115,115,32,50,32,67,101,114,116,105,102,105,99,97,116,105,111,110,32,65,117,116,104,111,114,105,116,121,48,30,23,13,49,52,48,49,48,49,48,55,48,48,48,48,90,23,13,51,49,48,53,51,48,48,55,48,48,48,48,90,48,129,131,49,11,48,9,6,3,85,4,6,19,2,85,83,49,16,48,14,6,3,85,4,8,19,7,65,114,105,122,111,110,97,49,19,48,17,6,3,85,4,7,19,10,83,99,111,116,116,115,100,97,108,101,49,26,48,24,6,3,85,4,10,19,17,71,111,68,97,100,100,121,46,99,111,109,44,32,73,110,99,46,49,49,48,47,6,3,85,4,3,19,40,71,111,32,68,97,100,100,121,32,82,111,111,116,32,67,101,114,116,105,102,105,99,97,116,101,32,65,117,116,104,111,114,105,116,121,32,45,32,71,50,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,191,113,98,8,241,250,89,52,247,27,201,24,163,247,128,73,88,233,34,131,19,166,197,32,67,1,59,132,241,230,133,73,159,39,234,246,132,27,78,160,180,219,112,152,199,50,1,177,5,62,7,78,238,244,250,79,47,89,48,34,231,171,25,86,107,226,128,7,252,243,22,117,128,57,81,123,229,249,53,182,116,78,169,141,130,19,228,182,63,169,3,131,250,162,190,138,21,106,127,222,11,195,182,25,20,5,202,234,195,168,4,148,59,70,124,50,13,243,0,102,34,200,141,105,109,54,140,17,24,183,211,178,28,96,180,56,250,2,140,206,211,221,70,7,222,10,62,235,93,124,200,124,251,176,43,83,164,146,98,105,81,37,5,97,26,68,129,140,44,169,67,150,35,223,172,58,129,154,14,41,197,28,169,233,93,30,182,158,158,48,10,57,206,241,136,128,251,75,93,204,50,236,133,98,67,37,52,2,86,39,1,145,180,59,112,42,63,110,177,232,156,136,1,125,159,212,249,219,83,109,96,157,191,44,231,88,171,184,95,70,252,206,196,27,3,60,9,235,73,49,92,105,70,179,224,71,2,3,1,0,1,163,130,1,23,48,130,1,19,48,15,6,3,85,29,19,1,1,255,4,5,48,3,1,1,255,48,14,6,3,85,29,15,1,1,255,4,4,3,2,1,6,48,29,6,3,85,29,14,4,22,4,20,58,154,133,7,16,103,40,182,239,246,189,5,65,110,32,193,148,218,15,222,48,31,6,3,85,29,35,4,24,48,22,128,20,210,196,176,210,145,212,76,17,113,179,97,203,61,161,254,221,168,106,212,227,48,52,6,8,43,6,1,5,5,7,1,1,4,40,48,38,48,36,6,8,43,6,1,5,5,7,48,1,134,24,104,116,116,112,58,47,47,111,99,115,112,46,103,111,100,97,100,100,121,46,99,111,109,47,48,50,6,3,85,29,31,4,43,48,41,48,39,160,37,160,35,134,33,104,116,116,112,58,47,47,99,114,108,46,103,111,100,97,100,100,121,46,99,111,109,47,103,100,114,111,111,116,46,99,114,108,48,70,6,3,85,29,32,4,63,48,61,48,59,6,4,85,29,32,0,48,51,48,49,6,8,43,6,1,5,5,7,2,1,22,37,104,116,116,112,115,58,47,47,99,101,114,116,115,46,103,111,100,97,100,100,121,46,99,111,109,47,114,101,112,111,115,105,116,111,114,121,47,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,89,11,83,189,146,134,17,167,36,123,237,91,49,207,29,31,108,112,197,184,110,190,78,187,246,190,151,80,225,48,127,186,40,92,98,148,194,227,126,51,247,251,66,118,133,219,149,28,140,34,88,117,9,12,136,101,103,57,10,22,9,197,160,56,151,164,197,35,147,63,180,24,166,1,6,68,145,227,167,105,39,180,90,37,127,58,183,50,205,221,132,255,42,56,41,51,164,221,103,178,133,254,161,136,32,28,80,137,200,220,42,246,66,3,55,76,230,136,223,213,175,36,242,177,195,223,204,181,236,224,153,94,183,73,84,32,60,148,24,12,199,28,82,24,73,164,109,225,179,88,11,201,216,236,217,174,28,50,142,40,112,13,226,254,166,23,158,132,15,189,87,112,179,90,233,31,160,134,83,187,239,124,255,105,11,224,72,195,183,147,11,200,10,84,196,172,93,20,103,55,108,202,165,47,49,8,55,170,110,111,140,188,155,226,87,93,36,129,175,151,151,156,132,173,108,172,55,76,102,243,97,145,17,32,228,190,48,159,122,164,41,9,176,225,52,95,100,119,24,64,81,223,140,48,166,175,34,254,1,10,4,109,97,105,110,18,31,8,176,176,62,18,25,118,169,20,200,224,211,190,19,131,14,226,117,67,159,166,136,94,214,203,1,126,58,155,136,172,24,139,149,194,207,5,32,143,156,194,207,5,42,78,80,97,121,109,101,110,116,32,114,101,113,117,101,115,116,32,102,111,114,32,66,105,116,80,97,121,32,105,110,118,111,105,99,101,32,52,97,75,84,119,90,101,109,102,104,100,109,115,66,90,65,84,85,107,99,97,81,32,102,111,114,32,109,101,114,99,104,97,110,116,32,66,105,116,71,105,118,101,50,43,104,116,116,112,115,58,47,47,98,105,116,112,97,121,46,99,111,109,47,105,47,52,97,75,84,119,90,101,109,102,104,100,109,115,66,90,65,84,85,107,99,97,81,58,76,123,34,105,110,118,111,105,99,101,73,100,34,58,34,52,97,75,84,119,90,101,109,102,104,100,109,115,66,90,65,84,85,107,99,97,81,34,44,34,109,101,114,99,104,97,110,116,73,100,34,58,34,84,120,90,53,82,121,67,104,109,90,119,50,105,115,75,106,74,87,71,104,66,99,34,125,42,128,2,179,191,103,84,171,141,78,161,213,37,249,234,51,232,101,125,137,192,199,131,226,240,220,137,249,250,62,201,248,74,209,55,71,11,14,65,112,221,179,102,108,152,81,206,132,14,177,138,241,155,216,23,230,193,208,139,113,122,191,124,122,19,128,214,110,124,162,177,174,17,70,100,26,17,21,167,122,23,151,89,175,5,100,156,220,127,6,159,28,194,146,218,158,49,253,111,74,234,84,4,87,22,234,95,184,238,71,5,33,233,133,252,3,233,42,42,162,37,152,29,248,148,43,32,170,17,144,53,74,234,172,15,168,167,103,105,190,155,167,31,124,227,44,162,202,182,247,240,23,78,232,208,248,237,74,156,13,238,163,161,62,138,61,20,59,127,150,70,181,36,108,87,49,129,109,220,249,82,36,114,238,193,59,9,35,177,2,249,214,53,86,125,158,169,110,116,252,81,60,227,167,24,212,97,19,195,225,146,95,142,212,175,118,117,15,91,198,154,222,124,191,107,104,92,59,173,146,246,180,145,86,249,117,121,119,155,94,131,224,228,213,85,123,162,108,221,131,8,108,93,208,13,157,191,172,81
]);

@@ -347,0 +188,0 @@

@@ -19,2 +19,7 @@ #!/usr/bin/env node

// Delete preprocesor macros
body = body.replace(/#[^\n]+/g, '');
// Delete the trailing comma

@@ -26,2 +31,3 @@ body = body.replace(/,\s*$/, '');

// Make sue we turn the cert names into property names

@@ -37,2 +43,3 @@ body = body.replace(/\/\*([^*]+)\*\/\n(?=")/g, function(_, name) {

// \xff -> \u00ff

@@ -190,2 +197,6 @@ body = body.replace(/\\x([0-9a-fA-F]{2})/g, '\\u00$1');

return getRootCerts(function(err, certs) {
if (err) {
console.log('Error', err);
return callback();
}
var file = path.resolve(__dirname, 'lib', 'rootcerts.json');

@@ -192,0 +203,0 @@ return fs.writeFile(file, certs, function(err) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc