oa::Hash

— 32-byte cryptographic hash (SHAKE-256 output)

Public Methods

const oa::Byte * oa::Hash::data()
oa::Byte * oa::Hash::data()
bool oa::Hash::isZero()
bool oa::Hash::operator!=(const Hash & inOther)
bool oa::Hash::operator<(const Hash & inOther)
bool oa::Hash::operator==(const Hash & inOther)
oa::String oa::Hash::toHex()
oa::String oa::Hash::toShortHex()

Static Public Methods

static oa::Result<Hash> oa::Hash::fromBytes(oa::Span<const oa::Byte> inBytes)
static oa::Result<Hash> oa::Hash::fromHex(oa::StringView inHex)
static oa::Usize oa::Hash::size()
static Hash oa::Hash::zero()

Public Data Members

bytesArrayfield

Constructor & Destructor Documentation

oa::Hash::Hash()
No public source comment is attached to this declaration.

Public Method Documentation

const oa::Byte * oa::Hash::data()
No public source comment is attached to this declaration.

Returns

const oa::Byte *

The declared return value.

oa::Byte * oa::Hash::data()
No public source comment is attached to this declaration.

Returns

oa::Byte *

The declared return value.

bool oa::Hash::isZero()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

bool oa::Hash::operator!=( const Hash & inOther )
No public source comment is attached to this declaration.

Parameters

inOther
const Hash &

Returns

bool

The declared return value.

bool oa::Hash::operator<( const Hash & inOther )
No public source comment is attached to this declaration.

Parameters

inOther
const Hash &

Returns

bool

The declared return value.

bool oa::Hash::operator==( const Hash & inOther )
No public source comment is attached to this declaration.

Parameters

inOther
const Hash &

Returns

bool

The declared return value.

oa::String oa::Hash::toHex()
No public source comment is attached to this declaration.

Returns

oa::String

The declared return value.

oa::String oa::Hash::toShortHex()
No public source comment is attached to this declaration.

Returns

oa::String

The declared return value.

static oa::Result<Hash> oa::Hash::fromBytes( oa::Span<const oa::Byte> inBytes )
No public source comment is attached to this declaration.

Parameters

inBytes
oa::Span<const oa::Byte>

Returns

oa::Result<Hash>

The declared return value.

static oa::Result<Hash> oa::Hash::fromHex( oa::StringView inHex )
No public source comment is attached to this declaration.

Parameters

inHex
oa::StringView

Returns

oa::Result<Hash>

The declared return value.

static oa::Usize oa::Hash::size()
No public source comment is attached to this declaration.

Returns

oa::Usize

The declared return value.

static Hash oa::Hash::zero()
No public source comment is attached to this declaration.

Returns

Hash

The declared return value.