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
- Host: GitHub
- URL: https://github.com/owlinux1000/ecc
- Owner: owlinux1000
- License: mit
- Created: 2017-10-13T13:28:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-15T16:04:07.000Z (over 8 years ago)
- Last Synced: 2025-01-16T10:35:55.333Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
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)