Skip to content

'tsp' test code not showing correct relationship table #238

@wenjing

Description

@wenjing

Following the typical alice/bob example with did:webvh and testing out the bidirectional relationship establishment using RFI and RFA (as in https://docs.teaspoon.world/cli/nested.html) steps, I got an incorrect wallet relationship table on the bob side (the side that RFA):

On alice:

`alice % tsp request --sender-vid alice --receiver-vid bob --wait
INFO tsp_sdk::async_store: sending message to https://p.teaspoon.world/endpoint/[vid_placeholder]
INFO tsp: sent relationship request from alice to bob
INFO tsp: waiting for response...
INFO tsp: received accept relationship from did:webvh:QmcWso61V96pamLs5LZBX7Pyvkczzs8cKz83NqNx1sfqaX:did.teaspoon.world:endpoint:bobdid (nested_vid: none)
alice % tsp show
local VIDs

did:webvh:QmX37gqg6rcU3C8ynDV1y7wduGzpT2soJ9SMtxmrAXTDLY:did.teaspoon.world:endpoint:alicedid
Alias: alice
Transport: https://p.teaspoon.world/endpoint/did:webvh:QmX37gqg6rcU3C8ynDV1y7wduGzpT2soJ9SMtxmrAXTDLY:did.teaspoon.world:endpoint:alicedid
DID doc: https://did.teaspoon.world/endpoint/alicedid/did.json
DID history: https://did.teaspoon.world/endpoint/alicedid/did.jsonl
DID version: None
public enc key: (X25519): AIQaXQ0XHPb8q2AvLivYagHpmZGo7e1PsTJlAg5oUTE=
public sign key: (Ed25519) dVsjTBVS/VrnvQaWc8gajYpJC6HavJkfnoaCSxrOPoU=


Relations of local VID did:webvh:QmX37gqg6rcU3C8ynDV1y7wduGzpT2soJ9SMtxmrAXTDLY:did.teaspoon.world:endpoint:alicedid

did:webvh:QmcWso61V96pamLs5LZBX7Pyvkczzs8cKz83NqNx1sfqaX:did.teaspoon.world:endpoint:bobdid
Relation Status: Bidirectional
Alias: bob
DID doc: https://did.teaspoon.world/endpoint/bobdid/did.json
DID history: https://did.teaspoon.world/endpoint/bobdid/did.jsonl
DID version: None
Transport: https://p.teaspoon.world/endpoint/did:webvh:QmcWso61V96pamLs5LZBX7Pyvkczzs8cKz83NqNx1sfqaX:did.teaspoon.world:endpoint:bobdid
Intermediaries: None
public enc key: (X25519): /k9ZcB3c0Qw20FQd+xLEqigAKWL72rFXbXVoprtd1HQ=
public sign key: (Ed25519) Cb+KjWbeuGi6HyfDPE0RfjwtFvqSlUMBghofOBq/uuc=


Remote VIDs without relation status
`
this is expected for alice.
But on bob, I got this instead:

`bob % tsp --verbose receive bob --one
TRACE tsp: opened wallet wallet
TRACE tsp_sdk::async_store: Listening for bob on https://p.teaspoon.world/endpoint/did:webvh:QmcWso61V96pamLs5LZBX7Pyvkczzs8cKz83NqNx1sfqaX:did.teaspoon.world:endpoint:bobdid
INFO tsp: listening for messages...
CESR-encoded message: -EBDYTSP-AAB4BAfZGlkOndlYnZoOlFtWDM3Z3FnNnJjVTNDOHluRFYxeTd3ZHVHenBUMnNvSjlTTXR4bXJBWFRETFk6ZGlkLnRlYXNwb29uLndvcmxkOmVuZHBvaW50OmFsaWNlZGlk6BAfAABkaWQ6d2Vidmg6UW1jV3NvNjFWOTZwYW1MczVMWkJYN1B5dmtjenpzOGNLejgzTnFOeDFzZnFhWDpkaWQudGVhc3Bvb24ud29ybGQ6ZW5kcG9pbnQ6Ym9iZGlk4GAfAWXOvdw_aU4XV-RavBMc49HVNNq92ioSssk37ByW4AaDCG7p5-B7bDXbXyI8ZzDiXj0pdV1yj9Ob763I9Wj4LNwVQ-MFC4TfaIwkXBYSZpdIlF1VhkQcwOl7awlt0BAZLUUiEcDQotH72s-ByCbTNIugpomYXEL8-60zQMAMf_tvXJ0pDoNntp7a0eo_E4CRtsMweNPe9cCaDz9Xvc8P
TRACE tsp: Received message: Ok(RequestRelationship { sender: "did:webvh:QmX37gqg6rcU3C8ynDV1y7wduGzpT2soJ9SMtxmrAXTDLY:did.teaspoon.world:endpoint:alicedid", receiver: "did:webvh:QmcWso61V96pamLs5LZBX7Pyvkczzs8cKz83NqNx1sfqaX:did.teaspoon.world:endpoint:bobdid", route: None, nested_vid: None, thread_id: [99, 107, 168, 76, 116, 247, 45, 234, 164, 242, 216, 62, 92, 227, 247, 113, 69, 9, 42, 194, 206, 129, 215, 98, 237, 214, 58, 209, 252, 242, 107, 232] })
INFO tsp: received relationship request from did:webvh:QmX37gqg6rcU3C8ynDV1y7wduGzpT2soJ9SMtxmrAXTDLY:did.teaspoon.world:endpoint:alicedid, thread-id 'Y2uoTHT3Leqk8tg+XOP3cUUJKsLOgddi7dY60fzya+g'
did:webvh:QmX37gqg6rcU3C8ynDV1y7wduGzpT2soJ9SMtxmrAXTDLY:did.teaspoon.world:endpoint:alicedid Y2uoTHT3Leqk8tg+XOP3cUUJKsLOgddi7dY60fzya+g
TRACE tsp: persisted wallet
TRACE tsp: persisted wallet
bob % tsp accept --sender-vid bob --receiver-vid alice --thread-id 'Y2uoTHT3Leqk8tg+XOP3cUUJKsLOgddi7dY60fzya+g'
INFO tsp_sdk::async_store: sending message to https://p.teaspoon.world/endpoint/[vid_placeholder]
INFO tsp: sent control message from bob to alice
bob % tsp show
local VIDs

did:webvh:QmcWso61V96pamLs5LZBX7Pyvkczzs8cKz83NqNx1sfqaX:did.teaspoon.world:endpoint:bobdid
Alias: bob
Transport: https://p.teaspoon.world/endpoint/did:webvh:QmcWso61V96pamLs5LZBX7Pyvkczzs8cKz83NqNx1sfqaX:did.teaspoon.world:endpoint:bobdid
DID doc: https://did.teaspoon.world/endpoint/bobdid/did.json
DID history: https://did.teaspoon.world/endpoint/bobdid/did.jsonl
DID version: None
public enc key: (X25519): /k9ZcB3c0Qw20FQd+xLEqigAKWL72rFXbXVoprtd1HQ=
public sign key: (Ed25519) Cb+KjWbeuGi6HyfDPE0RfjwtFvqSlUMBghofOBq/uuc=


Relations of local VID did:webvh:QmcWso61V96pamLs5LZBX7Pyvkczzs8cKz83NqNx1sfqaX:did.teaspoon.world:endpoint:bobdid


Remote VIDs without relation status

`

this is probably only a problem in the testing code 'tsp' where the bob side is not properly updating its relationship table in the wallet.

version tested: tsp 0.9alpha

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions