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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tacticalchihuahua/rise

v1.0.0

Published

eclipse-resistant network identities

Readme

rise ~ eclipse resistant network identities

A protocol and implementation of self-issued network identities capable of:

  • Resistance to identity attacks ("eclipse", "sybil", "spartatus", and friends).
  • End-to-end encrypted message format built-in.
  • Enveloped/nested/"onion" routing capabilities.
  • Compatibility with bitcoin, ethereum, etc (if you are into that sort of thing) .
  • Interoperable with any cryptsystem using secp256k1.
npm install @tacticalchihuahua/rise --save

what

"Eclipse attacks" refers to a class of identity-based exploits that can emerge in structured networks where nodes are allowed to select their own routing key. This can allow a group of malicious nodes to place themselves in the routing paths of a target and are thereby able to censor or provoke erroneous behavior in a target.

rise employs a memory-hard proof-of-work crypto puzzle that nodes must solve in order to establish a network identity. The difficulty of this puzzle is tunable based on the network architecture and security model of the system utilizing it. This general approach is detailed in the S/Kademlia research paper.

how

rise identity fingerprints (analogous to nodeID) are:

RMD160 ( SHA256 ( 
    EQUIHASH ( NETWORK_DIFFICULTY, 
        SHA256 ( SECP256K1.PUBLIC_KEY ) 
    ) 
) )

When generating a network identity, first a node generates a secp256k1 ESDSA key pair. The public key is hashed and used as the input to mine an equihash solution. This process repeats until a solution of the network-defined difficulty is found. The solution is then hashed with sha256 and a final round of ripemd160.

The resulting hash is the node's routing key or "fingerprint". Messages exchanged between nodes include the public key, the equihash solution, and an ECDSA signature so that messages can be validated, authenticated, and end-to-end encrypted. A fingerprint is only valid if it is the hash of a verified equihash solution matching the difficulty.

Experiment with difficulty adjustments to what suits the network and threat model. The default parameters are N = 90, K = 5, with a resulting solution containing 6 leading zeroes.

using

This reference implementation is written in Javascript - except for the Equihash solver and verifier, which is a C++ native add-on. The protocol is simple and should be portable to any language. If you port it, I'll list it here <3.

example: generate and save an identity

const { writeFile } = require('node:fs/promises');
const rise = require('@tacticalchihuahua/rise');
const identity = await rise.Identity.generate();

await writeFile('rise.id', identity.lock('password'));

example: load a saved identity

const { readFile } = require('node:fs/promises');
const rise = require('@tacticalchihuahua/rise');
const crypted = await readFile('rise.id');
const identity = await rise.Identity.unlock('password', crypted);

console.log(identity.toJSON());

See the documentation for more a more detailed guide.

copying

anti-copyright 2025 tactical chihuahua
licensed under the gnu lesser general public license 2.1 or later