🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@keyko-io/filecoin-verifier-tools

Package Overview
Dependencies
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keyko-io/filecoin-verifier-tools

Javascript implementation of a HAMT using ipld

latest
Source
npmnpm
Version
2.2.4
Version published
Weekly downloads
115
1816.67%
Maintainers
4
Weekly downloads
 
Created
Source

Filecoin verifier tools

Javascript implementation of a HAMT using ipld

For now, just testing how this could be implemented, works for getting the verifiers and their info.

Files

  • hash.js: simple implementation of murmur3 hash
  • hamt.js: implements lookup and iterating HAMT tries
  • methods.js: has the following methods
    • signTx: gets the nonce from RPC and signs a transaction
    • sendTx: same as above, but also sends the transaction
    • decode: decodes data from raw format
    • encode: encoding the data
    • actor: convenience for encoding actor info

Samples

  • add-client.js: adds a new verified client with cap
  • approve-verifer.js: approve adding a verifier in multisig
  • propose-verifier.js: propose adding a verifier in multisig
  • index-transaction.js: add transactions from blocks to postgres
  • tx-server.js: serve a list of transactions from postgres
  • tx-client.js: get a list of transactions and parse parameters
  • multisig.js: show multisig info
  • verified.js: list verified clients
  • verifiers.js: list verifiers
  • info-browser.js and test.html: check that everything works in browser

FAQs

Package last updated on 03 Jul 2023

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