🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

@dazaar/eth-tweak

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dazaar/eth-tweak

Tweak an eth public key into a series of session keys for Dazaar payments

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

@dazaar/eth-tweak

Tweak an eth public key into a series of session keys for Dazaar payments.

npm install @dazaar/eth-tweak

Usage

const DazaarEthTweak = require('@dazaar/eth-tweak')

const d = new DazaarEthTweak({
  publicKey: ..., // your main eth public key
  secretKey: ..., // your main eth secret key (optional, only need to generate tweaked private keys)
  chainId: ...    // optional chain id
})

const addr = d.address(sellerKey, buyerKey) // get address for a specific session
const { publicKey, address } = d.publicData() // your public key and eth address
const { secretKey, publicKey, address } = d.keyPair(sellerKey, buyerKey) // the tweaked keypair

License

MIT

FAQs

Package last updated on 15 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts