Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@demox-labs/solrand
Advanced tools
An Random Oracle on Solana based on the Demox Protocol. The random numbers are provided by Random.org.
This repository implements the Solana program and provides some utilities to make interacting with it easier.
This repository creates the:
yarn install
Anchor.example.toml
to Anchor.toml
and update the wallet =
to your solana key.solana-test-validator
anchor build && anchor deploy
8nzxsNf74ZHDguHi51SjQWxDxegL2DBgxeGHA2pQVtTJ
with your new Program Id.anchor test
Add solrand = { version = "0.1.5", features = ["cpi"] }
to your Cargo.toml
npm i @demox-labs/solrand --save
If you're writing a Solana program to interact with this one, we recommend:
solana-test-validator --clone 8nzxsNf74ZHDguHi51SjQWxDxegL2DBgxeGHA2pQVtTJ K2z1qkxZdsw6WpFd63hqhqx9MYUc5c85NdbXULNeGhW --url d
anchor build && anchor deploy
or anchor test --skip-local-validator
to deploy program to test validator. You'll need to redo this if you ever reset the solana-test-validator
for example by running it with -r
.Now you can run your program using for example:
anchor build && anchor deploy && node my-script.js
anchor test --skip-test-validator
The best resource for understanding how to interact with solrand is through the P2P Coin Flip is the example here: https://github.com/evanmarshall/cross-pile
The tests, tests/solrand.ts
, provide examples in how to use our client library.
Node v16.11.1
.cargo install --git https://github.com/project-serum/anchor avm --locked --force
We use the GNU Affero General Public License v3.0 or later
license to ensure the community will always have access to all original and derivations of this program.
Full text here: https://spdx.org/licenses/AGPL-3.0-or-later.html
FAQs
A js client to interact with the solrand program
The npm package @demox-labs/solrand receives a total of 3 weekly downloads. As such, @demox-labs/solrand popularity was classified as not popular.
We found that @demox-labs/solrand demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.