Swiftpack.co - torusresearch/torus-utils-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
torusresearch/torus-utils-swift
Swift package for fetching shares from torus-nodes
.package(url: "https://github.com/torusresearch/torus-utils-swift.git", from: "1.0.1")

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.

GitHub

link
Stars: 0
Last commit: 9 hours ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

0.1.3
31 weeks ago
  • added Errorstack
  • added threshold lagrange interpolation

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics