-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from lPernod-sorare/loicp/modern-bigint
[BREAKING] Use BigInt instead of bn.js - Change type of generateKey - Deprecate ec.KeyPair exports - Deprecate USE_STARKNET_CPP
- Loading branch information
Showing
17 changed files
with
506 additions
and
3,980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"presets": ["@babel/env", "@babel/typescript"], | ||
"plugins": ["macros"] | ||
"presets": ["@babel/env", "@babel/typescript"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 2.0.0 | ||
|
||
- Breaking change: Add dependency on BigInt support for all operations | ||
- Previously only necessary when using USE_STARKWARE_CPP=true | ||
- DEPRECATE C++ bindings | ||
- Breaking change, remove all references to `elliptic` and `bn.js` | ||
- `generateKey` now returns the hex encoded private Key instead of elliptic KeyPair (no hex prefix) | ||
|
||
## Migration guide | ||
|
||
```js | ||
// @sorare.crypto@^1.0.0 | ||
const keypair = generateKey(); | ||
const privateKey = exportPrivateKey(keypair); | ||
const publicKey = exportPublicKey(keypair); | ||
|
||
// @sorare/[email protected] | ||
const privateKey = generateKey(); | ||
const publicKey = exportPublicKey(privateKey); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Submodule crypto-cpp
deleted from
658055
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.