Functions

fromNibbles

▸ fromNibbles(input: Uint8Array): Uint8Array

Defined in util/fromNibbles.ts:19

name: fromNibbles

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-codec/util';

fromNibbles(new Uint8Array([4, 1, 2, 0])); // => Uint8Array([0x41, 0x20]
1
2
3

Parameters:

Name Type
input Uint8Array

Returns: Uint8Array


Last Updated: 2/26/2019, 11:08:42 AM