Class TxnCommitments

TxnCommitments represents the commitments computed from the transactions in the block. It contains multiple commitments based on different algorithms and hash functions, to support different use cases.

Implements

Constructors

  • Parameters

    • params: {
          nativeSha512_256Commitment: Uint8Array;
          sha256Commitment: Uint8Array;
      }
      • nativeSha512_256Commitment: Uint8Array
      • sha256Commitment: Uint8Array

    Returns TxnCommitments

Properties

nativeSha512_256Commitment: Uint8Array

Root of transaction merkle tree using SHA512_256 hash function. This commitment is computed based on the PaysetCommit type specified in the block's consensus protocol.

sha256Commitment: Uint8Array

Root of transaction vector commitment merkle tree using SHA256 hash function

encodingSchema: NamedMapSchema = ...

Methods

  • Extract the encoding data for this object. This data, after being prepared by the encoding Schema, can be encoded to msgpack or JSON.

    Returns Map<string, unknown>

Generated using TypeDoc