2018-06-13 22:39:39 +03:00
|
|
|
/**
|
|
|
|
* Conversion Utilities
|
|
|
|
*
|
|
|
|
*/
|
2018-06-14 12:38:37 +03:00
|
|
|
import { BigNumber } from './bignumber';
|
2018-06-17 23:32:57 +03:00
|
|
|
import { Signature } from './secp256k1';
|
2018-06-13 22:39:39 +03:00
|
|
|
export declare type Arrayish = string | ArrayLike<number>;
|
|
|
|
export declare function isArrayish(value: any): boolean;
|
|
|
|
export declare function arrayify(value: Arrayish | BigNumber): Uint8Array;
|
|
|
|
export declare function concat(objects: Array<Arrayish>): Uint8Array;
|
|
|
|
export declare function stripZeros(value: Arrayish): Uint8Array;
|
|
|
|
export declare function padZeros(value: Arrayish, length: number): Uint8Array;
|
|
|
|
export declare function isHexString(value: any, length?: number): boolean;
|
|
|
|
export declare function hexlify(value: Arrayish | BigNumber | number): string;
|
2018-06-17 23:32:57 +03:00
|
|
|
export declare function hexDataLength(data: string): number;
|
|
|
|
export declare function hexDataSlice(data: string, offset: number, length?: number): string;
|
2018-06-13 22:39:39 +03:00
|
|
|
export declare function hexStripZeros(value: string): string;
|
|
|
|
export declare function hexZeroPad(value: string, length: number): string;
|
|
|
|
export declare function splitSignature(signature: Arrayish): Signature;
|