ππ±πΌπΏπΌπ°πΌπ±π²ππ¦
@idorocodes
Followers
206
Following
578
Media
53
Statuses
919
Rust | Blockchains | Solana | CS
rustc
Joined November 2023
Completed Task 3 of @AckeeBlockchain School of Solana. Built a Vault - Deposit and withdraw tokens - Lock / Unlock logic - Added account constraints to allow only vault authority to withdraw tokens - Multi user deposit - Other mini checks Building on Solana is fun! π
3
1
13
Better Rust Better Anchor Better formatting Better Solana programs βοΈ
anchor init in Anchor 1.0 will now generate a better formatted Solana program for you instead of everything in lib . rs This will teach better practices on formatting your program for newer Rust devs You can still use the old way with --template single
0
0
6
Building a Solana program and wanted to send SOL into an account. I was looking for a token account field in the struct, forgetting that every account has an inbuilt lamport field. Yes, every Solana account has lamports, owner, executable, rent_epoch, data fields. GM
0
0
4
You'll think => and $ are not used in rust until you start writing procedural and declarative macros.
0
0
2
What enforces order on chain ? POH. It's a VDF (verifiable delay function) that adds a stamp to entries on chain, so each validator can know when the tx occurred. It can be recomputed and the new hash is dependent on the former one. The POH itself behaves like a Blockchain.
In this type of tech, the block propagation process is streamlined and then the next validator gets the block to continue its propagation. Even during consensus, the chain doesn't stop. The protocol that makes it possible for the chain to do all these ? TURBINE !
0
0
2
In this type of tech, the block propagation process is streamlined and then the next validator gets the block to continue its propagation. Even during consensus, the chain doesn't stop. The protocol that makes it possible for the chain to do all these ? TURBINE !
Another day to know something different about solana. Other Blockchains construct entire blocks before broadcasting them. Solana does this differently by assembling and streaming blocks like Netflix πββοΈ, significantly reducing latency. GM GM
0
1
4
Another day to know something different about solana. Other Blockchains construct entire blocks before broadcasting them. Solana does this differently by assembling and streaming blocks like Netflix πββοΈ, significantly reducing latency. GM GM
0
2
4
@idorocodes, I see you, doing great work, clear doubts and confusion about solana, keep going
1
1
5
Building a mini cryptography tool in Rust with ed25519π¦ - Generate public and private keys randomly - Generate deterministic public and private keys with seed i.e same keys for same seed - Sign messages with the generated key - Verify signatures - Hex output
3
0
11
Completed Task 2 of @AckeeBlockchain School of Solana season 8. Dived deep into Rust: Options, Results, Traits, Enums,pattern matching, Structs & Vectors. 30 tests. 30 passed. 0 failed πββοΈπ Built everything on @zeddotdev , insanely fast IDE π₯
3
0
9
I'll say this again. They are not the same. Solana consensus mechanism is POS Solana consensus algorithm is Tower BFT Solana consensus mechanism describes how to select validators. Solana consensus algorithm describes what validators do after they are selected.
Consensus mechanism is the overall process a blockchain follows to finalize and add transactions to the ledger, e.g., Proof of Work. Consensus algorithm is the specific protocol that nodes follow to achieve consensus, e.g., Nakamoto Consensus, PBFT. They are not the same.
0
0
5
Heard about SWQoS (Stake Weighted Quality of Service) ? In conjunction with QUIC, it basically allows tx forwarded from high stake validators to be prioritised. Thereby reducing Sybil attacks. Imagine getting speed and Sybil resistance all at once π. @solana tech >>>
0
0
4
How does Solana forward tx from RPCs to validators? Early on, it used UDP for speed, but bots spammed the network during NFT mints, causing chaos. So Solana switched to QUIC, a faster, smarter protocol by Google. @solana is bullish on speed π Used Https/3 ? you've used QUIC
0
0
1
RPC nodes are Solanaβs gateways, they donβt make blocks, but they let you talk to the chain. Since Solana skips mempools, RPCs must forward txs directly to each slotβs leader. Speed is everything. Fav RPC? @heliuslabs. Fast, reliable, and dev-friendly GM GM π
3
1
4
A leader reigns for ~400ms on Solana. The leader receives tx from RPC Executes the with Sealevel Bundle them into blocks Propagate them with turbine, which shreds and blasts it throughout the network. All in 400ms π Literally a chain that finalises tx before you blink.
Solana skips mempools, transactions go straight to the leader. Before every epoch (~2 days), a leader schedule is created. Each epoch is split into slots ~ 400ms each, and every slot has its own leader. Leaving each validator just 400ms to produce a block. Speed? Insane. Gm
1
0
6
Solana skips mempools, transactions go straight to the leader. Before every epoch (~2 days), a leader schedule is created. Each epoch is split into slots ~ 400ms each, and every slot has its own leader. Leaving each validator just 400ms to produce a block. Speed? Insane. Gm
0
0
4
The smallest unit of Solana is called Lamport, and 1 sol is a billion Lamport. Named after this great man. The Goat of distributed systems. Leslie Lamport. His homepage is great btw :
Meet Leslie Lamport - Turing Award winner for pioneering distributed systems - Conceptualized coordination across networks - Created LaTeX - Invented Paxos, a consensus algorithm - Created problems like the bakery algorithm & Byzantine Generals Problem - Developed TLA+ to
0
0
1
Yes! π Program and tests, everything in rust π
Lets talk about some more rust testing dev ex improvements: LiteSVM is a great lightweight library for testing Solana programs fast. If you're writing your tests in typescript, an anchor-litesvm wrapper exists to simplify testing anchor programs, but the rust equivalent did
0
1
4
Launched wearust just to have a Rust crate to my nameβ¦ now 1.5k+ downloads after 2 months, itβs powering over a thousand Rust projects. π Big thanks to all the rusteaceans out there! Improvements dropping soon,stay tuned!
Just shipped wearust v0.1.4 A Rust crate for fetching weather data ,now better and rusty! π¦ Whatβs new? Returns more fields (more data for your apps) Supports both terminal response + web (json) Cleaner syntax & better formatting Check it out: https://t.co/aDjdHQ5fi1
2
0
8