Bitcoin Core
31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
secp256k1
tools
wycheproof_utils.py
Go to the documentation of this file.
1
# Copyright (c) 2024 Random "Randy" Lattice and Sean Andersen
2
# Distributed under the MIT software license, see the accompanying
3
# file COPYING or https://www.opensource.org/licenses/mit-license.php.
4
'''
5
Utility functions for generating C files for testvectors from the Wycheproof project.
6
'''
7
8
def
to_c_array
(x):
9
if
x ==
""
:
10
return
""
11
s =
',0x'
.
join
(a + b
for
a, b
in
zip
(x[::2], x[1::2]))
12
return
"0x"
+ s
wycheproof_utils.to_c_array
to_c_array(x)
Definition
wycheproof_utils.py:8
Ticks
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition
time.h:73
Generated on Thu Apr 16 2026 09:42:38 for Bitcoin Core by
1.10.0