@airgap/etherlink
Version:
The @airgap/etherlink package is an implementation of the ICoinProtocol interface from @airgap/coinlib-core.
21 lines (20 loc) • 805 B
TypeScript
import { Sealed } from './base/sealed';
import { BytesString } from './bytes';
export declare type KeyType = 'priv' | 'xpriv' | 'pub' | 'xpub';
interface BaseKey<_Type extends KeyType> extends Sealed<_Type>, BytesString {
}
export interface SecretKey extends BaseKey<'priv'> {
}
export interface ExtendedSecretKey extends BaseKey<'xpriv'> {
}
export interface PublicKey extends BaseKey<'pub'> {
}
export interface ExtendedPublicKey extends BaseKey<'xpub'> {
}
interface BaseKeyPair<_SecretKey extends SecretKey | ExtendedSecretKey, _PublicKey extends PublicKey | ExtendedPublicKey> {
secretKey: _SecretKey;
publicKey: _PublicKey;
}
export declare type KeyPair = BaseKeyPair<SecretKey, PublicKey>;
export declare type ExtendedKeyPair = BaseKeyPair<ExtendedSecretKey, ExtendedPublicKey>;
export {};