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

Align BLS Precompile addresses with Geth #1616

Closed
hujw77 opened this issue Oct 29, 2024 · 1 comment · Fixed by #1626
Closed

Align BLS Precompile addresses with Geth #1616

hujw77 opened this issue Oct 29, 2024 · 1 comment · Fixed by #1626
Assignees

Comments

@hujw77
Copy link
Contributor

hujw77 commented Oct 29, 2024

Geth

https://github.com/ethereum/go-ethereum/blob/master/core/vm/contracts.go#L131-L139

Darwinia runtime

pub const ADDR_BLS12381_G1_ADD: [u8; 20] = address_of(0x0c);
pub const ADDR_BLS12381_G1_MUL: [u8; 20] = address_of(0x0d);
pub const ADDR_BLS12381_G1_MULTI_EXP: [u8; 20] = address_of(0x0e);
pub const ADDR_BLS12381_G2_ADD: [u8; 20] = address_of(0x0f);
pub const ADDR_BLS12381_G2_MUL: [u8; 20] = address_of(0x10);
pub const ADDR_BLS12381_G2_MULTI_EXP: [u8; 20] = address_of(0x11);
pub const ADDR_BLS12381_PAIRING: [u8; 20] = address_of(0x12);
pub const ADDR_BLS12381_MAP_G1: [u8; 20] = address_of(0x13);
pub const ADDR_BLS12381_MAP_G2: [u8; 20] = address_of(0x14);

@AurevoirXavier
Copy link
Member

Which runtime version do you anticipate this will be included?

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

2 participants