Struct baru::loan::Borrower0 [−][src]
pub struct Borrower0 { /* fields omitted */ }
Implementations
pub async fn new<R>(
rng: &mut R,
collateral_inputs: Vec<Input>,
address: Address,
address_blinding_sk: SecretKey,
collateral_amount: Amount,
fee_sats_per_vbyte: Amount,
bitcoin_asset_id: AssetId,
usdt_asset_id: AssetId
) -> Result<Self> where
R: RngCore + CryptoRng,
Use accessors on Self instead
pub fn interpret<C>(
self,
secp: &Secp256k1<C>,
loan_response: LoanResponse
) -> Result<Borrower1> where
C: Signing + Verification,
pub fn interpret<C>(
self,
secp: &Secp256k1<C>,
loan_response: LoanResponse
) -> Result<Borrower1> where
C: Signing + Verification,
Interpret loan response from lender.
This method does not check if the borrower agrees with the
“repayment condition” i.e. the values in
repayment_collateral_input
. This belongs in a higher level,
much like verifying that other loan conditions haven’t
changed.
Get a reference to the value of the collateral the borrower will put up for the loan.
Get a reference to the inputs the borrower will use to fund the loan transaction’s collateral.
Get a copy of how many satoshis per vbyte the borrower will use to pay for the loan transaction’s fees.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Borrower0
impl UnwindSafe for Borrower0
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self