pub struct SigBlob(/* private fields */);
Expand description
A signature blob.
Helps to abstract from a specific signing algorithm.
Implementations§
Methods from Deref<Target = NonEmptyBlob<4096>>§
Sourcepub fn as_inner(&self) -> &C
👎Deprecated since 4.7.0: use as_unconfined method
pub fn as_inner(&self) -> &C
Returns inner collection type
Sourcepub fn as_unconfined(&self) -> &C
pub fn as_unconfined(&self) -> &C
Returns reference to the inner collection type.
Sourcepub fn to_inner(&self) -> Cwhere
C: Clone,
👎Deprecated since 4.7.0: use to_unconfined method
pub fn to_inner(&self) -> Cwhere
C: Clone,
Clones inner collection type and returns it
Sourcepub fn to_unconfined(&self) -> Cwhere
C: Clone,
pub fn to_unconfined(&self) -> Cwhere
C: Clone,
Clones inner collection and returns an unconfined version of it.
Sourcepub fn len_u8(&self) -> u8
pub fn len_u8(&self) -> u8
Returns number of elements in the confined collection as u8
. The
confinement guarantees that the collection length can’t exceed
u8::MAX
.
Sourcepub fn len_u16(&self) -> u16
pub fn len_u16(&self) -> u16
Returns number of elements in the confined collection as u16
. The
confinement guarantees that the collection length can’t exceed
u16::MAX
.
Sourcepub fn len_u24(&self) -> u24
pub fn len_u24(&self) -> u24
Returns number of elements in the confined collection as u24
. The
confinement guarantees that the collection length can’t exceed
u24::MAX
.
Trait Implementations§
Source§impl AsRef<Confined<Vec<u8>, amplify::::collection::confinement::NonEmptyBlob::{constant#1}, 4096>> for SigBlob
impl AsRef<Confined<Vec<u8>, amplify::::collection::confinement::NonEmptyBlob::{constant#1}, 4096>> for SigBlob
Source§fn as_ref(&self) -> &NonEmptyBlob<4096>
fn as_ref(&self) -> &NonEmptyBlob<4096>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<Confined<Vec<u8>, amplify::::collection::confinement::NonEmptyBlob::{constant#1}, 4096>> for SigBlob
impl Borrow<Confined<Vec<u8>, amplify::::collection::confinement::NonEmptyBlob::{constant#1}, 4096>> for SigBlob
Source§fn borrow(&self) -> &NonEmptyBlob<4096>
fn borrow(&self) -> &NonEmptyBlob<4096>
Immutably borrows from an owned value. Read more
Source§impl<'de> Deserialize<'de> for SigBlob
impl<'de> Deserialize<'de> for SigBlob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Confined<Vec<u8>, amplify::::collection::confinement::NonEmptyBlob::{constant#1}, 4096>> for SigBlob
impl From<Confined<Vec<u8>, amplify::::collection::confinement::NonEmptyBlob::{constant#1}, 4096>> for SigBlob
Source§fn from(v: NonEmptyBlob<4096>) -> Self
fn from(v: NonEmptyBlob<4096>) -> Self
Converts to this type from the input type.
Source§impl From<SigBlob> for NonEmptyBlob<4096>
impl From<SigBlob> for NonEmptyBlob<4096>
Source§impl Ord for SigBlob
impl Ord for SigBlob
Source§impl PartialOrd for SigBlob
impl PartialOrd for SigBlob
Source§impl StrictDecode for SigBlob
impl StrictDecode for SigBlob
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for SigBlob
impl StrictDumb for SigBlob
fn strict_dumb() -> Self
Source§impl StrictEncode for SigBlob
impl StrictEncode for SigBlob
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictTuple for SigBlob
impl StrictTuple for SigBlob
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for SigBlob
impl StrictType for SigBlob
const STRICT_LIB_NAME: &'static str = LIB_NAME_SONIC
fn strict_name() -> Option<TypeName>
Source§impl Wrapper for SigBlob
impl Wrapper for SigBlob
Source§type Inner = Confined<Vec<u8>, amplify::::collection::confinement::NonEmptyBlob::{constant#1}, 4096>
type Inner = Confined<Vec<u8>, amplify::::collection::confinement::NonEmptyBlob::{constant#1}, 4096>
Inner type wrapped by the current newtype
Source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Eq for SigBlob
impl StrictProduct for SigBlob
impl StructuralPartialEq for SigBlob
Auto Trait Implementations§
impl Freeze for SigBlob
impl RefUnwindSafe for SigBlob
impl Send for SigBlob
impl Sync for SigBlob
impl Unpin for SigBlob
impl UnwindSafe for SigBlob
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.