Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

babbage-historian

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babbage-historian

Token history interpreter

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

historian

Token history interpreter for interacting with a Bitcoin overlay network

API

Table of Contents

  • Historian

Historian

Interprets the history of a token BRC-8 envelope

Parameters

  • correctOwnerKey string the ownerKey used in pushdrop to create the locking script
  • correctSigningKey string the signing key that should have been used
  • validate any? dynamic validation function to filter history

interpret

Recursive function for interpreting the history of a token

Parameters
  • currentEnvelope
  • currentDepth

Returns Promise<Array<string>>

decodeTokenValue

Decodes a pushdrop token TODO: Update to support other data structures! --> Currently coded for kvstore tokens

Parameters
  • inputEnvelope

License & Confidentiality

The license for the code in this repository is the Open BSV License

FAQs

Package last updated on 18 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