
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@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 installAnchor.example.toml to Anchor.toml and update the wallet = to your solana key.solana-test-validatoranchor build && anchor deploy8nzxsNf74ZHDguHi51SjQWxDxegL2DBgxeGHA2pQVtTJ with your new Program Id.anchor testAdd 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 danchor 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.jsanchor test --skip-test-validatorThe 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 --forceWe 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
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.