Class: ArkEcosystem::Crypto::Deserialisers::IPFS
- Defined in:
- lib/arkecosystem/crypto/deserialisers/ipfs.rb
Overview
The deserialiser for IPFS transactions.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ArkEcosystem::Crypto::Deserialisers::Base
Instance Method Details
#deserialise ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/arkecosystem/crypto/deserialisers/ipfs.rb', line 6 def deserialise @transaction[:asset] = {} dag_length = @binary.unpack("C#{@asset_offset / 2}Q<").last & 0xff @transaction[:asset][:dag] = @serialised[@asset_offset + 2, dag_length * 2] ArkEcosystem::Crypto::Crypto.parse_signatures(@serialised, @transaction, @asset_offset + 2 + length * 2) end |