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

@w3sign/contracts

v3.3.0

Published

The smart contracts for the Time Stamping Service.

Downloads

1

Readme

Time stamping Smart Contract

This repository contains the smart contracts for the Time Stamping Service. The repository uses Hardhat as development environment for compilation, testing and deployment tasks.

The contract allows users to provide a timestamp, which is recorded using a Zero-Knowledge Proof (ZKP). This allows the contract to verify the timestamp without revealing any sensitive information about the stamp.

This allows for the automated, tamper-proof recording of important information and can help to streamline business processes and reduce the need for trust in third parties. Additionally, the use of ZKP technology provides an added layer of security and privacy for the users.

The Time Stamping Smart Contract that saves stamps with ZKP works by using a specific hash function to generate a unique stamp for the provided data. The process of generating the stamp starts with the input data, which is then passed through the Keccak-256 hash function to create a digest of the data. The output of the Keccak-256 function is then passed through the Poseidon function, which creates a unique stamp based on the input data. This stamp is then passed through another round of the Poseidon function to create the final stamp that will be recorded on the blockchain. The stamp generated in this way is then verified by the smart contract using ZKP technology. The ZKP allows the contract to verify the stamp without revealing any sensitive information about the stamp. This helps in maintaining the privacy of the data and the user.

Overall, this smart contract is a secure and efficient way to create and verify timestamps, making it useful for various applications such as document notarization, and supply chain management.

Install Dependencies

npm install

Compile Contracts

npm run compile

Run Tests

npm run test

Deployment

Before deploying, you need to create an .env file following the example of .env.example

Contents of .env.example:

PRIVATE_KEY = "YOUR PRIVATE KEY"
INFURA_KEY = "INFURA PROJECT ID"
ETHERSCAN_KEY = "ETHERSCAN API KEY"
BSCSCAN_KEY = "BSCSCAN API KEY"
COINMARKETCAP_KEY = "COINMARKETCAP API KEY"

# Available targets: 'ethers-v5', 'truffle-v5' and 'web3-v1'
# By default 'ethers-v5'
TYPECHAIN_TARGET = "TYPECHAIN TARGET"
TYPECHAIN_FORCE = "FORCE FLAG"

Next, call command npm run deploy <network> (network is the name of the network, which should be in hardhat.config.js)