Conversation
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
Signed-off-by: qians <qiangezaici@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is built on top of the actual protocol implementation from accepting parallel relationships pr.
The goal is to produce enough vectors with as little change as possible.
To make it easier to use, I extracted the profiles that were previously embedded in the bench code into a shared module and reused them. That means you now only need to start a receiver first, then run the sender with --features emit-vectors, and all vectors will be printed on the sender side.
receiver, use local-tcp profile
cargo run -p examples --features emit-vectors --bin tsp -- --wallet tv_receiver receive bob --profile local-tcp Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.45s Running `target/debug/tsp --wallet tv_receiver receive bob --profile local-tcp` INFO tsp: created new wallet INFO tsp: listening for messages... TV: received.sender.did = did:web:raw.githubusercontent.com:openwallet-foundation-labs:tsp:main:examples:test:alice TV: received.receiver.did = did:web:raw.githubusercontent.com:openwallet-foundation-labs:tsp:main:examples:test:bob TV: received.crypto.type = nacl-essr TV: received.sender.signature_key_type = Ed25519 TV: received.sender.encryption_key_type = X25519 TV: received.receiver.signature_key_type = Ed25519 TV: received.receiver.encryption_key_type = X25519 TV: received.sender.sign.public = 7dUAj8TdKRfQwSkUqa3dyCMr8AhggYRAv2RuMZ514sE TV: received.sender.enc.public = y-FbCCEodGckHNDqCVOcIyf9uESpaepAVRewGxmt_QU TV: received.receiver.sign.public = NBcP690uVtoJChxvBCxZyy2inI-R24G3aNBWOKwU5lI TV: received.receiver.enc.public = QFn5SXupDgBTtzkGc2W3MvoSCHjd8uUD0dapfEXqET4 TV: received.receiver.sign.private = 1i95TnosmKFwmW_pu300ulOaT9m1OV4xIhnFue8Ltek TV: received.receiver.enc.private = Kk-O0T0IoxGgtxyd7JYCv6moGIi83wPRINDsWKgGNVs TV: received.rfi.thread_id = _H4eU_8ffhJtfP6164IHTZg0UA_fq-0tlOc13rHApXA INFO tsp: received relationship request from did:web:raw.githubusercontent.com:openwallet-foundation-labs:tsp:main:examples:test:alice, thread-id '/H4eU/8ffhJtfP6164IHTZg0UA/fq+0tlOc13rHApXA' did:web:raw.githubusercontent.com:openwallet-foundation-labs:tsp:main:examples:test:alice /8ffhJtfP6164IHTZg0UA/fq+0tlOc13rHApXA TV: received.message.plaintext = Hello world! TV: received.message.nonconfidential_data = Hello data message. INFO tsp: received confidential message (12 bytes) from did:web:raw.githubusercontent.com:openwallet-foundation-labs:tsp:main:examples:test:alice (NaCl ESSR, Ed25519 signature) Hello world!sender, use local-tcp profile