Part 3: Annotated Specification

Helper Functions


Note: The definitions below are for specification purposes and are not necessarily optimal implementations.

This note in the spec is super important for implementers! There are many, many optimisations of the below routines that are being used in practice; a naive implementation would be impractically slow for mainnet configurations. As long as the optimised code produces identical results to the code here, then all is fine.

Created by Ben Edgington. Licensed under CC BY-SA 4.0. Published 2022-11-28 16:52 UTC. Commit 1179743.