Function createInstructionSetBCH

  • create an instance of the BCH 2023 virtual machine instruction set.

    Parameters

    • standard: boolean = true

      If true, the additional isStandard validations will be enabled. Transactions that fail these rules are often called "non-standard" and can technically be included by miners in valid blocks, but most network nodes will refuse to relay them. (Default: true)

    • __namedParameters: {
          ripemd160: {
              hash: ((input) => Uint8Array) & ((input) => Uint8Array);
          };
          secp256k1: {
              verifySignatureDERLowS: ((signature, publicKey, messageHash) => boolean);
              verifySignatureSchnorr: ((signature, publicKey, messageHash) => boolean);
          };
          sha1: {
              hash: ((input) => Uint8Array) & ((input) => Uint8Array);
          };
          sha256: {
              hash: ((input) => Uint8Array) & ((input) => Uint8Array);
          };
      } = ...
      • ripemd160: {
            hash: ((input) => Uint8Array) & ((input) => Uint8Array);
        }

        a Ripemd160 implementation

        • hash: ((input) => Uint8Array) & ((input) => Uint8Array)
      • secp256k1: {
            verifySignatureDERLowS: ((signature, publicKey, messageHash) => boolean);
            verifySignatureSchnorr: ((signature, publicKey, messageHash) => boolean);
        }

        a Secp256k1 implementation

        • verifySignatureDERLowS: ((signature, publicKey, messageHash) => boolean)
            • (signature, publicKey, messageHash): boolean
            • Parameters

              • signature: Uint8Array
              • publicKey: Uint8Array
              • messageHash: Uint8Array

              Returns boolean

        • verifySignatureSchnorr: ((signature, publicKey, messageHash) => boolean)
            • (signature, publicKey, messageHash): boolean
            • Parameters

              • signature: Uint8Array
              • publicKey: Uint8Array
              • messageHash: Uint8Array

              Returns boolean

      • sha1: {
            hash: ((input) => Uint8Array) & ((input) => Uint8Array);
        }

        a Sha1 implementation

        • hash: ((input) => Uint8Array) & ((input) => Uint8Array)
      • sha256: {
            hash: ((input) => Uint8Array) & ((input) => Uint8Array);
        }

        a Sha256 implementation

        • hash: ((input) => Uint8Array) & ((input) => Uint8Array)

    Returns InstructionSet<ResolvedTransactionCommon, AuthenticationProgramCommon, AuthenticationProgramStateCommon>

Generated using TypeDoc