Skip to main content

entryPointHash

@midnight/ledger v7.0.0


@midnight/ledger / 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