cast::revm::precompile::bn128

Function read_point

pub fn read_point(input: &[u8]) -> Result<G1, PrecompileError>
Expand description

Reads the x and y points from the input slice.

ยงPanics

Panics if the input is not at least 64 bytes long.