fireblocks_sdk/models/
public_key_information.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PublicKeyInformation {
16    /// Elliptic Curve
17    #[serde(rename = "algorithm", skip_serializing_if = "Option::is_none")]
18    pub algorithm: Option<Algorithm>,
19    /// BIP44 derivation path
20    #[serde(rename = "derivationPath", skip_serializing_if = "Option::is_none")]
21    pub derivation_path: Option<Vec<i32>>,
22    /// Compressed/Uncompressed public key value in hex representation
23    #[serde(rename = "publicKey", skip_serializing_if = "Option::is_none")]
24    pub public_key: Option<String>,
25}
26
27impl PublicKeyInformation {
28    pub fn new() -> PublicKeyInformation {
29        PublicKeyInformation {
30            algorithm: None,
31            derivation_path: None,
32            public_key: None,
33        }
34    }
35}
36/// Elliptic Curve
37#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38pub enum Algorithm {
39    #[serde(rename = "MPC_ECDSA_SECP256K1")]
40    MpcEcdsaSecp256K1,
41    #[serde(rename = "MPC_ECDSA_SECP256R1")]
42    MpcEcdsaSecp256R1,
43    #[serde(rename = "MPC_EDDSA_ED25519")]
44    MpcEddsaEd25519,
45}
46
47impl Default for Algorithm {
48    fn default() -> Algorithm {
49        Self::MpcEcdsaSecp256K1
50    }
51}