sander / hierarchical-deterministic-keys

Hierarchical Deterministic Keys for the European Digital Identity Wallet
https://github.com/eu-digital-identity-wallet/eudi-doc-architecture-and-reference-framework/discussions/282
7 stars 4 forks source link

2024-09 Minor review comments #58

Closed emlun closed 1 month ago

emlun commented 2 months ago
sander commented 2 months ago
  • Outputs sk', a blinded private key Scalar based on ARKG private seed

    This is the first time "Scalar" is referenced, and I don't think the extra qualification is necessary - just "blinded private key" should be enough. Especially since the abstraction is not yet limited to just EC instantiations at this point.

Agreed.

This would introduce additional hashing operations, after deriving the already uniformly expand output, which is computed using an expand_message from RFC 9380 indeed.

  • (_, sk') = key(okm[0:Nk]) pk' = EC-Add(pk_device, EC-Scalar-Base-Mult(sk')))

    I think this is equivalent to:

    (pk'', _) = key(okm[0:Nk]) pk' = EC-Add(pk_device, pk''))

    (should probably use a better name than pk'' though)

Agreed this is cleaner. Thanks.

sander commented 1 month ago

Addressed in #70.