https://github.com/jcnelson/rust-ecvrf
ECVRF implementation with curve25519-dalek and Ristretto
https://github.com/jcnelson/rust-ecvrf
Last synced: 2 months ago
JSON representation
ECVRF implementation with curve25519-dalek and Ristretto
- Host: GitHub
- URL: https://github.com/jcnelson/rust-ecvrf
- Owner: jcnelson
- License: gpl-3.0
- Created: 2018-12-10T22:08:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-10T22:20:33.000Z (over 7 years ago)
- Last Synced: 2025-03-05T04:31:47.645Z (over 1 year ago)
- Language: Rust
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-ecvrf
ECVRF implementation with curve25519-dalek and Ristretto
# Build
```bash
$ cargo build
```
# Usage
```bash
$ rust-ecvrf secret
47553650386c84fd436282419d896ae1589112d73e15eaba0be36ec547a00e31
```
```bash
$ rust-ecvrf pubkey 47553650386c84fd436282419d896ae1589112d73e15eaba0be36ec547a00e31
015da05267e9187dcb362b736609bfb3d3d55c80829af8f258a49ff9770f2fe4
```
```bash
$ rust-ecvrf prove 47553650386c84fd436282419d896ae1589112d73e15eaba0be36ec547a00e31 "hello world"
904eedfe4973e2aa0eaaa8e58d30de0dd7c78816c3690c1c94f2554854daa22dd7dd6b89d2ebcbf6f36f4f773d6af446e18b66111f32762d76c5eb1d041730a59bdca34e141cbf887b630bcec701b008
```
```bash
$ PROOF="904eedfe4973e2aa0eaaa8e58d30de0dd7c78816c3690c1c94f2554854daa22dd7dd6b89d2ebcbf6f36f4f773d6af446e18b66111f32762d76c5eb1d041730a59bdca34e141cbf887b630bcec701b008"
$ PUBKEY="015da05267e9187dcb362b736609bfb3d3d55c80829af8f258a49ff9770f2fe4"
$ rust-ecvrf verify "$PUBKEY" "$PROOF" "hello world"
true
$ rust-ecvrf verify "$PUBKEY" "$PROOF" "nope"
false
```