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

doichain-transaction

v0.0.4

Published

Create doichain transactions

Downloads

11

Readme

namecoin-transaction

Create the three standard doichain transactions.

Installation

npm install --save doichain-transaction

Usage

newName(name, random, address)

Preorder a name and transfer the ownership to address. For example:

namecoinTransaction.nameDoi('d/raid', JSON.stringify({signature:...,doiSignature:...}')
//3 642f72616964 7b226970223a223231322e3233322e35312e3936222c226d6170223a7b222a223a223231322e3233322e35312e3936227d2c22656d61696c223a226e616d65636f696e406d61696c2e636f6d227d OP_2DROP OP_DROP OP_DUP OP_HASH160 7d1547a461df0e192b1ee884ae510f0a0bf685d3 OP_EQUALVERIFY OP_CHECKSIG'
namecoinTransaction.newName('d/raid', '467e5b41d4bcb8c100', 'N2c1SDkTsPUiWsrtTxFUG32umhmKp3kdpo')
//1 1baa8c92fae059f5bcd69566c6c25771fa392133 OP_2DROP OP_DUP OP_HASH160 422040870cb08ff6afe48220042bf0b370274f75 OP_EQUALVERIFY OP_CHECKSIG

nameFirstUpdate(name, random, value, address)

Register the name and associate value with it. This must be done 12 blocks after newName. Use the same name and random values here as in newName. The ownership of the name is transferred to address. For example:

namecoinTransaction.nameFirstUpdate('d/raid', '467e5b41d4bcb8c100', JSON.stringify({"ip":"212.232.51.96","email":"[email protected]","map":{"":"212.232.51.96","www":"212.232.51.96"}}), 'NDkrT5eEmMgfmZVxST6zqCQv62on4LNwYK')
//2 642f72616964 467e5b41d4bcb8c100 7b226970223a223231322e3233322e35312e3936222c22656d61696c223a226e616d65636f696e406d61696c2e636f6d222c226d6170223a7b22223a223231322e3233322e35312e3936222c22777777223a223231322e3233322e35312e3936227d7d OP_2DROP OP_2DROP OP_DUP OP_HASH160 bc75e0ff697fa018ab75ab93ddaa6b8cbe3d8277 OP_EQUALVERIFY OP_CHECKSIG

nameUpdate(name, value, address)

Update the value associated with a name. The ownership of the name is transferred to address. For example:

namecoinTransaction.nameUpdate('d/raid', JSON.stringify({"ip":"212.232.51.96","map":{"*":"212.232.51.96"},"email":"[email protected]"}), 'N7ykABB1KLSScMyinV7ZSapygpVKLMwTzL')
//3 642f72616964 7b226970223a223231322e3233322e35312e3936222c226d6170223a7b222a223a223231322e3233322e35312e3936227d2c22656d61696c223a226e616d65636f696e406d61696c2e636f6d227d OP_2DROP OP_DROP OP_DUP OP_HASH160 7d1547a461df0e192b1ee884ae510f0a0bf685d3 OP_EQUALVERIFY OP_CHECKSIG'