opnet
Version:
The perfect library for building Bitcoin-based applications.
35 lines (25 loc) • 813 B
text/typescript
import { Address, MLDSASecurityLevel } from '@btc-vision/transaction';
export interface PublicKeyInfo {
readonly originalPubKey?: string;
readonly tweakedPubkey?: string;
readonly p2tr?: string;
readonly p2op?: string;
readonly lowByte?: number;
readonly p2pkh?: string;
readonly p2pkhUncompressed?: string;
readonly p2pkhHybrid?: string;
readonly p2shp2wpkh?: string;
readonly p2wpkh?: string;
readonly mldsaHashedPublicKey?: string;
readonly mldsaLevel?: MLDSASecurityLevel;
readonly mldsaPublicKey?: string | null;
}
export interface IPubKeyNotFoundError {
readonly error: string;
}
export interface IPublicKeyInfoResult {
[key: string]: PublicKeyInfo | IPubKeyNotFoundError;
}
export interface AddressesInfo {
[key: string]: Address;
}