Skip to main content

Module onchain

Module onchain 

Source
Expand description

Signer resolution and high-level verification over already-parsed registry data.

These helpers are framework-agnostic: the caller is responsible for reading its registry accounts (owner checks, deserialization) and passing the plain RegistryView and NodeEntry slice. All Anchor / framework coupling stays in the downstream program.

Functionsยง

expected_node_index
resolve_ordered_signers
Pair each set bit of signers_bitmap with its registry entry (in entries order), validate the node indices (applying remove-transition remapping for a live previous version), and return the effective node count plus the signer pubkeys in ascending bitmap-bit order.
validate_remove_transition_for_previous
verify_aggregate_over_hash_resolved
verify_data_update_resolved