Skip to main content

Documentation Index

Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt

Use this file to discover all available pages before exploring further.

U256

256-bit unsigned integer. Stored as big-endian bytes.

Quick Start

import Voltaire

let one = try U256(hex: "0x01")
print(one.hex) // 0x + 64 hex chars

let raw = [UInt8](repeating: 0xaa, count: 32)
let v = try U256(bytes: raw)
XCTAssertEqual(v.bytes, raw)

 // Zero constant
 XCTAssertEqual(U256.zero.hex, "0x" + String(repeating: "00", count: 64))