mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 11:27:59 +00:00
23 lines
800 B
TypeScript
23 lines
800 B
TypeScript
import type { U8aLike } from '../types.js';
|
|
/** @internal */
|
|
export declare const U8A_WRAP_ETHEREUM: Uint8Array;
|
|
/** @internal */
|
|
export declare const U8A_WRAP_PREFIX: Uint8Array;
|
|
/** @internal */
|
|
export declare const U8A_WRAP_POSTFIX: Uint8Array;
|
|
/** @internal */
|
|
export declare function u8aIsWrapped(u8a: Uint8Array, withEthereum: boolean): boolean;
|
|
/**
|
|
* @name u8aUnwrapBytes
|
|
* @description Removes all <Bytes>...</Bytes> wrappers from the supplied value
|
|
*/
|
|
export declare function u8aUnwrapBytes(bytes: U8aLike): Uint8Array;
|
|
/**
|
|
* @name u8aWrapBytes
|
|
* @description
|
|
* Adds a <Bytes>...</Bytes> wrapper to the supplied value, if
|
|
* - We don't already have a Bytes wrapper
|
|
* - The message is not an Ethereum-style message
|
|
*/
|
|
export declare function u8aWrapBytes(bytes: U8aLike): Uint8Array;
|