{"id":69146,"library":"decred-dcrd-blockchain-standalone-v2","title":"Decred Blockchain Standalone","description":"Provides standalone functions useful for working with the Decred blockchain consensus rules.","status":"active","version":"2.3.0","language":"go","source_language":null,"source_url":"https://github.com/decred/dcrd","tags":["decred","blockchain","consensus","standalone","crypto"],"install":[{"cmd":"go get github.com/decred/dcrd/blockchain/standalone/v2","lang":"bash","label":"Install github.com/decred/dcrd/blockchain/standalone/v2"}],"dependencies":[],"imports":[{"symbol":"standalone","correct":"github.com/decred/dcrd/blockchain/standalone/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/decred/dcrd/blockchain/standalone/v2\"\n)\n\nfunc main() {\n\t// Example: calculate the required difficulty for a block\n\tdifficulty := standalone.CalcWork(0x1d00ffff)\n\tfmt.Printf(\"Difficulty: %d\\n\", difficulty)\n}","lang":"go","description":"Calculates the proof-of-work difficulty for a given target bits value."},"warnings":[],"env_vars":null,"search_vec":"'blockchain':2,13,17 'consensus':14,18 'crypto':20 'decr':1,12,16 'function':6 'provid':4 'rule':15 'standalon':3,5,19 'use':7 'work':9","created_at":"2026-06-17T17:58:11.940060+00:00","updated_at":"2026-06-17T17:58:11.940060+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/decred/dcrd","github":"https://github.com/decred/dcrd","docs":"https://pkg.go.dev/github.com/decred/dcrd/blockchain/standalone/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}