Coder Social home page Coder Social logo

edge-extradata-decoder's Introduction

Polygon Edge 0.6.0 (BLS Update) extraData Decoder

Decode the extraData parameter in block headers from Polygon Edge 0.6.0 (BLS)

Build the project

$ go build decoder.go

Example

Input

./decoder extraData hash

$ ./decoder 0x0000000000000000000000000000000000000000000000000000000000000000f901e7f8d8f8469456fae64bde3d31a884f699fe88ff5104c71d61a6b0b34bc758246994f6d86a7715d81e359fd516634430c16e848480667afeb0de51f2c5b9b69b1550c2f1b83af36f8b92e0f84694b53fd6be68693e33dceda32722de7c1d0e26f618b08976336e55678b8bfb8c5deabc240be96a32be9f9b443803825a37444bc9234c62029e376add89c8349fcf7e7674d7ecf846944f944c7fc8377c6b5dd871d95fa4b7f8ff889fa6b0a7bad64c86311303b671537155c3d7a81dd5a29ebf3298c6a5c72ababe06a2bb51c9f1ba411016359c17cb789d533045b841f3ad1993ad9f44d9fbff6e3ff3634ba833dc17798641bcda0fed043db5a653df2a676f65c5daa21df6ef78b8bc5dd0bd46557bbda2da86ad055d2cd50bb636b401f86307b860a4ba6670f5d6528124020da39ede85082cac66ab03b927258700917d598d4150d5bd6bd44700541905107bdd6401911e110f251ab7e367df351a38e0a010dee2ad12365e9d7b76a94ce1f2b3dc8c1224b695956da66d93e157d77036db66f3eff86307b860846b3990ac6a39c96478428784ab551121f757459765b068bb4c4a3a9606e38fe94fd49974907470317c960148d5f89719e60d66b29e13df2839c4499e77fda558a7d3f91bea26e698e94972f29f2fa2e6c00de727423a0ace49688cf03bf019 0x66493a620a7b7a0b7a08de7c4a45ba8078af39d48147bc42c6d5c29c4af24e36

Output

validator set: 3 address:bls

0x56FAe64bDE3d31a884f699Fe88Ff5104C71d61a6:0xb34bc758246994f6d86a7715d81e359fd516634430c16e848480667afeb0de51f2c5b9b69b1550c2f1b83af36f8b92e0

0xb53Fd6bE68693E33DCeDA32722de7c1d0e26F618:0x8976336e55678b8bfb8c5deabc240be96a32be9f9b443803825a37444bc9234c62029e376add89c8349fcf7e7674d7ec

0x4F944c7fc8377c6B5DD871D95fa4B7f8ff889fa6:0xa7bad64c86311303b671537155c3d7a81dd5a29ebf3298c6a5c72ababe06a2bb51c9f1ba411016359c17cb789d533045

Block Proposer: 0x4F944c7fc8377c6B5DD871D95fa4B7f8ff889fa6

ProposerSeal: 0xf3ad1993ad9f44d9fbff6e3ff3634ba833dc17798641bcda0fed043db5a653df2a676f65c5daa21df6ef78b8bc5dd0bd46557bbda2da86ad055d2cd50bb636b401

CommittedSeals: 3

ParentCommittedSeals: 3

edge-extradata-decoder's People

Contributors

owenwahlgren avatar owahlgren avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.