Skip to content

Add Ed25519 and X25519 functionality to t3 data card. - #111

Merged
CaitlynMainer merged 6 commits into
PC-Logix:main-MC1.21.1from
PewPewCricket:main-MC1.21.1
Oct 2, 2026
Merged

CaitlynMainer merged 6 commits into
PC-Logix:main-MC1.21.1from
PewPewCricket:main-MC1.21.1

Conversation

@PewPewCricket

@PewPewCricket PewPewCricket commented Sep 26, 2026 •

Copy link
Copy Markdown

Adds 2 new functions:

x25519(privateKey: userdata, publicKey: userdata): string
Generates a shared secret using x25519 from a public and private key.

ed25519(data: string, privateKey: userdata[, sig: string]): string
Signs or verifies data using ed25519, works exactly the same as the ecdsa() function.

Modifies 1 function:

generateKeyPair([bitlen: number[, keyType: string]]): userdata, userdata
Generates a key pair. keyType is "ec" (default), "ed25519", or "x25519". bitLen only applies to "ec" keys (256 or 384, default 384). Returns: public, private keys.

@PewPewCricket
PewPewCricket marked this pull request as draft September 26, 2026 19:09
@PewPewCricket
PewPewCricket marked this pull request as ready for review September 26, 2026 19:25
@CaitlynMainer
CaitlynMainer merged commit aea3aa1 into PC-Logix:main-MC1.21.1 Oct 2, 2026
1 check passed
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.

2 participants