dpp/identity/identity_public_key/conversion/json/v0/mod.rs
1use crate::version::PlatformVersion;
2use crate::ProtocolError;
3use serde_json::Value as JsonValue;
4
5pub trait IdentityPublicKeyJsonConversionMethodsV0 {
6 fn to_json(&self) -> Result<JsonValue, ProtocolError>;
7 fn to_json_object(&self) -> Result<JsonValue, ProtocolError>;
8 fn from_json_object(
9 raw_object: JsonValue,
10 platform_version: &PlatformVersion,
11 ) -> Result<Self, ProtocolError>
12 where
13 Self: Sized;
14}