bn256


Namebn256 JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/hanzhichao/bn256.git
Summarypython bn256
upload_time2024-06-24 10:16:56
maintainerNone
docs_urlNone
authorHan Zhichao
requires_pythonNone
licenseMIT License
keywords bn256 python-bn256 hibe
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Bn256 of Python

This package is a fully tested python edition of Golang crypto/bn256.

## How to install
```shell
pip install bn256
```

## How to Use

```python
from bn256 import G1, G2, GT

k1, g1 = G1.random_g1()
k2, g2 = G2.random_g2()

gt = GT.pair(g1, g2)

print(gt.marshal().hex())
```

## Refer

- [crypto/bn256](https://pkg.go.dev/golang.org/x/crypto/bn256)
- [randombit/pairings.py](https://github.com/randombit/pairings.py/blob/master/bn256.py)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hanzhichao/bn256.git",
    "name": "bn256",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "bn256, python-bn256, hibe",
    "author": "Han Zhichao",
    "author_email": "superhin@126.com",
    "download_url": "https://files.pythonhosted.org/packages/e4/44/83b30abb19462aa26517d4c3d19790ebc1a89bb9f7d259fa4f551db123a3/bn256-0.1.1.tar.gz",
    "platform": null,
    "description": "# Bn256 of Python\n\nThis package is a fully tested python edition of Golang crypto/bn256.\n\n## How to install\n```shell\npip install bn256\n```\n\n## How to Use\n\n```python\nfrom bn256 import G1, G2, GT\n\nk1, g1 = G1.random_g1()\nk2, g2 = G2.random_g2()\n\ngt = GT.pair(g1, g2)\n\nprint(gt.marshal().hex())\n```\n\n## Refer\n\n- [crypto/bn256](https://pkg.go.dev/golang.org/x/crypto/bn256)\n- [randombit/pairings.py](https://github.com/randombit/pairings.py/blob/master/bn256.py)\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "python bn256",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/hanzhichao/bn256.git"
    },
    "split_keywords": [
        "bn256",
        " python-bn256",
        " hibe"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e44483b30abb19462aa26517d4c3d19790ebc1a89bb9f7d259fa4f551db123a3",
                "md5": "39f92080848ac2e07ccadc4a316e0124",
                "sha256": "952da93a0ff9e1ce0e4f706c7e974c846b46d415be4ee62679d2c3fbe157ca6c"
            },
            "downloads": -1,
            "filename": "bn256-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "39f92080848ac2e07ccadc4a316e0124",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 42277,
            "upload_time": "2024-06-24T10:16:56",
            "upload_time_iso_8601": "2024-06-24T10:16:56.868965Z",
            "url": "https://files.pythonhosted.org/packages/e4/44/83b30abb19462aa26517d4c3d19790ebc1a89bb9f7d259fa4f551db123a3/bn256-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-24 10:16:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hanzhichao",
    "github_project": "bn256",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "bn256"
}
        
Elapsed time: 0.26679s