CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

Torus-utils 10.0.1

Torus-utils 10.0.1

Maintained by Chaitanya Potti.



 
Depends on:
Torus-fetchNodeDetails~> 8.0.1
curvelib.swift~> 2.0.0
 

  • By
  • Torus Labs

Torus-utils-swift

Introduction

Use this package to do threshold resolution of API calls to Torus nodes. Since Torus nodes operate on a threshold assumption, we need to ensure that API calls also follow such an assumption. This is to prevent malicious nodes from withholding shares, or deliberately slowing down the entire process.

This utility library allows for early exits in optimistic scenarios, while handling rejection of invalid inputs from nodes in malicious/offline scenarios. The general approach is to evaluate predicates against a list of (potentially incomplete) results, and exit when the predicate passes.