hex-encoding

Official

Convert between bytes, strings, and hex.

AuthorNethereum
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies the conversion between different data representations like byte arrays, UTF-8 strings, and hexadecimal strings, which is a common task when working with blockchain data and network protocols.

Core Features & Use Cases

  • Bytes to Hex: Convert byte arrays into their hexadecimal string representation, with or without a "0x" prefix.
  • Hex to Bytes: Convert hexadecimal strings (with or without "0x" prefix) back into byte arrays.
  • Hex Prefix Handling: Ensure or remove the "0x" prefix from hex strings for consistency.
  • UTF-8 Encoding: Encode and decode UTF-8 strings to and from their hex representations.
  • HexBigInteger: Easily manage large numbers used in gas and value fields, converting between numbers and hex strings.

Quick Start

Convert the byte array new byte[] { 0xDE, 0xAD, 0xBE, 0xEF } to a hex string with a prefix.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hex-encoding
Download link: https://github.com/Nethereum/Nethereum/archive/main.zip#hex-encoding

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.