Questions tagged [program-designs]
The program-designs tag has no usage guidance.
5 questions
0
votes
0
answers
11
views
What’s the best way to ensure player hand privacy in a Solana card game DApp?
I'm working on a Solana DApp for a card game where protecting player hand privacy is essential. I've come across Multi-Party Computation (MPC) and Zero-Knowledge Proofs (ZKP) as potential solutions. ...
0
votes
0
answers
17
views
Very Transaction Signature in Ruby
We're building an authentication system between our server and mobile app where the user can sign a multi-wallet (their wallet and our wallet) Tx, submit it to our authentication endpoint where we ...
5
votes
5
answers
233
views
Is randomness achievable on-chain?
How, for example, might you implement a simple "coin-flip" game as an on-chain Solana program?
The concept is that a player deposits a coin or token, and the onchain program generates a &...
1
vote
3
answers
73
views
How to bulk update accounts?
Is there a way to update a field on all the accounts owned by a program at once?
Say I have a bunch of PDAs Stake { amount: usize }.
Is it possible to do amount = amount * 1.1 for multiple accounts in ...
0
votes
2
answers
65
views
How to calculate the compound interest on the amount of tokens locked in a vault for multiple users?
If you are building a program where users stake tokens into a vault, which gets compounded every week, how do you keep track of how much token each user has?
A naive approach would be to create a ...