Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement bls12-381 functions #1345

Merged
merged 20 commits into from
Sep 28, 2024
Merged

implement bls12-381 functions #1345

merged 20 commits into from
Sep 28, 2024

Conversation

jayz22
Copy link
Contributor

@jayz22 jayz22 commented Sep 19, 2024

Corresponding env change: stellar/rs-soroban-env#1456

bump protocol_version locally

add basic g1/g2_add test

expose dst

add mult-pairing-check

update scalar to use U256 representation

update env

update env pick up xdr change

bump sdk version

implement bls12-381
Cargo.toml Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/tests/crypto_bls12_381.rs Show resolved Hide resolved
Copy link
Contributor

@dmkozh dmkozh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for now, I think we can clean up the 'namespacing' and add more tests as a followup.

soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments inline.

soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
soroban-sdk/src/env.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto.rs Outdated Show resolved Hide resolved
deny.toml Outdated Show resolved Hide resolved
Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did another pass because I saw @sisuresh pushed some changes. Resurfaced some unaddressed comments that were in outdated areas of code.

soroban-sdk/src/crypto/bls12_381.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto/bls12_381.rs Outdated Show resolved Hide resolved
soroban-sdk/src/crypto/bls12_381.rs Show resolved Hide resolved
soroban-sdk/src/bytes.rs Show resolved Hide resolved
sisuresh and others added 3 commits September 23, 2024 09:41
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
sisuresh and others added 5 commits September 23, 2024 18:25
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
@sisuresh sisuresh added this pull request to the merge queue Sep 27, 2024
Merged via the queue into stellar:main with commit 9b7ac44 Sep 28, 2024
16 checks 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.

4 participants