ecashaddrjs
Version:
eCash cashaddr address format support for Node.js and web browsers.
17 lines (13 loc) • 402 B
text/typescript
// Copyright (c) 2024 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
export type AddressType = 'p2pkh' | 'p2sh';
export interface DecodedAddress {
prefix: string;
type: AddressType;
hash: string;
}
export interface TypeAndHash {
type: AddressType;
hash: string;
}