# Title `v1.2.0-pre0` - Network Robustness, Fog 1.2.0, Apple Silicon/M1 & Mac Catalyst # Description Added a way for implementing apps to pass in there own `HttpRequester` which can be useful for network robustness. Subspec `LibMobileCoin` now supports Apple Silicon/M1 and Mac Catalyst. Code changes to support Fog v1.2.0. #### `pre1` Changes - Uses the `v1.2.0-pre1` version of `LibMobileCoin` which supports a higher version of `GRPC`. - Added bridging headers - Updated Gemfile/Makefile to use the latest `cocoapods` version `1.11.2` #### Future Work Fix the `docs` steps in the circleci build process. Will require `jazzy` related fixes and testing on Xcode 11. # Changes ## Network Robustness Adds a separate `HTTP` networking architecture. An object conforming to `protocol HttpRequester` can be provided to the `NetworkConfig` object when the `MobileCoinClient` is created. Then the `TransportProtocolOption` can be changed from `grpc` to `http`. > NOTE: This branch will not run because it depends on changes in other submodules that have not yet been merged. ### `HttpRequester` Implementing apps/frameworks should provide an object conforming to this protocol. Our `RestApiRequester` wraps around an `HttpRequester` to communicate with with our services using `protobuf`s. ``` Sources/Network/HttpConnection/HttpRequester.swift ``` ### Attested & Auth Connection Wrappers `HTTP` versions of the Auth & Attested wrapper classes. These protocol and their default implementations handle the logic paths needed for authentication/attestation and re-authentication/attestation: > Can become generic ``` Sources/Network/HttpConnection/ArbitraryHttpConnection.swift Sources/Network/HttpConnection/AttestedHttpConnection.swift ``` ### Networking Protocols Separate code-paths for `HTTP` versions of the networking protocols: ``` Sources/Network/HttpConnection/HttpCallable/AttestedHttpCallable.swift Sources/Network/HttpConnection/HttpCallable/AuthHttpCallable.swift Sources/Network/HttpConnection/HttpCallable/AuthHttpCallableClientWrapper.swift Sources/Network/HttpConnection/HttpCallable/HttpCallable.swift ``` `HTTP` "interfaces" that closely mimic functionality from `GRPC`. Allows us to re-use more of our existing patterns. ``` Sources/Network/HttpConnection/HTTPInterface/HTTPCallOptions.swift Sources/Network/HttpConnection/HTTPInterface/HTTPClient.swift Sources/Network/HttpConnection/HTTPInterface/HTTPClientCall.swift Sources/Network/HttpConnection/HTTPInterface/HTTPMethod.swift Sources/Network/HttpConnection/HTTPInterface/HTTPResponse.swift Sources/Network/HttpConnection/HTTPInterface/HTTPStatus.swift Sources/Network/HttpConnection/HTTPInterface/HTTPUnaryCall.swift ``` ### `HTTP` Connection Implementations Wrapper classes that interface directly with `protoc-swift` generated `.swift` files for our protobuf models. ``` Sources/Network/HttpConnection/HttpConnection.swift Sources/Network/HttpConnection/HttpConnections/BlockchainHttpConnection.swift Sources/Network/HttpConnection/HttpConnections/ConsensusHttpConnection.swift Sources/Network/HttpConnection/HttpConnections/FogBlockHttpConnection.swift Sources/Network/HttpConnection/HttpConnections/FogKeyImageHttpConnection.swift Sources/Network/HttpConnection/HttpConnections/FogMerkleProofHttpConnection.swift Sources/Network/HttpConnection/HttpConnections/FogReportHttpConnection.swift Sources/Network/HttpConnection/HttpConnections/FogUntrustedTxOutHttpConnection.swift Sources/Network/HttpConnection/HttpConnections/FogViewHttpConnection.swift ``` ### `HTTP` versions of `protoc-swift` generated models The GRPC versions of these are generated by `protoc-swift`. The HTTP versions were edited by hand to work with the `HTTP` Connections implementations. > **This could be automated preferably with a `protoc-swift` plugin template but also `sed`/`VIM` if needed.** ``` Sources/Network/HttpConnection/HttpConnections/Http Proto Generated/attest.http.swift Sources/Network/HttpConnection/HttpConnections/Http Proto Generated/consensus_client.http.swift Sources/Network/HttpConnection/HttpConnections/Http Proto Generated/consensus_common.http.swift Sources/Network/HttpConnection/HttpConnections/Http Proto Generated/ledger.http.swift Sources/Network/HttpConnection/HttpConnections/Http Proto Generated/report.http.swift Sources/Network/HttpConnection/HttpConnections/Http Proto Generated/view.http.swift ``` ## Fog Updates The latest version of `fog` changes the name of a protobuf `FogLedger_Block` -> `FogLedger_BlockData`. ### Compressed Commitment The `TxOut` compressed commitment is no longer sent in the protobuf message because it can be reconstructed with its constituent parts (+ the user's `view_private_key`) We now reconstruct the commitment in several places whereas before it was being returned from the decoded protobuf message. Lastly some function signatures into `LibMobileCoin` were updated to adjust to the changes. ## Miscellaneous New MrEnclave values Support for Apple Silicon/M1 & Mac Catalyst ## Unit Tests One unit test was removed. It creates a TxOut and tries to unmask the value with an **incorrect** private view key. The return value should be 'nil' but is noise. It will require a change in the rust code and should be implemented in a future release. Some objects were re-serialized to match the new TxOut structure. Credentials are not required for `consensus` so this has been changed in the `NetworkConfig` Tests can be run with `TransportProtocol == .http` by changing the default value in `NetworkConfig`
297 lines
7.7 KiB
Plaintext
297 lines
7.7 KiB
Plaintext
GIT
|
|
remote: https://github.com/mobilecoinofficial/cocoapods-binary.git
|
|
revision: 748a64cc890cfaee59cdd67e80d9ade82b1b179b
|
|
tag: v0.4.4.rev5
|
|
specs:
|
|
cocoapods-binary (0.4.4)
|
|
cocoapods (>= 1.5.0, < 2.0)
|
|
fourflusher (~> 2.0)
|
|
xcpretty (~> 0.3.0)
|
|
|
|
GEM
|
|
specs:
|
|
|
|
GEM
|
|
remote: https://rubygems.org/
|
|
specs:
|
|
CFPropertyList (3.0.3)
|
|
RubyInline (3.12.5)
|
|
ZenTest (~> 4.3)
|
|
ZenTest (4.12.0)
|
|
activesupport (4.2.11.3)
|
|
i18n (~> 0.7)
|
|
minitest (~> 5.1)
|
|
thread_safe (~> 0.3, >= 0.3.4)
|
|
tzinfo (~> 1.1)
|
|
addressable (2.7.0)
|
|
public_suffix (>= 2.0.2, < 5.0)
|
|
algoliasearch (1.27.5)
|
|
httpclient (~> 2.8, >= 2.8.3)
|
|
json (>= 1.5.1)
|
|
artifactory (3.0.15)
|
|
atomos (0.1.3)
|
|
aws-eventstream (1.1.1)
|
|
aws-partitions (1.470.0)
|
|
aws-sdk-core (3.114.3)
|
|
aws-eventstream (~> 1, >= 1.0.2)
|
|
aws-partitions (~> 1, >= 1.239.0)
|
|
aws-sigv4 (~> 1.1)
|
|
jmespath (~> 1.0)
|
|
aws-sdk-kms (1.44.0)
|
|
aws-sdk-core (~> 3, >= 3.112.0)
|
|
aws-sigv4 (~> 1.1)
|
|
aws-sdk-s3 (1.96.1)
|
|
aws-sdk-core (~> 3, >= 3.112.0)
|
|
aws-sdk-kms (~> 1)
|
|
aws-sigv4 (~> 1.1)
|
|
aws-sigv4 (1.2.3)
|
|
aws-eventstream (~> 1, >= 1.0.2)
|
|
babosa (1.0.4)
|
|
claide (1.0.3)
|
|
cocoapods (1.9.3)
|
|
activesupport (>= 4.0.2, < 5)
|
|
claide (>= 1.0.2, < 2.0)
|
|
cocoapods-core (= 1.9.3)
|
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
cocoapods-downloader (>= 1.2.2, < 2.0)
|
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
cocoapods-search (>= 1.0.0, < 2.0)
|
|
cocoapods-stats (>= 1.0.0, < 2.0)
|
|
cocoapods-trunk (>= 1.4.0, < 2.0)
|
|
cocoapods-try (>= 1.1.0, < 2.0)
|
|
colored2 (~> 3.1)
|
|
escape (~> 0.0.4)
|
|
fourflusher (>= 2.3.0, < 3.0)
|
|
gh_inspector (~> 1.0)
|
|
molinillo (~> 0.6.6)
|
|
nap (~> 1.0)
|
|
ruby-macho (~> 1.4)
|
|
xcodeproj (>= 1.14.0, < 2.0)
|
|
cocoapods-core (1.9.3)
|
|
activesupport (>= 4.0.2, < 6)
|
|
algoliasearch (~> 1.0)
|
|
concurrent-ruby (~> 1.1)
|
|
fuzzy_match (~> 2.0.4)
|
|
nap (~> 1.0)
|
|
netrc (~> 0.11)
|
|
typhoeus (~> 1.0)
|
|
cocoapods-deintegrate (1.0.4)
|
|
cocoapods-downloader (1.4.0)
|
|
cocoapods-keys (2.2.1)
|
|
dotenv
|
|
osx_keychain
|
|
cocoapods-plugins (1.0.0)
|
|
nap
|
|
cocoapods-repo-update (0.0.4)
|
|
cocoapods (~> 1.0, >= 1.3.0)
|
|
cocoapods-search (1.0.0)
|
|
cocoapods-stats (1.1.0)
|
|
cocoapods-trunk (1.5.0)
|
|
nap (>= 0.8, < 2.0)
|
|
netrc (~> 0.11)
|
|
cocoapods-try (1.2.0)
|
|
colored (1.2)
|
|
colored2 (3.1.2)
|
|
commander (4.6.0)
|
|
highline (~> 2.0.0)
|
|
concurrent-ruby (1.1.8)
|
|
declarative (0.0.20)
|
|
digest-crc (0.6.3)
|
|
rake (>= 12.0.0, < 14.0.0)
|
|
domain_name (0.5.20190701)
|
|
unf (>= 0.0.5, < 1.0.0)
|
|
dotenv (2.7.6)
|
|
emoji_regex (3.2.2)
|
|
escape (0.0.4)
|
|
ethon (0.12.0)
|
|
ffi (>= 1.3.0)
|
|
excon (0.82.0)
|
|
faraday (1.4.2)
|
|
faraday-em_http (~> 1.0)
|
|
faraday-em_synchrony (~> 1.0)
|
|
faraday-excon (~> 1.1)
|
|
faraday-net_http (~> 1.0)
|
|
faraday-net_http_persistent (~> 1.1)
|
|
multipart-post (>= 1.2, < 3)
|
|
ruby2_keywords (>= 0.0.4)
|
|
faraday-cookie_jar (0.0.7)
|
|
faraday (>= 0.8.0)
|
|
http-cookie (~> 1.0.0)
|
|
faraday-em_http (1.0.0)
|
|
faraday-em_synchrony (1.0.0)
|
|
faraday-excon (1.1.0)
|
|
faraday-net_http (1.0.1)
|
|
faraday-net_http_persistent (1.1.0)
|
|
faraday_middleware (1.0.0)
|
|
faraday (~> 1.0)
|
|
fastimage (2.2.4)
|
|
fastlane (2.186.0)
|
|
CFPropertyList (>= 2.3, < 4.0.0)
|
|
addressable (>= 2.3, < 3.0.0)
|
|
artifactory (~> 3.0)
|
|
aws-sdk-s3 (~> 1.0)
|
|
babosa (>= 1.0.3, < 2.0.0)
|
|
bundler (>= 1.12.0, < 3.0.0)
|
|
colored
|
|
commander (~> 4.6)
|
|
dotenv (>= 2.1.1, < 3.0.0)
|
|
emoji_regex (>= 0.1, < 4.0)
|
|
excon (>= 0.71.0, < 1.0.0)
|
|
faraday (~> 1.0)
|
|
faraday-cookie_jar (~> 0.0.6)
|
|
faraday_middleware (~> 1.0)
|
|
fastimage (>= 2.1.0, < 3.0.0)
|
|
gh_inspector (>= 1.1.2, < 2.0.0)
|
|
google-apis-androidpublisher_v3 (~> 0.1)
|
|
google-apis-playcustomapp_v1 (~> 0.1)
|
|
google-cloud-storage (~> 1.31)
|
|
highline (~> 2.0)
|
|
json (< 3.0.0)
|
|
jwt (>= 2.1.0, < 3)
|
|
mini_magick (>= 4.9.4, < 5.0.0)
|
|
multipart-post (~> 2.0.0)
|
|
naturally (~> 2.2)
|
|
plist (>= 3.1.0, < 4.0.0)
|
|
rubyzip (>= 2.0.0, < 3.0.0)
|
|
security (= 0.1.3)
|
|
simctl (~> 1.6.3)
|
|
terminal-notifier (>= 2.0.0, < 3.0.0)
|
|
terminal-table (>= 1.4.5, < 2.0.0)
|
|
tty-screen (>= 0.6.3, < 1.0.0)
|
|
tty-spinner (>= 0.8.0, < 1.0.0)
|
|
word_wrap (~> 1.0.0)
|
|
xcodeproj (>= 1.13.0, < 2.0.0)
|
|
xcpretty (~> 0.3.0)
|
|
xcpretty-travis-formatter (>= 0.0.3)
|
|
ffi (1.15.0)
|
|
fourflusher (2.3.1)
|
|
fuzzy_match (2.0.4)
|
|
gh_inspector (1.1.3)
|
|
google-apis-androidpublisher_v3 (0.6.0)
|
|
google-apis-core (~> 0.1)
|
|
google-apis-core (0.3.0)
|
|
addressable (~> 2.5, >= 2.5.1)
|
|
googleauth (~> 0.14)
|
|
httpclient (>= 2.8.1, < 3.0)
|
|
mini_mime (~> 1.0)
|
|
representable (~> 3.0)
|
|
retriable (>= 2.0, < 4.0)
|
|
rexml
|
|
signet (~> 0.14)
|
|
webrick
|
|
google-apis-iamcredentials_v1 (0.4.0)
|
|
google-apis-core (~> 0.1)
|
|
google-apis-playcustomapp_v1 (0.3.0)
|
|
google-apis-core (~> 0.1)
|
|
google-apis-storage_v1 (0.4.0)
|
|
google-apis-core (~> 0.1)
|
|
google-cloud-core (1.6.0)
|
|
google-cloud-env (~> 1.0)
|
|
google-cloud-errors (~> 1.0)
|
|
google-cloud-env (1.5.0)
|
|
faraday (>= 0.17.3, < 2.0)
|
|
google-cloud-errors (1.1.0)
|
|
google-cloud-storage (1.32.0)
|
|
addressable (~> 2.5)
|
|
digest-crc (~> 0.4)
|
|
google-apis-iamcredentials_v1 (~> 0.1)
|
|
google-apis-storage_v1 (~> 0.1)
|
|
google-cloud-core (~> 1.6)
|
|
googleauth (>= 0.16.2, < 2.a)
|
|
mini_mime (~> 1.0)
|
|
googleauth (0.16.2)
|
|
faraday (>= 0.17.3, < 2.0)
|
|
jwt (>= 1.4, < 3.0)
|
|
memoist (~> 0.16)
|
|
multi_json (~> 1.11)
|
|
os (>= 0.9, < 2.0)
|
|
signet (~> 0.14)
|
|
highline (2.0.3)
|
|
http-cookie (1.0.4)
|
|
domain_name (~> 0.5)
|
|
httpclient (2.8.3)
|
|
i18n (0.9.5)
|
|
concurrent-ruby (~> 1.0)
|
|
jmespath (1.4.0)
|
|
json (2.5.1)
|
|
jwt (2.2.3)
|
|
memoist (0.16.2)
|
|
mini_magick (4.11.0)
|
|
mini_mime (1.1.0)
|
|
minitest (5.14.4)
|
|
molinillo (0.6.6)
|
|
multi_json (1.15.0)
|
|
multipart-post (2.0.0)
|
|
nanaimo (0.3.0)
|
|
nap (1.1.0)
|
|
naturally (2.2.1)
|
|
netrc (0.11.0)
|
|
os (1.1.1)
|
|
osx_keychain (1.0.2)
|
|
RubyInline (~> 3)
|
|
plist (3.6.0)
|
|
public_suffix (4.0.6)
|
|
rake (13.0.3)
|
|
representable (3.1.1)
|
|
declarative (< 0.1.0)
|
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
|
uber (< 0.2.0)
|
|
retriable (3.1.2)
|
|
rexml (3.2.5)
|
|
rouge (2.0.7)
|
|
ruby-macho (1.4.0)
|
|
ruby2_keywords (0.0.4)
|
|
rubyzip (2.3.0)
|
|
security (0.1.3)
|
|
signet (0.15.0)
|
|
addressable (~> 2.3)
|
|
faraday (>= 0.17.3, < 2.0)
|
|
jwt (>= 1.5, < 3.0)
|
|
multi_json (~> 1.10)
|
|
simctl (1.6.8)
|
|
CFPropertyList
|
|
naturally
|
|
terminal-notifier (2.0.0)
|
|
terminal-table (1.8.0)
|
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
|
thread_safe (0.3.6)
|
|
trailblazer-option (0.1.1)
|
|
tty-cursor (0.7.1)
|
|
tty-screen (0.8.1)
|
|
tty-spinner (0.9.3)
|
|
tty-cursor (~> 0.7)
|
|
typhoeus (1.4.0)
|
|
ethon (>= 0.9.0)
|
|
tzinfo (1.2.9)
|
|
thread_safe (~> 0.1)
|
|
uber (0.1.0)
|
|
unf (0.1.4)
|
|
unf_ext
|
|
unf_ext (0.0.7.7)
|
|
unicode-display_width (1.7.0)
|
|
webrick (1.7.0)
|
|
word_wrap (1.0.0)
|
|
xcodeproj (1.19.0)
|
|
CFPropertyList (>= 2.3.3, < 4.0)
|
|
atomos (~> 0.1.3)
|
|
claide (>= 1.0.2, < 2.0)
|
|
colored2 (~> 3.1)
|
|
nanaimo (~> 0.3.0)
|
|
xcpretty (0.3.0)
|
|
rouge (~> 2.0.7)
|
|
xcpretty-travis-formatter (1.0.1)
|
|
xcpretty (~> 0.2, >= 0.0.7)
|
|
|
|
PLATFORMS
|
|
ruby
|
|
|
|
DEPENDENCIES
|
|
cocoapods (~> 1.8, < 1.10)!
|
|
cocoapods-binary!
|
|
cocoapods-keys!
|
|
cocoapods-repo-update!
|
|
fastlane!
|
|
|
|
BUNDLED WITH
|
|
2.2.24
|