Skip to content

Commit

Permalink
v0.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
brycx committed Nov 17, 2022
1 parent a16c8d1 commit fa73fb2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 0.6.4

__Date:__ November 17, 2022.

__Changelog:__
- `AsymmetricSecretKey` now re-computes the public key from the secret seed to check if they match. If they don't an error is returned. Because we use `ed25519-compact` crate for Ed25519, if an all-zero seed is used, the creation of `AsymmetricSecretKey` will panic.

### 0.6.3

__Date:__ October 15, 2022.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pasetors"
version = "0.6.3" # Update html_root_url in lib.rs along with this.
version = "0.6.4" # Update html_root_url in lib.rs along with this.
authors = ["brycx <[email protected]>"]
edition = "2018"
description = "PASETO: Platform-Agnostic Security Tokens (in Rust)"
Expand Down
3 changes: 3 additions & 0 deletions src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ pub struct AsymmetricSecretKey<V> {

impl<V: Version> AsymmetricSecretKey<V> {
/// Create a `AsymmetricSecretKey` from `bytes`.
///
/// __PANIC__: If the version is V2 or V4, a panic will occur if an all-zero
/// secret seed is used.
pub fn from(bytes: &[u8]) -> Result<Self, Error> {
V::validate_secret_key(bytes)?;

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
unused_qualifications,
overflowing_literals
)]
#![doc(html_root_url = "https://docs.rs/pasetors/0.6.3")]
#![doc(html_root_url = "https://docs.rs/pasetors/0.6.4")]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[macro_use]
Expand Down

0 comments on commit fa73fb2

Please sign in to comment.