diff --git a/Cargo.lock b/Cargo.lock index 12f2ddc2..97bac292 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -232,9 +232,9 @@ dependencies = [ [[package]] name = "der" -version = "0.7.9" +version = "0.8.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" +checksum = "82db698b33305f0134faf590b9d1259dc171b5481ac41d5c8146c3b3ee7d4319" [[package]] name = "either" diff --git a/Cargo.toml b/Cargo.toml index cdbe532b..bbff2972 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,12 +20,12 @@ rust-version = "1.73" subtle = { version = "2.6", default-features = false } # optional dependencies -der = { version = "0.7", optional = true, default-features = false } +der = { version = "0.8.0-rc.1", optional = true, default-features = false } hybrid-array = { version = "0.2.0-rc.8", optional = true } num-traits = { version = "0.2.19", default-features = false } rand_core = { version = "0.6.4", optional = true } rlp = { version = "0.5", optional = true, default-features = false } -serdect = { version = "=0.3.0-rc.0", optional = true, default-features = false } +serdect = { version = "0.3.0-rc.0", optional = true, default-features = false } zeroize = { version = "1", optional = true, default-features = false } [dev-dependencies] diff --git a/src/uint/encoding/der.rs b/src/uint/encoding/der.rs index eea1565e..a577b4b1 100644 --- a/src/uint/encoding/der.rs +++ b/src/uint/encoding/der.rs @@ -35,6 +35,8 @@ impl<'a, const LIMBS: usize> DecodeValue<'a> for Uint where Uint: ArrayEncoding, { + type Error = der::Error; + fn decode_value>(reader: &mut R, header: der::Header) -> der::Result { UintRef::decode_value(reader, header)?.try_into() }