UNPKG

xrpl-binary-codec-prerelease

Version:

XRP Ledger Protocol Binary Codec - For XRPL, Xahau and other networks (with dynamic definitions)

16 lines (12 loc) 307 B
import { Hash } from './hash' /** * Hash with a width of 256 bits */ class Hash256 extends Hash { static readonly width = 32 static readonly ZERO_256 = new Hash256(new Uint8Array(Hash256.width)) constructor(bytes: Uint8Array) { super(bytes ?? Hash256.ZERO_256.bytes) } } export { Hash256 }