pub struct UnsignedMessage {
pub pre_hash: Option<PreHash>,
pub content: Value,
pub bip44address_index: Option<i32>,
pub bip44change: Option<f64>,
pub derivation_path: Option<Vec<f64>>,
pub type: Option<Type>,
}
Fields§
§pre_hash: Option<PreHash>
§content: Value
Content to sign on. Should be 32 bytes long for ECDSA (hash of the actual message to sign) or any length for EdDSA as prehashing is not required.
bip44address_index: Option<i32>
BIP44 address index
bip44change: Option<f64>
BIP44 change index
derivation_path: Option<Vec<f64>>
BIP44 full derivation path
type: Option<Type>
Typed Message Signing - message type. - EIP191 & EIP712: for ETH and all EVM based assets typed message signing - TIP191: For Tron (TRX) typed message signing - BTC_MESSAGE: For Bitcoin (BTC) typed message signing
Implementations§
Source§impl UnsignedMessage
impl UnsignedMessage
pub fn new(content: String) -> UnsignedMessage
Trait Implementations§
Source§impl Clone for UnsignedMessage
impl Clone for UnsignedMessage
Source§fn clone(&self) -> UnsignedMessage
fn clone(&self) -> UnsignedMessage
Returns a copy 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 UnsignedMessage
impl Debug for UnsignedMessage
Source§impl Default for UnsignedMessage
impl Default for UnsignedMessage
Source§fn default() -> UnsignedMessage
fn default() -> UnsignedMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnsignedMessage
impl<'de> Deserialize<'de> for UnsignedMessage
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 PartialEq for UnsignedMessage
impl PartialEq for UnsignedMessage
Source§impl Serialize for UnsignedMessage
impl Serialize for UnsignedMessage
impl StructuralPartialEq for UnsignedMessage
Auto Trait Implementations§
impl Freeze for UnsignedMessage
impl RefUnwindSafe for UnsignedMessage
impl Send for UnsignedMessage
impl Sync for UnsignedMessage
impl Unpin for UnsignedMessage
impl UnwindSafe for UnsignedMessage
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