|
purify
C++ Purify implementation with native circuit and BPP support
|
Functions | |
| bool | ranges_overlap (const void *lhs, std::size_t lhs_size, const void *rhs, std::size_t rhs_size) noexcept |
| Bytes | copy_bytes (const unsigned char *data, std::size_t size) |
| void | clear_generated_key (purify_generated_key *out) noexcept |
| void | clear_bip340_key (purify_bip340_key *out) noexcept |
| const UInt256 & | secp256k1_order () |
| const UInt256 & | secp256k1_order_minus_one () |
| Bytes | tagged_message (std::string_view prefix, const Bytes &message) |
| Result< UInt512 > | parse_secret_key (const unsigned char *secret_key) |
| Result< UInt512 > | parse_public_key (const unsigned char *public_key) |
| void | write_uint512 (const UInt512 &value, unsigned char *out) |
| void | write_field_element (const FieldElement &value, unsigned char *out) |
| Result< UInt512 > | derive_public_key_from_secret (const UInt512 &secret) |
|
noexcept |
Definition at line 54 of file c_api.cpp.
References purify::detail::secure_clear_bytes().
Referenced by purify_derive_bip340_key().
|
noexcept |
Definition at line 46 of file c_api.cpp.
References purify::detail::secure_clear_bytes().
Referenced by purify_generate_key(), and purify_generate_key_from_seed().
| Bytes purify::capi_detail::copy_bytes | ( | const unsigned char * | data, |
| std::size_t | size | ||
| ) |
Definition at line 39 of file c_api.cpp.
Referenced by purify_eval(), and purify_generate_key_from_seed().
Definition at line 121 of file c_api.cpp.
References purify::curve1(), purify::curve2(), purify::generator1(), purify::generator2(), purify::pack_public(), PURIFY_ASSIGN_OR_RETURN, and purify::unpack_secret().
Referenced by purify_derive_public_key(), purify_generate_key(), and purify_generate_key_from_seed().
Definition at line 98 of file c_api.cpp.
References purify::BigUInt< 8 >::from_bytes_be(), purify::core_api_detail::from_core_error_code(), purify::MissingValue, PURIFY_ERROR_OK, PURIFY_PUBLIC_KEY_BYTES, purify_validate_public_key(), and purify::unexpected_error().
Definition at line 85 of file c_api.cpp.
References purify::BigUInt< 8 >::from_bytes_be(), purify::core_api_detail::from_core_error_code(), purify::MissingValue, PURIFY_ERROR_OK, PURIFY_SECRET_KEY_BYTES, purify_validate_secret_key(), and purify::unexpected_error().
Referenced by purify_derive_bip340_key(), purify_derive_public_key(), purify_eval(), purify_generate_key(), and purify_generate_key_from_seed().
|
noexcept |
Definition at line 26 of file c_api.cpp.
Referenced by purify_generate_key_from_seed().
| const UInt256 & purify::capi_detail::secp256k1_order | ( | ) |
Definition at line 62 of file c_api.cpp.
References purify::BigUInt< 4 >::from_hex().
Referenced by secp256k1_order_minus_one().
| const UInt256 & purify::capi_detail::secp256k1_order_minus_one | ( | ) |
Definition at line 68 of file c_api.cpp.
References purify::BigUInt< 4 >::one(), secp256k1_order(), and purify::BigUInt< Words >::sub_assign().
Referenced by purify_derive_bip340_key().
Definition at line 77 of file c_api.cpp.
Referenced by purify_eval().
| void purify::capi_detail::write_field_element | ( | const FieldElement & | value, |
| unsigned char * | out | ||
| ) |
Definition at line 116 of file c_api.cpp.
References purify::FieldElement::to_bytes_be().
Referenced by purify_eval().
| void purify::capi_detail::write_uint512 | ( | const UInt512 & | value, |
| unsigned char * | out | ||
| ) |
Definition at line 111 of file c_api.cpp.
References purify::BigUInt< Words >::to_bytes_be().
Referenced by purify_derive_public_key(), purify_generate_key(), and purify_generate_key_from_seed().