ethereum

ethereum

Member Since 8 years ago

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
265
repos
Activity
Jan
22
1 day ago
push

victor-wei126 push ethereum/trin

victor-wei126
victor-wei126

modify tests to conform to content keys test vectors spec (#229)

commit sha: ce2abe697bf10c47f2ad2d9c467e2a7c5801607a

push time in 4 hours ago
pull request

victor-wei126 pull request ethereum/trin

victor-wei126
victor-wei126

Modify content-key tests to conform to content keys test vectors spec

This modifies the tests to conform to the test vectors here: https://github.com/ethereum/portal-network-specs/blob/master/content-keys-test-vectors.md.

Minor changes were made to the hash functions to conform to the updated spec as well.

Also it combines the test for encoding/decoding of key x and converting key x to the respective id into a single test. This reduces lines of code by a lot and also possibility for error.

Activity icon
issue

victor-wei126 issue ethereum/trin

victor-wei126
victor-wei126

Cross-client test vectors for ContentKeys

Create test vectors for encoding & decoding ContentKeys (like here) following #108.

Activity icon
issue

victor-wei126 issue comment ethereum/trin

victor-wei126
victor-wei126

Cross-client test vectors for ContentKeys

Create test vectors for encoding & decoding ContentKeys (like here) following #108.

Activity icon
issue

Emilianoreynoso issue ethereum/ethereum-org-website

Emilianoreynoso
Emilianoreynoso

Emiliano

We'll consider our content resources policy when reviewing the tutorial, so please take a look there first.

Tutorial title

Tutorial description

Tag your tutorial

Publication

Skill level

Hosted on Ethereum.org or hosted elsewhere?

For tutorials to be hosted on Ethereum.org: Tutorial Content

For tutorials hosted elsewhere: URL to tutorial

Activity icon
fork

Emilianoreynoso forked ethereum/ethereum-org-website

⚡ Ethereum.org is a primary online resource for the Ethereum community.
Emilianoreynoso MIT License Updated
fork time in 5 hours ago
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
    BLS multiscalar multiplication. This function can be optimized using Pippenger's algorithm and variants.
    This is a non-optimized implementation.
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
    Compute a list of roots of unity for a given order.
    The order must divide the BLS multiplicative group order, i.e. BLS_MODULUS - 1
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
    return (
        (int.from_bytes(hash(hash_tree_root(x) + int.to_bytes(challenge_number, 32, "little")), "little"))
        % BLS_MODULUS
    )
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
                summand = multiply_polynomials(
                    summand, [weight_adjustment, ((BLS_MODULUS - weight_adjustment) * xs[i])]
                )
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
                summand = multiply_polynomials(
                    summand,
                    [weight_adjustment,
                    ((BLS_MODULUS - weight_adjustment) * xs[I])],
                )
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
        r += poly[i] * bls_modular_inverse(Aprime(roots[i])) * x % BLS_MODULUS
    r = r * A(x) % BLS_MODULUS
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
    Check that `proof` is a valid KZG proof for the polynomial committed to by `commitment` evaluated
    at `x` equals `y`.
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
def verify_kzg_multiproof(commitment: KZGCommitment,
                          xs: List[BLSFieldElement],
                          ys: List[BLSFieldElement],
                          proof: KZGCommitment) -> None:
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
    Slices a block into 31-byte chunks that can fit into field elements.
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww
    return [(a[i] + (b[i] if i < len(b) else 0)) % BLS_MODULUS for i in range(len(a))]
Activity icon
fork

IngridMi forked ethereum/remix-live

⚡ Live deployment of the remix IDE
IngridMi Updated
fork time in 5 hours ago
Jan
7
2 weeks ago
open pull request

hwwhww wants to merge ethereum/consensus-specs

hwwhww
hwwhww

inlines

    signature_y_parity: bool
    signature_r: uint256
    signature_s: uint256