Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
libzeth
circuits
safe_arithmetic.hpp
Go to the documentation of this file.
1
// Copyright (c) 2015-2022 Clearmatics Technologies Ltd
2
//
3
// SPDX-License-Identifier: LGPL-3.0+
4
5
#ifndef __ZETH_CIRCUITS_SAFE_ARITHMETIC_HPP__
6
#define __ZETH_CIRCUITS_SAFE_ARITHMETIC_HPP__
7
8
#include <cstddef>
9
10
namespace
libzeth
11
{
12
15
size_t
subtract_with_clamp
(
size_t
a,
size_t
b);
16
17
}
// namespace libzeth
18
19
#endif // __ZETH_CIRCUITS_SAFE_ARITHMETIC_HPP__
libzeth
Definition:
binary_operation.hpp:15
libzeth::subtract_with_clamp
std::size_t subtract_with_clamp(std::size_t a, std::size_t b)
Definition:
safe_arithmetic.cpp:10
Generated on Mon Nov 28 2022 10:29:03 for Zeth - Zerocash on Ethereum by
1.8.17