module CryptoHelper

Public Instance Methods

base58( *args, **kwargs ) click to toggle source
# File lib/crypto-lite/helper.rb, line 21
def base58( *args, **kwargs )      Crypto.base58( *args, **kwargs ); end
base58check( *args, **kwargs ) click to toggle source
# File lib/crypto-lite/helper.rb, line 22
def base58check( *args, **kwargs ) Crypto.base58check( *args, **kwargs ); end
hash160( *args, **kwargs ) click to toggle source
# File lib/crypto-lite/helper.rb, line 16
def hash160( *args, **kwargs )    Crypto.hash160( *args, **kwargs ); end
hash256( *args, **kwargs ) click to toggle source
# File lib/crypto-lite/helper.rb, line 18
def hash256( *args, **kwargs )    Crypto.hash256( *args, **kwargs ); end
keccak256( *args, **kwargs ) click to toggle source
# File lib/crypto-lite/helper.rb, line 10
def keccak256( *args, **kwargs )    Crypto.keccak256( *args, **kwargs ); end
ripemd160( *args, **kwargs )

def ripemd160( input ) Crypto.rmd160( input ); end

Alias for: rmd160
rmd160( *args, **kwargs ) click to toggle source
# File lib/crypto-lite/helper.rb, line 12
def rmd160( *args, **kwargs )    Crypto.rmd160( *args, **kwargs ); end
Also aliased as: ripemd160
sha256( *args, **kwargs ) click to toggle source

add convenience “top-level” helpers

# File lib/crypto-lite/helper.rb, line 7
def sha256( *args, **kwargs )    Crypto.sha256( *args, **kwargs ); end
sha3_256( *args, **kwargs ) click to toggle source
# File lib/crypto-lite/helper.rb, line 8
def sha3_256( *args, **kwargs )    Crypto.sha3_256( *args, **kwargs ); end