Skip to main content

HashingIntentScope

type HashingIntentScope​

A 1-byte domain separator for hashing Object ID in IOTA. It starts from 0xf0 to ensure no hashing collision for any ObjectID vs IotaAddress which is derived as the hash of `flag || pubkey`.

type HashingIntentScope uint
const (
HashingIntentScopeChildObjectId HashingIntentScope = 1
HashingIntentScopeRegularObjectId HashingIntentScope = 2
)

func (HashingIntentScope) ToDisplayString​

func (_self HashingIntentScope) ToDisplayString() string

Render this type as human-readable text.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.