[−][src]Struct lnpbp::dbc::keyset::KeysetContainer
Container for LNPBP-1 commitments. In order to be constructed, commitment requires an original public key and a protocol-specific tag, which must be hashed during commitment process. Here we use pre-hashed version of the tag in order to maximize performance for multiple commitments.
Fields
pubkey: PublicKey
The original public key: host for the commitment
keyset: BTreeSet<PublicKey>
Other keys that will participate the commitment procedure
tag: Hash
Single SHA256 hash of the protocol-specific tag
tweaking_factor: Option<Hmac<Hash>>
Tweaking factor stored after [KeysetContainer::commit_verify] procedure
Trait Implementations
impl Clone for KeysetContainer
[src]
pub fn clone(&self) -> KeysetContainer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Container for KeysetContainer
[src]
type Supplement = Hash
Out supplement is a protocol-specific tag in its hashed form
type Host = Option<()>
Proof contains both original public key and all participating keys (inside it's script), so we don't need host here
pub fn reconstruct(
proof: &Proof,
supplement: &Self::Supplement,
_: &Self::Host
) -> Result<Self, Error>
[src]
proof: &Proof,
supplement: &Self::Supplement,
_: &Self::Host
) -> Result<Self, Error>
pub fn deconstruct(self) -> (Proof, Self::Supplement)
[src]
pub fn to_proof(&self) -> Proof
[src]
Important: this method should not be used. KeysetContainer does not support proof generation, use more advanced structures like LockScript container to generate the proof
pub fn into_proof(self) -> Proof
[src]
Important: this method should not be used. KeysetContainer does not support proof generation, use more advanced structures like LockScript container to generate the proof
impl Debug for KeysetContainer
[src]
impl Display for KeysetContainer
[src]
impl Eq for KeysetContainer
[src]
impl PartialEq<KeysetContainer> for KeysetContainer
[src]
pub fn eq(&self, other: &KeysetContainer) -> bool
[src]
pub fn ne(&self, other: &KeysetContainer) -> bool
[src]
impl StructuralEq for KeysetContainer
[src]
impl StructuralPartialEq for KeysetContainer
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeysetContainer
[src]
impl Send for KeysetContainer
[src]
impl Sync for KeysetContainer
[src]
impl Unpin for KeysetContainer
[src]
impl UnwindSafe for KeysetContainer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,