@awebai/pi 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5613,6 +5613,11 @@ var SenderTrustManager = class {
|
|
|
5613
5613
|
if (!recipientDID || !selfDID) {
|
|
5614
5614
|
return status;
|
|
5615
5615
|
}
|
|
5616
|
+
if (recipientDID.startsWith("did:aw:")) {
|
|
5617
|
+
if (recipientStableID)
|
|
5618
|
+
return status;
|
|
5619
|
+
return selfStableID ? "identity_mismatch" : status;
|
|
5620
|
+
}
|
|
5616
5621
|
return recipientDID === selfDID ? status : "identity_mismatch";
|
|
5617
5622
|
}
|
|
5618
5623
|
async checkStableIdentityRegistry(status, trustAddress, fromDID, fromStableID) {
|