Skip to content

Instantly share code, notes, and snippets.

View ngocbd's full-sized avatar
🎯
Focusing

Bui Dinh Ngoc ngocbd

🎯
Focusing
View GitHub Profile
#include <ESP8266WiFi.h>
#include <ESP8266WiFi.h>
#ifndef STASSID
#define STASSID "HUAWEI-AnqK"
#define STAPSK "KKXY244m"
#endif
@ngocbd
ngocbd / gist:860c8d7b977477568cfceaa82216bea8
Created November 2, 2022 06:29
ed25519 Account blockchain
module core
import crypto.ed25519
import encoding.hex
pub struct Account {
pub : balance u64
nonce u64
public_key string
private_key string
}
@ngocbd
ngocbd / transaction.v
Created November 2, 2022 06:30
blockchain transaction in v
module core
import crypto.sha512
import crypto.ed25519
import encoding.hex
pub struct Transaction {
mut: hash string
sender string
recipient string
amount int
@ngocbd
ngocbd / MerkleTree.v
Created November 2, 2022 06:31
sha512 MerkleTree implement in V
module core
import crypto.sha512
struct MerkleNode{
pub mut : hash string
left &MerkleNode
right &MerkleNode
}
pub fn (mut node MerkleNode) hash() string {
node.hash = sha512.hexhash(node.left.hash + node.right.hash)
return node.hash
———————————————————————————————
Dưới đây là một số link kháng nghị cho các bạn tham khảo nha
– Chát với suport :
https://www.facebook.com/business/form/chat?hc_location=ufi
– Gửi kiến nghị cho facebook
www.facebook.com/help/127103474099499
– Đổi tên người dùng (URL) cho page:
https://www.facebook.com/help/contact/426864384041925