shared-libraries.md raw

Shared Libraries ================

limenkaconsensus

The purpose of this library is to make the verification functionality that is critical to Limenka's consensus available to other applications, e.g. to language bindings.

API

The interface is defined in the C header limenkaconsensus.h located in src/script/limenkaconsensus.h.

Version

limenkaconsensus_version returns an unsigned int with the API version (currently `2`).

Script Validation

limenkaconsensus_verify_script, limenkaconsensus_verify_script_with_amount and limenkaconsensus_verify_script_with_spent_outputs return an int with the status of the verification. It will be 1 if the input script correctly spends the previous output scriptPubKey.

Parameters
limenkaconsensusverifyscript
limenkaconsensusverifyscriptwithamount
limenkaconsensusverifyscriptwithspent_outputs
Script Flags
Errors

Example Implementations