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

tomoprivacyjs

v0.5.1

Published

Tomo privacy wallet apis.

Downloads

45

Readme

TOMO privacy wallet's apis

Terms

  • keys: private spend key, private view key, public spend key, public view key.
  • UTXO: Unspent transaction output - result of a privacy transaction.
  • G: secp256k1 base point
  • H: secp256k1 generator point(there is an unknown x: H = x*G)
  • Blinding factor: random Big Integer used as input for Elliptic-curve Diffie–Hellman
  • Mask: random Big Integer, used as input for Pederson commitment for hiding value
  • Privacy address: privacy's address
  • Pederson commitment: Pederson commitment is cryptographic commitment scheme equivalent to secretly writing a secret message m in a sealed, tamper-evident, individually numbered (or/and countersigned) envelope kept by who wrote the message. The envelope's content can't be changed by any means, and the message does not leak any information. Formula = G*Mask + value*H .
  • Bullet proof: Range proofs is a type of zero-knowledge proof used for proving that a secret is within a value range without revealing the precise value of the secret. Bulletproofs is a new non-interactive zero-knowledge proof protocol with very short proofs and without a trusted setup; the proof size is only logarithmic in the witness size. Bulletproofs are especially well suited for efficient range proofs on committed values: they enable proving that a committed value is in a range using only (2 logn + 9) group and field elements, where n is the bit length of the range. Proof generation and verification times are linear in n.
  • Transaction public key: equal r * G
  • Stealth Address: in other word - oneTimeAddress - random address just able to be decoded by owner's privatekey, in tomoprivacy - oneTimeAddress is for one UTXO
  • RingCT: ring confidental transaction protocol, base on Cryptonote's with modifying for tomochain only

Additional requests/features please contact [email protected]

Build Status codecov

ROADMAP

  • [x] Finish high-level apis that able to interact with smart-contracts and precompiled contracts on test net includes ringct, deposit, balance, privatesend and withdraw
  • [x] Privacy protocol - turn any TRC20, TRC21 token to privacy token
  • Integrated to tomowallet web and integrated bullet proof, demo on testnet
  • Integrate to Maxbet, standardlize the transaction flow for Dapp.

Usage

TEST

  • [x] Unit test - done
  • [x] End to end test on tomochain testnet - cover main flow deposit, withdraw, sendtoprivate

License

MIT