Class: TonSdk::Crypto::ParamsOfHDKeyDeriveFromXPrv

Inherits:
Object
  • Object
show all
Defined in:
lib/ton_sdk_client/crypto.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xprv:, child_index:, hardened:) ⇒ ParamsOfHDKeyDeriveFromXPrv

Returns a new instance of ParamsOfHDKeyDeriveFromXPrv.



154
155
156
157
158
# File 'lib/ton_sdk_client/crypto.rb', line 154

def initialize(xprv:, child_index:, hardened:)
  @xprv = xprv
  @child_index = child_index
  @hardened = hardened
end

Instance Attribute Details

#child_indexObject (readonly)

Returns the value of attribute child_index.



152
153
154
# File 'lib/ton_sdk_client/crypto.rb', line 152

def child_index
  @child_index
end

#hardenedObject (readonly)

Returns the value of attribute hardened.



152
153
154
# File 'lib/ton_sdk_client/crypto.rb', line 152

def hardened
  @hardened
end

#xprvObject (readonly)

Returns the value of attribute xprv.



152
153
154
# File 'lib/ton_sdk_client/crypto.rb', line 152

def xprv
  @xprv
end

Instance Method Details

#to_hObject



160
161
162
163
164
165
166
# File 'lib/ton_sdk_client/crypto.rb', line 160

def to_h
  {
    xprv: @xprv,
    child_index: @child_index,
    hardened: @hardened
  }
end