pub struct PrivateKeySubmitInput {
pub address: String,
pub chain_type: WalletImportSupportedChains,
pub ciphertext: String,
pub encapsulated_key: String,
pub encryption_type: HpkeEncryption,
pub entropy_type: PrivateKeySubmitInputEntropyType,
}Expand description
PrivateKeySubmitInput
JSON schema
{
"type": "object",
"required": [
"address",
"chain_type",
"ciphertext",
"encapsulated_key",
"encryption_type",
"entropy_type"
],
"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": {
"type": "string",
"enum": [
"private-key"
]
}
}
}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: PrivateKeySubmitInputEntropyTypeTrait Implementations§
Source§impl Clone for PrivateKeySubmitInput
impl Clone for PrivateKeySubmitInput
Source§fn clone(&self) -> PrivateKeySubmitInput
fn clone(&self) -> PrivateKeySubmitInput
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 PrivateKeySubmitInput
impl Debug for PrivateKeySubmitInput
Source§impl<'de> Deserialize<'de> for PrivateKeySubmitInput
impl<'de> Deserialize<'de> for PrivateKeySubmitInput
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<&PrivateKeySubmitInput> for PrivateKeySubmitInput
impl From<&PrivateKeySubmitInput> for PrivateKeySubmitInput
Source§fn from(value: &PrivateKeySubmitInput) -> Self
fn from(value: &PrivateKeySubmitInput) -> Self
Converts to this type from the input type.
Source§impl From<PrivateKeySubmitInput> for WalletImportSubmissionRequestWallet
impl From<PrivateKeySubmitInput> for WalletImportSubmissionRequestWallet
Source§fn from(value: PrivateKeySubmitInput) -> Self
fn from(value: PrivateKeySubmitInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivateKeySubmitInput
impl RefUnwindSafe for PrivateKeySubmitInput
impl Send for PrivateKeySubmitInput
impl Sync for PrivateKeySubmitInput
impl Unpin for PrivateKeySubmitInput
impl UnwindSafe for PrivateKeySubmitInput
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