risc0-curve25519-dalek-source/tests
Michal Nazarewicz 24cd9421d5 Change from_bytes methods to take fixed-size array argument
Change from_bytes methods to take `&[u8; N]` argument (with `N`
appropriate for given type) rather than `&[u8]`.  This harmonises
the convention with SigningKey and ed25519::Signature; helps type
inference; and allows users to assert bytes size to be asserted at
compile time.

Creating from a slice is still possible via `TryFrom<&[u8]>` trait.

This is an API breaking change.  The simplest way to update existing
code is to replace Foo::from_bytes with Foo::try_from.  This should
cover majority of uses.
2022-12-18 19:43:37 +01:00
..
examples PKCS#8 support (#224) 2022-12-13 18:19:31 -05:00
ed25519.rs Change from_bytes methods to take fixed-size array argument 2022-12-18 19:43:37 +01:00
pkcs8.rs Rename Keypair => SigningKey; PublicKey => VerifyingKey (#242) 2022-12-18 01:24:58 -05:00