Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/libauth/src/lib/vm/instruction-sets/bch/2023/consensus.ts>ConsensusBCH2023

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Go to Latest
enum ConsensusBCH2023
import { ConsensusBCH2023 } from "https://deno.land/x/libauth@v2.0.0-alpha.6/src/lib/vm/instruction-sets/bch/2023/consensus.ts";

Consensus settings for the BCH_2023_05 instruction set.

Members

forbiddenTransactionSize = 64

Transactions of this size are forbidden to prevent exploits of the transaction Merkle tree design. This constant replaces minimumTransactionSize (A.K.A. MIN_TX_SIZE) in the BCH_2023_05 upgrade.

maximumBytecodeLength = 10000

A.K.A. MAX_SCRIPT_SIZE

maximumCommitmentLength = 40
maximumDataCarrierBytes = 223

A.K.A. MAX_OP_RETURN_RELAY, nMaxDatacarrierBytes

maximumOperationCount = 201

A.K.A. MAX_OPS_PER_SCRIPT

maximumStackDepth = 1000

A.K.A. MAX_STACK_SIZE

maximumStackItemLength = 520

A.K.A. MAX_SCRIPT_ELEMENT_SIZE

maximumStandardTransactionSize = 100000

A.K.A. MAX_STANDARD_TX_SIZE

maximumStandardUnlockingBytecodeLength = 1650

A.K.A. MAX_TX_IN_SCRIPT_SIG_SIZE

maximumStandardVersion = 2

A.K.A. MAX_STANDARD_VERSION

maximumTransactionSize = 1000000

A.K.A. MAX_TX_SIZE

maximumVmNumberLength = 8

A.K.A. MAXIMUM_ELEMENT_SIZE_64_BIT

maxVmNumber = "9223372036854775807"
minVmNumber = "-9223372036854775807"
schnorrSignatureLength = 64