ic_agent 0.1.4 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/ic_agent.rb CHANGED
@@ -30,10 +30,15 @@ module IcAgent
30
30
  class Error < StandardError; end
31
31
  class ValueError < StandardError; end
32
32
  class TypeError < StandardError; end
33
+ class AgentError < StandardError; end
34
+ class BaseException < StandardError; end
33
35
 
34
- IC_REQUEST_DOMAIN_SEPARATOR = "\x0Aic-request".freeze
35
- IC_ROOT_KEY = "\x4E\x9A\xF9\x9F\x06\x13\x26\x81\xE7\xD2\x55\x2A\x26\x17\x98\x51\xE9\xC3\x79\xB3\xC7\xBE\x88\x27\xB8\x35\x17\xFC\x84\x4E\x4C\x4F".freeze
36
+ IC_REQUEST_DOMAIN_SEPARATOR = "\x0Aic-request"
37
+ IC_ROOT_KEY = "\x4E\x9A\xF9\x9F\x06\x13\x26\x81\xE7\xD2\x55\x2A\x26\x17\x98\x51\xE9\xC3\x79\xB3\xC7\xBE\x88\x27\xB8\x35\x17\xFC\x84\x4E\x4C\x4F"
36
38
  IC_PUBKEY_ED_DER_HEAD = '302a300506032b6570032100'
37
39
  IC_PUBKEY_SECP_DER_HERD = '3056301006072a8648ce3d020106052b8104000a034200'
38
40
  DEFAULT_POLL_TIMEOUT_SECS = 60
41
+ IC_STATE_ROOT_DOMAIN_SEPARATOR = "\ric-state-root".str2hex
42
+ BLS_KEY_LENGTH = 96
43
+ BLS_DER_PREFIX = '308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100'
39
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ic_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry.Tu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-25 00:00:00.000000000 Z
11
+ date: 2023-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base32
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.0.20
41
+ - !ruby/object:Gem::Dependency
42
+ name: bls12-381
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.3.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.3.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: cbor
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -272,6 +286,7 @@ metadata:
272
286
  homepage_uri: https://github.com/tuminfei/ic_agent
273
287
  source_code_uri: https://github.com/tuminfei/ic_agent
274
288
  changelog_uri: https://github.com/tuminfei/ic_agent
289
+ documentation_uri: https://tuminfei.github.io/ic_agent.github.com/
275
290
  post_install_message:
276
291
  rdoc_options: []
277
292
  require_paths: