airgap-coin-lib
Version:
The airgap-coin-lib is a protocol agnostic library to prepare, sign and broadcast cryptocurrency transactions.
16 lines (15 loc) • 651 B
TypeScript
import { IACMessageDefinitionObject } from './message';
import { Payload } from './payloads/payload';
import { IACPayloadType } from './serializer';
export declare type IACProtocolVersion = number;
export declare type IACProtocolType = [IACProtocolVersion, IACPayloadType, Payload];
export declare class IACProtocol {
readonly version: number;
readonly payloadType: IACPayloadType;
payload: Payload;
constructor(data: Payload);
decoded(): IACProtocolType;
encoded(): string;
static fromDecoded(data: IACMessageDefinitionObject[], chunkSize?: number): IACProtocol[];
static fromEncoded(data: string[]): IACProtocol[];
}