835 B
835 B
Functions
fromNibbles
▸ fromNibbles(nibbles: * Uint8Array | Array<number>*): Uint8Array
Defined in util/fromNibbles.ts:20
name: fromNibbles
signature: fromNibbles (nibbles: Uint8Array): Uint8Array
summary: Converts the input to Nibbles.
description: From an Uint8Array input, calculate and return a list of nibbles that makes up the input.
example:
import { fromNibbles } from '@polkadot/trie-hash/util';
asNibbles(new Uint8Array([4, 1, 2, 0])); // => Uint8Array([0x41, 0x20]
Parameters:
| Param | Type |
|---|---|
| nibbles | Uint8Array | Array<number> |
Returns: Uint8Array