CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-bitcoinjs-lib

Client-side Bitcoin JavaScript library for node.js and browsers with comprehensive Bitcoin protocol support

Overall
score

99%

Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how effectively the engineer uses the bitcoinjs-lib package's push-only script validation functionality. The evaluation focuses on whether they correctly leverage the library's script parsing and validation capabilities to determine if a Bitcoin script contains only push operations.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import script module",
      "description": "Correctly imports the script module from bitcoinjs-lib (e.g., require('bitcoinjs-lib').script or import { script } from 'bitcoinjs-lib')",
      "max_score": 20
    },
    {
      "name": "Use isPushOnly method",
      "description": "Uses the script.isPushOnly() method or script.compile()/decompile() with push-only validation to check if a script contains only push operations",
      "max_score": 40
    },
    {
      "name": "Handle Buffer input",
      "description": "Correctly handles the script parameter as a Buffer and passes it to the bitcoinjs-lib script methods appropriately",
      "max_score": 20
    },
    {
      "name": "Return boolean result",
      "description": "Returns the boolean result from the bitcoinjs-lib validation method, correctly indicating whether the script is push-only",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-bitcoinjs-lib

tile.json