youtube image
From YouTube: TokenScript Weekly Meeting 20200507

Description

00:46:32 weiwu: https://github.com/AlphaWallet/blockchain-attestation/blob/master/use-cases/email-address-attestation.md
00:58:19 Tore Frederiksen: We can’t hear you Weiwu
00:59:00 JamesB: no audio
01:20:37 weiwu: Helolo\
01:20:59 weiwu: https://github.com/AlphaWallet/blockchain-attestation/blob/master/use-cases/email-address-attestation.md
01:21:27 weiwu: Alice signs msgData to transfer ETH. (msgData specifies expiry, ETH amount)
Alice securely sends signed msgData to Bob (email, telegram, ...).
Bob calls Alice's smart contract wallet with h(msg + BobAddress) (aka msgHash)
- smart contract checks: msgMap[msgHash] == 0 (not used)
- smart contract stores: map[msg.sender] = msgHash
Bob calls Alice's smart contract with signed msgData
- smart contract checks msg signature of Alice
- smart contract checks: msgMap[msgHash] = 1 (used)
- smart contract checks map[msg.sender] == h(msgData + msg.sender)
- executes transaction with msg data (check expiry, send ETH)
01:27:51 Victor Zhang: https://community.tokenscript.org/t/send-with-attestation-and-send-to-attestation-mvp-use-case-of-attestation/309