Class: FlowClient::AccountKey

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_client/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(public_key: nil, index: nil, sequence_number: nil, weight: 1000, revoked: false, hash_algo: FlowClient::Crypto::HashAlgos::SHA3_256) ⇒ AccountKey

Returns a new instance of AccountKey.



10
11
12
13
14
15
16
17
# File 'lib/flow_client/account.rb', line 10

def initialize(public_key: nil, index: nil, sequence_number: nil, weight: 1000, revoked: false, hash_algo: FlowClient::Crypto::HashAlgos::SHA3_256)
  @public_key = public_key
  @index = index
  @sequence_number = sequence_number
  @weight = weight
  @revoked = revoked
  @hash_algo = hash_algo
end

Instance Attribute Details

#hash_algoObject

Returns the value of attribute hash_algo.



5
6
7
# File 'lib/flow_client/account.rb', line 5

def hash_algo
  @hash_algo
end

#indexObject

Returns the value of attribute index.



5
6
7
# File 'lib/flow_client/account.rb', line 5

def index
  @index
end

#public_keyObject

Returns the value of attribute public_key.



5
6
7
# File 'lib/flow_client/account.rb', line 5

def public_key
  @public_key
end

#revokedObject

Returns the value of attribute revoked.



5
6
7
# File 'lib/flow_client/account.rb', line 5

def revoked
  @revoked
end

#sequence_numberObject

Returns the value of attribute sequence_number.



5
6
7
# File 'lib/flow_client/account.rb', line 5

def sequence_number
  @sequence_number
end

#sign_algoObject

Returns the value of attribute sign_algo.



5
6
7
# File 'lib/flow_client/account.rb', line 5

def sign_algo
  @sign_algo
end

#weightObject

Returns the value of attribute weight.



5
6
7
# File 'lib/flow_client/account.rb', line 5

def weight
  @weight
end