import * as crypto from "@node-lightning/crypto" ; export function sha256 ( data ) { return crypto . sha256 ( data ) ; } export function ecdsaSign ( message , privKey ) { return crypto . signWithRecovery ( message , privKey ) ; } export function ecdsaRecovery ( message , signature , recoveryFlag ) { return crypto . recoverPubKey ( signature , recoveryFlag , message , true ) ; } export function ecdsaVerify ( pubkey , message , signature ) { return crypto . verifySig ( message , signature , pubkey ) ; }