Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion ecdsa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ categories = ["cryptography", "no-std"]
keywords = ["crypto", "ecc", "ecdsa", "signature", "signing"]

[dependencies]
signature = { version = "0", path = "../signature-crate" }
signature = { version = "0.3", path = "../signature-crate" }
2 changes: 1 addition & 1 deletion ed25519/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ categories = ["cryptography", "no-std"]
keywords = ["crypto", "curve25519", "ecc", "signature", "signing"]

[dependencies]
signature = { version = "0", path = "../signature-crate", default-features = false }
signature = { version = "0.3", path = "../signature-crate", default-features = false }

[features]
default = ["alloc"]
Expand Down
30 changes: 23 additions & 7 deletions signature-crate/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
## [0.2.0] (2019-06-06)
# Changelog
All notable changes to this project will be documented in this file.

- `signature_derive`: Custom derive support for `Signer`/`Verifier` ([#18])
- Have `DigestSigner`/`DigestVerifier` take `Digest` instance ([#17])
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.0] (2019-05-25)
## 0.3.0 (2019-10-10)
### Changed
- Simplify alloc gating; MSRV 1.36+ ([#28])
- Replace `DigestSignature` trait with `#[digest(...)]` attribute ([#27])
- signature_derive: Upgrade to 1.x proc macro crates ([#26])

- Initial release
[#28]: https://github.com/RustCrypto/signatures/pull/28
[#27]: https://github.com/RustCrypto/signatures/pull/27
[#26]: https://github.com/RustCrypto/signatures/pull/27

## 0.2.0 (2019-06-06)
### Added
- `signature_derive`: Custom derive support for `Signer`/`Verifier` ([#18])

### Changed
- Have `DigestSigner`/`DigestVerifier` take `Digest` instance ([#17])

[0.2.0]: https://github.com/RustCrypto/signatures/pull/19
[#18]: https://github.com/RustCrypto/signatures/pull/18
[#17]: https://github.com/RustCrypto/signatures/pull/17
[0.1.0]: https://github.com/RustCrypto/signatures/pull/15

## 0.1.0 (2019-05-25)

- Initial release
4 changes: 2 additions & 2 deletions signature-crate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "signature"
description = "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)"
version = "0.2.0" # Also update html_root_url in lib.rs when bumping this
version = "0.3.0" # Also update html_root_url in lib.rs when bumping this
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
documentation = "https://docs.rs/signature"
Expand All @@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]

[dependencies]
digest = { version = "0.8", optional = true, default-features = false }
signature_derive = { version = "0.2", optional = true, path = "signature_derive" }
signature_derive = { version = "0.3", optional = true, path = "signature_derive" }

[dev-dependencies]
hex-literal = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion signature-crate/signature_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "signature_derive"
version = "0.2.1"
version = "0.3.0"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
description = "Custom derive support for the 'signature' crate"
Expand Down
8 changes: 7 additions & 1 deletion signature-crate/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ impl Error {
Self::default()
}

/// Create a new error from a cause
/// Create a new error with an associated cause.
///
/// NOTE: The "cause" should NOT be used to propagate cryptographic errors
/// e.g. signature parsing or verification errors.
///
/// The intended use cases are for propagating errors related to external
/// signers, e.g. communication/authentication errors with HSMs, KMS, etc.
#[cfg(feature = "std")]
pub fn from_cause<E>(cause: E) -> Self
where
Expand Down