Stampery
Stampery API for Ruby. Notarize all your data using the blockchain!
Installation
Add this line to your application's Gemfile:
gem 'stampery'
And then execute:
$ bundle
Or install it yourself as:
$ gem install stampery
Usage
require 'stampery'
stampery = Client.new '2d4cdee7-38b0-4a66-da87-c1ab05b43768', 'prod'
stampery.on :proof do |hash, proof| puts 'Received proof for' puts hash puts 'Proof' puts proof.to_s end
stampery.on :error do |err| puts "Woot: #err" end
stampery.on :ready do digest = stampery.hash 'Hello, blockchain!' stampery.stamp digest end
stampery.start
Official implementations
Feedback
Ping us at [email protected] and we’ll help you! 😃
License
Code released under the MIT license.
Copyright 2016 Stampery