Client-side Bitcoin JavaScript library for node.js and browsers with comprehensive Bitcoin protocol support
Overall
score
99%
{
"context": "This evaluation assesses how effectively the engineer uses bitcoinjs-lib's script module functions to implement script format conversion, structure analysis, and number encoding/decoding. The focus is on proper utilization of the library's compile, decompile, toASM, fromASM, isPushOnly, countNonPushOnlyOPs, and number.encode/decode functions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses toASM",
"description": "Uses script.toASM() function to convert script buffers to human-readable ASM text format in the scriptToText function",
"max_score": 20
},
{
"name": "Uses fromASM",
"description": "Uses script.fromASM() function to convert ASM text format back to script buffers in the textToScript function",
"max_score": 20
},
{
"name": "Uses decompile",
"description": "Uses script.decompile() function to break down scripts into chunks/elements for analysis in the analyzeScript function",
"max_score": 15
},
{
"name": "Uses isPushOnly",
"description": "Uses script.isPushOnly() function to determine if a script contains only data push operations",
"max_score": 15
},
{
"name": "Uses countNonPushOnlyOPs",
"description": "Uses script.countNonPushOnlyOPs() function to count executable operations in scripts",
"max_score": 10
},
{
"name": "Number decode",
"description": "Uses script.number.decode() function to decode script-encoded numbers from buffers in the decodeNumber function",
"max_score": 10
},
{
"name": "Number encode",
"description": "Uses script.number.encode() function to encode regular numbers into script number format in the encodeNumber function",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-bitcoinjs-libdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10