scale-core 0.1.2

low level datastructures and functionality for compiling for SCALE via wasm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2021, COSIC-KU Leuven, Kasteelpark Arenberg 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.
// Copyright (c) 2021, Cosmian Tech SAS, 53-55 rue La Boétie, Paris, France.

use crate::{RawSecretBit, SecretI64};

#[no_mangle]
extern "C" fn __eqzsint(value: SecretI64) -> RawSecretBit {
    RawSecretBit((value.0 == 0) as i64)
}

#[no_mangle]
extern "C" fn __ltzsint(value: SecretI64) -> RawSecretBit {
    RawSecretBit((value.0 < 0) as i64)
}