Open danieljperry opened 2 weeks ago
Hi! Thank you for considering my request for the keccak256
operator.
I wanted to add some context for the broader community. After this thread, the idea of an EIP-712-compatible Chia puzzle stuck with me. In short, a puzzle could likely be built in such a way that coins are controlled via EIP-712 signatures. EIP-712 is a widely-used signature standard on Ethereum that has significant wallet adoption - meaning that you could sign messages in virtually every Ethereum wallet. The exciting opportunity here is to sign messages with Ledger/Trezor devices or other hardware wallets - if it works, I think this is the best path forward for hardware wallet support for Chia.
As mentioned in the CHIP description, the operator has been included in a previous (abandoned) CHIP. The code required to support it is, to my knowledge, still available in a non-merged branch. I've committed to fully testing this idea by building the puzzle mentioned above and releasing some tests for it as soon as the chialisp compiler/Rust simulator support keccak256
.
Here is the CLVM implementation for this CHIP: https://github.com/Chia-Network/clvm_rs/pull/489 Feel free to review, but note that this does not include the softfork activation height since that will be set by a separate chia-blockchain PR.
Hey, all! I got my PoC working yesterday - the keccak operator can be used to enable hardware wallet support. The PoC repository is here, and a quick explanation can be found here. I still have to add soft fork support to the puzzle (the current one assumes keccak256 operator was hard-forked), which I'll probably do next week.
This CHIP is now a
draft
. It focuses on implementing keccack256, which was originally included as part of the withdrawn CHIP-34.