Module: OpenAssets::Util

Defined in:
lib/openassets/util.rb

Constant Summary collapse

OA_VERSION_BYTE =

0x23

'17'
OA_VERSION_BYTE_TESTNET =

0x115

'73'

Class Method Summary collapse

Class Method Details

.script_to_asset_id(script) ⇒ Object



9
10
11
# File 'lib/openassets/util.rb', line 9

def script_to_asset_id(script)
  hash_to_asset_id(Bitcoin.hash160(script))
end