EthereumAddress

Struct EthereumAddress 

Source
pub struct EthereumAddress(/* private fields */);
Expand description

Unsized value for the ethereumAddress property.

An ethereumAddress property is used to specify the Ethereum address (as per the Ethereum Yellow Paper: ETHEREUM: A SECURE DECENTRALISED GENERALISED TRANSACTION LEDGER) composed of the prefix “0x”, a common identifier for hexadecimal, concatenated with the rightmost 20 bytes of the Keccak-256 hash (big endian) of the ECDSA public key (the curve used is the so-called secp256k1).

In hexadecimal, 2 digits represent a byte, meaning addresses contain 40 hexadecimal digits. The Ethereum address should also contain a checksum as per EIP-55.

Implementations§

Trait Implementations§

Source§

impl<V: Vocabulary, I: Interpretation> LinkedDataPredicateObjects<I, V> for EthereumAddress

Source§

fn visit_objects<S>(&self, visitor: S) -> Result<S::Ok, S::Error>
where S: PredicateObjectsVisitor<I, V>,

Source§

impl<V: Vocabulary, I: Interpretation> LinkedDataResource<I, V> for EthereumAddress

Source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>

Source§

fn lexical_representation<'a>( &'a self, vocabulary: &'a mut V, interpretation: &'a mut I, ) -> Option<CowRdfTerm<'a, V>>
where I: ReverseTermInterpretation<Iri = <V as IriVocabulary>::Iri, BlankId = <V as BlankIdVocabulary>::BlankId, Literal = <V as LiteralVocabulary>::Literal>,

Source§

fn reference_interpretation( &self, vocabulary: &mut V, interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>

Source§

impl<V: Vocabulary, I: Interpretation> LinkedDataSubject<I, V> for EthereumAddress

Source§

fn visit_subject<S>(&self, visitor: S) -> Result<S::Ok, S::Error>
where S: SubjectVisitor<I, V>,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more