Function ssi::eip712::generate_types
source · pub fn generate_types(
doc: &EIP712Value,
primary_type: Option<String>
) -> Result<HashMap<String, StructType, RandomState>, TypesGenerationError>
Available on crate feature
eip
only.Expand description
Generate EIP-712 types for EthereumEip712Signature2021
https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#types-generation from https://github.com/w3c-ccg/ethereum-eip712-signature-2021-spec/pull/25