Skip to content

Instantly share code, notes, and snippets.

View howardpen9's full-sized avatar
💭
I may be slow to respond.

Howard Peng howardpen9

💭
I may be slow to respond.
View GitHub Profile
@howardpen9
howardpen9 / check.ts
Created September 6, 2023 02:27 — forked from TrueCarry/check.ts
TON Connect V2 Proof verification
async function check(req, res) {
const walletInfo = req.body.walletInfo as Wallet
if (!walletInfo?.connectItems?.tonProof) {
return res.status(httpStatus.BAD_REQUEST).send({ ok: false })
}
const proof = walletInfo.connectItems.tonProof as TonProofItemReplySuccess
if (!proof) {
return res.status(httpStatus.BAD_REQUEST).send({ ok: false })
}