Skip to content

Commit

Permalink
Change the size of key material in SKF to 32 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Jul 12, 2021
1 parent 7eb71ae commit 26dfde6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `SecretKey` and `SecretKeyFactory` no longer implement `SerializableToArray`, but implement `SerializableToSecretArray` instead. Correspondingly, in the bindings these objects implement `to_secret_bytes()` instead of `__bytes__()` (for Python), and `toSecretBytes()` instead of `toBytes()` (for WASM). ([#53])
- `SecretKey`, `SecretKeyFactory` and `Signer` do not implement `PartialEq` anymore. Corresponding methods in the bindings were removed as well. ([#53])
- Bumped `k256` to `0.9` and `ecdsa` to `0.12.2`. ([#53])
- Reduced the size of key material in `SecretKeyFactory` from 64 to 32 bytes. ([#64])


### Added
Expand Down
2 changes: 1 addition & 1 deletion umbral-pre/src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ impl fmt::Display for SecretKeyFactoryError {
}
}

type SecretKeyFactorySeedSize = U64; // the size of the seed material for key derivation
type SecretKeyFactorySeedSize = U32; // the size of the seed material for key derivation
type SecretKeyFactoryDerivedSize = U64; // the size of the derived key (before hashing to scalar)
type SecretKeyFactorySeed = GenericArray<u8, SecretKeyFactorySeedSize>;

Expand Down

0 comments on commit 26dfde6

Please sign in to comment.