Skip to content

Crypto2 examples - #32

Open
philpotisk wants to merge 2 commits into
mainfrom
crypto2-examples
Open

Crypto2 examples#32
philpotisk wants to merge 2 commits into
mainfrom
crypto2-examples

Conversation

@philpotisk

Copy link
Copy Markdown
Contributor

No description provided.

- Add crypto2 dependency (1.0.0-SNAPSHOT-crypto2)
- Create crypto2 package parallel to existing crypto package
- Implement key generation examples (Ed25519, Secp256r1, RSA)
- Implement signature examples (Ed25519, Secp256r1)
- Add key serialization and PEM export examples
- Add provider selection demo
- All examples compile and run successfully
- Demonstrates new crypto2 API patterns and capabilities
⚠️ These Java examples DO NOT COMPILE due to crypto2 Java interop issues:

Issues:
- Value class constructors (KeyId, EcCurve, EdwardsCurve) are private in Java
- Companion.invoke() not accessible from Java
- CryptographySoftwareKeyProvider has no public constructor
- Requires verbose FutureKt.asCompletableFuture() for all suspend functions

Files:
- key/create/Ed25519.java
- key/create/Secp256r1.java
- signatures/Secp256r1Sign.java
- simple/SimpleSigningExample.java

See crypto2-java-interop.md for full analysis.

These files will be removed in a future commit once Java interop
strategy is decided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant