Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stampery

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stampery

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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'

# Sign up and get your secret token at https://api-dashboard.stampery.com
stampery = Client.new 'user_secret'

stampery.on :proof do |hash, proof|
  puts "Received proof for \n#{hash}\n\n"
  puts 'Proof'
  puts "Version: #{proof['version']}\nSiblings: #{proof['siblings']}\nRoot: #{proof['root']}"
  puts "Anchor:\n  Chain: #{proof['anchor']['chain']}\n  Tx: #{proof['anchor']['tx']}\n"
  # validate proof
  valid = stampery.prove hash, proof
  puts "Prove validity #{valid}\n\n"
end

stampery.on :error do |err|
  puts "Woot: #{err}"
end

stampery.on :ready do
  digest = stampery.hash 'Hello, blockchain!' + Random.rand().to_s
  stampery.stamp digest
end

stampery.start

Official implementations

  • NodeJS
  • PHP
  • ruby
  • Python
  • Elixir
  • Java
  • Go

Feedback

Ping us at support@stampery.com and we’ll help you! 😃

License

Code released under the MIT license.

Copyright 2016 Stampery

FAQs

Package last updated on 31 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc