Hexadecimal string types
npm i @hazae41/hexane
- 100% TypeScript and ESM
- No external dependencies
function recover(signature: ZeroHexString<32>) {
// just use signature like a normal string
}
const raw = prompt("Enter your signature as zero-hex")
const hex = ZeroHexString.String.Length.asOrThrow(raw, 32)
recover(hex)