2023-03-26 13:04:31 +02:00
|
|
|
|
@subsection Digest
|
|
|
|
|
|
|
|
|
|
Allows encoding of digests according to a specific encoding scheme.
|
|
|
|
|
|
|
|
|
|
Primary use-case is the abstraction of self-describing @uref{https://multiformats.io/multihash/,Multhash} encoding.
|
|
|
|
|
|
|
|
|
|
A default encoding @emph{must} always be defined, and the encoding of a valid digest @emph{must} succeed with the default encoding.
|
|
|
|
|
|
|
|
|
|
|
2023-08-02 11:19:33 +02:00
|
|
|
|
@subsubsection ERC165 Interface identifier
|
|
|
|
|
|
2023-03-26 13:04:31 +02:00
|
|
|
|
@include ../../build/Digest.interface
|
2023-08-02 11:19:33 +02:00
|
|
|
|
|
|
|
|
|
@subsubsection Solidity interface definition
|
|
|
|
|
|
2023-03-26 13:04:31 +02:00
|
|
|
|
@include ../../build/contract_Digest.texi
|
2023-08-02 11:19:33 +02:00
|
|
|
|
|
|
|
|
|
@subsubsection Example implementation
|
|
|
|
|
|
2023-03-26 13:04:31 +02:00
|
|
|
|
@uref{git://holbrook.no/eth-event-msg.git}
|