|
| const std::array< uint8_t, 32 > & | bb::bbapi::wire_bytes (const std::array< uint8_t, 32 > &w) |
| |
| template<typename Wire > |
| const std::array< uint8_t, 32 > & | bb::bbapi::wire_bytes (const Wire &w) |
| |
| template<typename Field > |
| std::array< uint8_t, 32 > | bb::bbapi::field_to_bytes (const Field &d) |
| |
| template<typename Field > |
| std::array< uint8_t, 32 > | bb::bbapi::field_to_wire (const Field &d) |
| |
| template<typename Wire , typename Field > |
| Wire | bb::bbapi::field_to_wire_as (const Field &d) |
| |
| template<typename Field , typename Wire > |
| Field | bb::bbapi::field_from_wire (const Wire &w) |
| |
| Fr | bb::bbapi::fr_to_wire (const bb::fr &d) |
| |
| bb::fr | bb::bbapi::fr_from_wire (const Fr &w) |
| |
| std::vector< Fr > | bb::bbapi::fr_vec_to_wire (const std::vector< bb::fr > &d) |
| |
| std::vector< bb::fr > | bb::bbapi::fr_vec_from_wire (const std::vector< Fr > &w) |
| |
| template<std::size_t N> |
| std::array< Fr, N > | bb::bbapi::fr_array_to_wire (const std::array< bb::fr, N > &d) |
| |
| template<std::size_t N> |
| std::array< bb::fr, N > | bb::bbapi::fr_array_from_wire (const std::array< Fr, N > &w) |
| |
| wire::GrumpkinPoint | bb::bbapi::grumpkin_point_to_wire (const grumpkin::g1::affine_element &d) |
| |
| grumpkin::g1::affine_element | bb::bbapi::grumpkin_point_from_wire (const wire::GrumpkinPoint &w) |
| |
| std::vector< wire::GrumpkinPoint > | bb::bbapi::grumpkin_point_vec_to_wire (const std::vector< grumpkin::g1::affine_element > &d) |
| |
| std::vector< grumpkin::g1::affine_element > | bb::bbapi::grumpkin_point_vec_from_wire (const std::vector< wire::GrumpkinPoint > &w) |
| |
| wire::Bn254G1Point | bb::bbapi::bn254_g1_point_to_wire (const bb::g1::affine_element &d) |
| |
| bb::g1::affine_element | bb::bbapi::bn254_g1_point_from_wire (const wire::Bn254G1Point &w) |
| |
| std::array< Fq, 2 > | bb::bbapi::fq2_to_wire (const bb::fq2 &d) |
| |
| bb::fq2 | bb::bbapi::fq2_from_wire (const std::array< Fq, 2 > &w) |
| |
| wire::Bn254G2Point | bb::bbapi::bn254_g2_point_to_wire (const bb::g2::affine_element &d) |
| |
| bb::g2::affine_element | bb::bbapi::bn254_g2_point_from_wire (const wire::Bn254G2Point &w) |
| |
| wire::Secp256k1Point | bb::bbapi::secp256k1_point_to_wire (const secp256k1::g1::affine_element &d) |
| |
| secp256k1::g1::affine_element | bb::bbapi::secp256k1_point_from_wire (const wire::Secp256k1Point &w) |
| |
| wire::Secp256r1Point | bb::bbapi::secp256r1_point_to_wire (const secp256r1::g1::affine_element &d) |
| |
| secp256r1::g1::affine_element | bb::bbapi::secp256r1_point_from_wire (const wire::Secp256r1Point &w) |
| |
| Uint256 | bb::bbapi::uint256_to_wire (const bb::numeric::uint256_t &d) |
| |
| bb::numeric::uint256_t | bb::bbapi::uint256_from_wire (const Uint256 &w) |
| |
| std::vector< Uint256 > | bb::bbapi::uint256_vec_to_wire (const std::vector< bb::numeric::uint256_t > &d) |
| |
| std::vector< bb::numeric::uint256_t > | bb::bbapi::uint256_vec_from_wire (const std::vector< Uint256 > &w) |
| |
| ChonkProof | bb::bbapi::chonk_proof_from_wire (wire::ChonkProof &&w) |
| |
| wire::ChonkProof | bb::bbapi::chonk_proof_to_wire (const ChonkProof &d) |
| |
| std::vector< ChonkProof > | bb::bbapi::chonk_proof_vec_from_wire (std::vector< wire::ChonkProof > &&w) |
| |
Wire <-> domain conversion helpers for the bbapi handlers.
All conversions are field-by-field: each handler in bbapi_handlers.cpp builds the domain command struct from the wire fields, calls execute(), and builds the wire response from the domain response fields.
Wire field types (Fr / Fq / Uint256 / … — nominal bin32 aliases) and domain field types (bb::fr, bb::fq, uint256_t, …) share a 32-byte msgpack bin32 encoding, so the byte-level conversion is a serialize_to_buffer / serialize_from_buffer call.
Definition in file bbapi_wire_convert.hpp.