Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rsa sha256 verify signature #2

Closed
wants to merge 262 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
262 commits
Select commit Hold shift + click to select a range
46c13e9
fix integration tests
dimas1185 May 17, 2023
94ca050
Add insert, remove and update methods to multi_index (and index)
May 16, 2023
2b0fd5c
Get rid of const obj for new modify() method.
May 17, 2023
a1aae5f
Update tests to cover both const and non-const version of remove()
May 17, 2023
65f928f
Code review improvements
May 18, 2023
8a6bfbd
Merge pull request #179 from AntelopeIO/mikelik/crud
mikelik May 18, 2023
e3ef75c
Merge pull request #178 from AntelopeIO/fix-abi-singleton
dimas1185 May 18, 2023
4bae47b
Description of the Crypto API was updated
jolly-fellow May 19, 2023
a7fa751
Updated after review
jolly-fellow May 19, 2023
8671ca2
Merge branch '4.0-stable' into stable-main
May 22, 2023
5b06bd3
Apply suggestions from code review
jolly-fellow May 22, 2023
aa6efda
Merge pull request #181 from AntelopeIO/crypto_api_update_proposal
jolly-fellow May 23, 2023
861a86e
removed bls types
mschoenebeck May 24, 2023
f778277
sync with branch 'main' of https://github.com/AntelopeIO/cdt
mschoenebeck May 24, 2023
e2bec04
synced with Antelope/main
mschoenebeck May 24, 2023
80ef305
fixed submodule
mschoenebeck May 24, 2023
44379dc
Merge remote-tracking branch 'origin/release/4.0' into integration_te…
spoonincode May 24, 2023
df628a1
Merge pull request #187 from AntelopeIO/integration_tests_ci_main
spoonincode May 31, 2023
78ced4c
Merge pull request #183 from AntelopeIO/stable-main
spoonincode May 31, 2023
5a97108
removed bls types leftovers
mschoenebeck Jun 6, 2023
9142b69
Merge branch 'main' of https://github.com/AntelopeIO/cdt
mschoenebeck Jun 7, 2023
2975faa
update according to leap update
mschoenebeck Jun 7, 2023
6ed17a2
Replace is_callable_v with is_invocable
Jun 16, 2023
7b058b4
Add llvm on ubuntu22
Jun 16, 2023
baa6147
[Meta-Refl] Update catch2 to v2.13.10
nathanielhourt Jun 17, 2023
2838fe7
Merge pull request #194 from AntelopeIO/mikelik/clang-fix
mikelik Jun 22, 2023
21a8221
don't throw but propagate error back to smart contract to be handled …
mschoenebeck Jun 28, 2023
b5d71e2
Merge pull request #195 from dapp-protocols/update-catch2
dimas1185 Jun 29, 2023
7a6dfcb
added bls integration tests
mschoenebeck Jun 30, 2023
9d1424d
added bls types to enforce correct operand sizes
mschoenebeck Jun 30, 2023
8a18e7a
Merge branch 'main' of https://github.com/AntelopeIO/cdt
mschoenebeck Jun 30, 2023
3f701e2
better fp2 type
mschoenebeck Jun 30, 2023
459fa32
handle correctly included contracts types
dimas1185 Jul 10, 2023
19b3b24
redesign of abigen for multi_index and singleton
dimas1185 Jul 18, 2023
482de2c
singleton tests extension
dimas1185 Jul 18, 2023
134a7cd
update cicd ubuntu 20.04->20.10
dimas1185 Jul 18, 2023
b540790
Merge pull request #154 from mschoenebeck/main
arhag Jul 18, 2023
0a747a9
try to fix crash in tests
dimas1185 Jul 19, 2023
e644e75
trying to fix build seg fault
dimas1185 Jul 19, 2023
9e3d4a0
more checks to deal with seg fault
dimas1185 Jul 19, 2023
c1eca81
fix build seg fault
dimas1185 Jul 19, 2023
b2d6f0b
trying to fix seg fault
dimas1185 Jul 20, 2023
dc8d62c
trying to fix seg fault + logs
dimas1185 Jul 20, 2023
208274a
fixing seg fault in release build
dimas1185 Jul 21, 2023
19749dd
seg fault fix
dimas1185 Jul 21, 2023
73662c2
cicd revert ubuntu 22 to LTS
dimas1185 Jul 24, 2023
6c78f0a
change error macro to throw error
dimas1185 Jul 26, 2023
34ad214
fix CDT_INTERNAL_ERROR macro
dimas1185 Jul 27, 2023
8f46781
#201 reivew concerns addressed
dimas1185 Jul 27, 2023
6e98fda
error->warning if contract class is not found + refactor
dimas1185 Jul 27, 2023
b2386d9
empty commit to address gh issue
dimas1185 Jul 27, 2023
0056647
Merge pull request #201 from AntelopeIO/extend-abi-non-contract
dimas1185 Jul 28, 2023
3777db3
init roadmap
ericpassmore Aug 11, 2023
9a1164b
leap: 4.0 -> main
dimas1185 Aug 21, 2023
8160de1
remove ubuntu18 from builds
ericpassmore Aug 22, 2023
c27e69e
added ubuntu20 artifact upload
ericpassmore Aug 23, 2023
1219fe7
removed ubuntu18 dockerfile
ericpassmore Aug 23, 2023
a46c482
Merge pull request #214 from AntelopeIO/ehp/gh-18-remove-ubunutu18-bu…
ericpassmore Aug 24, 2023
7b55d92
refactoring
dimas1185 Aug 25, 2023
0f0a02c
unit tests fix
dimas1185 Aug 25, 2023
14351e0
#211 concerns addressed
dimas1185 Aug 25, 2023
d87749e
Merge pull request #211 from AntelopeIO/bls_integration
dimas1185 Aug 28, 2023
2601d3e
Make leap-dev download target configurable.
oschwaldp-oci Sep 5, 2023
116c6ba
Remove unneeded token with v3.
oschwaldp-oci Sep 5, 2023
4673b45
Merge pull request #217 from AntelopeIO/cicd-override-leap-dev-target
oschwaldp-oci Sep 6, 2023
01d06ab
added set_finalizers host function
dimas1185 Sep 6, 2023
6f61e69
leap main -> hotstuff_integration
dimas1185 Sep 6, 2023
5a06647
Make leap-dev download target configurable.
oschwaldp-oci Sep 5, 2023
492d923
Remove unneeded token with v3.
oschwaldp-oci Sep 5, 2023
5f1ad6f
Merge branch 'hotstuff_integration' into set_finalizers_hf
dimas1185 Sep 6, 2023
409e5b2
correct leap-dev branch
dimas1185 Sep 7, 2023
17b6b4d
fix after leap branch update
dimas1185 Sep 7, 2023
824cf1f
updated with c++ 20
ericpassmore Sep 9, 2023
938204c
clarified C++ 20 support for contract language
ericpassmore Sep 9, 2023
3e23382
partialy #218 review concerns addressed
dimas1185 Sep 11, 2023
2a2db21
base64, bls pop verify
dimas1185 Sep 13, 2023
1dc5b7d
key type switched to affine
dimas1185 Sep 14, 2023
8d6265d
use abi_serializer instead of structure definition
dimas1185 Sep 15, 2023
6f637b0
#221 concerns addressed
dimas1185 Sep 16, 2023
93f6a18
improve abi generation
dimas1185 Sep 19, 2023
d6721b2
fixing integration tests
dimas1185 Sep 19, 2023
e2303c0
Merge commit 'd2f7b3cae217774f6f46e3a99edbdbfc429bb176' into HEAD
spoonincode Sep 19, 2023
88b1dac
Merge remote-tracking branch 'origin/release/4.0' into HEAD
spoonincode Sep 19, 2023
f88520b
updated wording on LLVM
ericpassmore Sep 19, 2023
6b55a4f
spelling error
ericpassmore Sep 19, 2023
6683402
Merge pull request #227 from AntelopeIO/basic_string_fix_to_main
spoonincode Sep 19, 2023
c3af527
Merge pull request #228 from AntelopeIO/llvm_python_find_package
spoonincode Sep 19, 2023
f6ef88a
Merge remote-tracking branch 'origin/release/4.0' into macos
spoonincode Sep 20, 2023
4b6430e
Revert "added shared object option to CDTMacros"
dimas1185 Sep 21, 2023
87672ee
Revert "cdt-ld shared-object support added"
dimas1185 Sep 21, 2023
ea06f6c
Revert "support of longjmp frpm shared object"
dimas1185 Sep 21, 2023
e2d7bfb
Revert "reverting exceptions to jumps"
dimas1185 Sep 21, 2023
59bb425
Revert "native library support of shared object"
dimas1185 Sep 21, 2023
7e2efda
Revert "native library shared object support"
dimas1185 Sep 21, 2023
2c8868e
Revert "#94 concerns addressed"
dimas1185 Sep 21, 2023
eff46f2
Revert "Revert "gcc 7 build fix""
dimas1185 Sep 21, 2023
f8b6548
Revert "eos-vm submodule ssh -> https for build server"
dimas1185 Sep 21, 2023
bb32acc
Revert "gcc 7 build fix"
dimas1185 Sep 21, 2023
c09fcff
Revert "fix ubuntu 18 build"
dimas1185 Sep 21, 2023
00a8c47
Revert "fix ubuntu 18 & 20 build"
dimas1185 Sep 21, 2023
734da3f
Revert "fixing ubuntu 18 & 20 builds"
dimas1185 Sep 21, 2023
7092813
Revert "fix ubuntu 18 & 20 build"
dimas1185 Sep 21, 2023
977d188
Revert "empty antler-run with eos-vm and eosiolib linked"
dimas1185 Sep 21, 2023
181595f
#221 review concerns addressed
dimas1185 Sep 22, 2023
bf7fe2e
Merge pull request #226 from AntelopeIO/fix-ref-contracts
dimas1185 Sep 22, 2023
f897dc7
Merge pull request #207 from AntelopeIO/ehp/gh-205-future-dir
ericpassmore Sep 25, 2023
46b336c
Merge pull request #229 from AntelopeIO/macos
spoonincode Sep 25, 2023
89bb917
Merge remote-tracking branch 'origin/release/4.0' into HEAD
spoonincode Sep 26, 2023
dae43fd
Merge pull request #235 from AntelopeIO/remove_callable_v_workaround
spoonincode Sep 26, 2023
3dcdca1
Merge branch 'main' into remove-antler-run
dimas1185 Sep 27, 2023
359f483
Merge pull request #231 from AntelopeIO/remove-antler-run
dimas1185 Sep 27, 2023
4d2931f
Merge branch 'main' into devint
dimas1185 Oct 13, 2023
71366de
Merge pull request #242 from AntelopeIO/devint
dimas1185 Oct 26, 2023
dd0887c
on release, upload .deb as release asset automatically
spoonincode Nov 6, 2023
21b4ab6
Merge pull request #247 from AntelopeIO/release_4x
spoonincode Nov 7, 2023
df382e4
Merge remote-tracking branch 'origin/release/4.0' into HEAD
spoonincode Nov 7, 2023
e537352
Merge pull request #248 from AntelopeIO/releaseyaml
spoonincode Nov 7, 2023
481d28a
GH-251 Add new BLS host function support and switch to affine little-…
heifner Dec 1, 2023
260c2a2
GH-251 Add comments on how values created
heifner Dec 1, 2023
677e739
GH-251 Add comment on how public key and signature strings were created
heifner Dec 1, 2023
c076567
GH-251 Use size() instead of sizeof
heifner Dec 1, 2023
6beeb6c
GH-251 Simplify GT_ONE declaration
heifner Dec 1, 2023
34c7f69
GH-251 Correctly handle num==0
heifner Dec 1, 2023
122ff08
Merge pull request #252 from AntelopeIO/GH-251-bls-host-functions
heifner Dec 2, 2023
b124284
Merge remote-tracking branch 'origin/hotstuff_integration' into bls_p…
heifner Dec 4, 2023
8cdc0f4
GH-215 Use affine non-montgomery form for proof of possesion
heifner Dec 5, 2023
3588c2c
GH-215 Add a bls_signature_verify method
heifner Dec 5, 2023
6e8e98a
GH-215 fix check message
heifner Dec 5, 2023
5bdd337
GH-215 Add test for bls_signature_verify
heifner Dec 5, 2023
c90795e
Merge pull request #221 from AntelopeIO/bls_public_key_serialization
heifner Dec 6, 2023
f9331b1
GH-253 Return -1 on n==0 for bls_g1_weighted_sum, bls_g2_weighted_sum…
heifner Dec 6, 2023
1c151b5
Merge pull request #254 from AntelopeIO/GH-253-bls-n0
heifner Dec 6, 2023
5641111
Merge branch 'hotstuff_integration' into set_finalizers_hf
linh2931 Dec 7, 2023
290e806
fix a compile error due to type alias bls_g1_affine changed to bls_g1
linh2931 Dec 7, 2023
5e504d3
Fix set_finalizers_tests
linh2931 Dec 7, 2023
cb73eae
Update set_finalizers_tests
linh2931 Dec 7, 2023
30786fa
rename finalizer_set.hpp -> finalizer_policy.hpp
linh2931 Dec 7, 2023
8ab3b6b
update set_finalizers_tests.cpp to include finalizer_policy.hpp
linh2931 Dec 8, 2023
f43d6ef
change abi_finalizer_set to abi_finalizer_policy
linh2931 Dec 8, 2023
c82af4e
update tests to use finalizer_policy
linh2931 Dec 8, 2023
a532a6d
rename files and tests from set_finalizers to instant_finality
linh2931 Dec 9, 2023
7eeaba0
change finalazer_set to finalazer_policy in ia couple of comments
linh2931 Dec 10, 2023
4c47d24
Merge pull request #218 from AntelopeIO/set_finalizers_hf
linh2931 Dec 11, 2023
98e09b9
Merge branch 'main' into hotstuff_integration
heifner Dec 11, 2023
a2e3f3f
UPDATE Link to latest patch of CDT (4.0.1)
dougbutner Dec 13, 2023
d572004
GH-257 Rename set_finalizers types to match eosio.bios and leap names
heifner Dec 19, 2023
da082d4
GH-257 Use public_key instead of public_key_g1. Update tests.
heifner Dec 19, 2023
e87d621
GH-257 Update with valid public key
heifner Dec 19, 2023
b1eacc8
Merge pull request #259 from AntelopeIO/GH-257-set-finalizers-types-r…
heifner Dec 20, 2023
589faab
Reverts operations to multi-index that created alias for existing ope…
ericpassmore Dec 21, 2023
5634784
Revert "Update tests to cover both const and non-const version of rem…
ericpassmore Dec 21, 2023
47e1b51
Revert "Get rid of const obj for new modify() method."
ericpassmore Dec 21, 2023
d31c73a
Revert "Add insert, remove and update methods to multi_index (and ind…
ericpassmore Dec 21, 2023
3b07180
export wasm memory
spoonincode Jan 9, 2024
6cda379
Merge pull request #256 from dougbutner/main
spoonincode Jan 9, 2024
b9e8265
Merge pull request #265 from AntelopeIO/export_wasm_memory
spoonincode Jan 12, 2024
6906563
Merge pull request #262 from AntelopeIO/ehp/gh-260-revert-db-index-op…
ericpassmore Jan 17, 2024
fd49c7b
updated build&test to use ubuntu22 leap
ericpassmore Feb 15, 2024
b8b9318
specify os version in leap dev download file
ericpassmore Feb 17, 2024
0d42f9b
specify os version in leap dev download file
ericpassmore Feb 17, 2024
26289ff
Merge pull request #270 from AntelopeIO/ehp/gh-269-use-ubuntu22-leap-dev
ericpassmore Feb 20, 2024
b067f1c
do not append trailing = to base64url encoding
linh2931 Mar 10, 2024
42c0a9d
Do not allow base64 chars (+, /, and =) when decoding base64url, to m…
linh2931 Mar 11, 2024
28794f4
add tests to verify base64url_decode reject invalid chars and update …
linh2931 Mar 11, 2024
75eb06e
change BLS library to use base64 URL for encoding and decoding
linh2931 Mar 11, 2024
26414ad
Adapt BLS and instant_finality tests to base64 URL
linh2931 Mar 11, 2024
5763afd
Merge remote-tracking branch 'origin/main' into bls_base64url_support
linh2931 Mar 11, 2024
dc1019e
Merge pull request #272 from AntelopeIO/bls_base64url_support
linh2931 Mar 11, 2024
921e850
Add missing inline specifier to several methonds in crypto_bls_ext.hpp
linh2931 Apr 1, 2024
4eee901
Merge pull request #275 from AntelopeIO/add_inline_specifier
linh2931 Apr 1, 2024
4911e5f
Merge pull request #255 from AntelopeIO/hotstuff_integration
arhag Apr 30, 2024
7719029
GH-276 Use spring instead of leap for integration tests
heifner May 1, 2024
7906f2a
GH-276 Use spring instead of leap for integration tests
heifner May 1, 2024
e610d1b
Update for set_finalizers host function now takes a packed format
heifner May 2, 2024
01b3b6e
GH-276 Update comment
heifner May 2, 2024
baa3f58
Merge pull request #277 from AntelopeIO/GH-276-spring
heifner May 2, 2024
99600bb
Add comment
heifner May 2, 2024
2912af0
Merge pull request #278 from AntelopeIO/set-finalizers-format
heifner May 2, 2024
7ef58b4
version bump supporting Savanna and Spring release
ericpassmore May 2, 2024
e40b7d3
version bump next version after spring release
ericpassmore May 2, 2024
c538d94
Update c interface of set_finalizers
heifner May 2, 2024
3cd6a4a
Merge pull request #280 from AntelopeIO/update-c-set-finalizers
heifner May 2, 2024
582244a
Merge branch 'main' into ehp/spring-release-version-bump
heifner May 2, 2024
904b177
Merge pull request #279 from AntelopeIO/ehp/spring-release-version-bump
ericpassmore May 3, 2024
bdba2fa
updated artifact download links
ericpassmore May 6, 2024
a306d50
corrected version fixed dangling rc1 reference
ericpassmore May 6, 2024
a95b1d4
Update c interface of set_finalizers
heifner May 2, 2024
f5e7976
upload ubuntu20 package
spoonincode May 6, 2024
0ab129e
ubuntu24 build
spoonincode May 6, 2024
c646d38
Merge pull request #284 from AntelopeIO/downmerge_update-c-set-finali…
spoonincode May 6, 2024
13f21ef
Merge remote-tracking branch 'origin/release/4.1' into HEAD
spoonincode May 6, 2024
e976037
Merge pull request #285 from AntelopeIO/ubuntu20_pkg_41
spoonincode May 6, 2024
d803dea
Merge remote-tracking branch 'origin/release/4.1' into HEAD
spoonincode May 6, 2024
c71fc70
Merge branch 'release/4.1' into ehp/v4.1_README
ericpassmore May 6, 2024
44321e2
Merge pull request #286 from AntelopeIO/ubuntu24_41
spoonincode May 6, 2024
da7e87a
Merge remote-tracking branch 'origin/release/4.1' into HEAD
spoonincode May 6, 2024
6da162a
Merge pull request #287 from AntelopeIO/merge_update-c-set-finalizers…
spoonincode May 6, 2024
6ba64da
Merge pull request #288 from AntelopeIO/ubuntu20_pkg_main
spoonincode May 6, 2024
198b32e
Merge remote-tracking branch 'origin/release/4.1' into ehp/v4.1_README
ericpassmore May 6, 2024
9ecdca0
Merge pull request #289 from AntelopeIO/ubuntu24_main
spoonincode May 6, 2024
cceffd7
Merge pull request #282 from AntelopeIO/ehp/v4.1_README
ericpassmore May 6, 2024
698c54c
use antelope-spring-dev.deb
spoonincode Jun 14, 2024
0b2c5eb
Update instant_finality_tests to match Spring's change of instant_fin…
linh2931 Jun 14, 2024
83a594d
Merge pull request #292 from AntelopeIO/antelope-spring-dev.deb_41
spoonincode Jun 15, 2024
a50e3a4
Merge remote-tracking branch 'origin/release/4.1' into HEAD
spoonincode Jun 15, 2024
c250347
keep README's package link at 4.0.1 until 4.1.0 is released
spoonincode Jun 15, 2024
775d671
Merge pull request #293 from AntelopeIO/antelope-spring-dev.deb
spoonincode Jun 15, 2024
a88c7b8
Appropriate methods were marked as const
PocelowannyNebescami Jun 20, 2024
12df4cc
Merge pull request #294 from PocelowannyNebescami/refactor/singleton
spoonincode Jun 24, 2024
40681c7
remove security group stuff
spoonincode Jun 25, 2024
db51a8e
Merge pull request #295 from AntelopeIO/remove_security_group
spoonincode Jun 26, 2024
93ddaaa
update various CI workflow action versions
spoonincode Jul 1, 2024
65ac098
Merge pull request #296 from AntelopeIO/ci_action_version_update_41
spoonincode Jul 1, 2024
cf6988a
Merge remote-tracking branch 'origin/release/4.1' into HEAD
spoonincode Jul 1, 2024
f228975
Merge pull request #297 from AntelopeIO/ci_action_version_update
spoonincode Jul 1, 2024
bc90b71
instant_finality_extension renamed to finality_extension
heifner Jul 15, 2024
d660810
Merge pull request #298 from AntelopeIO/reanme_instant_finality_exten…
heifner Jul 15, 2024
8a164d0
instant_finality_extension renamed to finality_extension
heifner Jul 15, 2024
293ee7a
Merge pull request #299 from AntelopeIO/reanme_instant_finality_exten…
heifner Aug 16, 2024
b949569
Merge remote-tracking branch 'origin/release/4.1' into reanme_instant…
heifner Aug 16, 2024
18b09dd
Merge pull request #301 from AntelopeIO/reanme_instant_finality_exten…
heifner Aug 16, 2024
6ffc9c9
bump 4.1 branch to rc2
ericpassmore Aug 16, 2024
afdcd52
merge version bump commit and reset version
ericpassmore Aug 16, 2024
6d4f932
merged in 4.1 rc2 version bump
ericpassmore Aug 16, 2024
6b98462
Merge pull request #303 from AntelopeIO/ehp/merge-4.1-rc2-bump
ericpassmore Aug 17, 2024
b2c7d0d
Merge pull request #302 from AntelopeIO/ehp/bump-4.1-branch-to-rc2
ericpassmore Aug 17, 2024
76de7e8
Update crypto_bls_ext.hpp
systemzax Aug 22, 2024
9c5c88c
Merge pull request #308 from systemzax/release/4.1
ericpassmore Aug 22, 2024
387c2b8
disable CFL Alias Analysis by default
spoonincode Aug 21, 2024
bec0d6c
remove now removed -fno-cfl-aa from test builds
spoonincode Aug 22, 2024
29f4232
change docs for no-cfl-aa removal
spoonincode Aug 22, 2024
f2e8e92
Merge pull request #309 from AntelopeIO/disable_cffaa_default_41
spoonincode Aug 22, 2024
b1cfa30
Merge commit 'b2c7d0d' into HEAD
spoonincode Aug 22, 2024
dbdfa5f
Merge commit '9c5c88cc85ead9fcb74d970e9fea4c39bd556814' into HEAD
spoonincode Aug 22, 2024
f2f23f9
Merge commit 'f2e8e9209c502c2789fd04e9735f37ee5e369f4a' into HEAD
spoonincode Aug 22, 2024
14684af
bump cmake to v4.1.0-rc3
ericpassmore Aug 22, 2024
f1feb03
Merge pull request #310 from AntelopeIO/pr302_main_merge
spoonincode Aug 22, 2024
e7473c3
Merge pull request #311 from AntelopeIO/pr308_main_merge
spoonincode Aug 22, 2024
c19cde4
Merge pull request #312 from AntelopeIO/pr309_main_merge
spoonincode Aug 22, 2024
376cb89
merged version bump to v4.1.0-rc3 while keeping CMake for main at vnext
ericpassmore Aug 22, 2024
b4a95f9
Merge pull request #313 from AntelopeIO/release-bump-v4.1.0-rc3
ericpassmore Aug 22, 2024
e211d6a
Merge branch 'release/4.1' into merge-release-4.1.0-rc3
ericpassmore Aug 22, 2024
98f94f6
Merge pull request #314 from AntelopeIO/merge-release-4.1.0-rc3
ericpassmore Aug 22, 2024
5511791
version bump v4.1.0
ericpassmore Sep 3, 2024
7028e80
Merge pull request #315 from AntelopeIO/official-4.1.0
ericpassmore Sep 4, 2024
5acda86
merge offical 4.1 release into main
ericpassmore Sep 4, 2024
a0e7748
Merge pull request #316 from AntelopeIO/merge-official-4.1-release
ericpassmore Sep 4, 2024
cf1123f
add rsa sha256 verify signature
quocle108 Dec 23, 2024
1fc04fd
add to crypto hpp interface
quocle108 Dec 23, 2024
6804532
add to intrisics
quocle108 Dec 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .cicd/defaults.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"antelope-spring-dev":{
"target":"main",
"prerelease":false
}
}
11 changes: 0 additions & 11 deletions .cicd/platforms.json

