Skip to content

Commit

Permalink
update examples in ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed May 30, 2022
1 parent 567ec61 commit 5be679e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@

A rubygem for verifying [Minisign](http://jedisct1.github.io/minisign/) signatures.

## Installation & Usage

```
irb -Ilib -rminisign
gem install minisign
```

```rb
require 'minisign'
pk = Minisign::PublicKey.new('RWTg6JXWzv6GDtDphRQ/x7eg0LaWBcTxPZ7i49xEeiqXVcR+r79OZRWM')
signature = Minisign::Signature.new(File.read("test/example.txt.minisig"))
message = File.read("test/example.txt")
pk.verify(signature, message)
```

## Local Development

```
irb -Ilib -rminisign
```

0 comments on commit 5be679e

Please sign in to comment.