-
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.
Add custom serde for all structs (#75)
* add custom serde for scalar point and field * use while let instead of loop with single match branch * impl custom serde with tests for ecdsa signature and public key types * add custom serde for schnorr sig * remove unnecessary context from ecsda signature, since it costs very little to create and having it there causes problems * remove hardwired std::fmt * add Display for structs and errors that were missing it * inc major version for release
- Loading branch information
Showing
7 changed files
with
535 additions
and
39 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,6 +1,6 @@ | ||
[package] | ||
name = "p256k1" | ||
version = "5.5.0" | ||
version = "6.0.0" | ||
edition = "2021" | ||
authors = ["Joey Yandle <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
@@ -40,6 +40,7 @@ syn = { version = "2.0.10", features = ["full"] } | |
[dev-dependencies] | ||
libc = "0.2" | ||
criterion = "0.4.0" | ||
serde_json = "1.0" | ||
|
||
[[bench]] | ||
name = "point_bench" | ||
|
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 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.