# Aligned zkQuiz NFT

By [ic36006](https://paragraph.com/@ox97acc5) · 2024-10-08

---

วันนี้มาสอนรัน zkQuiz ของโปรเจค Aligned บน Github codespace โปรเจคของ Aligned Layer ระดมทุนไป 22M

[https://cryptorank.io/ico/aligned-layer#funding-rounds](https://cryptorank.io/ico/aligned-layer#funding-rounds)

มาเริ่มรันกันเลย

1.เปิด [Github Codespace](https://github.com/codespaces) เลือก Use this template รอจน Terminal ทำงานเสร็จ

2.Download Rust โดยใช้คำสั่ง

> source <(wget -O - [https://raw.githubusercontent.com/zunxbt/installation/main/rust.sh](https://raw.githubusercontent.com/zunxbt/installation/main/rust.sh))

3.Download Foundry โดยใช้คำสั่ง

> source <(wget -O - [https://raw.githubusercontent.com/zunxbt/installation/main/foundry.sh](https://raw.githubusercontent.com/zunxbt/installation/main/foundry.sh))

4.Clone the repository โดยใช้คำสั่ง

> git clone [https://github.com/yetanotherco/aligned\_layer.git](https://github.com/yetanotherco/aligned_layer.git) && cd aligned\_layer

5.สร้าง Wallet ใหม่หรือใครจะใช้ Wallet ของ Metamask ก็ข้ามข้อนี้ไป ใช้คำสั่ง

> cast wallet new-mnemonic

6.เราจะได้เลข seed, เลข wallet และ private key มาตามภาพ

![](https://storage.googleapis.com/papyrus_images/864a25c218819662971963a937d244e0fb155f73dc997f533ab096d6da4d34b3.png)

7.ให้เราเอาsave เก็บข้อมูลไว้ แล้วโอนเหรียญ ETH จาก Holesky มาที่ address ที่เราสร้าง ใครไม่มีเหรียญ ETH ขอได้ที่

*   [Google Faucet](https://cloud.google.com/application/web3/faucet/ethereum/holesky)
    
*   [Stakely Faucet](https://stakely.io/faucet/ethereum-holesky-testnet-eth)
    
*   [Quicknode Faucet](https://faucet.quicknode.com/ethereum/holesky)
    

6.import wallet โดยใช้คำสั่ง

> \[ -d ~/.aligned\_keystore \] && rm -rf ~/.aligned\_keystore && echo "Deleted existing directory ~/.aligned\_keystore." ; mkdir -p ~/.aligned\_keystore && cast wallet import ~/.aligned\_keystore/keystore0 --interactive

กรอก Private key แล้วตั้ง password อะไรก็ได้ที่เราต้องการ

7.Clone Aligned Layer repo โดยใช้คำสั่ง

> \[ -d aligned\_layer \] && rm -rf aligned\_layer && echo "Deleted existing aligned\_layer directory." ; git clone [https://github.com/yetanotherco/aligned\_layer.git](https://github.com/yetanotherco/aligned_layer.git) && cd aligned\_layer/examples/zkquiz

8.รันคำสั่ง(ใช้เวลาประมาณ 15 นาที)

> make answer\_quiz KEYSTORE\_PATH=~/.aligned\_keystore/keystore0

9.รอจนขึ้น Enter keystore password: ให้เรากรอก password ที่เราตั้งไว้

10.ตอบคำถาม ตอบที่ละข้อนะ มันจะช้าหน่อย (Ans `y` , `c` , `c` , `a` , `y)`

11.รอจนขึ้น Transection hash ตามภาพ

![](https://storage.googleapis.com/papyrus_images/cc6e4049e87d26ee0ce456c6597188e1f5afb2c5380cb83ae870e755a9c6f6a0.png)

12.Capture หน้าจอประมาณนี้ไปโพสใน Twitter

![](https://storage.googleapis.com/papyrus_images/ed557e2c0d1a64cc81c4c4ec17cdbe858352d02eb986be222b3698c9f4fef9f8.png)

13\. ให้โพสตาม twitter ของผม

[https://x.com/iccc36006/status/1843644397826781218](https://x.com/iccc36006/status/1843644397826781218)

14.เอาลิงคํ Twitter ไปโพสใน [Discord](https://discord.gg/alignedlayer) ห้อง testnet

![](https://storage.googleapis.com/papyrus_images/c9226874afebc82fad18b7de713673eee87be0b3f54dcb9707a2ffffd11f61c4.png)

เป็นอันเสร็จ ต้นฉบับมาจาก

[https://github.com/zunxbt/Aligned-zkQuiz-NFT](https://github.com/zunxbt/Aligned-zkQuiz-NFT)

และ

[https://docs.alignedlayer.com/guides/2\_build\_your\_first\_aligned\_application](https://docs.alignedlayer.com/guides/2_build_your_first_aligned_application)

เช่นเคยถ้าเห็นว่ามีประโยชน์อยากสนับสนุนสามารถ mint nft เพื่อเป็นกำลังใจได้

---

*Originally published on [ic36006](https://paragraph.com/@ox97acc5/aligned-zkquiz-nft)*
