Method: Trx::Utils#sha256

Defined in:
lib/trx/utils.rb

#sha256(value) ⇒ Object



35
36
37
38
39
40
# File 'lib/trx/utils.rb', line 35

def sha256(value)
  hash = OpenSSL::Digest.new("SHA256")
  hash.update(value)

  hash
end