Граф коммитов

381 Коммитов

Автор SHA1 Сообщение Дата
Eddy Ashton ce80a0c1ff
Add a minimal JS logging app for perf testing (#2585) 2021-05-12 13:47:32 +01:00
Eddy Ashton 0184c1fb92
Add `.size` and `.clear()` to JS maps (#2569) 2021-05-10 13:08:00 +01:00
Amaury Chamayou 494b294141
Appease this week's prettier (#2573) 2021-05-10 11:34:18 +01:00
Eddy Ashton b2d73d9112
Sample consistency pass (#2566) 2021-05-07 15:58:07 +01:00
Eddy Ashton 90648533ea
Modify sample historical range query endpoint to better handle subranges (#2556) 2021-05-07 11:20:23 +01:00
Amaury Chamayou 45db0a3b27
Do not lock packages in tests (#2564) 2021-05-07 09:07:24 +01:00
Julien Maffre df8d6928ea
Install `version.h` under `include/ccf` (#2562) 2021-05-06 19:47:00 +01:00
Amaury Chamayou 5d4da8e8c6
Mitigate tsoa directory creation race (#2558) 2021-05-06 16:43:34 +01:00
Eddy Ashton 8215d9f851
Add `get_quotes_for_all_trusted_nodes_v1` API (#2511) 2021-05-04 14:02:14 +01:00
Eddy Ashton 5aa666f7a1
Add C++ API to get untrusted host time (#2550) 2021-05-04 10:38:59 +01:00
Amaury Chamayou 55d4495c71
Rename debian packages containing tildes to underscores to avoid GitHub's auto-replace (#2539) 2021-04-29 15:03:27 +01:00
Eddy Ashton 5383f83a9f
Add `get_id_for_this_node_v1` (#2498) 2021-04-22 14:12:25 +01:00
Amaury Chamayou d801564c10
Document missing governance and internal tables (#2473) 2021-04-16 13:16:15 +01:00
Maik Riechert 698cd36f19
Document forwarding_required & mode in app.json (#2475) 2021-04-15 18:25:37 +01:00
Maik Riechert 7455dd869d
Forum sample rework (#2455) 2021-04-14 19:42:04 +01:00
Eddy Ashton 3c2305978e
Move more public headers under include/ccf (#2392) 2021-03-31 18:53:28 +01:00
Maik Riechert c999015bf6
JS: Rename key_issuer -> keyIssuer (#2375) 2021-03-30 19:45:41 +01:00
Eddy Ashton aa9e82279d
Consolidate View and SeqNo typedefs (#2367) 2021-03-30 13:13:12 +01:00
Maik Riechert cd3cc2db6b
npm package & updated js docs (#2331) 2021-03-29 19:34:33 +01:00
Eddy Ashton b3e7bac57c
Define more headers as public, and split endpoints into separate library (#2328) 2021-03-25 14:19:15 +00:00
Eddy Ashton 44ac55d223
/tx and /commit use a single transaction_id rather than separate view and seqno (#2347) 2021-03-25 10:06:37 +00:00
Eddy Ashton 730b7c1cc2
Extend testing of custom auth policies (#2348) 2021-03-24 10:50:43 +00:00
Maik Riechert 429a88eed7
forum sample: adapt to tsoa type changes (#2337) 2021-03-22 10:57:42 +00:00
Maik Riechert 398c0e21f7
PascalCase JS names & JS doc for HistoricalState (#2325) 2021-03-19 10:36:23 +00:00
Julien Maffre 9ec30330ec
Change serialisation format for service maps (#2301) 2021-03-18 11:25:55 +00:00
Eddy Ashton 9292b824d1
Remove auto-JSONification of query params, allowing them to be unquoted (#2309) 2021-03-16 15:34:19 +00:00
Maik Riechert beb4e43fa0
Auto-generated JS API docs & TS cleanup (#2313) 2021-03-15 17:18:18 +00:00
Maik Riechert 2efb4d5c27
Historical JS endpoints (#2285) 2021-03-15 15:59:21 +00:00
Christoph M. Wintersteiger b3fd0656d7
Add JS endpoint for RSA key generation (#2293)
Co-authored-by: Amaury Chamayou <amaury@xargs.fr>
Co-authored-by: Maik Riechert <maik.riechert@arcor.de>
2021-03-11 16:03:26 +00:00
Eddy Ashton 8996d5d15c
Add API for getting View from SeqNo (#2283) 2021-03-10 19:21:20 +00:00
Amaury Chamayou 06d462b24c
Historical receipts (#2270) 2021-03-09 15:44:13 +00:00
Christoph M. Wintersteiger cb3d0a3fea
More key wrapping (#2246)
Adds more key wrapping methods to the crypto library and the JS app.
2021-03-01 17:07:29 +00:00
Eddy Ashton 4fd9f5f309
Historic queries: Range queries and app-dictated handles (#2233) 2021-03-01 16:19:14 +00:00
Christoph M. Wintersteiger 39ae6008dd
Move crypto code into src/crypto (#2214) 2021-02-21 17:38:57 +00:00
Julien Maffre 3c95d76f7f
Rename internal tables (#2166) 2021-02-08 13:06:59 +00:00
Julien Maffre 4fad6df042
Update quote format and record endorsements in KV (#2161) 2021-02-04 18:46:03 +00:00
Eddy Ashton 6e5dff444a
Replace TxView with MapHandle (#2109) 2021-01-27 15:06:58 +00:00
Maik Riechert 254d51093c
Add JWT perf tests (#2118) 2021-01-26 23:41:59 +00:00
Eddy Ashton ecbe8d8d05
List authn policies in JS (#2094) 2021-01-21 13:13:50 +00:00
Eddy Ashton f16759f116
Expose versioned C++ API for re-exposing endpoints (#2063) 2021-01-18 12:06:58 +00:00
Alex cba9b44944
AFT: Commands should not run within the consensus (#2062) 2021-01-12 14:21:07 +00:00
Eddy Ashton fb341191b6
Remove /metrics as a common endpoint, and misc cleanup (#2057) 2021-01-08 21:03:50 +00:00
Eddy Ashton 429258d7ef
Add example of custom auth policy, and documentation of new auth types (#2050) 2021-01-07 12:40:13 +00:00
Eddy Ashton 5e98cb86a7
Set auth policies at construction (#2048) 2021-01-05 21:18:44 +00:00
Maik Riechert 12f2a30d8f
fix test issue (#2045) 2021-01-05 15:21:22 +00:00
Eddy Ashton 8d050636d6
Support multiple auth policies, decouple auth from frontends (#2010) 2020-12-17 16:37:34 +00:00
Maik Riechert b6efc9312e
Unified error responses (#1980) 2020-12-10 17:28:58 +00:00
Maik Riechert ddb75355d4
bunp nodejs to 14 to fix ts-node issues (#1999) 2020-12-09 16:27:40 +00:00
Eddy Ashton 6b323353a8
Add safe wrappers to automatically free mbedtls types (#1974) 2020-12-03 16:40:27 +00:00
Amaury Chamayou a75945fd84
Add cmake for logging sample using a release (#1947) 2020-12-03 14:30:32 +00:00
Maik Riechert 313b208fac
Add csv import/export to forum sample & remove old tsoa sample/test (#1963) 2020-12-03 09:18:29 +00:00
Amaury Chamayou 891a8e9810
Do not use global hook to open service (#1928) 2020-12-01 18:36:39 +00:00
Eddy Ashton bf6aa1c974
Remove stub_for_code_signing.cpp (#1965) 2020-12-01 11:44:16 +00:00
Julien Maffre bb6e72df1e
Move perf client out of samples directory (#1946) 2020-11-30 09:47:37 +00:00
Julien Maffre 216d15e8bc
Install logging JS app (#1932) 2020-11-27 08:53:09 +00:00
Amaury Chamayou 1683fa1a3d
Remove sample key from repo (#1921) 2020-11-25 10:55:12 +00:00
Eddy Ashton 86c270dfd5
Resolve missing Promise resolve type (#1907) 2020-11-20 13:34:52 +00:00
Alex a5a8eeeb7c
Minor cleanup (#1880) 2020-11-13 11:46:12 +00:00
Maik Riechert 5db994398d
JWT validation in forum sample (#1867) 2020-11-11 17:57:55 +00:00
Amaury Chamayou 82e4d007fd
Make what we can prettier (#1862) 2020-11-10 10:57:56 +00:00
Eddy Ashton efc3527b57
Expose KV foreach to JS (#1857) 2020-11-06 15:58:13 +00:00
Eddy Ashton f8bcc23add
Always create maps dynamically (#1847) 2020-11-03 15:49:59 +00:00
Amaury Chamayou 9bba96fb17
Run forum tests in CI (#1826) 2020-10-28 18:46:35 +00:00
Maik Riechert c81b7d4277
handle auth errors in error handler (#1827) 2020-10-27 17:09:23 +00:00
Maik Riechert 03028afe48
Better error handling in forum sample (#1823) 2020-10-27 15:33:05 +00:00
Maik Riechert a583161f97
@Security decorator support for forum sample / tsoa apps (#1824) 2020-10-27 11:04:41 +00:00
Maik Riechert 5305e01991
JS: Use different ES target version for node.js in forum sample tests (#1822) 2020-10-26 17:45:10 +00:00
Amaury Chamayou fa251bbfc3
Demo tweaks (#1819) 2020-10-26 16:40:18 +00:00
Maik Riechert 4c4b894bf7
Align js kvmap API to standard Map (#1807) 2020-10-22 23:16:12 +01:00
Maik Riechert 60df2554de
Forum sample: switch to URL templates & add more tests (#1794) 2020-10-22 22:11:10 +01:00
Maik Riechert 041581897e
Add Microsoft login to Forum sample (#1793) 2020-10-22 21:23:46 +01:00
Amaury Chamayou 891f8335ed
Explicit node flags (#1803) 2020-10-22 14:54:43 +01:00
Maik Riechert 783c203345
Forum sample (#1787) 2020-10-22 09:20:46 +01:00
Alex 5e1d9c6ee5
Issue signatures from history (#1732) 2020-10-14 15:27:09 +01:00
Alex f6b7bf6f43
Smallbank bft (#1741) 2020-10-12 17:09:37 +01:00
Amaury Chamayou 3386550a1b
More codeQL fixes (#1707)
* 274: redundant condition

* 9: thread-unsafe code

* 493 497 498 fixes

Co-authored-by: Alex <shamis@gmail.com>
2020-10-06 07:00:00 +01:00
Amaury Chamayou 2c258fcb6f
Remove tx regulator demo (#1708) 2020-10-05 23:05:02 +01:00
Amaury Chamayou cb2b955e95
Remove valijson (#1698) 2020-10-02 18:57:43 +01:00
Eddy Ashton 0cd5c4c5b1
Document dynamic table creation, and use dynamic-friendly Txs everywhere (#1674) 2020-09-30 16:33:48 +01:00
Maik Riechert 3757b5d147
Expose response body in Python client similar to request body in JS endpoints (#1621) 2020-09-20 17:47:44 +01:00
Amaury Chamayou 8e8301edac
Remove sig fwd test (#1598) 2020-09-10 15:49:52 +01:00
Eddy Ashton f5cb286b64
Remove flatbuffers (#1593) 2020-09-09 15:31:17 +01:00
Alex 6aba788a98
Renaming consensus types (#1591) 2020-09-09 10:59:57 +01:00
Alex c02338d522
AFT: Forward requests correctly (#1579) 2020-09-07 12:20:26 +01:00
Alex bc11ec1c46
Store less data when re-executing requests (#1566) 2020-09-04 16:39:02 +01:00
Julien Maffre f798d8b902
Python clients cleanup and docs (#1429) 2020-07-27 17:34:16 +01:00
Julien Maffre 61097092ce
Compile warnings enforcing and fixes (#1416) 2020-07-21 16:08:25 +01:00
Amaury Chamayou 2b6e358e62
Remove jsonrpc leftovers (#1388) 2020-07-20 14:07:33 +01:00
Eddy Ashton a9c13e45c1
Use generated votes (#1413) 2020-07-17 14:13:53 +01:00
Eddy Ashton 0424c127fd
Remove mkSign (#1398) 2020-07-13 12:43:04 +01:00
Julien Maffre b53a4445ce
Start packaging Python infra (#1380) 2020-07-07 15:46:44 +01:00
Amaury Chamayou d10701a801
Client prefix drop (#1367) 2020-07-03 13:52:56 +01:00
Eddy Ashton cf7e544529
Add generator for membership proposals (#1370) 2020-07-03 11:16:22 +01:00
Amaury Chamayou 9de3a1f2bd
Explicit websocket handlers (#1333) 2020-06-25 11:12:56 +01:00
Eddy Ashton ef692f912d
Rename URI prefixes (#1325) 2020-06-23 11:42:13 +01:00
Eddy Ashton 7f13107402
Update endpoint installation API (#1310) 2020-06-22 11:01:12 +01:00
Eddy Ashton eb21022625
Rename standard RPCs to look more RESTful. (#1290) 2020-06-15 16:24:45 +01:00
Amaury Chamayou d4ebc3aef3
Do not use seqnos from NoKV transactions in performance tests (#1286) 2020-06-15 13:13:19 +01:00
Eddy Ashton 605cf504ed
Add a system for retrieving, verifying, and caching historical state in each node (#1267) 2020-06-11 09:59:30 +01:00
Amaury Chamayou cf5862317d
Finish the view.seqno renaming (#1227) 2020-05-30 18:15:57 +01:00
Amaury Chamayou ba4ef14df2
Websockets perf tests (#1211) 2020-05-22 17:48:34 +01:00
Amaury Chamayou e432c813cf
View seqno rename (#1206) 2020-05-22 14:56:21 +01:00
Eddy Ashton 7b8937e298
Remove S and D templates from kv types (#1191) 2020-05-19 10:40:32 +01:00
Eddy Ashton 176536001d
Split kv.h (#1179) 2020-05-15 17:48:03 +01:00
Amaury Chamayou 942786003c
Update fmtlib (#1148) 2020-05-06 14:03:17 +01:00
Eddy Ashton 95e7ea30e8
Add getTxStatus RPC (#1111) 2020-05-01 13:55:20 +01:00
olgavrou 7653f4919b
enable more tests with pbft (#1118) 2020-04-29 18:19:51 +01:00
Eddy Ashton 4afabd4cca
Fix how evercrypt hashing is called (#1098) 2020-04-24 11:26:47 +01:00
Julien Maffre 73ba10cf0d
Shares table is now of constant size (#1088) 2020-04-22 12:26:04 +01:00
Eddy Ashton f36114439e
Run release enclaves without OE DEBUG flag (#1083) 2020-04-22 11:51:40 +01:00
Lyndon Shi d6aefca050
Add transaction rate setting to perfclient (#1071) 2020-04-17 10:01:42 +01:00
olgavrou be1224750f
SmallBank with Flatbuffers (#1055) 2020-04-14 15:00:47 +01:00
Amaury Chamayou 5b8c99e3d2
Install scenario_perfclient (#1058) 2020-04-09 15:53:31 +01:00
Alex 84ff0d3381
fix no_wait in perf_client (#1056) 2020-04-09 11:13:37 +01:00
Julien Maffre 15b612e3d3
Forwarding performance test with multiple clients (#1043) 2020-04-08 13:42:11 +01:00
Eddy Ashton 716ae897cc
Perf test session consistency - wait for global commit (#1039) 2020-04-07 10:32:40 +01:00
Julien Maffre 8405fbaa2d
Key shares and consortium update (#1032) 2020-04-06 16:51:57 +01:00
Eddy Ashton bfb341bb2f
Rename files for consistency (#989) 2020-03-25 16:02:04 +00:00
Eddy Ashton bd8619f2f6
Improve install with exported options (#986) 2020-03-25 14:50:30 +00:00
Eddy Ashton 4d480f4a9a
Some RPCs are GET-only (#966) 2020-03-23 10:53:05 +00:00
Julien Maffre 07e736ec3b
Fast curve for users for performance tests with signatures (#965) 2020-03-19 16:33:34 +00:00
olgavrou 41398896dc
Enable more pbft tests (#954) 2020-03-17 14:50:19 +00:00
Eddy Ashton 79388b9dc2
Construct perf TESTS_SUFFIX in cmake (#931) 2020-03-09 10:29:00 +00:00
Eddy Ashton 5eaf260f8e
Structured RPC responses (#930) 2020-03-06 16:52:16 +00:00
olgavrou c8fe792f34
One consensus build (#922) 2020-03-06 11:52:17 +00:00
Eddy Ashton 7f982dabbf
RPC handlers can directly set HTTP response fields (#921) 2020-03-06 09:42:55 +00:00
Eddy Ashton 0066cffdf4
get_rpc_handler should return UserRpcFrontend (#908) 2020-03-02 16:14:19 +00:00
Eddy Ashton a4f8437c4d
Support non-JSON-RPC payloads (#852) 2020-02-25 14:35:53 +00:00
Amaury Chamayou b908a0283e
Remove stream logic (#869) 2020-02-19 17:08:06 +00:00
Alex 1b7ada169c
Move PBFT execution out of replica.cpp (#849) 2020-02-17 16:24:59 +00:00
Alex 192f4cd041
Remove more TODOs (#812) 2020-02-07 11:32:15 +00:00
Eddy Ashton 7f7657fe95
Use explicit binary directory in Python (#809) 2020-02-06 15:27:18 +00:00
Eddy Ashton e82685393e
Enable HTTP by default (#746) 2020-01-30 12:27:45 +00:00
Eddy Ashton fba15ed4cb
Install all headers and export CCF targets (#742) 2020-01-29 15:09:28 +00:00
Amaury Chamayou 9f65d22fb6
Add cmake-format check (#736) 2020-01-28 18:09:42 +00:00
Eddy Ashton ae327aa09a
Add common enclave lib for building CCF apps against (#715) 2020-01-28 14:06:12 +00:00
Eddy Ashton 905206e06c
CMake changes - use openenclave targets and initial install structure (#708) 2020-01-21 15:14:27 +00:00
Eddy Ashton 0de60cd435
Remove some code assumptions of JSON-RPC response format (#701) 2020-01-20 18:27:11 +00:00
Amaury Chamayou a2e7a89672
Rename some metrics (#677) 2020-01-08 09:02:41 +00:00
Alex fb796abc4b
Add small bank 500k tx json file (#672) 2020-01-06 21:58:12 +00:00
Amaury Chamayou 573374590c
HTTP Performance tests in CI (#652) 2019-12-18 14:48:18 +00:00
olgavrou adcc90c0dc
Storing pbft requests (#630) 2019-12-16 15:10:36 +00:00
Amaury Chamayou cbd8ad9bb3
Add scan-build script (#647) 2019-12-13 16:47:37 +00:00
Eddy Ashton 5624c7d68a
HTTP C++ client (#622) 2019-12-10 14:42:01 +00:00
Eddy Ashton 3ac1a2b198
Add generic JSON-scenario perf client (#618) 2019-12-09 17:13:27 +00:00
Alex e97c0415eb
Fix how we create and delete certificates in the log (#616)
Fix how we create and delete certificats in the log. This enables us to properly run more than 256 pre_prepare batches
2019-12-09 13:39:56 +00:00
Eddy Ashton e2b919ef5b
Disable PBFT cimetrics (#607) 2019-12-03 11:13:24 +00:00
Julien Maffre 652a08e285
Remove keygenerator C++ utility (#605) 2019-12-03 10:14:51 +00:00
Julien Maffre 065c2e485b
HTTP signed requests (client side) (#594) 2019-11-28 11:41:46 +00:00
Eddy Ashton 14167d3976
Support app-defined ACLs via user-data table and whoAmI RPC (#590)
* Add whoAmI and whoIs RPCs

* Name cert files [user|member]0-2, not 1-3

* Remove manual offsetting from txregulatorclient

* Separate local name from CCF-retrieved ID

* Remove manual offset from demo script too

* Auto stringify

* Add user_data field in UserInfo, settable by members

* USERS table should be whitelisted

* Trying to log most types from lua is an error

* Add privilege model to txregulator app - WIP

* Semantic indentation

* Format

* Add permissions for demo script

* who_is should return a WhoIs::Out

* Schema for new RPCs

* Fix IDs in memberclient

* Address PR comments

* Document adding users + user-data

* Move new info to existing Adding Users section
2019-11-26 17:16:08 +00:00
Alex 988c843b1b
Increase the number of heap pages in small bank (#593) 2019-11-26 13:46:11 +00:00
Alex fc1d4fbc44
PBFT view changes (#580)
Add initial integration for supporting view changes with CCF & ePBFT.
Run the election test when running CCF with ePBFT
2019-11-25 16:52:04 +00:00
Julien Maffre 05d3a89b1e
Node certificate endorsement and TLS authentication changes (#581) 2019-11-25 12:11:07 +00:00
Eddy Ashton 91c729576f
Decode msgpack and json consistently (#566)
* Use msgpack's decoder

* raw quote is a byte-array, not string

* Schema changed

* Remove manual re-encode
2019-11-18 17:04:31 +00:00
Julien Maffre 4c15a97961
Split ccf.py (#538) 2019-11-08 10:12:21 +00:00
Julien Maffre 2d2e004dbd
First version of end-to-end tests chaining (#533) 2019-11-08 09:33:47 +00:00
Alex de6e09bb17
ePBFT - smallbank and other things (#532)
- Get smallbank to work with the pbft backend
- Create a python pbft flag and then use that to make network.start_and_join work for both raft and pbft
- Bug fix where we do not return the KV version properly
- Change to use the standard allocator for pbft message allocations
2019-11-07 11:55:23 +00:00
Eddy Ashton 3ad89cf9ee Add docs outlining our performance test, tx time plotting script (#461) 2019-10-23 15:04:55 +01:00
Julien Maffre a8d5351d6a
Small bank balance as a Read handler (#421) 2019-10-09 10:59:04 +01:00
Amaury Chamayou e0a031c0c0
Merge node and mgmt frontends (#402) 2019-10-01 16:17:14 +01:00
Julien Maffre 86b5cc6ca1
Updates docs after light genesis update (#333) 2019-08-29 10:33:29 +01:00
olgavrou 72c5d4aa4f
Consensus naming (#306) 2019-08-15 17:52:43 +01:00
Julien Maffre 612303c786
Remove CircleCI and rename vsts to azure-pipelines (#301) 2019-08-12 11:10:05 +01:00
olgavrou 3843ff0ccf
Lua demo app (#287) 2019-08-08 15:21:55 +01:00
Julien Maffre 5c3d857452
Raft host/port rename (#279) 2019-08-06 12:38:19 -04:00
Eddy Ashton 3562c05470
Expose recoverable signatures, tidy keypair (#276)
* mbedtls writes with null byte, don't add another

* Don't return const context, its unusable

* Add some temporary hacky accessors

* Set secp256k1 illegal callback

* Pem holds a string

* Distinguish string pems from other data

* Recoverable signatures in keypair.h

* Catch awkward failure states

* Renames

* clang-format

* Wrap secp256k1_context so it is destroyed on error

* KeyPair inherits from PublicKey

* Feedback, name and document signature size
2019-07-31 12:35:08 +01:00
Eddy Ashton c5de34f9ad Separate standard from CCF error codes, allow app extensions (#267) 2019-07-21 16:15:28 +01:00
Eddy Ashton 0f3fa033d2
Support multiple crypto curves (#243)
* Sketch CurveImpl enum, replace macro definitions with templates

* Replace use of MD_TYPE and HASH macros with templates

* Replace HASH macro

* WIP

* Remove remaining compile-disabled code from keypair.h

* Expose CurveImpl, correct 256k1_bitcoin params

* Test all supported curves

* Add test that wrong curve fails to validate

* verify(vector, vector) should delegate, not reimplement

* Corrupt more, to ensure we affect content not padding

* Rename CURVE_CHOICE options to be LEDGER_CURVE_CHOICE

* LEDGER_CURVE_CHOICE determines default_curve_choice

* Proof-of-concept - factories for virtual implementation

* Virtualise PublicKey

* Re-enable other tests

* Remove templated CurveParameters

* Add labels, test for wrong curve, wrong impl

* Correct comment

* Delegate sign(CBuffer), reducing code duplication

* Remove TODO enum

* tls_bench compares curves for signing

* Extract make_contents

* tls_bench does comparison of all supported curves

* Tidy

* Temporary verbose logging of ecp group ID

* Produce standard (non-recoverable) signatures by default, for compatibility

* Fix curve logging, add tests of key transfer across implementations

* Verify with non-recoverable sigs too

* Log inconsistent failing cases

* Correct implementation substitutability test

* Normalize secp256k1 signatures - they may  have come from mbedtls

* Re-order picobench results for readability

* Add some secp256k1 link dependencies

* Unprotect constructors - there are legitimate uses for direct construction

* Verifier curve type is parsed from cert

* history_bench builds

* Reminder TODO comment

* frontend_test builds and passes

* Clients compile

* genesisgenerator compiles

* membervoting_test builds

* Fix sign_hash, sign/verify ack data normally

* Remove unneeded CurveParams entirely

Detect PublicKey type

Simplify construction to minimum

* Correct test with new API

* verify_hash via publickey, test sign_hash and verify_hash

* Include tests

* Update to latest signature

* Ditto

* Update function signatures for people with raw data

* Fix history calls

* When constructing from explicit key, don't pass curve too

* API updates

* Fix nodestate

* inline

* EVERYTHING BUILDS

* Tidy cmake link args

* Remove unnecessary direct use of mbedtls_ecdsa_*

* Remove uint8_t restriction in sig_size

* tls_bench actually compares relevant hash operations

* bitcoin preference doesn't need to be a macro

* Standardise use of use_bitcoin_impl

* clang-format

* Test now uses distinct manual hash operation

CHECK rather than REQUIRE

* Rename LEDGER_curve to SERVICE_IDENTITY_curve

* use fmtlib

* Let mbedtls determine message digest size/function

* Add details to all thrown errors

* Remove parameter packs, document use_bitcoin_impl

* Name magic constant, extract parse_secp256k_bc
2019-07-12 11:12:05 +01:00
Amaury Chamayou e3b1f0140e Remove warmup cooldown (#246) 2019-07-12 10:32:20 +01:00
Eddy Ashton 395e1b05cc
Remove jsonrpc::success() (#164)
* No success without an argument

* Make it clear that JoinNetwork gets an async response

* return json::success(true);

* Expect truth

* luA luI

* Make logging.lua consistent with logging.cpp

* KO OK
2019-06-17 09:30:56 +01:00
Eddy Ashton 3ca4304db1
Choose iterations of signed small bank perf tests depending on curve (#160)
* Separate lines

* Separate files for 2k and 50k signed smallbank transctions

* Choose iterations by curve
2019-06-14 13:10:57 +01:00
Julien Maffre 6be013c0e5
Increase tx count for performance test with signature (#155) 2019-06-13 10:33:34 +01:00
Julien Maffre 85f20eeb91 Support forwarding performance tests (#150)
* Remove unused coverage CI step

* Add new e2e forwarding performance test

* Remove verification file

* Re-enable storage of tx-times and metrics data + copy all clients csv
files back

* Disable signatures for forwarding test for now

* Actually push performance data

* Only push client* csv files

* Re-enable compress time and metrics

* Indentation of CI yml file

* Some more fixups

* Added fast-start for clients and fixups

* Cleanup

* Change comment

* Remove fast-start option as join protocol is now synchronous
2019-06-12 17:59:18 +01:00
Julien Maffre da51ea350e
Failing performance test fix (#126) 2019-06-06 16:02:39 +01:00
Amaury Chamayou b84f28c601
Clean up CI (#102) 2019-05-31 12:58:03 +01:00
Amaury Chamayou e2670448fb Revert "Split off performance build and use secp256k1 for client sigs benchmark"
This reverts commit bbd0c7faf1.
2019-05-30 14:05:44 +01:00
Amaury Chamayou bbd0c7faf1 Split off performance build and use secp256k1 for client sigs benchmark 2019-05-29 15:28:12 +01:00
olgavrou 3d0eb8fc36
Metrics (#79) 2019-05-21 09:27:22 +01:00
Eddy Ashton 9692fe4f8a
Fix smallbank sigs (#14)
* Don't mask exceptional failures

* Print account balances in verify-pastable format

* Update small_bank_short verification target
2019-05-02 12:24:24 +01:00
Amaury Chamayou 608b036037 Add copyright headers, remove hardcoded subscription 2019-04-30 11:05:13 +01:00
Amaury Chamayou 7cd7bde6e9 Add smallbank performance sample to CCF repo 2019-04-30 10:14:06 +01:00