#[non_exhaustive]pub struct SignOpts {
pub wallet_id: String,
pub msg_hash: [u8; 32],
pub server_message: String,
pub server_is_formatted: bool,
pub secret_share: ServerKeyShare,
pub derivation_path: Vec<u32>,
}Expand description
Options for run_sign_ecdsa. All fields required.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.wallet_id: StringWallet id from the cached WalletProperties.
msg_hash: [u8; 32]Pre-hashed message (32 bytes). For EVM, this is
keccak256(EIP-191-prefixed message).
server_message: StringSent in the request body. May differ from msg_hash — e.g. for
EVM message signing the body carries the EIP-191 prefixed hex
while the relay gets the keccak256 hash.
server_is_formatted: boolis_formatted flag the server sees. For EVM message signing,
false (server applies its own formatting).
The client’s MPC share for the wallet.
derivation_path: Vec<u32>BIP-32 derivation path (for ECDSA). Use the chain’s
derivation_path from mpc_config.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignOpts
impl RefUnwindSafe for SignOpts
impl Send for SignOpts
impl Sync for SignOpts
impl Unpin for SignOpts
impl UnsafeUnpin for SignOpts
impl UnwindSafe for SignOpts
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