Registry / crypto / decred-dcrd-blockchain-standalone-v2

decred-dcrd-blockchain-standalone-v2

JSON →
library2.3.0gogounverified

Provides standalone functions useful for working with the Decred blockchain consensus rules.

go get github.com/decred/dcrd/blockchain/standalone/v2
INSTALL
IMPORT
SIG · DECRED-DCRD-BLOCKC
D
decred-dcrd-blockchain-standalone-v2
cryptogov2.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

standalone
github.com/decred/dcrd/blockchain/standalone/v2

Calculates the proof-of-work difficulty for a given target bits value.

package main import ( "fmt" "github.com/decred/dcrd/blockchain/standalone/v2" ) func main() { // Example: calculate the required difficulty for a block difficulty := standalone.CalcWork(0x1d00ffff) fmt.Printf("Difficulty: %d\n", difficulty) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
decred-dcrd-blockchain-standalone-v2 — go get decred-dcrd-blockchain-standalone-v2 · libregistry