Module: TencentTrustsql
- Includes:
- IOFormatter, Tools::KeyGenerator, Tools::SignGenerator
- Defined in:
- lib/tencent_trustsql.rb,
lib/tencent_trustsql.rb,
lib/tencent_trustsql/api.rb,
lib/tencent_trustsql/client.rb,
lib/tencent_trustsql/config.rb,
lib/tencent_trustsql/version.rb,
lib/tencent_trustsql/api/tpki.rb,
lib/tencent_trustsql/i_o_formatter.rb,
lib/tencent_trustsql/api/asset_issue.rb,
lib/tencent_trustsql/algorithm/sha256.rb,
lib/tencent_trustsql/i_o_formatter/input.rb,
lib/tencent_trustsql/tools/key_generator.rb,
lib/tencent_trustsql/i_o_formatter/output.rb,
lib/tencent_trustsql/tools/sign_generator.rb
Defined Under Namespace
Modules: Algorithm, Api, IOFormatter, Tools Classes: Client, Config, Error
Constant Summary collapse
- CURVE =
ECDSA::Group::Secp256k1
- VERSION =
"0.1.5"
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Methods included from IOFormatter
Methods included from Tools::SignGenerator
Methods included from Tools::KeyGenerator
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
5 6 7 |
# File 'lib/tencent_trustsql/config.rb', line 5 def config @config end |
Class Method Details
.configure {|self.config ||= Config.new| ... } ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/tencent_trustsql/config.rb', line 7 def configure yield self.config ||= Config.new # generate reader for config # TencentTrustsql.config.mch_private_key == TencentTrustsql.mch_private_key config.mch_private_key_local = input_formatter.localize_private_key(config.mch_private_key) config.instance_variables.each do |var_sym| p "define reader for #{var_sym}" singleton_class.define_method var_sym.to_s.gsub(/^@/, '').to_sym do config.instance_variable_get var_sym end end end |