Class: Nis::Transaction::MultisigSignature

Inherits:
Object
  • Object
show all
Includes:
Mixin::Struct
Defined in:
lib/nis/transaction/multisig_signature.rb

Overview

Constant Summary collapse

TYPE =

4098 (multisig signature transaction)

0x1002

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixin::Struct

#[], #to_hash, #to_json

Constructor Details

#initialize(other_hash, other_account, signer, network: :testnet) ⇒ MultisigSignature



28
29
30
31
32
33
34
35
36
# File 'lib/nis/transaction/multisig_signature.rb', line 28

def initialize(other_hash, , signer, network: :testnet)
  @type = TYPE
  @network = network

  @otherHash = { data: other_hash }
  @otherAccount = 
  @signer = signer
  @fee = Nis::Fee::Multisig.new(self)
end

Instance Attribute Details

#deadlineInteger



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def deadline
  @deadline
end

#feeInteger



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def fee
  @fee
end

#networkObject

Returns the value of attribute network.



16
17
18
# File 'lib/nis/transaction/multisig_signature.rb', line 16

def network
  @network
end

#otherAccountString Also known as: other_account



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def otherAccount
  @otherAccount
end

#otherHashString



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def otherHash
  @otherHash
end

#signatureString



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def signature
  @signature
end

#signerString



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def signer
  @signer
end

#timeStampInteger Also known as: timestamp



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def timeStamp
  @timeStamp
end

#typeInteger



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def type
  @type
end

#versionInteger



12
13
14
# File 'lib/nis/transaction/multisig_signature.rb', line 12

def version
  @version
end

Instance Method Details

#other_hashString



20
21
22
# File 'lib/nis/transaction/multisig_signature.rb', line 20

def otherHash
  @otherHash
end

#other_hash=String



21
22
23
# File 'lib/nis/transaction/multisig_signature.rb', line 21

def otherHash=(value)
  @otherHash = value
end