Class: ArkEcosystem::Crypto::Builder::SecondSignatureRegistration

Inherits:
Transaction
  • Object
show all
Defined in:
lib/arkecosystem/crypto/builder/second_signature_registration.rb

Overview

The builder for second signature registration transactions.

Instance Attribute Summary

Attributes inherited from Transaction

#amount, #asset, #fee, #id, #recipient_id, #sender_public_key, #sign_signature, #signature, #timestamp, #vendor_field

Instance Method Summary collapse

Methods inherited from Transaction

#initialize, #second_sign, #second_verify, #sign, #sign_and_create_id, #to_hash, #to_params, #verify

Constructor Details

This class inherits a constructor from ArkEcosystem::Crypto::Builder::Transaction

Instance Method Details

#set_second_secret(second_secret) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/arkecosystem/crypto/builder/second_signature_registration.rb', line 12

def set_second_secret(second_secret)
  @asset = {
    signature: {
      public_key: ArkEcosystem::Crypto::Identity::PublicKey.from_secret_as_hex(second_secret)
    }
  }
  self
end

#typeObject



21
22
23
# File 'lib/arkecosystem/crypto/builder/second_signature_registration.rb', line 21

def type
  ArkEcosystem::Crypto::Enums::Types::SECOND_SIGNATURE_REGISTRATION
end