pub struct HdSubmitInput {
pub address: String,
pub chain_type: WalletImportSupportedChains,
pub ciphertext: String,
pub encapsulated_key: String,
pub encryption_type: HpkeEncryption,
pub entropy_type: HdSubmitInputEntropyType,
pub index: u64,
}Expand description
HdSubmitInput
JSON schema
{
"type": "object",
"required": [
"address",
"chain_type",
"ciphertext",
"encapsulated_key",
"encryption_type",
"entropy_type",
"index"
],
"properties": {
"address": {
"description": "The address of the wallet to import.",
"type": "string"
},
"chain_type": {
"$ref": "#/components/schemas/WalletImportSupportedChains"
},
"ciphertext": {
"description": "The encrypted entropy of the wallet to import.",
"type": "string"
},
"encapsulated_key": {
"description": "The base64-encoded encapsulated key that was generated during encryption, for use during decryption inside the TEE.",
"type": "string"
},
"encryption_type": {
"$ref": "#/components/schemas/HPKEEncryption"
},
"entropy_type": {
"description": "The entropy type of the wallet to import.",
"type": "string",
"enum": [
"hd"
]
},
"index": {
"description": "The index of the wallet to import.",
"type": "integer",
"minimum": 0.0
}
}
}Fields§
§address: StringThe address of the wallet to import.
chain_type: WalletImportSupportedChains§ciphertext: StringThe encrypted entropy of the wallet to import.
encapsulated_key: StringThe base64-encoded encapsulated key that was generated during encryption, for use during decryption inside the TEE.
encryption_type: HpkeEncryption§entropy_type: HdSubmitInputEntropyTypeThe entropy type of the wallet to import.
index: u64The index of the wallet to import.
Trait Implementations§
Source§impl Clone for HdSubmitInput
impl Clone for HdSubmitInput
Source§fn clone(&self) -> HdSubmitInput
fn clone(&self) -> HdSubmitInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HdSubmitInput
impl Debug for HdSubmitInput
Source§impl<'de> Deserialize<'de> for HdSubmitInput
impl<'de> Deserialize<'de> for HdSubmitInput
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
Source§impl From<&HdSubmitInput> for HdSubmitInput
impl From<&HdSubmitInput> for HdSubmitInput
Source§fn from(value: &HdSubmitInput) -> Self
fn from(value: &HdSubmitInput) -> Self
Converts to this type from the input type.
Source§impl From<HdSubmitInput> for WalletImportSubmissionRequestWallet
impl From<HdSubmitInput> for WalletImportSubmissionRequestWallet
Source§fn from(value: HdSubmitInput) -> Self
fn from(value: HdSubmitInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HdSubmitInput
impl RefUnwindSafe for HdSubmitInput
impl Send for HdSubmitInput
impl Sync for HdSubmitInput
impl Unpin for HdSubmitInput
impl UnwindSafe for HdSubmitInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more