gf256-sol

0.0.3 • Public • Published

GF256-Solidity

Tool for gf256 (Galois field) computation.

Install

npm install --save gf256-sol

Usage

pragma solidity ^0.5.7;

import "gf256-sol/contracts/GF256.sol";


contract WithMul {
    using GF256 for uint8;
    
    function mul(uint8 a, uint8 b) public view returns (uint8) {
        return a.gf256Mul(b);
    }
}

Exposed methods

Exposed methods are gf256Mul, gf256Div, gf256Sub, gf256Add

Readme

Keywords

none

Package Sidebar

Install

npm i gf256-sol

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

8.9 kB

Total Files

7

Last publish

Collaborators

  • canufeel