Skip to content

Support ed25519 for agent keys #658

@alanshaw

Description

@alanshaw

We currently use RSA keys for agent identities in the browser. At the time ed25519 support was not available in the webcrypto API and as such we could not create keys that were non-extractable that we could store in IndexedDB.

However, support for ed25519 is now widely available and we should switch to using this shorter and faster key.

Essentially this line

const principal = options.principal ?? (await generate())
needs to switch to using a webcrypto ed25519 non-extractable key implementation.

This will mostly involve work in Ucanto, specifically @ucanto/principal to either add new principal type, or adapt the existing ed25519 principal to use web crypto instead of @noble/ed25519. I would prefer the latter, unless it is a significant blocker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions