diff --git a/crates/core/keys/src/keys/wallet_id.rs b/crates/core/keys/src/keys/wallet_id.rs index 263ca93912..f67e03b263 100644 --- a/crates/core/keys/src/keys/wallet_id.rs +++ b/crates/core/keys/src/keys/wallet_id.rs @@ -1,13 +1,17 @@ use serde::{Deserialize, Serialize}; use penumbra_proto::core::keys::v1; -use penumbra_proto::{penumbra::core::keys::v1 as pb, serializers::bech32str}; +use penumbra_proto::{penumbra::core::keys::v1 as pb, serializers::bech32str, DomainType}; /// The hash of a full viewing key, used as an account identifier. #[derive(Clone, Copy, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] #[serde(try_from = "pb::WalletId", into = "pb::WalletId")] pub struct WalletId(pub [u8; 32]); +impl DomainType for WalletId { + type Proto = pb::WalletId; +} + impl TryFrom for WalletId { type Error = anyhow::Error;