adorsys / adorsys/didcomm-mediator-rs

As the designer of this SSI environment, i shall design a did-method-hd-key to allow for stateless authentication of agents

Offen
#46 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @francis-pouatcha Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
13
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The purpose is to allow for state authentication of interaction between mobile agents and cloud agents.

A cloud agent can issue an hd public key to a consumer (mobile agent).

- The consumer must keep this public key secret.
- The consumer can derive a message sending key from the hd key to authenticate the deposition of a message that shall be forwarded to another agent. In this case, the cloud agent is the consumer's sender agent (see issue #45)
- The consumer can derive a contact key, that will be given to another agent. Now this other agent can derive message delivery keys from the hd key to authenticate delivery when sending messages to their contact.

Generally for sending:

- Sender will user the contact key of the recipient to encrypt the message.
- Sender will use the recipient cloud agent's auth key to encrypt the message (ECDH) producing the first forward message
- Sender will then use his own cloud agent's auth sending key to wrap the message in the second forward message that will then be deposited to the proxy of the send.

Particularity of this approach:
- no DoS possibility, as each cloud agent only stores authenticated messages.
- As cloud agent still has to decrypt outer envelope, key derivation provides an authentication layer that allows service to reject malicious clients.

ToDo:

- rite a paper describing this approach
- implements a did-hd-key method with corresponding features.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.