Kimani
1d4c50f804
feat(notary): support reading config values from CLI and env var ( #605 )
...
* feat: supports reading config values from CLI
* chore: adds config lib to cargo.toml, uses server default config values instead, removes validations in settings.rs
* chore: tries to load YAML file
* chore: tries to load YAML file
* fix: loads config.yaml properly, refactors code
* fix: removes .idea folder and moves config lib to notary-server cargo.toml
* feat: uses serde-aux to deserialize env vars port and tls-enabled from string and restores &cli_fields.config_file path and debug log
* fix: parses int and bool using try-parsing instead of serde-aux and removes unnecessary whitespaces
* chore: converts config to snake_case for consistency
* doc: adds configuration documentation, code comments and fixes linting errors
* fix: fixes ci linting formatting
* fix: fixes ci linting formatting
* fix: adjusts formatting for settings.rs and minor adjustments to documentation
* fix: uses cargo nightly to format correctly
---------
Co-authored-by: yuroitaki <25913766+yuroitaki@users.noreply.github.com >
2024-10-11 11:56:37 +08:00
Hendrik Eeckhaut
61ff3a8255
ci: Try codecov.io
2024-10-08 09:59:09 +02:00
Hendrik Eeckhaut
2ac9de1edd
ci: generate coverage report
2024-10-08 09:59:09 +02:00
Artem
a7a8a83410
fix(notary): fix client issue of not being able to specify the notary url path ( #614 )
...
* (fix: client) Fixed client issue of being able to implement the path for the url
* (feat: client) Improved the code to adjust for feedback received as well as extend the path calculation to avoid adding a `/` when already starts with a `/`
* (fix: client) Fixed client issue of being able to implement the path for the url
* (feat: client) Improved the code to adjust for feedback received as well as extend the path calculation to avoid adding a `/` when already starts with a `/`
* Update crates/notary/client/src/client.rs
Co-authored-by: yuroitaki <25913766+yuroitaki@users.noreply.github.com >
* (fix: client) Renamed `path` to `path_prefix`
* (fix: client) Remove condition on the URL
* (chore: client) Fix formating
---------
Co-authored-by: yuroitaki <25913766+yuroitaki@users.noreply.github.com >
2024-10-04 14:24:48 +08:00
yuroitaki
4d5102b6e1
chore: core-rewrite unit tests ( #608 )
...
* Add tests for signing, index.
* Add error scenarios.
* Add cert tests, modify previous tests.
* Improve cert tests.
* Add tests for request.
* Fix clippy
* Fix clippy.
* Change requests test style.
* Add attestation unit tests.
* Formatting.
* Clippy.
* make data fixtures optional
---------
Co-authored-by: yuroitaki <>
Co-authored-by: sinu <65924192+sinui0@users.noreply.github.com >
v0.1.0-alpha.7
2024-10-03 07:47:15 -07:00
Hendrik Eeckhaut
0596a9a245
docs: correct foldername in examples readme ( #624 )
2024-10-03 07:18:58 -07:00
sinu.eth
43d2c04f6f
chore: prepare alpha.7 release ( #620 )
2024-10-03 06:37:59 -07:00
yuroitaki
ca328fadca
chore(notary): change fixture pub key to compressed form ( #623 )
...
Co-authored-by: yuroitaki <>
2024-10-03 19:05:49 +08:00
sinu
b724d6a1d2
feat(wasm): expose presentation verifying key
2024-10-03 08:44:28 +02:00
Hendrik Eeckhaut
dfc162929d
fix(examples): fix examples for alpha.7 release ( #603 )
...
* doc: Fix examples for alpha7 release
+ Use secp256k1 key for notary server fixture
+ fix tower issue
+ Fixed doctes issues (Avoid doc test failures when ignored tests are run)
+ Run wasm tests in incognitto mode to avoid chromiumoxide ws errors
* Added comment
* minor improvements
* formatting
* polish attestation example
* use shorthand fs write
* clean
* simplify discord example
---------
Co-authored-by: sinu <65924192+sinui0@users.noreply.github.com >
2024-10-02 20:39:47 -07:00
sinu
6e20930283
fix(wasm): remove presentation verify from test
2024-10-02 08:29:48 +02:00
sinu.eth
7de49c8ed6
docs(core): additional documentation and examples ( #613 )
2024-10-01 09:52:24 -07:00
sinu.eth
17476bc2cf
docs: rustfmt wrap_comments ( #611 )
2024-10-01 07:18:51 -07:00
sinu.eth
b76b8314ad
feat(wasm): clone getters ( #600 )
...
* feat(wasm): clone getters
* fix(wasm): get rid of move semantics and implement Clone
* disable test feature
2024-10-01 07:17:48 -07:00
sinu
6ed3337739
fix(core): remove serde flatten
2024-10-01 13:39:38 +02:00
Hendrik Eeckhaut
3de203e8ac
fix: clippy fix too_long_first_doc_paragraph in enum_builders
2024-10-01 11:10:43 +02:00
Valentin Mihov
79c00fcedb
chore: Remove clippy::blocks_in_conditions ( #592 )
...
The bug in clippy is fixed in rust 1.81, so these are not needed
any more
Co-authored-by: yuroitaki <25913766+yuroitaki@users.noreply.github.com >
2024-09-25 14:03:34 -07:00
sinu.eth
e00828bd03
fix(verifier): correct error display ( #599 )
2024-09-20 09:07:05 -07:00
tsukino
8f400bf1e2
fix(wasm): Attestation.deserialize should return Attestation ( #597 )
2024-09-20 08:57:38 -07:00
sinu.eth
53ff873b3a
refactor(core): alpha.7 rewrite ( #574 )
...
* refactor(core): alpha.7 rewrite
* allow empty idx
* fix empty assumption
* further encapsulate rangeset
* added presentation, finishing touches
* remove unwrap
* update index naming
* add secp256r1 support
* add attestation to presentation output, and serde derives
* handle k256 in KeyAlgId Display
* unnecessary newline
* refactor(core): integrate rewrite changes (#584 )
* refactor(core): alpha.7 rewrite
* allow empty idx
* fix empty assumption
* further encapsulate rangeset
* added presentation, finishing touches
* remove unwrap
* refactor(core): integrate rewrite changes
* remove obsolete tests
* add secp256r1 support
* update index naming
* add secp256r1 support
* add attestation to presentation output, and serde derives
* handle k256 in KeyAlgId Display
* unnecessary newline
* fix variable name
* restore changes from dev to tlsn-prover
* use CryptoProvider in config
* clippy
* more clippy
2024-09-19 07:57:54 -07:00
Hendrik Eeckhaut
a4a0de02f9
ci: run test with debug logging, not the build
2024-09-13 09:46:22 +02:00
Hendrik Eeckhaut
80a9a61e9e
chore: add favicon to wasm-test-runner to avoid 404 in tests
...
fixes #586
2024-09-13 09:46:22 +02:00
sinu.eth
67dc7c865d
chore(examples): remove examples, fix bug ( #585 )
...
* chore(examples): remove examples, fix bug
* Restored Discord example
---------
Co-authored-by: Hendrik Eeckhaut <hendrik@eeckhaut.org >
2024-09-12 11:42:44 -07:00
th4s
9bbb2fb66c
feat: make defer-decryption default
...
* feat: add `defer` option to inner configs
- `TranscriptConfig`
- `MpcTlsLeaderConfig`
- `MpcTlsFollowerConfig`
* adapt common `ProtocolConfig` to `deferred` feature
* Adapt prover and verifier configs.
* Adapt benches.
* Adapt examples.
* Adapt `crates/tests-integration`.
* Adapt notary integration test and wasm crates.
* Fix test.
* add clarifying comments
* Add feedback.
* Improve default handling for `max_deferred_size`.
* Use default handling instead of validation.
* Add feedback.
* fix: bugfix for `notarize.rs`
* Remove defaults for `ProtocolConfigValidator`
* Set `ProtocolConfigValidator` where needed.
* Only preprocess online part for transcript.
---------
Co-authored-by: Ubuntu <ubuntu@ip-10-35-1-161.eu-central-1.compute.internal >
2024-09-11 21:49:58 +02:00
th4s
32df1380a7
fix: aead unit tests no longer deadlock
...
* fix: add back unit tests and configure rayon threadpool
* Use env var to set rayon threads.
* Remove `rayon` dev dependency.
2024-09-02 09:06:38 +02:00
dan
d179150c39
refactor: modularize server-fixture ( #563 )
...
* refactor: modularize server-fixture
* small fixes
* Update crates/server-fixture/server/Cargo.toml
add newline
Co-authored-by: sinu.eth <65924192+sinui0@users.noreply.github.com >
---------
Co-authored-by: Ubuntu <ubuntu@ip-10-35-1-161.eu-central-1.compute.internal >
Co-authored-by: sinu.eth <65924192+sinui0@users.noreply.github.com >
2024-08-21 08:50:08 +00:00
Hendrik Eeckhaut
98a520ddd7
doc: add section about linting to contribution guide
2024-08-21 10:11:29 +02:00
Hendrik Eeckhaut
8fa593c111
doc: added note about "format on save" to the contribution guide
2024-08-21 10:11:29 +02:00
dan
0b1eef12f3
docs: fix typos ( #569 )
...
* docs: fix typos
* Correct notary readme link.
---------
Co-authored-by: yuroitaki <>
2024-08-19 19:25:36 +08:00
yuroitaki
6eaf4a3d2d
feat: add protocol configuration negotiation ( #513 )
...
* Add configuration check.
* Fix naming and comments.
* Fix clippy.
* Fix clippy using latest rust.
* Adapt new method to send message.
* Add config validator.
* Split max transcript size.
* Remove unused dependencies and redundant declarations.
* Move protocol_config out of verifier config.
* Implement default for configs.
* Apply fmt.
* Correct dependency format.
* Add ignored flag to integration test.
* Change from String to Version, more debugging.
* Use getter instead of pub.
* Move ot estimate methods to ProtocolConfig.
---------
Co-authored-by: yuroitaki <>
Co-authored-by: sinu.eth <65924192+sinui0@users.noreply.github.com >
2024-08-15 14:40:55 -07:00
th4s
cc01b24759
fix: Check if already committed in commit ( #568 )
...
Co-authored-by: sinu.eth <65924192+sinui0@users.noreply.github.com >
2024-08-15 14:29:59 -07:00
th4s
0a3a1db520
chore: Temporarily disable deadlocked tests in aead ( #547 )
...
* fix: Comment failing tests in aead
* fix: please clippy
* fix: comment `kind` function in error module
---------
Co-authored-by: sinu.eth <65924192+sinui0@users.noreply.github.com >
2024-08-15 14:21:00 -07:00
th4s
b3316dede7
fix: Repair wasm build. ( #567 )
...
Set specific version for `wasm-bindgen`.
2024-08-15 18:50:22 +02:00
th4s
ab24a6d3aa
Add verify for wasm TlsProof ( #560 )
...
* Add `verify` for wasm `TlsProof`.
* refactor notary key
* return unix time
* remove unnecessary serde feature
* comment
* refactor: use public key pem instead of bytes (#561 )
* refactor: use public key pem instead of bytes
* refactor: use NotaryKey as type
* fix: use String
* style: formatting
#557
---------
Co-authored-by: sinu <65924192+sinui0@users.noreply.github.com >
Co-authored-by: tsukino <87639218+0xtsukino@users.noreply.github.com >
Co-authored-by: Hendrik Eeckhaut <hendrik@eeckhaut.org >
2024-08-14 12:14:02 -07:00
dan
17e31687bd
docs: describe execution modes ( #464 )
2024-08-06 10:02:16 +00:00
yuroitaki
b9ae8f9271
chore: extend tls certs perpetually ( #555 )
2024-08-06 14:55:59 +08:00
yuroitaki
c8524d934b
fix: correct paths following repo reorg ( #554 )
...
* Fix paths following repo reorg.
* Apply fmt.
---------
Co-authored-by: yuroitaki <>
2024-08-02 19:45:08 +08:00
Hendrik Eeckhaut
7f46596068
docs: fix and improve interactive example ( #552 )
...
#551
2024-08-02 12:28:51 +02:00
Hendrik Eeckhaut
6031254963
chore: cleanup after workspace consolidation
...
* clean up github actions #537 #536
* Improved README.md (clang + openssl-dev) #536
+ removed stale build script #537
* chore: add build script for tlsn-wasm #536
#549
2024-08-01 14:40:59 +02:00
th4s
2d44cc4b60
docs: Fix links in README.md ( #544 )
2024-07-29 16:33:39 +09:00
th4s
bdebd7a9b2
Remove unused AEAD error type. ( #540 )
2024-07-29 16:32:04 +09:00
sinu.eth
3201c38ad7
feat(wasm): no-bundler flag ( #546 )
...
* feat(wasm): no-bundler flag
* newline
2024-07-29 16:31:26 +09:00
sinu.eth
2205cb3b2c
feat(tlsn-wasm): wasm bindings ( #536 )
...
* feat(tlsn-wasm): wasm bindings
* fix wasm ci
* clippy
* clippy allow
* add build config and remove redundant to_vec
2024-07-25 14:15:11 +09:00
sinu.eth
040608bb6e
fix: notary cd ( #538 )
2024-07-24 18:51:34 +09:00
sinu.eth
e14d0cf563
refactor: consolidate workspaces ( #537 )
...
* move crates
* remove .workspace syntax
* rename crate directories
* normalize manifests
* further normalize manifests
* newlines
* fix dependency issues
* fix import paths
* update CI
* rustfmt
* filter wasm packages
* check in fixtures
* fix rustdoc
* ignore expensive tests
2024-07-23 10:43:31 +09:00
yuroitaki
7377eaf661
fix: clippy gh action and linting ( #531 )
...
* fix: miscellaneous fixes on documentation, notary-server.
* Apply clippy fix.
* Apply clippy fix.
* Apply clippy fix.
* Apply clippy fix.
* Apply clippy fix.
* Apply clippy fix.
* Apply clippy fix.
* Apply clippy fix.
* Apply clippy fix.
* Correct ci.yml and build script.
* Apply clippy fix.
* Apply fmt.
* Correct clippy fix for tls-mpc.
* Correct clippy fix for tls-client.
* Correct clippy fix for tls-client.
* Update ci and local build.
* Revert "Merge branch 'fix/misc-fixes' into fix/gh-clippy-action"
This reverts commit 74bdb4a6f8 , reversing
changes made to e361a86e6a .
* Apply clippy fix.
* Correct spacing and extra changes.
* Apply fmt.
* Change cargo hack install logic.
* Revert clippy change client buffer len.
* Revert clippy ignore.
* remove cargo hack, relax clippy lints
* remove unused features and dead tests
* appease clippy again
* remove dead features
---------
Co-authored-by: sinui0 <65924192+sinui0@users.noreply.github.com >
2024-07-22 12:44:55 +09:00
ntampakas
b24aea4fad
ci: add check to identify number of stable versions deployed ( #532 )
...
Co-authored-by: yuroitaki <t.kleinchong@gmail.com >
2024-07-16 21:55:08 +08:00
yuroitaki
d8401ee177
cd: update executable path for easier debugging. ( #520 )
2024-07-09 18:45:17 +08:00
yuroitaki
44210c350b
fix: miscellaneous fixes on documentations ( #528 )
...
* fix: miscellaneous fixes on documentation, notary-server.
* Revert notary changes.
* Add warning when TLS is off.
2024-07-09 16:03:14 +08:00
sinu.eth
3554db83e1
chore: release v0.1.0-alpha.6 ( #523 )
...
Co-authored-by: yuroitaki <t.kleinchong@gmail.com >
v0.1.0-alpha.6
2024-06-26 18:01:50 +08:00