Class: BSV::Identity::ClientOptions
- Inherits:
-
Object
- Object
- BSV::Identity::ClientOptions
- Defined in:
- lib/bsv/identity/types.rb
Overview
Configuration options for an IdentityClient instance.
Constant Summary collapse
- DEFAULT =
Default options matching the TS SDK DEFAULT_IDENTITY_CLIENT_OPTIONS constant.
new( protocol_id: [1, 'identity'].freeze, key_id: '1', token_amount: 1, output_index: 0 ).freeze
Instance Attribute Summary collapse
-
#key_id ⇒ String
readonly
Key identifier within the protocol.
-
#output_index ⇒ Integer
readonly
Output index within the token transaction.
-
#protocol_id ⇒ Array
readonly
BRC-42/43 wallet protocol identifier, e.g.
-
#token_amount ⇒ Integer
readonly
Token amount in satoshis for identity operations.
Instance Method Summary collapse
-
#initialize(protocol_id:, key_id:, token_amount:, output_index:) ⇒ ClientOptions
constructor
A new instance of ClientOptions.
Constructor Details
#initialize(protocol_id:, key_id:, token_amount:, output_index:) ⇒ ClientOptions
Returns a new instance of ClientOptions.
102 103 104 105 106 107 |
# File 'lib/bsv/identity/types.rb', line 102 def initialize(protocol_id:, key_id:, token_amount:, output_index:) @protocol_id = protocol_id @key_id = key_id @token_amount = token_amount @output_index = output_index end |
Instance Attribute Details
#key_id ⇒ String (readonly)
Returns key identifier within the protocol.
90 91 92 |
# File 'lib/bsv/identity/types.rb', line 90 def key_id @key_id end |
#output_index ⇒ Integer (readonly)
Returns output index within the token transaction.
96 97 98 |
# File 'lib/bsv/identity/types.rb', line 96 def output_index @output_index end |
#protocol_id ⇒ Array (readonly)
Returns BRC-42/43 wallet protocol identifier, e.g. [1, ‘identity’].
87 88 89 |
# File 'lib/bsv/identity/types.rb', line 87 def protocol_id @protocol_id end |
#token_amount ⇒ Integer (readonly)
Returns token amount in satoshis for identity operations.
93 94 95 |
# File 'lib/bsv/identity/types.rb', line 93 def token_amount @token_amount end |