Skip to main content

Module erc8021

Module erc8021 

Source
Expand description

ERC-8021 transaction attribution suffixes.

The suffix is schemaData || schemaId (1 byte) || marker (16 bytes) appended to calldata, and the length of schemaData is read backwards according to schemaId.

Structsยง

Attribution
Codes attributed by an ERC-8021 suffix.
CborAttribution ๐Ÿ”’
Entity codes of a schema 2 attribution.

Constantsยง

MARKER ๐Ÿ”’
Marker that ends an ERC-8021 attribution suffix.

Functionsยง

split_suffix ๐Ÿ”’
Splits a trailing ERC-8021 attribution suffix off the given calldata, returning the calldata before it, the schema id and the schema data.
strip_suffix
Returns the given calldata without a trailing ERC-8021 attribution suffix.