
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
asd-mining-rn
Advanced tools
A React Native cryptocurrency mining library for EVM blockchains using expo-crypto
A React Native cryptocurrency mining library for EVM blockchains using expo-crypto.
# Using npm
npm install asd-mining-rn expo-crypto
# Using yarn
yarn add asd-mining-rn expo-crypto
# Using Expo
expo install asd-mining-rn expo-crypto
import AsdMiningRN from 'asd-mining-rn';
import { Alert } from 'react-native';
// Initialize the miner with your license key and API URL
const miner = AsdMiningRN.getInstance('your-license-key', 'https://api.example.com');
// Calculate hash rate
miner.calculateHashRate(5000).then(hashRate => {
Alert.alert('Hash Rate', `Your device can mine at approximately ${hashRate} hashes per second`);
});
// Start mining
miner.start(event => {
console.log(event); // Log mining events
});
// Stop mining
setTimeout(() => {
miner.stop();
console.log('Mining stopped after 1 minute');
}, 60000);
new AsdMiningRN(license, apiUrl)
license
(String): Your mining license keyapiUrl
(String): The API URL for the mining poolStarts the mining process.
onEvent
(Function): Callback function that receives mining event messagesStops the mining process.
Benchmarks the device's mining performance.
interval
(Number): Time in milliseconds to run the benchmarkThis library uses expo-crypto, making it compatible with Expo projects without requiring ejection. It works in both Expo Go and in standalone builds.
The mining performance will vary based on the device. Modern devices will perform better, but keep in mind that mobile mining is significantly less efficient than dedicated hardware.
ISC
FAQs
A React Native cryptocurrency mining library for EVM blockchains using expo-crypto
The npm package asd-mining-rn receives a total of 18 weekly downloads. As such, asd-mining-rn popularity was classified as not popular.
We found that asd-mining-rn demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.