mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Export ChannelId
in bindings rather than [u8; 32]
Now that `ChannelId` has useful constructors and methods we need to start exposing it to bindings users rather than relying on using `[u8; 32]`.
This commit is contained in:
parent
3fc3166b28
commit
58febc36d1
1 changed files with 0 additions and 2 deletions
|
@ -35,8 +35,6 @@ use core::ops::Deref;
|
||||||
/// A _temporary_ ID is generated randomly.
|
/// A _temporary_ ID is generated randomly.
|
||||||
/// (Later revocation-point-based _v2_ is a possibility.)
|
/// (Later revocation-point-based _v2_ is a possibility.)
|
||||||
/// The variety (context) is not stored, it is relevant only at creation.
|
/// The variety (context) is not stored, it is relevant only at creation.
|
||||||
///
|
|
||||||
/// This is not exported to bindings users as we just use [u8; 32] directly.
|
|
||||||
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||||
pub struct ChannelId(pub [u8; 32]);
|
pub struct ChannelId(pub [u8; 32]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue