Documentation ¶
Index ¶
- Constants
- func SetupByzcoin(r *onet.Roster, blockInterval int) (cl *byzcoin.Client, admin darc.Signer, gDarc darc.Darc, err error)
- type DecryptReply
- type DecryptRequest
- type SCClient
- func (scCl *SCClient) AddReadTransaction(proof *byzcoin.Proof, signer darc.Signer, darc darc.Darc, wait int) (*TransactionReply, error)
- func (scCl *SCClient) AddWriteTransaction(wd *util.WriteData, signer darc.Signer, darc darc.Darc, wait int) (*TransactionReply, error)
- func (scCl *SCClient) Decrypt(wrProof *byzcoin.Proof, rProof *byzcoin.Proof, key string, sk kyber.Scalar) (*DecryptReply, error)
- func (scCl *SCClient) GetProof(id byzcoin.InstanceID) (*byzcoin.GetProofResponse, error)
- func (scCl *SCClient) SetupDarcs() (darc.Signer, darc.Signer, *darc.Darc, error)
- func (scCl *SCClient) SpawnDarc(signer darc.Signer, spawnDarc darc.Darc, controlDarc darc.Darc, wait int) (*byzcoin.AddTxResponse, error)
- func (scCl *SCClient) StoreData(data []byte, dataHash []byte) (*StoreReply, error)
- type SemiCentralizedDB
- type Service
- type StoreReply
- type StoreRequest
- type TransactionReply
Constants ¶
View Source
const ServiceName = "SemiCentralizedService"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DecryptReply ¶
type DecryptRequest ¶
type SCClient ¶
func (*SCClient) AddReadTransaction ¶
func (*SCClient) AddWriteTransaction ¶
func (*SCClient) Decrypt ¶
func (scCl *SCClient) Decrypt(wrProof *byzcoin.Proof, rProof *byzcoin.Proof, key string, sk kyber.Scalar) (*DecryptReply, error)
func (scCl *SCClient) Decrypt(r *onet.Roster, wrProof *byzcoin.Proof, rProof *byzcoin.Proof, key string, sk kyber.Scalar) (*DecryptReply, error) {
func (*SCClient) GetProof ¶
func (scCl *SCClient) GetProof(id byzcoin.InstanceID) (*byzcoin.GetProofResponse, error)
func (*SCClient) SetupDarcs ¶
type SemiCentralizedDB ¶
func NewSemiCentralizedDB ¶
func NewSemiCentralizedDB(db *bolt.DB, bn []byte) *SemiCentralizedDB
func (*SemiCentralizedDB) GetStoredData ¶
func (sdb *SemiCentralizedDB) GetStoredData(key string) (*StoreRequest, error)
func (*SemiCentralizedDB) StoreData ¶
func (sdb *SemiCentralizedDB) StoreData(req *StoreRequest) (key string, err error)
type Service ¶
type Service struct { // We need to embed the ServiceProcessor, so that incoming messages // are correctly handled. *onet.ServiceProcessor // contains filtered or unexported fields }
Service is our template-service
func (*Service) Decrypt ¶
func (s *Service) Decrypt(req *DecryptRequest) (*DecryptReply, error)
func (*Service) StoreData ¶
func (s *Service) StoreData(req *StoreRequest) (*StoreReply, error)
type StoreReply ¶
type StoreReply struct {
StoredKey string
}
type StoreRequest ¶
type TransactionReply ¶
type TransactionReply struct { *byzcoin.AddTxResponse byzcoin.InstanceID }
Click to show internal directories.
Click to hide internal directories.