Skip to content

Support mulitple output objects per execution #13

@strieflin

Description

@strieflin

It looks like, Ephemeral currently supports only a single output object for MPC programs.

func (f *AmphoraFeeder) writeToAmphora(act *Activation, resp Result) ([]string, error) {
client := f.conf.AmphoraClient
os := amphora.SecretShare{
SecretID: act.GameID,
// When writing to Amphora, the slice has exactly 1 element.
Data: resp.Response[0],
Tags: []amphora.Tag{
amphora.Tag{
ValueType: "STRING",
Key: "gameID",
Value: act.GameID,
},
},
}
err := client.CreateSecretShare(&os)
f.logger.Infow(fmt.Sprintf("Created secret share with id %s", os.SecretID), GameID, act.GameID)
if err != nil {
return nil, err
}
return []string{act.GameID}, nil
}

That seems limiting in many scenarios.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions