Struct chainhook_types::PublicKey
source · pub struct PublicKey {
pub hex_bytes: Option<String>,
pub curve_type: CurveType,
}Expand description
PublicKey contains a public key byte array for a particular CurveType encoded in hex. Note that there is no PrivateKey struct as this is NEVER the concern of an implementation.
Fields§
§hex_bytes: Option<String>Hex-encoded public key bytes in the format specified by the CurveType.
curve_type: CurveTypeTrait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more