[][src]Struct types::SignatureBytes

pub struct SignatureBytes(_);

Stores BLS_SIG_BYTE_SIZE bytes which may or may not represent a valid BLS signature .

The Signature struct performs validation when it is instantiated, where as this struct does not. This struct is suitable where we may wish to store bytes that are potentially not a valid signature (e.g., from the deposit contract).

Methods

impl SignatureBytes[src]

pub fn from_bytes(bytes: &[u8]) -> Result<SignatureBytes, DecodeError>[src]

pub fn empty() -> SignatureBytes[src]

pub fn as_bytes(&self) -> Vec<u8>[src]

Trait Implementations

impl Debug for SignatureBytes[src]

impl Clone for SignatureBytes[src]

impl Decode for SignatureBytes[src]

impl Eq for SignatureBytes[src]

impl From<Signature> for SignatureBytes[src]

impl TreeHash for SignatureBytes[src]

impl<'_> TryInto<Signature> for &'_ SignatureBytes[src]

type Error = DecodeError

The type returned in the event of a conversion error.

impl<'de> Deserialize<'de> for SignatureBytes[src]

fn deserialize<D>(
    deserializer: D
) -> Result<SignatureBytes, <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

Serde serialization is compliant the Ethereum YAML test format.

impl Encode for SignatureBytes[src]

impl Serialize for SignatureBytes[src]

fn serialize<S>(
    &self,
    serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
    S: Serializer
[src]

Serde serialization is compliant the Ethereum YAML test format.

impl PartialEq<SignatureBytes> for SignatureBytes[src]

impl TestRandom for SignatureBytes[src]

Auto Trait Implementations

impl Send for SignatureBytes

impl Unpin for SignatureBytes

impl Sync for SignatureBytes

impl UnwindSafe for SignatureBytes

impl RefUnwindSafe for SignatureBytes

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized