Skip to main content

Questions tagged [program-designs]

Filter by
Sorted by
Tagged with
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. ...
Hatsuseno Arufa's user avatar
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 ...
Sebastian Scholl's user avatar
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 &...
Nate's user avatar
  • 411
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 ...
itsfarseen's user avatar
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 ...
itsfarseen's user avatar