Closed dckc closed 5 years ago
I think the ByteArray
methods are complete: 9af5fa4 in https://github.com/rchain/rchain/pull/1968
Interpolation on ByteArray
makes the DER encoding stuff much nicer: bb08e15
ethSig.rho has the findOrCreateWallet
hitching post now (9631495)
sendTransaction
can find the wallet to send from and have it verify the signature and find the wallet to send to. It can't yet transfer the funds because I haven't integrated real purses.
A little more rlp decoding (for nonce, value) is also TODO.
cc @edeykholt
for follow-up, see #56
We can use metamask in place of RSign if we make an analog to
BasicWallet
that uses RLP (recursive length prefix) in place of protobuf to serialize the signed parameters.I think I have the tedious details prototyped:
https://github.com/dckc/RChain-API/blob/ethWallet/src/rlp.rho
https://github.com/dckc/RChain-API/blob/ethWallet/src/ethSig.rho
It relies on some new
ByteArray
methods, a couple of which I haven't written yet: https://github.com/rchain/rchain/pull/1968It would also depend on a "hitching post" for "find or create the eth-style wallet for eth address A".
cc @JoshOrndorff @cboscolo