Class: EverSdk::Crypto::ParamsOfHDKeyDeriveFromXPrv
- Inherits:
-
Object
- Object
- EverSdk::Crypto::ParamsOfHDKeyDeriveFromXPrv
- Defined in:
- lib/ever_sdk_client/crypto.rb
Instance Attribute Summary collapse
-
#child_index ⇒ Object
readonly
Returns the value of attribute child_index.
-
#hardened ⇒ Object
readonly
Returns the value of attribute hardened.
-
#xprv ⇒ Object
readonly
Returns the value of attribute xprv.
Instance Method Summary collapse
-
#initialize(xprv:, child_index:, hardened:) ⇒ ParamsOfHDKeyDeriveFromXPrv
constructor
A new instance of ParamsOfHDKeyDeriveFromXPrv.
- #to_h ⇒ Object
Constructor Details
#initialize(xprv:, child_index:, hardened:) ⇒ ParamsOfHDKeyDeriveFromXPrv
Returns a new instance of ParamsOfHDKeyDeriveFromXPrv.
154 155 156 157 158 |
# File 'lib/ever_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_index ⇒ Object (readonly)
Returns the value of attribute child_index.
152 153 154 |
# File 'lib/ever_sdk_client/crypto.rb', line 152 def child_index @child_index end |
#hardened ⇒ Object (readonly)
Returns the value of attribute hardened.
152 153 154 |
# File 'lib/ever_sdk_client/crypto.rb', line 152 def hardened @hardened end |
#xprv ⇒ Object (readonly)
Returns the value of attribute xprv.
152 153 154 |
# File 'lib/ever_sdk_client/crypto.rb', line 152 def xprv @xprv end |
Instance Method Details
#to_h ⇒ Object
160 161 162 163 164 165 166 |
# File 'lib/ever_sdk_client/crypto.rb', line 160 def to_h { xprv: @xprv, child_index: @child_index, hardened: @hardened } end |