bitauth / libauth

An ultra-lightweight, zero-dependency TypeScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.

Home Page:https://libauth.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

replace bitbox with libauth

salemkode opened this issue · comments

Hi

I am using bitbox in mt project and I work to convert it from use (bitbox or bch-js) to use libauth

and I have small problem is this method

but I do not know if libauth have like method

bitbox.Crypto.sha256(inputLockScript);

bitbox.Address.isCashAddress(address)

bitbox.Crypto.hash256(...);

bitbox.Address.fromOutputScript(lockscript)

bitbox.Address.cashToHash160(address)

bitbox.Address.detectAddressType(address)

bitbox.ECPair.fromPublicKey(
          verificationParts.publicKey
);

 bitbox.ECPair.verify(
          verificationKey,
          verificationMessage,
          verificationSignature
);