Bit-Wasp / secp256k1-php

PHP bindings for bitcoin-core/secp256k1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

secp256k1_ecdsa_recoverable_signature_serialize_compact - fix API

afk11 opened this issue · comments

Saving this for a backwards incompatible release, but it looks like

    secp256k1_ecdsa_recoverable_signature_serialize_compact(
         resource $context, 
         resource $sig, 
         &$sigOut, 
         &$recID
    );

is wrong and should be

    secp256k1_ecdsa_recoverable_signature_serialize_compact(
         resource $context, 
         &$sigOut, 
         &$recID, 
         resource $sig
    );

Issue fixed in a tagged release