# EIP191、EIP712 **Published by:** [Renaissance Labs](https://paragraph.com/@renaissance-labs/) **Published on:** 2022-03-28 **URL:** https://paragraph.com/@renaissance-labs/eip191-eip712 ## Content EIP191EIP712为什么有这个,因为我们之前EIP-191都是对字符串等简单数据进行处理,而没有对复杂的结构化数据进行处理,如结构体等 这个EIP旨在提高链下消息签名对链上的可用性。我们可以看到,因为节省gas以及减少链上交易的原因,采用链下消息签名的需求日益增长。现在已经被签名的消息,展示给用户的是一串难以理解的16进制的字符串,附带一些组成这个消息的项目的上下文。 签名方案由哈希算法和签名算法组成。以太坊选择的签名算法是secp256k1,哈希算法选择了keccak256,这是一个从字节串。参考https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md https://github.com/ethereum/EIPs/blob/master/EIPS/eip-191.md ## Publication Information - [Renaissance Labs](https://paragraph.com/@renaissance-labs/): Publication homepage - [All Posts](https://paragraph.com/@renaissance-labs/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@renaissance-labs): Subscribe to updates