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

x/libauth/src/lib/vm/instruction-sets/common/consensus.ts>ConsensusCommon

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

Consensus settings for the BCH_2022_05 instruction set.

Members

maximumBytecodeLength = 10000

A.K.A. MAX_SCRIPT_SIZE

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"
minimumTransactionSize = 100

A.K.A. MIN_TX_SIZE

minVmNumber = "-9223372036854775807"
schnorrSignatureLength = 64