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

keybase-eth

v0.3.6

Published

Read the [article](https://medium.com/@izqui9/ethereum-keybase-registry-proposal-c6497e3b2af7)

Downloads

3

Readme

Keybase <> Ethereum Registry

NPM Package

Mapping Keybase identities with Ethereum addresses in a secure, cryptographically verifiable manner.

A project by Aragon to provide Ethereum identity.

Ropsten (deployed Feb 27th, 2017): 0x18feabc5f9437676143df8e925554eb4fdb55a91 Kovan (deployed March 8th, 2017): 0xe22fD893Eb285eA7c336158b54aC38f19E63491a

Read the original article

API

ENS compliance is being worked on.

For now API for the registry is:

Getting information

To get data regarding a registry, these three constant functions can be used:

  • getAddress(string username) returns (address): Lookup for an address given a username.
  • getUsername(address ethAddress) returns (string username): Reverse lookup of username for a given address
  • myUsername() returns (string username): Reverse lookup for sender

Registering

Both funcions are payable and if registry doesn't have funds, it will need some to pay for Oraclize costs.

  • register(string username, address ethAddress): Starts registration for the provided address and username.
  • registerSender(string username): Starts registration for tx sender for the provided username.

Fallback

Anyone can send ether to the contract to pay for verification costs on behalf of the users of the contract.

There is no suicide call nor any way the contract will send ether to anyone that is not Oraclize. Be sure that if you donate, funds will only be used for verifying records in the registry.

Gas & costs

These are the gas costs I'm experiencing:

  • Create register request: 230k gas + $0.01 USD in Ether for Oraclize + 1M gas for callback transaction

  • Successfully verify and create registry (performs ecrecover and bytes black magic): 480k gas

  • Failed verify: Will throw and eat all gas :(

Note: See that we are paying for 1M gas to Oraclize and the transaction is only using 480k gas based on my testing, will keep it on 1M on testnet to see the variance among different users, and will settle to a less wasteful value.