resolve

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package resolve provides the resolve protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArePromisesComplete

func ArePromisesComplete(promiseEntities []*entities.Promise, promise *cAPI.Promise, step uint32) bool

ArePromisesComplete : determines if the set of promises present in the AlertRequest is EQUAL (not just included) to the one expected from the TTP for this signer, at this particular step of the signing sequence. The provided step is supposed valid (ie. in bound of the sequence) (see call to 'IsRequestValid' in 'Alert' route)

func ComputeDishonestSigners

func ComputeDishonestSigners(archives *entities.SignatureArchives, evidence []*entities.Promise) []uint32

ComputeDishonestSigners : computes the dishonest signers from the provided evidence. ie: if an already aborted signer sent a message after his call to the ttp, then he is dishonest

func GenerateSignedContract

func GenerateSignedContract(archives *entities.SignatureArchives) []byte

GenerateSignedContract : generates the signed contract. Does not take into account if we have the evidence to do it (see function 'CanGenerate').

XXX : Implementation needs cryptographic promises

func Solve

func Solve(manager *entities.ArchivesManager) (bool, []byte)

Solve : tries to generate the signed contract from present evidence.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL