npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cryptosat/cryptosim

v0.4.0

Published

simulate the operation of cryptosatellites

Downloads

28

Readme

Cryptosat Simulator

Our mission at Cryptosat is to build satellites that power cryptographic, blockchain and ledger applications. We believe that satellites possess unique properties that make them well suited for these tasks and by launching such computational platforms into space we can unlock new and exciting opportunities in the realm of security and crypto.

This repository contains a simulation library which simulates the operation of Cryptosat. This includes simulation of the satellite orbital trajectory and its position over time. As a developer, you can learn about the cryptographic functions our satellites will provide and start integrating your project and protocols with our APIs. When you (and Cryptosat) are ready - you can turn the switch to start communicating with the actual satellite.

Installation

The library is published at the yarn online package index as @cryptosat/cryptosim. To include it in your own project run:

yarn install @cryptosat/cryptosim

Usage

You can import the required classes from the library as needed. The snippet below demonstrates how to construct a cryptosat API client for a single satellite following the celestial orbit of the international space station. Check out the online tutorial to get started using the cryptosat API.

const clock = new SimulatedClock(new Date());
clock.play();
const universe = new Universe(clock);
const ISS_TLE = [
  '1 25544U 98067A   21027.77992426  .00003336  00000-0  68893-4 0  9991',
  '2 25544  51.6465 317.1909 0002399 302.6503 164.1536 15.48908950266831',
];
const sat = new Satellite(universe, /* functional= */ 1, 'crypto1', ISS_TLE[0], ISS_TLE[1]);
const gsnetwork = GroundStationNetwork.load(
    universe, require('@cryptosat/cryptosim/data/rbcNetwork'));
const service = new MainService(universe);
sat.bindService('main', service);
cryptosat = new MainClient(universe, sat, gsnetwork, 'main');

Development

Installation

After cloing the directory install the project dependencies using:

yarn install

Testing

The project uses the jest testing framework. To execute the test suite run:

yarn test

Lint

Check for lint errors with:

yarn lint