Struct bp::InternalPk
source · pub struct InternalPk(_);
Implementations§
source§impl InternalPk
impl InternalPk
pub fn to_output_key( &self, merkle_root: Option<impl IntoTapHash> ) -> XOnlyPublicKey
Trait Implementations§
source§impl AsMut<<InternalPk as Wrapper>::Inner> for InternalPk
impl AsMut<<InternalPk as Wrapper>::Inner> for InternalPk
source§impl AsRef<<InternalPk as Wrapper>::Inner> for InternalPk
impl AsRef<<InternalPk as Wrapper>::Inner> for InternalPk
source§impl Borrow<<InternalPk as Wrapper>::Inner> for InternalPk
impl Borrow<<InternalPk as Wrapper>::Inner> for InternalPk
source§impl BorrowMut<<InternalPk as Wrapper>::Inner> for InternalPk
impl BorrowMut<<InternalPk as Wrapper>::Inner> for InternalPk
source§fn borrow_mut(&mut self) -> &mut <InternalPk as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <InternalPk as Wrapper>::Inner
Mutably borrows from an owned value. Read more
source§impl Clone for InternalPk
impl Clone for InternalPk
source§fn clone(&self) -> InternalPk
fn clone(&self) -> InternalPk
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConvolveCommit<Commitment, TapretProof, Lnpbp12> for InternalPk
impl ConvolveCommit<Commitment, TapretProof, Lnpbp12> for InternalPk
§type Commitment = XOnlyPublicKey
type Commitment = XOnlyPublicKey
Commitment type produced as a result of
Self::convolve_commit
procedure.§type CommitError = TapretKeyError
type CommitError = TapretKeyError
Error type that may be reported during
Self::convolve_commit
procedure. It may also be returned from ConvolveCommitProof::verify
in case the proof data are invalid and the commitment can’t be
re-created.source§fn convolve_commit(
&self,
supplement: &TapretPathProof,
msg: &Commitment
) -> Result<(XOnlyPublicKey, TapretProof), <InternalPk as ConvolveCommit<Commitment, TapretProof, Lnpbp12>>::CommitError>
fn convolve_commit( &self, supplement: &TapretPathProof, msg: &Commitment ) -> Result<(XOnlyPublicKey, TapretProof), <InternalPk as ConvolveCommit<Commitment, TapretProof, Lnpbp12>>::CommitError>
Takes the
supplement
to unparse the content of this container (self
)
(“convolves” these two data together) and uses them to produce a final
Self::Commitment
to the message msg
. Read moresource§impl Debug for InternalPk
impl Debug for InternalPk
source§impl Deref for InternalPk
impl Deref for InternalPk
source§impl DerefMut for InternalPk
impl DerefMut for InternalPk
source§impl<'de> Deserialize<'de> for InternalPk
impl<'de> Deserialize<'de> for InternalPk
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InternalPk, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<InternalPk, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for InternalPk
impl Display for InternalPk
source§impl From<InternalPk> for XOnlyPublicKey
impl From<InternalPk> for XOnlyPublicKey
source§fn from(wrapped: InternalPk) -> XOnlyPublicKey
fn from(wrapped: InternalPk) -> XOnlyPublicKey
Converts to this type from the input type.
source§impl From<XOnlyPublicKey> for InternalPk
impl From<XOnlyPublicKey> for InternalPk
source§fn from(v: XOnlyPublicKey) -> InternalPk
fn from(v: XOnlyPublicKey) -> InternalPk
Converts to this type from the input type.
source§impl FromStr for InternalPk
impl FromStr for InternalPk
source§impl Hash for InternalPk
impl Hash for InternalPk
source§impl LowerHex for InternalPk
impl LowerHex for InternalPk
source§impl Ord for InternalPk
impl Ord for InternalPk
source§fn cmp(&self, other: &InternalPk) -> Ordering
fn cmp(&self, other: &InternalPk) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<InternalPk> for InternalPk
impl PartialEq<InternalPk> for InternalPk
source§fn eq(&self, other: &InternalPk) -> bool
fn eq(&self, other: &InternalPk) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InternalPk> for InternalPk
impl PartialOrd<InternalPk> for InternalPk
source§fn partial_cmp(&self, other: &InternalPk) -> Option<Ordering>
fn partial_cmp(&self, other: &InternalPk) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for InternalPk
impl Serialize for InternalPk
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl StrictDecode for InternalPk
impl StrictDecode for InternalPk
fn strict_decode(reader: &mut impl TypedRead) -> Result<InternalPk, DecodeError>
source§impl StrictDumb for InternalPk
impl StrictDumb for InternalPk
fn strict_dumb() -> InternalPk
source§impl StrictEncode for InternalPk
impl StrictEncode for InternalPk
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictTuple for InternalPk
impl StrictTuple for InternalPk
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for InternalPk
impl StrictType for InternalPk
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
source§impl Wrapper for InternalPk
impl Wrapper for InternalPk
§type Inner = XOnlyPublicKey
type Inner = XOnlyPublicKey
Inner type wrapped by the current newtype
source§fn from_inner(inner: <InternalPk as Wrapper>::Inner) -> InternalPk
fn from_inner(inner: <InternalPk as Wrapper>::Inner) -> InternalPk
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &<InternalPk as Wrapper>::Inner
fn as_inner(&self) -> &<InternalPk as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> <InternalPk as Wrapper>::Inner
fn into_inner(self) -> <InternalPk as Wrapper>::Inner
Unwraps the wrapper returning the inner type
source§impl WrapperMut for InternalPk
impl WrapperMut for InternalPk
source§fn as_inner_mut(&mut self) -> &mut <InternalPk as Wrapper>::Inner
fn as_inner_mut(&mut self) -> &mut <InternalPk as Wrapper>::Inner
Returns a mutable reference to the inner representation for the wrapper
type
impl Copy for InternalPk
impl Eq for InternalPk
impl StrictProduct for InternalPk
impl StructuralEq for InternalPk
impl StructuralPartialEq for InternalPk
Auto Trait Implementations§
impl RefUnwindSafe for InternalPk
impl Send for InternalPk
impl Sync for InternalPk
impl Unpin for InternalPk
impl UnwindSafe for InternalPk
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.