Nominating Presidential Muppets

    react-native-mcl
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.17 • Public • Published

    react-native-mcl

    React Native MCL

    Installation

    npm install react-native-mcl

    Usage

    import * as mcl from "react-native-mcl";
    
    
    mcl.init.then(() => {
        let g1 = new mcl.G1();
        g1.deserialize(new Uint8Array([
          0xc0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
          0,
        ]));
        let fr = new mcl.Fr();
        fr.deserialize(new Uint8Array([
          2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
          0, 0, 0, 0, 0, 0, 0, 0,
        ]))
    
        const result = mcl.mul(g1, fr);
    }

    Contributing

    See the contributing guide to learn how to contribute to the repository and the development workflow.

    License

    MIT

    Install

    npm i react-native-mcl

    DownloadsWeekly Downloads

    4

    Version

    0.1.17

    License

    MIT

    Unpacked Size

    186 MB

    Total Files

    1081

    Last publish

    Collaborators

    • aguycalled