Skip to main content

ComputeHashString

Generates a deterministic hash as a base64 encoded string for the provided protobuf object.

def ComputeHashString(
ctx: context.Context,
pb: proto.Message
) - > string

Generate a deterministic hash as a base64 encoded string for the pb object.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, allowing cancellation or carrying request-scoped values.
pbproto.MessageThe protobuf message object for which to compute the deterministic hash.

Returns

TypeDescription
stringThe base64 encoded string representation of the deterministic hash.