tdiesler / nessus-didcomm

Nessus DIDComm is about Digital Identity and Verifiable Credentials
Apache License 2.0
8 stars 1 forks source link

Context did variables not sufficiently unique #117

Closed tdiesler closed 1 year ago

tdiesler commented 1 year ago

When both Malathi and Rajesh have a connection to Government, Government.Did may not be sufficiently unique

tdiesler commented 1 year ago
    fun putContextConnection(pcon: Connection?) {
        putAttachment(CONNECTION_ATTACHMENT_KEY, pcon)
        pcon?.also {
            checkNotNull(pcon.myLabel) { "No myLabel in: ${pcon.shortString()}" }
            checkNotNull(pcon.theirLabel) { "No theirLabel in: ${pcon.shortString()}" }
            putVar("${pcon.alias}.myDid", pcon.myDid.uri)
            putVar("${pcon.alias}.theirDid", pcon.theirDid.uri)
            putVar("${pcon.myLabel}.Did", pcon.myDid.uri)
            putVar("${pcon.theirLabel}.Did", pcon.theirDid.uri)
        }
    }