Module: CryptoHelper

Defined in:
lib/crypto-lite/helper.rb

Instance Method Summary collapse

Instance Method Details

#base58(*args, **kwargs) ⇒ Object



21
# File 'lib/crypto-lite/helper.rb', line 21

def base58( *args, **kwargs )      Crypto.base58( *args, **kwargs ); end

#base58check(*args, **kwargs) ⇒ Object



22
# File 'lib/crypto-lite/helper.rb', line 22

def base58check( *args, **kwargs ) Crypto.base58check( *args, **kwargs ); end

#hash160(*args, **kwargs) ⇒ Object



16
# File 'lib/crypto-lite/helper.rb', line 16

def hash160( *args, **kwargs )    Crypto.hash160( *args, **kwargs ); end

#hash256(*args, **kwargs) ⇒ Object



18
# File 'lib/crypto-lite/helper.rb', line 18

def hash256( *args, **kwargs )    Crypto.hash256( *args, **kwargs ); end

#keccak256(*args, **kwargs) ⇒ Object



10
# File 'lib/crypto-lite/helper.rb', line 10

def keccak256( *args, **kwargs )    Crypto.keccak256( *args, **kwargs ); end

#rmd160(*args, **kwargs) ⇒ Object Also known as: ripemd160



12
# File 'lib/crypto-lite/helper.rb', line 12

def rmd160( *args, **kwargs )    Crypto.rmd160( *args, **kwargs ); end

#sha256(*args, **kwargs) ⇒ Object

add convenience “top-level” helpers



7
# File 'lib/crypto-lite/helper.rb', line 7

def sha256( *args, **kwargs )    Crypto.sha256( *args, **kwargs ); end

#sha3_256(*args, **kwargs) ⇒ Object



8
# File 'lib/crypto-lite/helper.rb', line 8

def sha3_256( *args, **kwargs )    Crypto.sha3_256( *args, **kwargs ); end