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

@vechain/hw-app-vet

v0.2.0

Published

Ledger Hardware Wallet VeChain JavaScript bindings.

Downloads

12

Readme

hw-app-vet

[TOC]

isSupported

let isSupported = await Transport.isSupported()
console.log('isSupported', isSupported)

isSupported true

getAppConfiguration

let appConfiguration = await thorLedger.getAppConfiguration()
console.log("AppConfiguration", appConfiguration.toString('hex'))

AppConfiguration 03010003

getAccount

let account = await thorLedger.getAccount(path)
console.log('account', account)

account 
{publicKey:'043cff5201bdf9668d4526f5217a3205d425db794593a416275b9560907c912452c3416d7f8a65940fc0f449acdba6945c81c9449ec2e8c0fdbc32c4fce9480306',
address: '0xb12DEb5611E374dF55BC517d4b1e3f142466aB14' 
}

signTransaction

let txSig = await thorLedger.signTransaction(path, Buffer.from(rawTx, 'hex'))
console.log('sig tx', txSig.toString('hex'))

sig tx 5f7e8eedce7667a313ff3391cae24fc44d1260e196fee5aef7421cc46e598fb86c9ad52d2f15817c013e23549b9c377616ff2c9ff8bb3a5e7fa0dc575cced58101

signMessage

let message = Buffer.from('ca9a93009b4617a7e9385d834b931899805baa4bd396f57c9ec35d750efd733e', 'hex')
let msgSig = await thorLedger.signMessage(path, message)
console.log('sig msg', msgSig.toString('hex'))

sig msg 0e0e4f931ea1cc3d29482823c837e11dab1ae355252af4269315cb47e34efd6c2a0950b64555b1e69f499e07b22a20524d1c63567e6298e2f163722e620c863001

signJSON

let jsonSig = await thorLedger.signJSON(path, Buffer.from(encodedJSON, 'utf-8'))
console.log('sig json', "0x" + jsonSig.toString('hex'))

sig json 0x26a17db2554ef362923b5ea81c1b697bc133cfe124c47d0b4c83e8853a2c6eca3e6e2b1cc34bf00c277501d8ecbca70bbe3e5233998ed0398ee6f7e6924d98d100