Class: ArkEcosystem::Crypto::Serialisers::IPFS
- Defined in:
- lib/arkecosystem/crypto/serialisers/ipfs.rb
Overview
The serialiser for IPFS transactions.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ArkEcosystem::Crypto::Serialisers::Base
Instance Method Details
#serialise ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/arkecosystem/crypto/serialisers/ipfs.rb', line 6 def serialise dag = @transaction[:asset][:ipfs][:dag] @bytes << [dag.length / 2].pack('C') @bytes << BTC::Data.data_from_hex(dag) @bytes end |