An open API service indexing awesome lists of open source software.

https://github.com/owlinux1000/ecc

Elliptic Curve(+ Cryptography) library
https://github.com/owlinux1000/ecc

Last synced: 12 months ago
JSON representation

Elliptic Curve(+ Cryptography) library

Awesome Lists containing this project

README

          

# Ecc

## Install

```
gem install ecc
```

## Usage

```
curve = Ecc::Curve.new(a = 3, b = 4, fp = 7)
a = Ecc::Point.new(curve, 0, 2)
b = Ecc::Point.new(curve 0, 2)
c = a + b
d = c * 2
puts curve.point_order(Ecc::Point.new(curve, 0, 2))
puts curve.rational_points
puts curve.order
```

## Documentation

[http://www.rubydoc.info/github/owlinux1000/ecc/master](http://www.rubydoc.info/github/owlinux1000/ecc/master)