pub struct SignedChannel {Show 18 fields
pub channel_id: ChannelId,
pub counter_party: PublicKey,
pub temporary_channel_id: ChannelId,
pub own_params: PartyParams,
pub own_points: PartyBasePoints,
pub own_per_update_point: PublicKey,
pub own_per_update_seed: PublicKey,
pub counter_points: PartyBasePoints,
pub counter_per_update_point: PublicKey,
pub counter_params: PartyParams,
pub state: SignedChannelState,
pub update_idx: u64,
pub fund_tx: Transaction,
pub fund_script_pubkey: ScriptBuf,
pub fund_output_index: usize,
pub roll_back_state: Option<SignedChannelState>,
pub counter_party_commitment_secrets: CounterpartyCommitmentSecrets,
pub fee_rate_per_vb: u64,
}
Expand description
A channel that had a successful setup.
Fields§
§channel_id: ChannelId
The crate::ChannelId
for the channel.
counter_party: PublicKey
The secp256k1_zkp::PublicKey
of the counter party’s node.
temporary_channel_id: ChannelId
The temporary crate::ChannelId
for the channel.
own_params: PartyParams
The contract setup parameters for the local party.
own_points: PartyBasePoints
The base points used for channel updates and revocation by the local party.
own_per_update_point: PublicKey
The current per update point of the local party.
own_per_update_seed: PublicKey
The image of the seed used by the local party to derive all per update
points (Will be None
on the accept party side.)
counter_points: PartyBasePoints
The base points used for channel updates and revocation by the remote party.
counter_per_update_point: PublicKey
The current per update point of the remote party.
counter_params: PartyParams
The contract setup parameters for the remote party.
state: SignedChannelState
The current state of the channel.
update_idx: u64
The update index of the channel (starts at (1 << 48) - 1
and decreases).
fund_tx: Transaction
The fund transaction for the channel.
fund_script_pubkey: ScriptBuf
The script pubkey for the funding output.
fund_output_index: usize
The vout of the funding output.
roll_back_state: Option<SignedChannelState>
The latest “stable” state in which the channel was (if already in a “stable”)
state, is None
.
counter_party_commitment_secrets: CounterpartyCommitmentSecrets
Structure storing the previous commitment secrets from the counter party.
fee_rate_per_vb: u64
The current fee rate to be used to create transactions.
Implementations§
Source§impl SignedChannel
impl SignedChannel
Sourcepub fn get_contract_id(&self) -> Option<ContractId>
pub fn get_contract_id(&self) -> Option<ContractId>
Returns the contract id associated with the channel if in a state where a contract is established or under establishment.
Trait Implementations§
Source§impl Clone for SignedChannel
impl Clone for SignedChannel
Source§fn clone(&self) -> SignedChannel
fn clone(&self) -> SignedChannel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more