Closed andrea-dintino closed 2 years ago
We'd need to be able to search keys by name, with a statement like:
Given I read from redis the data under the keys containing 'string' and save the output into 'output'
Input:
{ "string": "did:example" }
The output should be an array of of string dictionaries, like:
{ "output": [ { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2020/v1" ], "id": "did:example:123456789abcdefghi", "verificationMethod": [ { "id": "did:example:123456789abcdefghi#key-1", "type": "Ed25519VerificationKey2020", "controller": "did:example:123456789abcdefghi", "publicKeyMultibase": "zH3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV" } ], "authentication": [ "#key-1" ] }, { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2020/v1" ], "id": "did:example:abcde123456789abcdefghi", "verificationMethod": [ { "id": "did:example:abcde123456789abcdefghi#key-1", "type": "Ed25519VerificationKey2020", "controller": "did:example:123456789abcdefghi", "publicKeyMultibase": "zH3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV" } ], "authentication": [ "#key-2" ] } ] }
Implemented in https://github.com/dyne/restroom-mw/pull/172
The output of this statement is stringified, it shouldn't be so.
We'd need to be able to search keys by name, with a statement like:
Given I read from redis the data under the keys containing 'string' and save the output into 'output'
Input:
The output should be an array of of string dictionaries, like: