mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Fix serde expecting string.
This commit is contained in:
parent
ecee2a4708
commit
7888bfe3f8
1 changed files with 1 additions and 1 deletions
|
|
@ -740,7 +740,7 @@ impl<'d> Deserialize<'d> for PublicKey {
|
||||||
type Value = PublicKey;
|
type Value = PublicKey;
|
||||||
|
|
||||||
fn expecting(&self, formatter: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
fn expecting(&self, formatter: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
||||||
formatter.write_str("An ed25519 signature as specified in RFC8032")
|
formatter.write_str("An ed25519 public key as a 32-byte compressed point, as specified in RFC8032")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn visit_bytes<E>(self, bytes: &[u8]) -> Result<PublicKey, E> where E: SerdeError {
|
fn visit_bytes<E>(self, bytes: &[u8]) -> Result<PublicKey, E> where E: SerdeError {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue