Module: LiabilityProof

Defined in:
lib/liability-proof.rb,
lib/liability-proof/tree.rb,
lib/liability-proof/version.rb,
lib/liability-proof/verifier.rb,
lib/liability-proof/generator.rb,
lib/liability-proof/tree/node.rb,
lib/liability-proof/pretty_printer.rb,
lib/liability-proof/tree/leaf_node.rb,
lib/liability-proof/tree/internal_node.rb

Defined Under Namespace

Classes: Generator, PrettyPrinter, Tree, Verifier

Constant Summary collapse

VERSION =
'0.0.9'

Class Method Summary collapse

Class Method Details

.sha256_base64(message) ⇒ Object



14
15
16
# File 'lib/liability-proof.rb', line 14

def sha256_base64(message)
  OpenSSL::Digest::SHA256.new.digest(message).unpack('H*').first
end