Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

BLS12-381 precompile implement #1219

Closed
hujw77 opened this issue May 17, 2022 · 1 comment · Fixed by #1222
Closed

BLS12-381 precompile implement #1219

hujw77 opened this issue May 17, 2022 · 1 comment · Fixed by #1222
Assignees

Comments

@hujw77
Copy link
Contributor

hujw77 commented May 17, 2022

BLS precompile facilitate eth2.0 light client to verify BLS signature.
There are two ways to reach the goal.

Wrap BLS lib

BLS precompile should implement the interface below:

interface BLS {
        function FastAggregateVerify(
            bytes[] calldata pubkeys,                    // BLS public keys
            bytes calldata message,                    // Message to be verify
            bytes calldata signature                   // BLS Aggregated signature
        ) external pure returns (bool);             // Return valid or invalid
}

Rust lib refer: https://github.com/sigp/milagro_bls

EIP-2537

https://eips.ethereum.org/EIPS/eip-2537

@hujw77
Copy link
Contributor Author

hujw77 commented May 17, 2022

ethereum/pm#343

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 a pull request may close this issue.

1 participant