Bitcoin Core
29.99.0
P2P Digital Currency
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
def to_c_array(x)
Definition:
wycheproof_utils.py:8
Generated on Tue May 13 2025 20:00:14 for Bitcoin Core by
1.9.4