Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 924 Bytes

BytesValueNode.md

File metadata and controls

28 lines (18 loc) · 924 Bytes

BytesValueNode

A node that represents a value in bytes — e.g. 0x010203.

Attributes

Data

Attribute Type Description
kind "bytesValueNode" The node discriminator.
encoding "base16" | "base58" | "base64" | "utf8" The encoding of the data attribute.
data string The encoded data.

Children

This node has no children.

Functions

bytesValueNode(encoding, data)

Helper function that creates a BytesValueNode object from an encoding and an encoded data string.

const node = bytesValueNode('base16', '010203');
const utf8Node = bytesValueNode('utf8', 'Hello');