Skip to main content

entryPointHash

@midnight-ntwrk/onchain-runtime v2.0.1


@midnight-ntwrk/onchain-runtime / entryPointHash

Function: entryPointHash()

function entryPointHash(entryPoint): string

Computes the (hex-encoded) hash of a given contract entry point. Used in composable contracts to reference the called contract's entry point ID in-circuit.

Parameters

entryPoint

string | Uint8Array<ArrayBufferLike>

Returns

string