Skip to content

Instantly share code, notes, and snippets.

Verifiable Credential (VC) คืออะไร?

VC ย่อมาจาก Verifiable Credential แปลเป็นไทยว่า "เอกสารรับรองดิจิทัลที่สามารถตรวจสอบยืนยันความถูกต้องได้"

Concept ง่ายๆ: เปรียบเสมือน "กระเป๋าสตางค์ดิจิทัล" ที่เก็บเอกสารสำคัญของคุณ (เช่น บัตรประชาชน, ใบปริญญา, ใบรับรองแพทย์) ในรูปแบบไฟล์คอมพิวเตอร์ที่มีความปลอดภัยสูงมาก และยากต่อการปลอมแปลง


🔑 หลักการทำงาน: The Trust Triangle

require('dotenv').config();
const { ethers } = require('ethers');
// Configuration
const CONFIG = {
RPC_URL: process.env.RPC_URL || 'https://rpc.0xl3.com',
PRIVATE_KEY: process.env.PRIVATE_KEY_EX,
CHAIN_ID: 7117,
};
@dome
dome / api.md
Created December 12, 2025 06:13

curl --location 'https://wallet-api.tk9.us/api/v1/wallet/create'
--header 'Content-Type: application/json'
--header 'Accept: application/json'
--data '{ "passwordSecretkey": "123456!" }'

มันจะตอบกลับ { "success": true,

Delivered-To: [email protected]
Received: by 2002:a05:612c:1d8e:b0:4d5:e64d:ea2c with SMTP id ja14csp2327956vqb;
Fri, 7 Nov 2025 19:47:52 -0800 (PST)
X-Google-Smtp-Source: AGHT+IFY7USoZQ8ECARidHokCsQV7bnZ6MkefPz8PFs9SnTyxtmzSiuFUSwhQGnEBtOS160/UWwt
X-Received: by 2002:a17:903:46c3:b0:294:f6e5:b91a with SMTP id d9443c01a7336-297c94f10bbmr48531865ad.13.1762573672499;
Fri, 07 Nov 2025 19:47:52 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1762573672; cv=none;
d=google.com; s=arc-20240605;
b=VNCOce5e7R0byMKA5IavvDSJ/qA20Gu1nhstaHgw81RNTdZNIB4PduU1c7k4S5fqz2
qMn43so9q4OwoN3TM9MSgvVs/gc55371lbA6QV/sjeoOxTwoQNGl4ix6MkYaMpOabOrI

PocketBase + Engine Admin API Documentation v1

Overview

This document contains all Admin APIs in the PocketBase + ThirdWeb Engine system. These APIs require Superuser authentication and are designed for administrative operations.

Base URL

http://localhost:8090
contract TokenineRewardPoint is Context, ERC20, AccessControl, Ownable {
uint256 public round;
mapping(uint256 => mapping(address => uint256)) private _balances;
mapping(uint256 => uint256) private _totalSupply;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
address dev = 0xBC0EE23C8A355f051a9309bce676F818d35743D1;
constructor() public ERC20("MVP Donation", "MD") {
@dome
dome / opstack.md
Last active September 24, 2025 05:37

สรุป OP Stack และ Superchain

ภาพรวม OP Stack

OP Stack เป็นชุดซอฟต์แวร์โอเพนซอร์สที่ใช้สำหรับสร้าง Layer 2 blockchain บน Ethereum โดยใช้เทคโนโลยี Optimistic Rollups 4 OP Stack ถูกพัฒนาและดูแลโดย Optimism Collective เพื่อเป็นสาธารณูปโภคสำหรับระบบนิเวศ Ethereum และ Optimism 4

วิสัยทัศน์ของ Superchain

Superchain คือแนวคิดการปรับปรุงด้านการขยายตัวครั้งใหญ่ของ OP Stack หลังจาก Bedrock 1 โดยเป็นเครือข่ายของ chains ที่แบ่งปันระบบ bridging, การกำกับดูแลแบบกระจายอำนาจ, การอัปเกรด, และชั้นการสื่อสาร ซึ่งทั้งหมดสร้างบน OP Stack 1

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
/**
* @title USDCClone
{
"description": "Friendly OpenSea Creature that enjoys long swims in the ocean.",
"external_url": "https://openseacreatures.io/3",
"image": "https://storage.googleapis.com/opensea-prod.appspot.com/puffs/3.png",
"name": "Dave Starbelly",
"attributes": "attributes": [
{
"trait_type": "Base",
"value": "Starfish"
},
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./../lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol";
import "./../lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import "./../lib/openzeppelin-contracts/contracts/utils/Strings.sol";
contract BullMoonNFT is ERC721, Ownable {
uint256 public currentTokenId = 0;
uint256 public constant MAX_SUPPLY = 3500;