This file was deleted.

31 changes: 0 additions & 31 deletions .cicd/platforms/ubuntu18.Dockerfile

This file was deleted.

23 changes: 23 additions & 0 deletions .cicd/platforms/ubuntu22-llvm.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu:jammy

RUN apt-get update && apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential \
cmake \
wget \
git \
ninja-build \
python3 \
pkg-config \
libboost-all-dev \
libcurl4-gnutls-dev \
lsb-release \
software-properties-common \
gnupg \
clang-tidy

RUN wget https://apt.llvm.org/llvm.sh
RUN chmod +x llvm.sh
RUN ./llvm.sh 16

ENV CC=clang-16
ENV CXX=clang++-16
12 changes: 12 additions & 0 deletions .cicd/platforms/ubuntu24.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:noble

RUN apt-get update && apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential \
cmake \
git \
ninja-build \
python3 \
pkg-config \
libboost-all-dev \
libcurl4-gnutls-dev \
clang-tidy
119 changes: 63 additions & 56 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ on:
- "release/*"
pull_request:
workflow_dispatch:
inputs:
override-antelope-spring-dev:
description: Override antelope-spring-dev target
type: string
override-antelope-spring-dev-prerelease:
type: choice
description: Override antelope-spring-dev prelease
options:
- default
- true
- false

