Documentation ¶
Overview ¶
Package resolve provides the resolve protocol.
Index ¶
- func ArePromisesComplete(promiseEntities []*entities.Promise, promise *cAPI.Promise, step uint32) bool
- func ComputeDishonestSigners(archives *entities.SignatureArchives, evidence []*entities.Promise) []uint32
- func GenerateSignedContract(archives *entities.SignatureArchives) []byte
- func Solve(manager *entities.ArchivesManager) (bool, []byte)
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
Types ¶
This section is empty.