pub struct HtlcLockRequest {
pub committed_h_hex: String,
pub refund_after_seconds_from_now: u64,
pub claim_owner_secret_hex: String,
pub refund_owner_secret_hex: String,
}Expand description
Wallet-side counterpart to webycash-asset-rgb::htlc::LockRequest.
Carries a delta from server-now (never an absolute timestamp) — see
docs/referee-zkp-based-swap.md §8.
Fields§
§committed_h_hex: StringHex of sha256(X) for the agreed preimage.
refund_after_seconds_from_now: u64Seconds from server-now until refund unlocks. Server stamps
refund_after_unix = server_now + this.
claim_owner_secret_hex: StringRecipient secret hex (the future claim-path owner).
refund_owner_secret_hex: StringSender refund secret hex (the refund-path owner).
Trait Implementations§
Source§impl Clone for HtlcLockRequest
impl Clone for HtlcLockRequest
Source§fn clone(&self) -> HtlcLockRequest
fn clone(&self) -> HtlcLockRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HtlcLockRequest
impl Debug for HtlcLockRequest
Source§impl<'de> Deserialize<'de> for HtlcLockRequest
impl<'de> Deserialize<'de> for HtlcLockRequest
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 HtlcLockRequest
impl PartialEq for HtlcLockRequest
Source§fn eq(&self, other: &HtlcLockRequest) -> bool
fn eq(&self, other: &HtlcLockRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HtlcLockRequest
impl Serialize for HtlcLockRequest
impl Eq for HtlcLockRequest
impl StructuralPartialEq for HtlcLockRequest
Auto Trait Implementations§
impl Freeze for HtlcLockRequest
impl RefUnwindSafe for HtlcLockRequest
impl Send for HtlcLockRequest
impl Sync for HtlcLockRequest
impl Unpin for HtlcLockRequest
impl UnsafeUnpin for HtlcLockRequest
impl UnwindSafe for HtlcLockRequest
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