Questions tagged [solidity]

Solidity is a programming language for creating smart contracts, primarily on the Ethereum blockchain

Filter by
Sorted by
Tagged with
3
votes
0answers
20 views

Optimization of weightedWinner() and random() function

I have written a Lottery contract that picks winner based on the amount they contributed to the pool. I am looking if the code of weightedWinner function can be ...
1
vote
0answers
21 views

Solidity: verifying primality certificates, bounty for large primes

This is my first smart contract, and it isn't finished yet, but the remaining bits are complicated enough that I'd like to make sure I'm on the right track first. My concerns are: At line 117, is the ...
1
vote
0answers
57 views

Solidity code for TimeBasedWill (smart contract)

Following is a TimeBasedWill I have written in Solidity to be built on the Ethereum Blockchain. I have tested the code using Remix IDE. I would like to get your comments and opinions about security ...
6
votes
0answers
68 views

Connect Four implemented via smart contract

I'm learning Solidity development, so I decided that Connect Four would be a fun side-project to work on. Here's the current flow: A user creates a new game and sends ether to the contract, then ...