Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
solrandhypn
Advanced tools
Readme
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
GxJJd3q28eUd7kpPCbNXGeixqHmBYJ2owqUYqse3ZrGS
with your new Program Id.anchor test
Add solrand = { version = "0.1.3", 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
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
You could alternatively copy the state of devnet and load it locally but full installation is recommended as described. Any CPI call should test all error states & full installation makes development much easier if you can update the program to force them.
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
.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 solrandhypn receives a total of 1 weekly downloads. As such, solrandhypn popularity was classified as not popular.
We found that solrandhypn 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
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.