import Voltaire
// Address
let addr = try Address(hex: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045")
print(addr.checksumHex)
// Keccak-256
let h = Keccak256.hash("hello world")
print(h.hex)
// U256
let v = try U256(hex: "0x01")
print(v.hex) // 0x00..01
// Signature parsing and normalization
let r = [UInt8](repeating: 0, count: 31) + [0x01]
let s = [UInt8](repeating: 0, count: 31) + [0x02]
let sig = try Signature(compact: r + s)
print(sig.isCanonical)
let compact = sig.normalized().serialize(includeV: false)