[][src]Struct lightning::ln::chan_utils::PreCalculatedTxCreationKeys

pub struct PreCalculatedTxCreationKeys(_);

The per-commitment point and a set of pre-calculated public keys used for transaction creation in the signer. The pre-calculated keys are an optimization, because ChannelKeys has enough information to re-derive them.

Implementations

impl PreCalculatedTxCreationKeys[src]

pub fn new(keys: TxCreationKeys) -> Self[src]

Create a new PreCalculatedTxCreationKeys from TxCreationKeys

pub fn trust_key_derivation(&self) -> &TxCreationKeys[src]

The pre-calculated transaction creation public keys. An external validating signer should not trust these keys.

pub fn per_commitment_point(&self) -> &PublicKey[src]

The transaction per-commitment point

Trait Implementations

impl Clone for PreCalculatedTxCreationKeys[src]

impl PartialEq<PreCalculatedTxCreationKeys> for PreCalculatedTxCreationKeys[src]

impl StructuralPartialEq for PreCalculatedTxCreationKeys[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.