mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-07 22:53:56 -05:00
adds CI checks for building and testing Golang bindings adds CI checks for formatting Rust and Golang files Fixes Golang tests for BN254 Splits Actions checks for PR against main into multiple files Resolves #108 Resolves #107 Resolves #138
51 lines
1.8 KiB
C
51 lines
1.8 KiB
C
|
|
// Copyright 2023 Ingonyama
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
// Code generated by Ingonyama DO NOT EDIT
|
|
|
|
#include <cuda.h>
|
|
#include <stdbool.h>
|
|
// projective.h
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct BN254_projective_t BN254_projective_t;
|
|
typedef struct BN254_g2_projective_t BN254_g2_projective_t;
|
|
typedef struct BN254_affine_t BN254_affine_t;
|
|
typedef struct BN254_g2_affine_t BN254_g2_affine_t;
|
|
typedef struct BN254_scalar_t BN254_scalar_t;
|
|
|
|
bool projective_is_on_curve_bn254(BN254_projective_t* point1);
|
|
|
|
int random_scalar_bn254(BN254_scalar_t* out);
|
|
int random_projective_bn254(BN254_projective_t* out);
|
|
BN254_projective_t* projective_zero_bn254();
|
|
int projective_to_affine_bn254(BN254_affine_t* out, BN254_projective_t* point1);
|
|
int projective_from_affine_bn254(BN254_projective_t* out, BN254_affine_t* point1);
|
|
|
|
int random_g2_projective_bn254(BN254_g2_projective_t* out);
|
|
int g2_projective_to_affine_bn254(BN254_g2_affine_t* out, BN254_g2_projective_t* point1);
|
|
int g2_projective_from_affine_bn254(BN254_g2_projective_t* out, BN254_g2_affine_t* point1);
|
|
bool g2_projective_is_on_curve_bn254(BN254_g2_projective_t* point1);
|
|
|
|
bool eq_bn254(BN254_projective_t* point1, BN254_projective_t* point2);
|
|
bool eq_g2_bn254(BN254_g2_projective_t* point1, BN254_g2_projective_t* point2);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|