import { btc } from 'scryptlib-btc'; import { SignatureHashType } from "scryptlib-btc/dist/scryptTypes"; export type UTXO = btc.Transaction.IUnspentOutput; export type Network = btc.Networks.Network; export type AddressOption = btc.Address; export type AddressesOption = AddressOption | AddressOption[]; export type PublicKeyOption = btc.PublicKey; export type PublicKeysOption = PublicKeyOption | PublicKeyOption[]; export type PublicKeysOrAddressesOption = AddressesOption | PublicKeysOption; export type SignatureOption = { pubKeyOrAddr: PublicKeysOrAddressesOption; sigHashType?: SignatureHashType; /** * Index of the OP_CODESEPARATOR to split the previous output script at during verification. * If undefined, the whole script is used. * */ csIdx?: number; }; export type SignaturesOption = SignatureOption | SignatureOption[]; export { SignatureHashType };