Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@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 0 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.