permissions:
packages: write
Expand All @@ -17,73 +28,69 @@ defaults:
shell: bash

jobs:
d:
name: Discover Platforms
platform-cache:
name: Platform Cache
uses: AntelopeIO/platform-cache-workflow/.github/workflows/platformcache.yaml@v1
permissions:
packages: write
contents: read
with:
runs-on: '["self-hosted", "enf-x86-beefy"]'
platform-files: .cicd/platforms

versions:
name: Determine Versions
runs-on: ubuntu-latest
outputs:
missing-platforms: ${{steps.discover.outputs.missing-platforms}}
p: ${{steps.discover.outputs.platforms}}
steps:
- name: Discover Platforms
id: discover
uses: AntelopeIO/discover-platforms-action@v1
with:
platform-file: .cicd/platforms.json
password: ${{secrets.GITHUB_TOKEN}}
package-name: builders
build-platforms:
name: Build Platforms
needs: d
if: needs.d.outputs.missing-platforms != '[]'
strategy:
fail-fast: false
matrix:
platform: ${{fromJSON(needs.d.outputs.missing-platforms)}}
runs-on: ["self-hosted", "enf-x86-beefy"]
antelope-spring-dev-target: ${{steps.versions.outputs.antelope-spring-dev-target}}
antelope-spring-dev-prerelease: ${{steps.versions.outputs.antelope-spring-dev-prerelease}}
steps:
- name: Login to Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{github.repository_owner}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
file: ${{fromJSON(needs.d.outputs.p)[matrix.platform].dockerfile}}
- name: Setup versions from input or defaults
id: versions
env:
GH_TOKEN: ${{github.token}}
run: |
DEFAULTS_JSON=$(curl -sSfL $(gh api https://api.github.com/repos/${{github.repository}}/contents/.cicd/defaults.json?ref=${{github.sha}} --jq .download_url))
echo antelope-spring-dev-target=$(echo "$DEFAULTS_JSON" | jq -r '."antelope-spring-dev".target') >> $GITHUB_OUTPUT
echo antelope-spring-dev-prerelease=$(echo "$DEFAULTS_JSON" | jq -r '."antelope-spring-dev".prerelease') >> $GITHUB_OUTPUT

if [[ "${{inputs.override-antelope-spring-dev}}" != "" ]]; then
echo antelope-spring-dev-target=${{inputs.override-antelope-spring-dev}} >> $GITHUB_OUTPUT
fi
if [[ "${{inputs.override-antelope-spring-dev-prerelease}}" == +(true|false) ]]; then
echo antelope-spring-dev-prerelease=${{inputs.override-antelope-spring-dev-prerelease}} >> $GITHUB_OUTPUT
fi

Build:
name: Build & Test
needs: [d, build-platforms]
if: always() && needs.d.result == 'success' && (needs.build-platforms.result == 'success' || needs.build-platforms.result == 'skipped')
needs: [platform-cache, versions]
strategy:
fail-fast: false
matrix:
platform: [ubuntu18, ubuntu20, ubuntu22]
platform: [ubuntu20, ubuntu22, ubuntu22-llvm, ubuntu24]
runs-on: ["self-hosted", "enf-x86-beefy"]
container: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
container: ${{fromJSON(needs.platform-cache.outputs.platforms)[matrix.platform].image}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Download leap-dev.deb (Ubuntu 20 only)
if: matrix.platform == 'ubuntu20'
uses: AntelopeIO/asset-artifact-download-action@v2
- name: Download antelope-spring-dev.deb (Ubuntu 22 only)
if: matrix.platform == 'ubuntu22'
uses: AntelopeIO/asset-artifact-download-action@v3
with:
owner: AntelopeIO
repo: leap
file: 'leap-dev.*(x86_64|amd64).deb'
target: 4.0
artifact-name: leap-dev-ubuntu20-amd64
container-package: experimental-binaries
token: ${{github.token}}
- name: Install leap-dev.deb (Ubuntu 20 only)
if: matrix.platform == 'ubuntu20'
repo: spring
file: 'antelope-spring-dev.*ubuntu22\.04_amd64.deb'
target: '${{needs.versions.outputs.antelope-spring-dev-target}}'
prereleases: ${{fromJSON(needs.versions.outputs.antelope-spring-dev-prerelease)}}
artifact-name: antelope-spring-dev-ubuntu22-amd64
container-package: antelope-spring-experimental-binaries
- name: Install antelope-spring-dev.deb (Ubuntu 22 only)
if: matrix.platform == 'ubuntu22'
run: |
apt-get update && apt-get upgrade -y
apt install -y ./leap-dev*.deb
rm ./leap-dev*.deb
apt install -y ./antelope-spring-dev*.deb
rm ./antelope-spring-dev*.deb
- name: Build & Test
run: |
mkdir build
Expand All @@ -92,14 +99,14 @@ jobs:
make -j $(nproc)
cd tests
ctest -j $(nproc) --output-on-failure
- name: Package (Ubuntu 18 only)
if: matrix.platform == 'ubuntu18'
- name: Package (Ubuntu 20 only)
if: matrix.platform == 'ubuntu20'
run: |
cd build/packages
bash generate_package.sh deb ubuntu amd64
- name: Upload (Ubuntu 18 only)
if: matrix.platform == 'ubuntu18'
uses: actions/upload-artifact@v3
- name: Upload (Ubuntu 20 only)
if: matrix.platform == 'ubuntu20'
uses: actions/upload-artifact@v4
with:
name: cdt_ubuntu_package_amd64
path: build/packages/cdt*amd64.deb
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Upload Release .deb

on:
release:
types: [published]

jobs:
eb:
name: Upload Release .deb
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
actions: read
steps:
- name: Get cdt.deb
id: getter
uses: AntelopeIO/asset-artifact-download-action@v3
with:
owner: ${{github.repository_owner}}
repo: ${{github.event.repository.name}}
file: cdt_.*_amd64.deb
target: ${{github.sha}}
artifact-name: cdt_ubuntu_package_amd64
wait-for-exact-target: true
- run: |
curl -LsSf \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{github.token}}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "Content-Type: application/octet-stream" \
--data-binary "@${{steps.getter.outputs.downloaded-file}}" \
"https://uploads.github.com/repos/${{github.repository}}/releases/${{github.event.release.id}}/assets?name=${{steps.getter.outputs.downloaded-file}}"
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
url = https://github.com/AntelopeIO/cdt-libcxx
[submodule "libraries/native/softfloat"]
path = libraries/native/softfloat
url = https://github.com/AntelopeIO/berkeley-softfloat-3
url = https://github.com/AntelopeIO/berkeley-softfloat-3
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ endif()
project(cdt)

set(VERSION_MAJOR 4)
set(VERSION_MINOR 0)
set(VERSION_PATCH 1)
set(VERSION_SUFFIX "")
set(VERSION_MINOR 2)
set(VERSION_PATCH 0)
set(VERSION_SUFFIX "dev")

if (VERSION_SUFFIX)
set(VERSION_FULL "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}-${VERSION_SUFFIX}")
Expand Down
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ CDT currently supports Linux x86_64 Debian packages. Visit the [release page](ht
Download the appropriate version of the Debian package and then install it. To download and install the latest version, run the following:

```sh
wget https://github.com/AntelopeIO/cdt/releases/download/v4.0.0/cdt_4.0.0_amd64.deb
sudo apt install ./cdt_4.0.0_amd64.deb
wget https://github.com/AntelopeIO/cdt/releases/download/v4.1.0/cdt_4.1.0_amd64.deb
sudo apt install ./cdt_4.1.0_amd64.deb
```
### Debian package uninstall

Expand All @@ -28,16 +28,17 @@ sudo apt remove cdt

## Building from source

Recent Ubuntu LTS releases are the only Linux distributions that we fully support. Other Linux distros and other POSIX operating systems (such as macOS) are tended to on a best-effort basis and may not be full featured.
Recent Ubuntu LTS releases are the only Linux distributions that we fully support. Other Linux distros and other POSIX operating systems (such as macOS) are tended to on a best-effort basis and may not be full featured.

The instructions below assume that you are building on Ubuntu 20.04.
The instructions below assume that you are building on Ubuntu 20.04.

### Install dependencies

```sh
apt-get update && apt-get install \
build-essential \
clang \
clang-tidy \
cmake \
git \
libxml2-dev \
Expand All @@ -53,19 +54,19 @@ python3 -m pip install pygments

### Allowing integration tests to build

Integration tests require access to a build of [Leap](https://github.com/AntelopeIO/leap), a C++ implementation of the Antelope protocol. Simply installing Leap from a binary package will not be sufficient.
Integration tests require access to a build of [Spring](https://github.com/AntelopeIO/spring), a C++ implementation of the Antelope protocol. Simply installing Spring from a binary package will not be sufficient.

If you do not wish to build Leap, you can continue with building CDT but without building the integration tests. Otherwise, follow the instructions below before running `cmake`.
If you do not wish to build Spring, you can continue with building CDT but without building the integration tests. Otherwise, follow the instructions below before running `cmake`.

First, ensure that Leap has been built from source (see Leap's [README](https://github.com/AntelopeIO/leap#building-from-source) for details) and identify the build path, e.g. `/path/to/leap/build/`.
First, ensure that Spring has been built from source (see Spring's [README](https://github.com/AntelopeIO/spring#building-from-source) for details) and identify the build path, e.g. `/path/to/spring/build/`.

Then, execute the following command in the same terminal session that you will use to build CDT:

```sh
export leap_DIR=/path/to/leap/build/lib/cmake/leap
export spring_DIR=/path/to/spring/build/lib/cmake/spring
```

Now you can continue with the steps to build CDT as described. When you run `cmake` make sure that it does not report `leap package not found`. If it does, this means CDT was not able to find a build of Leap at the specified path in `leap_DIR` and will therefore continue without building the integration tests.
Now you can continue with the steps to build CDT as described. When you run `cmake` make sure that it does not report `spring package not found`. If it does, this means CDT was not able to find a build of Spring at the specified path in `spring_DIR` and will therefore continue without building the integration tests.

### ccache

Expand Down Expand Up @@ -135,7 +136,7 @@ Installing CDT globally on your system will install the following tools in a loc
* cdt-strip
* eosio-pp
* eosio-wasm2wast
* eosio-wast2wasm
* eosio-wast2wasm

It will also install CMake files for CDT accessible within a `cmake/cdt` directory located within your system's `lib` directory.
#### Manual installation
Expand Down
2 changes: 1 addition & 1 deletion docs/03_command-reference/cdt-cc.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ compiler options:
-finline-hint-functions - Inline functions which are (explicitly or implicitly) marked inline
-fmerge-all-constants - Allow merging of constants
-fnative - Compile and link for x86-64
-fno-cfl-aa - Disable CFL Alias Analysis
-fcfl-aa - Enable CFL Alias Analysis
-fno-elide-constructors - Disable C++ copy constructor elision
-fno-lto - Disable LTO
-fno-post-pass - Don't run post processing pass
Expand Down
2 changes: 1 addition & 1 deletion docs/03_command-reference/cdt-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ compiler options:
-finline-hint-functions - Inline functions which are (explicitly or implicitly) marked inline
-fmerge-all-constants - Allow merging of constants
-fnative - Compile and link for x86-64
-fno-cfl-aa - Disable CFL Alias Analysis
-cfl-aa - Enable CFL Alias Analysis
-fno-elide-constructors - Disable C++ copy constructor elision
-fno-lto - Disable LTO
-fno-post-pass - Don't run post processing pass
Expand Down
2 changes: 1 addition & 1 deletion docs/03_command-reference/cdt-ld.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ld options:
-L=<string> - Add directory to library search path
-fasm - Assemble file for x86-64
-fnative - Compile and link for x86-64
-fno-cfl-aa - Disable CFL Alias Analysis
-fcfl-aa - Enable CFL Alias Analysis
-fno-lto - Disable LTO
-fno-post-pass - Don't run post processing pass
-fno-stack-first - Don't set the stack first in memory
Expand Down
Loading
Loading