Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

[DO NOT MERGE]: Start an oasis-core targeted fork again - #2

Closed
Yawning wants to merge 3 commits into
v0.32from
yawning/feature/oasis-0.32
Closed

Yawning wants to merge 3 commits into
v0.32from
yawning/feature/oasis-0.32

Conversation

@Yawning

@Yawning Yawning commented Nov 6, 2019 •

Copy link
Copy Markdown

We used to have a fork of tendermint with bugfixes, now it's time to have a fork of tendermint for features.

  • crypto/ed25519: Use an optimized implementation
  • types: Use Ed25519 batch verification in VerifyCommit
  • crypto/ed25519: Add support for oasis-core's domain separation

@Yawning Yawning self-assigned this Nov 6, 2019
@Yawning
Yawning force-pushed the yawning/feature/oasis-0.32 branch from 061ecb9 to 32fa278 Compare November 6, 2019 11:59
This switches the ed25519 import to use an optimzied ed25519
implementation to improve signing, verification, and key generation
performance.

Notes:

 * Go prior to 1.13 does not guarantee that certain `math/bits`
   intrinsics are constant time.  When building non-amd64 targets
   with older compilers, the 32 bit codepath is forced.

 * The 64 bit code path is only enabled for the amd64, arm64, ppc64
   and ppc64le targets due to the Go compiler's support for optimizing
   the `math.bits` intrinsics used.

 * Key generation and signing performance on targets that are not
   amd64, 386, and ppc64le will be slower than it could be due to
   the use of `subtle.ConstantTimeCopy` to implement a constant
   time table lookup.  Patches welcome.
@Yawning
Yawning force-pushed the yawning/feature/oasis-0.32 branch from 32fa278 to 437f697 Compare November 6, 2019 12:16
@Yawning
Yawning requested a review from kostko November 6, 2019 12:33
@Yawning
Yawning force-pushed the yawning/feature/oasis-0.32 branch from 1385abf to 343eb70 Compare November 6, 2019 13:00
oasis-core uses ed25519 with an ad-hoc domain separation context to sign
things.  This is unsafe when the same key is used to also do Ed25519pure
signing.

Sensible people will use Ed25519ph/Ed25519ctx for this, because it
avoids the collision problem.  Non-sensible people use YubiHSM/Ledger to
do signing, which supports neither.
@Yawning

Yawning commented Nov 6, 2019

Copy link
Copy Markdown
Author

Alrighty, this is now done.

@Yawning Yawning closed this Nov 6, 2019
@Yawning
Yawning deleted the yawning/feature/oasis-0.32 branch November 6, 2019 14:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants