Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a4ff1ff
benchmarks and final setup
MichaelAJay May 19, 2026
9de1135
elliptic copy
MichaelAJay May 20, 2026
27d8436
rm unused (bitcore-lib) files
MichaelAJay May 20, 2026
3db0928
update requires -> imports
MichaelAJay May 20, 2026
61984c6
Point fix
MichaelAJay May 20, 2026
b6c25b0
Handle bitcore-lib style usage in BN.prototype.toBuffer
MichaelAJay May 20, 2026
e26356a
Squashed commit of the following:
MichaelAJay Jun 1, 2026
d122e84
Merge branch 'master' of https://github.com/bitpay/bitcore into rm-el…
MichaelAJay Jun 1, 2026
9ff84c5
add precomputed values (elliptic parity)
MichaelAJay Jun 1, 2026
c193065
rm point tests & "no precompute values" test
MichaelAJay Jun 1, 2026
631c229
rm bn.js & elliptic dependencies and passthrough exports
MichaelAJay Jun 1, 2026
1cef5a1
rm tmp files
MichaelAJay Jun 2, 2026
239797b
rm tmp eval dir
MichaelAJay Jun 2, 2026
cc6b45a
ESM -> CJS
MichaelAJay Jun 3, 2026
b30e2cf
add verified kG test vectors (python verification script included in …
MichaelAJay Jun 3, 2026
d829a41
remove python check script
MichaelAJay Jun 3, 2026
5b98e67
rename KG keys from decimal to hex-encoded strings.
MichaelAJay Jun 3, 2026
3483f1c
fix self-referential test assertions with oracle-backed tests
MichaelAJay Jun 3, 2026
4bebcad
fix overstated test name issues
MichaelAJay Jun 4, 2026
6e0887e
copy G into fresh point to avoid singleton mutation
MichaelAJay Jun 4, 2026
e74a5b2
remove stale/duplicated constants from tests
MichaelAJay Jun 4, 2026
50f7e71
rm unused utils methods
MichaelAJay Jun 4, 2026
dda141c
add utils tests & update utils module to match elliptic vendored impl…
MichaelAJay Jun 4, 2026
2eea64a
address bn test coverage gap
MichaelAJay Jun 4, 2026
3138664
shore up negative scalar multiplication gap - note skipped tests - be…
MichaelAJay Jun 4, 2026
e18eb3c
fix point decoding rejection gap coverage - note skipped tests becaus…
MichaelAJay Jun 4, 2026
bd46de7
shore up scalar multiplication vector test gap
MichaelAJay Jun 4, 2026
b247229
Merge branch 'test-cleanup'
MichaelAJay Jun 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
- node_modules
- packages/bitcore-build/node_modules
- packages/bitcore-client/node_modules
- packages/bitcore-common/node_modules
- packages/bitcore-lib/node_modules
- packages/bitcore-lib-cash/node_modules
- packages/bitcore-lib-doge/node_modules
Expand Down Expand Up @@ -220,6 +221,11 @@ jobs:
steps:
- run_test:
package: bitcore-tss
bitcore-common:
executor: main
steps:
- run_test:
package: bitcore-common
crypto-rpc:
executor: main
steps:
Expand Down Expand Up @@ -272,6 +278,9 @@ workflows:
- bitcore-tss:
requires:
- build
- bitcore-common:
requires:
- build
- bitcore-cli:
requires:
- build
Expand Down
6 changes: 6 additions & 0 deletions packages/bitcore-common/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This package contains code derived from:
- elliptic (MIT) - https://github.com/indutny/elliptic
Copyright (c) 2014-2018, Fedor Indutny.
- bn.js (MIT) - https://github.com/indutny/bn.js
Copyright (c) 2014-2019, Fedor Indutny.
All derived code retains its original MIT license headers.
5 changes: 5 additions & 0 deletions packages/bitcore-common/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const startGulp = require('@bitpay-labs/bitcore-build');

Object.assign(exports, startGulp('common', {
skipBrowser: true
}));
19 changes: 19 additions & 0 deletions packages/bitcore-common/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';

/**
* bitcore-common — crypto primitives for bitcore packages.
*
* API Contract:
* - All functions accept private keys as Buffer (32 bytes), NOT strings.
* - Public keys are returned as Point objects or Buffer (32 bytes for x-only).
*/
const BN = require('./lib/bn');
const Curve = require('./lib/curve/secp256k1');
const { Point } = require('./lib/curve/point');
const Utils = require('./lib/utils');

module.exports.BN = BN;
module.exports.Curve = Curve;
module.exports.Point = Point;
module.exports.Utils = Utils;

Loading